37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../../common/vendor.js");
|
|
const _sfc_main = {
|
|
data() {
|
|
return {
|
|
title: "switch 开关"
|
|
};
|
|
},
|
|
methods: {
|
|
switch1Change: function(e) {
|
|
console.log("switch1 发生 change 事件,携带值为", e.detail.value);
|
|
},
|
|
switch2Change: function(e) {
|
|
console.log("switch2 发生 change 事件,携带值为", e.detail.value);
|
|
}
|
|
}
|
|
};
|
|
if (!Array) {
|
|
const _easycom_page_head2 = common_vendor.resolveComponent("page-head");
|
|
_easycom_page_head2();
|
|
}
|
|
const _easycom_page_head = () => "../../../components/page-head/page-head.js";
|
|
if (!Math) {
|
|
_easycom_page_head();
|
|
}
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.p({
|
|
title: $data.title
|
|
}),
|
|
b: common_vendor.o((...args) => $options.switch1Change && $options.switch1Change(...args)),
|
|
c: common_vendor.o((...args) => $options.switch2Change && $options.switch2Change(...args))
|
|
};
|
|
}
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/xianyu/app/greenPro/pages/component/switch/switch.vue"]]);
|
|
wx.createPage(MiniProgramPage);
|