提交 5c00c95b 编写于 作者: shutao-dc's avatar shutao-dc

修改 list-view.uvue direction值域

上级 348a9617
......@@ -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 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册