fix(Switch): incorrect size prop type (#5229)

This commit is contained in:
neverland
2019-12-09 17:36:22 +08:00
committed by GitHub
parent 308c0a9a92
commit 41824d7afa
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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,