49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
"use strict";
|
|
const common_vendor = require("../../common/vendor.js");
|
|
if (!Math) {
|
|
(tmText + tmSheet + tmTabbarItem + tmTabbar + tmApp)();
|
|
}
|
|
const tmApp = () => "../../tmui/components/tm-app/tm-app.js";
|
|
const tmSheet = () => "../../tmui/components/tm-sheet/tm-sheet.js";
|
|
const tmText = () => "../../tmui/components/tm-text/tm-text.js";
|
|
const tmTabbar = () => "../../tmui/components/tm-tabbar/tm-tabbar.js";
|
|
const tmTabbarItem = () => "../../tmui/components/tm-tabbar-item/tm-tabbar-item.js";
|
|
const _sfc_main = {
|
|
__name: "index",
|
|
emits: ["update:modelValue"],
|
|
setup(__props, { emit }) {
|
|
const acc = common_vendor.ref(1);
|
|
common_vendor.watch(acc, () => {
|
|
emit("update:modelValue", acc.value);
|
|
});
|
|
return (_ctx, _cache) => {
|
|
return {
|
|
a: common_vendor.p({
|
|
label: "点击中间+按钮可以体验异步加载动态效果."
|
|
}),
|
|
b: common_vendor.o(($event) => acc.value = 0),
|
|
c: common_vendor.p({
|
|
activeColor: "orange",
|
|
count: "HOT",
|
|
["open-type"]: "reLaunch",
|
|
text: "选票",
|
|
icon: "tmicon-collection-fill"
|
|
}),
|
|
d: common_vendor.o(($event) => acc.value = 1),
|
|
e: common_vendor.p({
|
|
activeColor: "orange",
|
|
text: "我的",
|
|
icon: "tmicon-cog-fill"
|
|
}),
|
|
f: common_vendor.o(($event) => acc.value = $event),
|
|
g: common_vendor.p({
|
|
autoSelect: false,
|
|
active: acc.value
|
|
})
|
|
};
|
|
};
|
|
}
|
|
};
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "D:/WebstormProjects/uni-ticket-system/src/components/self-tabbar/index.vue"]]);
|
|
wx.createComponent(Component);
|