From 5c00c95b2e09dcc576f85849315cdbea306a218f Mon Sep 17 00:00:00 2001 From: shutao Date: Fri, 12 Jan 2024 11:45:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20list-view.uvue=20direction?= =?UTF-8?q?=E5=80=BC=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/list-view/list-view.uvue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/component/list-view/list-view.uvue b/pages/component/list-view/list-view.uvue index a3e040d8..075315ed 100644 --- a/pages/component/list-view/list-view.uvue +++ b/pages/component/list-view/list-view.uvue @@ -10,7 +10,7 @@ bounces_boolean: true, scroll_y_boolean: true, scroll_x_boolean: false, - scroll_direction: "y", + scroll_direction: "vertical", upper_threshold_input: 50, lower_threshold_input: 50, scroll_top_input: 0, @@ -85,19 +85,19 @@ change_bounces_boolean(checked : boolean) { this.bounces_boolean = checked }, change_scroll_y_boolean(checked : boolean) { this.scroll_y_boolean = checked - change_scroll_direction() + this.change_scroll_direction() }, change_scroll_x_boolean(checked : boolean) { this.scroll_x_boolean = checked - change_scroll_direction() + this.change_scroll_direction() }, change_scroll_direction() { if(this.scroll_y_boolean && this.scroll_x_boolean || this.scroll_y_boolean) { - this.scroll_direction = "y" + this.scroll_direction = "vertical" } 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" + this.scroll_direction = "horizontal" } }, confirm_upper_threshold_input(value : number) { this.upper_threshold_input = value }, -- GitLab