43 lines
1.7 KiB
JavaScript
Raw Normal View History

2025-08-29 09:51:02 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
2026-01-15 19:26:00 +08:00
const common_libraries_getPageConfig = require("../../common/libraries/getPageConfig.js");
require("../../common/store/useWeAppAuthStore.js");
require("../../gen/Apis.js");
require("../../common/libraries/request.js");
require("../../common/store/useWorkStore.js");
require("../../common/libraries/apiLoading.js");
2025-08-29 09:51:02 +08:00
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "hs-tabs",
2025-12-15 18:19:04 +08:00
props: ["current", "list", "no_space_between"],
2025-08-29 09:51:02 +08:00
emits: ["onChange"],
setup(__props, { emit }) {
const props = __props;
const handleClick = (idx, e) => {
emit("onChange", idx, e);
};
return (_ctx, _cache) => {
return {
a: common_vendor.f(props == null ? void 0 : props.list, (i, index, i0) => {
return {
a: common_vendor.t(i == null ? void 0 : i.label),
b: common_vendor.n(`label ${index === (props == null ? void 0 : props.current) ? "actives" : ""}`),
c: `item_${index}`,
d: common_vendor.o(($event) => handleClick(index, i), `item_${index}`)
};
2025-12-15 18:19:04 +08:00
}),
2026-01-15 19:26:00 +08:00
b: common_vendor.s(common_vendor.unref(common_libraries_getPageConfig.getStyleBgInfo)()),
c: common_vendor.s((props == null ? void 0 : props.no_space_between) ? {
2025-12-15 18:19:04 +08:00
"margin-left": "30rpx"
} : {
flex: 1
}),
2026-01-15 19:26:00 +08:00
d: common_vendor.s((props == null ? void 0 : props.no_space_between) ? "" : {
2025-12-15 18:19:04 +08:00
"justify-content": "space-between"
2025-08-29 09:51:02 +08:00
})
};
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-tabs/hs-tabs.vue"]]);
wx.createComponent(Component);