Files
tk-mini-program/unpackage/dist/dev/mp-weixin/TUIKit/components/common/RadioSelect/index.js
pengxiaolong c006a8e63d 消息
2025-05-13 19:39:53 +08:00

37 lines
1.1 KiB
JavaScript

"use strict";
const common_vendor = require("../../../../common/vendor.js");
const common_assets = require("../../../../common/assets.js");
if (!Math) {
Icon();
}
const Icon = () => "../Icon.js";
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "index",
props: {
isSelected: { type: Boolean }
},
emits: ["onChange"],
setup(__props, { emit: __emit }) {
const emits = __emit;
const props = __props;
function toggleSelect() {
emits("onChange", !props.isSelected);
}
return (_ctx, _cache) => {
return common_vendor.e({
a: !props.isSelected
}, !props.isSelected ? {} : {
b: common_vendor.p({
file: common_vendor.unref(common_assets.radioIcon),
size: "20px"
})
}, {
c: common_vendor.o$1(toggleSelect)
});
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-169aff8a"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/TUIKit/components/common/RadioSelect/index.js.map