diff --git a/package/component/src/component/radio/index.vue b/package/component/src/component/radio/index.vue index 483a858c..ccaa7605 100644 --- a/package/component/src/component/radio/index.vue +++ b/package/component/src/component/radio/index.vue @@ -9,12 +9,12 @@ export default { import "./index.less"; export interface LayRadioProps { - size?: "lg" | "md" | "sm" | "xs"; - modelValue?: string | boolean; - disabled?: boolean; - value?: string; - label?: string; name?: string; + size?: "lg" | "md" | "sm" | "xs"; + disabled?: boolean; + modelValue?: string | boolean | number; + value?: string | boolean | number; + label?: string; } const props = withDefaults(defineProps(), { diff --git a/package/component/src/component/radioGroup/index.vue b/package/component/src/component/radioGroup/index.vue index a13f067d..c120403c 100644 --- a/package/component/src/component/radioGroup/index.vue +++ b/package/component/src/component/radioGroup/index.vue @@ -8,7 +8,7 @@ export default { import { provide, ref, watch } from "vue"; export interface LayRadioGroupProps { - modelValue?: string | boolean; + modelValue?: string | boolean | number; name?: string; disabled?: boolean; } diff --git a/package/document-component/src/document/zh-CN/components/radio.md b/package/document-component/src/document/zh-CN/components/radio.md index 92be78af..1b82607b 100644 --- a/package/document-component/src/document/zh-CN/components/radio.md +++ b/package/document-component/src/document/zh-CN/components/radio.md @@ -13,10 +13,10 @@ ::: demo 使用 `lay-radio` 标签, 创建一个单选框