"use strict"; const common_vendor = require("../../common/vendor.js"); if (!Array) { const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons"); _easycom_uni_icons2(); } const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"; if (!Math) { (statusBar + _easycom_uni_icons)(); } const statusBar = () => "./statusBar.js"; const _sfc_main = { __name: "apex", props: { // 页面标题 title: { type: String }, // 背景颜色 bgColor: { type: String, default: "#fff" }, // 前景色 color: { type: String, default: "#333" } }, setup(__props) { function handleBack() { const pages = getCurrentPages(); if (pages.length < 1) { common_vendor.index.navigateBack(); } else { common_vendor.index.switchTab({ url: "/pages/index/index" }); } } return (_ctx, _cache) => { return { a: common_vendor.o$1(handleBack), b: common_vendor.p({ type: "left", color: __props.color, size: "48rpx" }), c: common_vendor.t(__props.title), d: __props.color, e: __props.bgColor }; }; } }; const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-34641113"]]); wx.createComponent(Component);