Commit 9e2aa20d authored by zuihou's avatar zuihou

fix(form): radioButtonGroup value support boolean

parent 1a429dd4
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
import { isString } from '/@/utils/is'; import { isString } from '/@/utils/is';
import { useRuleFormItem } from '/@/hooks/component/useFormItem'; import { useRuleFormItem } from '/@/hooks/component/useFormItem';
import { useAttrs } from '/@/hooks/core/useAttrs'; 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; type RadioItem = string | OptionsItem;
export default defineComponent({ export default defineComponent({
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
}, },
props: { props: {
value: { value: {
type: [String, Number] as PropType<string | number>, type: [String, Number, Boolean] as PropType<string | number | boolean>,
}, },
options: { options: {
type: Array as PropType<RadioItem[]>, type: Array as PropType<RadioItem[]>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment