UNPKG

nutui-taro-upgrade

Version:

@nutui/nutui-taro 对京东风格组件库的taro4 版本支持

102 lines (101 loc) 3.25 kB
export type SwitchProps = Partial<{ modelValue: string | number | boolean; disabled: boolean; activeColor: string; inactiveColor: string; activeText: string; inactiveText: string; activeValue: string | number | boolean; inactiveValue: string | number | boolean; loading: boolean; disable: boolean; }>; declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{ modelValue: string | number | boolean; disabled: boolean; activeColor: string; inactiveColor: string; activeText: string; inactiveText: string; activeValue: string | number | boolean; inactiveValue: string | number | boolean; loading: boolean; disable: boolean; }>>, { modelValue: boolean; disabled: boolean; activeColor: string; inactiveColor: string; activeText: string; inactiveText: string; activeValue: boolean; inactiveValue: boolean; loading: boolean; disable: boolean; }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { change: (...args: any[]) => void; "update:modelValue": (...args: any[]) => void; "update:loading": (...args: any[]) => void; }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{ modelValue: string | number | boolean; disabled: boolean; activeColor: string; inactiveColor: string; activeText: string; inactiveText: string; activeValue: string | number | boolean; inactiveValue: string | number | boolean; loading: boolean; disable: boolean; }>>, { modelValue: boolean; disabled: boolean; activeColor: string; inactiveColor: string; activeText: string; inactiveText: string; activeValue: boolean; inactiveValue: boolean; loading: boolean; disable: boolean; }>>> & Readonly<{ onChange?: ((...args: any[]) => any) | undefined; "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined; "onUpdate:loading"?: ((...args: any[]) => any) | undefined; }>, { loading: boolean; disabled: boolean; activeColor: string; activeText: string; modelValue: string | number | boolean; inactiveColor: string; disable: boolean; inactiveText: string; activeValue: string | number | boolean; inactiveValue: string | number | boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, { icon?(_: {}): any; }>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };