[improvement] default props in tsx (#2789)

This commit is contained in:
neverland
2019-02-19 11:31:55 +08:00
committed by GitHub
parent b9d7143fb3
commit 07a6bcbe9f
11 changed files with 21 additions and 21 deletions

View File

@@ -3,12 +3,12 @@
*/
export type SharedSwitchProps = {
size?: string;
size: string;
value?: any;
loading?: boolean;
disabled?: boolean;
activeValue?: any;
inactiveValue?: any;
activeValue: any;
inactiveValue: any;
activeColor?: string;
inactiveColor?: string;
};