| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- "use strict";
- const common_vendor = require("../common/vendor.js");
- const _sfc_main = {
- name: "ErpNavBar",
- props: {
- title: { type: String, default: "" },
- showBack: { type: Boolean, default: true },
- bgColor: { type: String, default: "#ffffff" },
- titleColor: { type: String, default: "#333333" }
- },
- data() {
- return { statusBarHeight: 20 };
- },
- mounted() {
- this.statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight || 20;
- },
- methods: {
- handleBack() {
- if (this.showBack) {
- this.$emit("back");
- common_vendor.index.navigateBack();
- }
- }
- }
- };
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
- return common_vendor.e({
- a: $props.showBack
- }, $props.showBack ? {
- b: $props.titleColor
- } : {}, {
- c: common_vendor.o((...args) => $options.handleBack && $options.handleBack(...args), "6f"),
- d: common_vendor.t($props.title),
- e: $props.titleColor,
- f: $data.statusBarHeight + "px",
- g: $props.bgColor
- });
- }
- const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1c584cd2"]]);
- wx.createComponent(Component);
- //# sourceMappingURL=../../.sourcemap/mp-weixin/components/erp-nav-bar.js.map
|