@fecp/mobile
Version:
55 lines (54 loc) • 2.49 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
;/* empty css */
;/* empty css */
;/* empty css */
;/* empty css */
;/* empty css */
;/* empty css */
const vue = require("vue");
const index = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio-group/index.js");
const index$1 = require("../../../../../../node_modules/.pnpm/vant@4.9.17_vue@3.5.13_typescript@5.7.3_/node_modules/vant/es/radio/index.js");
const _sfc_main = {
__name: "RadioGroup",
props: {
options: {
type: Array,
default: []
},
fieldNames: {
type: Object,
default: {
text: "text",
value: "value",
disabled: "disabled"
}
}
},
setup(__props) {
return (_ctx, _cache) => {
const _component_van_radio = index$1.Radio;
const _component_van_radio_group = index.RadioGroup;
return vue.openBlock(), vue.createBlock(_component_van_radio_group, vue.mergeProps(_ctx.$attrs, {
shape: "round",
class: "fec-m-radio"
}), {
default: vue.withCtx(() => [
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item) => {
return vue.openBlock(), vue.createBlock(_component_van_radio, {
name: item[__props.fieldNames.value],
disabled: item[__props.fieldNames.disabled]
}, {
default: vue.withCtx(() => [
vue.createTextVNode(vue.toDisplayString(item[__props.fieldNames.text]), 1)
]),
_: 2
}, 1032, ["name", "disabled"]);
}), 256))
]),
_: 1
}, 16);
};
}
};
exports.default = _sfc_main;