mirror of
https://github.com/youzan/vant.git
synced 2026-05-16 01:07:43 +08:00
fix(Switch): incorrect size prop type (#5229)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
export type SharedSwitchProps = {
|
||||
size: string;
|
||||
size?: string | number;
|
||||
value?: any;
|
||||
loading?: boolean;
|
||||
disabled?: boolean;
|
||||
@@ -14,7 +14,7 @@ export type SharedSwitchProps = {
|
||||
};
|
||||
|
||||
export const switchProps = {
|
||||
size: String,
|
||||
size: [String, Number],
|
||||
value: null as any,
|
||||
loading: Boolean,
|
||||
disabled: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user