Skip to content

Commit

Permalink
fix(form): radioButtonGroup value support boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
zuihou committed Jun 2, 2021
1 parent 1a429dd commit 9e2aa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Form/src/components/RadioButtonGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { isString } from '/@/utils/is';
import { useRuleFormItem } from '/@/hooks/component/useFormItem';
import { useAttrs } from '/@/hooks/core/useAttrs';
type OptionsItem = { label: string; value: string | number; disabled?: boolean };
type OptionsItem = { label: string; value: string | number | boolean; disabled?: boolean };
type RadioItem = string | OptionsItem;

export default defineComponent({
Expand All @@ -28,7 +28,7 @@
},
props: {
value: {
type: [String, Number] as PropType<string | number>,
type: [String, Number, Boolean] as PropType<string | number | boolean>,
},
options: {
type: Array as PropType<RadioItem[]>,
Expand Down

0 comments on commit 9e2aa20

Please sign in to comment.