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

36 lines
1.1 KiB
JavaScript

"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),
d: common_vendor.o(publishVideo)
} : {});
};
}
};
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);