(component): 修复 radio 不兼容 number 类型的问题

This commit is contained in:
就眠儀式
2022-10-09 14:13:21 +08:00
parent 59b999d253
commit 0575a86ff8
4 changed files with 14 additions and 14 deletions

View File

@@ -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<LayRadioProps>(), {

View File

@@ -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;
}