greenPro/unpackage/dist/dev/mp-weixin/pages/extUI/breadcrumb/breadcrumb.js

80 lines
2.5 KiB
JavaScript

"use strict";
const common_vendor = require("../../../common/vendor.js");
const _sfc_main = {
components: {},
data() {
return {
routes: [{
to: "/pages/index/index",
name: "首页"
}, {
to: "",
name: "菜单 A"
}, {
to: "",
name: "菜单 B"
}]
};
}
};
if (!Array) {
const _easycom_uni_card2 = common_vendor.resolveComponent("uni-card");
const _easycom_uni_breadcrumb_item2 = common_vendor.resolveComponent("uni-breadcrumb-item");
const _easycom_uni_breadcrumb2 = common_vendor.resolveComponent("uni-breadcrumb");
const _easycom_uni_section2 = common_vendor.resolveComponent("uni-section");
(_easycom_uni_card2 + _easycom_uni_breadcrumb_item2 + _easycom_uni_breadcrumb2 + _easycom_uni_section2)();
}
const _easycom_uni_card = () => "../../../uni_modules/uni-card/components/uni-card/uni-card.js";
const _easycom_uni_breadcrumb_item = () => "../../../uni_modules/uni-breadcrumb/components/uni-breadcrumb-item/uni-breadcrumb-item.js";
const _easycom_uni_breadcrumb = () => "../../../uni_modules/uni-breadcrumb/components/uni-breadcrumb/uni-breadcrumb.js";
const _easycom_uni_section = () => "../../../uni_modules/uni-section/components/uni-section/uni-section.js";
if (!Math) {
(_easycom_uni_card + _easycom_uni_breadcrumb_item + _easycom_uni_breadcrumb + _easycom_uni_section)();
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.p({
["is-full"]: true,
["is-shadow"]: false
}),
b: common_vendor.f($data.routes, (route, index, i0) => {
return {
a: common_vendor.t(route.name),
b: index,
c: "d97f8608-3-" + i0 + ",d97f8608-2",
d: common_vendor.p({
to: route.to
})
};
}),
c: common_vendor.p({
separator: "/"
}),
d: common_vendor.p({
title: "基础用法",
type: "line",
padding: true
}),
e: common_vendor.f($data.routes, (route, index, i0) => {
return {
a: common_vendor.t(route.name),
b: index,
c: "d97f8608-6-" + i0 + ",d97f8608-5",
d: common_vendor.p({
to: route.to
})
};
}),
f: common_vendor.p({
separator: ">"
}),
g: common_vendor.p({
title: "自定义分隔符",
type: "line",
padding: true
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "E:/xianyu/app/greenPro/pages/extUI/breadcrumb/breadcrumb.vue"]]);
wx.createPage(MiniProgramPage);