diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index 98f2491909d87fc8c2cbe25f885b787f52856f8f..ff0c033d5353da8642d1de4500e486a497c431b1 100644 --- a/pages/component/list-view/list-view.uvue +++ b/pages/component/list-view/list-view.uvue @@ -7,9 +7,10 @@ refresher_enabled_boolean: false, scroll_with_animation_boolean: false, show_scrollbar_boolean: false, - rebound_boolean: true, + bounces_boolean: true, scroll_y_boolean: true, scroll_x_boolean: false, + scroll_direction: "y", upper_threshold_input: 50, lower_threshold_input: 50, scroll_top_input: 0, @@ -81,9 +82,24 @@ change_refresher_enabled_boolean(checked : boolean) { this.refresher_enabled_boolean = checked }, change_scroll_with_animation_boolean(checked : boolean) { this.scroll_with_animation_boolean = checked }, change_show_scrollbar_boolean(checked : boolean) { this.show_scrollbar_boolean = checked }, - change_rebound_boolean(checked : boolean) { this.rebound_boolean = checked }, - change_scroll_y_boolean(checked : boolean) { this.scroll_y_boolean = checked }, - change_scroll_x_boolean(checked : boolean) { this.scroll_x_boolean = checked }, + change_bounces_boolean(checked : boolean) { this.bounces_boolean = checked }, + change_scroll_y_boolean(checked : boolean) { + this.scroll_y_boolean = checked + change_scroll_direction() + }, + change_scroll_x_boolean(checked : boolean) { + this.scroll_x_boolean = checked + change_scroll_direction() + }, + change_scroll_direction() { + if(this.scroll_y_boolean && this.scroll_x_boolean || this.scroll_y_boolean) { + this.scroll_direction = "y" + } else if(!this.scroll_y_boolean && !this.scroll_x_boolean) { + this.scroll_direction = "none" + } else if(!this.scroll_y_boolean && this.scroll_x_boolean){ + this.scroll_direction = "x" + } + }, confirm_upper_threshold_input(value : number) { this.upper_threshold_input = value }, confirm_lower_threshold_input(value : number) { this.lower_threshold_input = value }, confirm_scroll_top_input(value : number) { this.scroll_top_input = value }, @@ -121,7 +137,7 @@