48 lines
1.6 KiB
JavaScript
Raw Normal View History

2025-07-15 16:18:34 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
_easycom_hs_button2();
}
const _easycom_hs_button = () => "../hs-button/hs-button.js";
if (!Math) {
_easycom_hs_button();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "hs-footer",
props: ["btnParimaryName", "btnOtherName", "btnOtherShow", "back"],
emits: ["handleParmaryClick", "handleOtherClick"],
setup(__props, { emit }) {
const props = __props;
const handleParmaryClick = () => {
emit("handleParmaryClick");
};
const handleOtherClick = () => {
emit("handleOtherClick");
if (props == null ? void 0 : props.back) {
common_vendor.index.navigateBack({ delta: 1 });
}
};
return (_ctx, _cache) => {
return common_vendor.e({
a: props == null ? void 0 : props.btnOtherShow
}, (props == null ? void 0 : props.btnOtherShow) ? {
b: common_vendor.p({
label: (props == null ? void 0 : props.btnOtherName) || "返回",
size: "md"
}),
c: common_vendor.o(handleOtherClick)
} : {}, {
d: common_vendor.p({
label: (props == null ? void 0 : props.btnParimaryName) || "提交",
type: "primary",
size: "md"
}),
e: common_vendor.o(handleParmaryClick)
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-343c1add"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-footer/hs-footer.vue"]]);
wx.createComponent(Component);