✨(component): 修复 radio 不兼容 number 类型的问题
This commit is contained in:
@@ -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>(), {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user