mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
32 lines
556 B
TypeScript
32 lines
556 B
TypeScript
/**
|
|
* Common Switch Props
|
|
*/
|
|
|
|
export type SharedSwitchProps = {
|
|
size?: string | number;
|
|
loading?: boolean;
|
|
disabled?: boolean;
|
|
modelValue?: any;
|
|
activeValue: any;
|
|
inactiveValue: any;
|
|
activeColor?: string;
|
|
inactiveColor?: string;
|
|
};
|
|
|
|
export const switchProps = {
|
|
size: [Number, String],
|
|
loading: Boolean,
|
|
disabled: Boolean,
|
|
modelValue: null as any,
|
|
activeColor: String,
|
|
inactiveColor: String,
|
|
activeValue: {
|
|
type: null as any,
|
|
default: true,
|
|
},
|
|
inactiveValue: {
|
|
type: null as any,
|
|
default: false,
|
|
},
|
|
};
|