mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[improvement] Switch: tsx (#2784)
This commit is contained in:
@@ -2,18 +2,29 @@
|
||||
* Common Switch Props
|
||||
*/
|
||||
|
||||
export type SharedSwitchProps = {
|
||||
size?: string;
|
||||
value?: any;
|
||||
loading?: boolean;
|
||||
disabled?: boolean;
|
||||
activeValue?: any;
|
||||
inactiveValue?: any;
|
||||
activeColor?: string;
|
||||
inactiveColor?: string;
|
||||
};
|
||||
|
||||
export const switchProps = {
|
||||
value: null,
|
||||
value: null as any,
|
||||
loading: Boolean,
|
||||
disabled: Boolean,
|
||||
activeColor: String,
|
||||
inactiveColor: String,
|
||||
activeValue: {
|
||||
type: null,
|
||||
type: null as any,
|
||||
default: true
|
||||
},
|
||||
inactiveValue: {
|
||||
type: null,
|
||||
type: null as any,
|
||||
default: false
|
||||
},
|
||||
size: {
|
||||
|
Reference in New Issue
Block a user