gree_leran/unpackage/dist/dev/mp-weixin/components/MenTab/MenTab.js

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
__name: "MenTab",
setup(__props) {
const isExpanded = common_vendor.ref(false);
const toggleMenu = () => {
isExpanded.value = !isExpanded.value;
};
function NavicatToBaseItems(url) {
common_vendor.index.navigateTo({
url
});
}
const publishArticle = () => {
console.log("发表案例1");
NavicatToBaseItems("/pages/uploadNews/uploadNews");
};
const publishVideo = () => {
console.log("发表视频");
NavicatToBaseItems("/pages/uploadVideo/uploadVideo");
};
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(toggleMenu),
b: isExpanded.value
}, isExpanded.value ? {
c: common_vendor.o(publishArticle),
2024-06-22 07:20:39 +00:00
d: common_vendor.o(publishVideo)
2024-06-20 15:36:19 +00:00
} : {});
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a7ad0b4b"], ["__file", "D:/uniapp1/gree_leran/components/MenTab/MenTab.vue"]]);
wx.createComponent(Component);