{"code":"import { defineComponent as _defineComponent } from 'vue';\nimport { sei as _sei, n as _n } from \"vue\";\nimport {} from './type';\nexport default /*#__PURE__*/ _defineComponent({\n    __name: 'l-radio-group',\n    props: {\n        allowUncheck: { type: Boolean, default: false },\n        disabled: { type: Boolean, default: false },\n        name: {},\n        value: {},\n        defaultValue: {},\n        modelValue: {},\n        checkedColor: {},\n        iconBgColor: {},\n        iconBorderColor: {},\n        iconDisabledColor: {},\n        iconDisabledBgColor: {},\n        icon: {},\n        size: {},\n        iconSize: {},\n        fontSize: {},\n        gap: {},\n        direction: { default: 'horizontal' }\n    },\n    emits: ['change', 'update:modelValue'],\n    setup(__props, _a) {\n        var __emit = _a.emit;\n        const emit = __emit;\n        const props = __props;\n        const innerValue = ref(null);\n        const groupValue = computed({\n            set(value = null) {\n                innerValue.value = value;\n                emit('update:modelValue', value);\n                emit('change', value);\n            },\n            get() {\n                var _a, _b, _c;\n                return (_c = (_b = (_a = props.value) !== null && _a !== void 0 ? _a : props.modelValue) !== null && _b !== void 0 ? _b : props.defaultValue) !== null && _c !== void 0 ? _c : innerValue.value;\n            }\n        });\n        const handleRadioChange = (val = null) => {\n            if (props.allowUncheck && val == groupValue.value) {\n                groupValue.value = '';\n            }\n            else {\n                groupValue.value = val;\n            }\n        };\n        provide('limeRadioGroupProps', props);\n        provide('limeRadioGroupValue', groupValue);\n        provide('limeRadioGroupChange', handleRadioChange);\n        return (_ctx = null, _cache = null) => {\n            const __returned__ = {\n                a: _sei(_ctx.virtualHostId, 'view'),\n                b: _n('l-radio-group--' + _ctx.direction)\n            };\n            return __returned__;\n        };\n    }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/uni_modules/lime-radio/components/l-radio-group/l-radio-group.uvue?vue&type=script&setup=true&lang.uts.js.map","references":["D:/Program Files (x86)/HBuilderX/plugins/uniapp-cli-vite/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","D:/Program Files (x86)/HBuilderX/plugins/uniapp-cli-vite/node_modules/@vue/runtime-core/dist/runtime-core.d.ts","C:/Users/lj/Desktop/121/contract-front/111/uni_modules/lime-radio/components/l-radio-group/type.ts"],"uniExtApis":[],"map":"{\"version\":3,\"file\":\"l-radio-group.uvue?vue&type=script&setup=true&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"l-radio-group.uvue?vue&type=script&setup=true&lang.uts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,KAAK,CAAA;AACzD,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAmB,MAAM,QAAQ,CAAC;AAGzC,eAAe,aAAa,CAAA,gBAAgB,CAAC;IAC3C,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE;QACL,YAAY,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC/C,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE;QAC3C,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,EAAE;QACT,YAAY,EAAE,EAAE;QAChB,UAAU,EAAE,EAAE;QACd,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,EAAE;QACf,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;QACrB,mBAAmB,EAAE,EAAE;QACvB,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,GAAG,EAAE,EAAE;QACP,SAAS,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;KACrC;IACD,KAAK,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACtC,KAAK,CAAC,OAAY,EAAE,EAAgB;YAAR,MAAM,UAAA;QAEnC,MAAM,IAAI,GAAG,MAAM,CAAA;QACnB,MAAM,KAAK,GAAG,OAAO,CAAA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