init
This commit is contained in:
31
xhs-mini-demos/component-case/switch/templates.js
Normal file
31
xhs-mini-demos/component-case/switch/templates.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/** 以下内容为自动生成,请勿手动修改 */
|
||||
|
||||
module.exports = {
|
||||
data: {
|
||||
page_data_0: false,
|
||||
|
||||
page_data_1: false,
|
||||
|
||||
page_data_2: 1,
|
||||
|
||||
page_data_3: ["checkbox", "switch"],
|
||||
|
||||
page_data_4: `#04BE02`,
|
||||
},
|
||||
|
||||
page_fun_0(e) {
|
||||
this.setData("page_data_0", e.detail.value);
|
||||
},
|
||||
|
||||
page_fun_1(e) {
|
||||
this.setData("page_data_1", e.detail.value);
|
||||
},
|
||||
|
||||
page_fun_2(e) {
|
||||
this.setData("page_data_2", e.detail.value);
|
||||
},
|
||||
|
||||
page_fun_3(e) {
|
||||
this.setData("page_data_4", e.detail.value);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user