mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
54 lines
767 B
JavaScript
54 lines
767 B
JavaScript
import Page from '../../common/page';
|
|
|
|
Page({
|
|
data: {
|
|
show1: false,
|
|
show2: false,
|
|
show3: false,
|
|
show4: false,
|
|
action1: [
|
|
{
|
|
name: '选项'
|
|
},
|
|
{
|
|
name: '选项'
|
|
},
|
|
{
|
|
name: '选项',
|
|
subname: '描述信息'
|
|
}
|
|
],
|
|
action2: [
|
|
{
|
|
name: '选项'
|
|
},
|
|
{
|
|
loading: true
|
|
},
|
|
{ name: '禁用选项', disabled: true }
|
|
]
|
|
},
|
|
|
|
toggle(type) {
|
|
this.setData({
|
|
[type]: !this.data[type]
|
|
});
|
|
},
|
|
|
|
toggleActionSheet1() {
|
|
this.toggle('show1');
|
|
},
|
|
|
|
toggleActionSheet2() {
|
|
this.toggle('show2');
|
|
},
|
|
|
|
toggleActionSheet3() {
|
|
this.toggle('show3');
|
|
},
|
|
|
|
toggleActionSheet4() {
|
|
this.toggle('show4');
|
|
},
|
|
});
|