From bbddf30e96feb1ab048323d93d3b8c1b18857acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E6=9C=A8?= Date: Tue, 1 Jun 2021 17:07:50 +0800 Subject: [PATCH] fix(form): radioButtonGroup value support number --- 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 791b538ae..16aa9af55 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; disabled?: boolean }; + type OptionsItem = { label: string; value: string | number; disabled?: boolean }; type RadioItem = string | OptionsItem; export default defineComponent({ @@ -28,7 +28,7 @@ }, props: { value: { - type: String as PropType, + type: [String, Number] as PropType, }, options: { type: Array as PropType,