From 9e2aa20daa08d2902cb5d56c1560306947e44939 Mon Sep 17 00:00:00 2001 From: zuihou <244387066@qq.com> Date: Wed, 2 Jun 2021 08:59:39 +0800 Subject: [PATCH] fix(form): radioButtonGroup value support boolean --- src/components/Form/src/components/RadioButtonGroup.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Form/src/components/RadioButtonGroup.vue b/src/components/Form/src/components/RadioButtonGroup.vue index 16aa9af55..c33f2940b 100644 --- a/src/components/Form/src/components/RadioButtonGroup.vue +++ b/src/components/Form/src/components/RadioButtonGroup.vue @@ -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({ @@ -28,7 +28,7 @@ }, props: { value: { - type: [String, Number] as PropType, + type: [String, Number, Boolean] as PropType, }, options: { type: Array as PropType,