UNPKG

yanzhen-design-vue

Version:

128 lines (127 loc) 4.99 kB
import { ExtractPropTypes } from 'vue'; export declare const switchOptions: { ns: any; class: any; name: any; }; export declare const switchName: any; export declare const AntSwitchProps: { props: { size: { type: ((new (...args: any[]) => StringConstructor) | (() => StringConstructor) | { (): StringConstructor; new (): any; readonly prototype: any; }) | ((new (...args: any[]) => StringConstructor) | (() => StringConstructor) | { (): StringConstructor; new (): any; readonly prototype: any; })[]; values: string[]; default: () => string; }; checkedChildren: import('vue').PropType<any>; unCheckedChildren: import('vue').PropType<any>; tabindex: import('vue').PropType<string | number>; checked: import('vue').PropType<string | number | boolean>; checkedValue: { type: import('vue').PropType<string | number | boolean>; default: boolean; }; unCheckedValue: { type: import('vue').PropType<string | number | boolean>; default: boolean; }; id: StringConstructor; prefixCls: StringConstructor; disabled: { type: BooleanConstructor; default: any; }; autofocus: { type: BooleanConstructor; default: any; }; loading: { type: BooleanConstructor; default: any; }; }; emits: { change: (checked: string | number | boolean, e: Event) => void; click: (checked: string | number | boolean, e: Event) => void; keydown: (e: Event) => void; mouseup: (e: Event) => void; "update:checked": (checked: string | number | boolean) => void; blur: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler; focus: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler; }; }; export declare const switchProps: { value: { type: import('vue').PropType<string | number | boolean>; }; activeColor: { type: StringConstructor; }; size: import('@yanzhen-libs/utils-vue').EpPropFinalized<((new (...args: any[]) => StringConstructor) | (() => StringConstructor) | { (): StringConstructor; new (): any; readonly prototype: any; }) | ((new (...args: any[]) => StringConstructor) | (() => StringConstructor) | { (): StringConstructor; new (): any; readonly prototype: any; })[], string, unknown, () => string, boolean>; checkedChildren: { type: import('vue').PropType<any>; }; unCheckedChildren: { type: import('vue').PropType<any>; }; tabindex: { type: import('vue').PropType<string | number>; }; checked: { type: import('vue').PropType<string | number | boolean>; }; checkedValue: import('@yanzhen-libs/utils-vue').EpPropFinalized<import('vue').PropType<string | number | boolean>, unknown, unknown, boolean, boolean>; unCheckedValue: import('@yanzhen-libs/utils-vue').EpPropFinalized<import('vue').PropType<string | number | boolean>, unknown, unknown, boolean, boolean>; id: { type: StringConstructor; }; prefixCls: { type: StringConstructor; }; disabled: { readonly type: import('vue').PropType<import('@yanzhen-libs/utils-vue').EpPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; autofocus: { readonly type: import('vue').PropType<import('@yanzhen-libs/utils-vue').EpPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; loading: { readonly type: import('vue').PropType<import('@yanzhen-libs/utils-vue').EpPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __epPropKey: true; }; }; export declare const switchEmits: { 'update:value': (checked: string | number | boolean) => void; change: (checked: string | number | boolean, e: Event) => void; click: (checked: string | number | boolean, e: Event) => void; keydown: (e: Event) => void; mouseup: (e: Event) => void; "update:checked": (checked: string | number | boolean) => void; blur: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler; focus: import('ant-design-vue/es/_util/EventInterface').FocusEventHandler; }; export type SwitchProps = ExtractPropTypes<typeof switchProps>; export type SwitchPropsKey = keyof SwitchProps; export type SwitchEmits = typeof switchEmits;