mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-24 04:10:20 +08:00
fix(form): radioButtonGroup value support boolean
This commit is contained in:
parent
1a429dd4d1
commit
9e2aa20daa
@ -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 @@
|
|||||||
},
|
},
|
||||||
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[]>,
|
||||||
|
Loading…
Reference in New Issue
Block a user