hldy_app/unpackage/dist/dev/mp-weixin/pages/timeMatrix/drawer/index.js

64 lines
1.5 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
changerightbottom: {
type: String,
default: "标准"
}
},
emits: ["clickball"],
setup(__props, { emit: __emit }) {
const ballarray = common_vendor.ref([
{
name: "周期",
url: ""
},
{
name: "放大",
url: "/static/index/getbig.png"
},
{
name: "日常",
url: ""
},
{
name: "缩小",
url: "/static/index/getsmall.png"
},
{
name: "全部",
url: ""
},
{
name: "标准",
url: ""
}
]);
const emit = __emit;
const clickball = (index) => {
emit("clickball", index);
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(ballarray.value, (item, index, i0) => {
return common_vendor.e({
a: item.url
}, item.url ? {
b: item.url
} : {
c: common_vendor.t(index === 5 ? __props.changerightbottom : item.name)
}, {
d: index,
e: common_vendor.o(($event) => clickball(index), index)
});
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a7ccf45b"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/timeMatrix/drawer/index.js.map