Commit 9e2aa20daa08d2902cb5d56c1560306947e44939

Authored by zuihou
1 parent 1a429dd4

fix(form): radioButtonGroup value support boolean

src/components/Form/src/components/RadioButtonGroup.vue
... ... @@ -17,7 +17,7 @@
17 17 import { isString } from '/@/utils/is';
18 18 import { useRuleFormItem } from '/@/hooks/component/useFormItem';
19 19 import { useAttrs } from '/@/hooks/core/useAttrs';
20   - type OptionsItem = { label: string; value: string | number; disabled?: boolean };
  20 + type OptionsItem = { label: string; value: string | number | boolean; disabled?: boolean };
21 21 type RadioItem = string | OptionsItem;
22 22  
23 23 export default defineComponent({
... ... @@ -28,7 +28,7 @@
28 28 },
29 29 props: {
30 30 value: {
31   - type: [String, Number] as PropType<string | number>,
  31 + type: [String, Number, Boolean] as PropType<string | number | boolean>,
32 32 },
33 33 options: {
34 34 type: Array as PropType<RadioItem[]>,
... ...