UNPKG

element-plus

Version:

A Component Library for Vue 3

72 lines (71 loc) 2.41 kB
import type { PopconfirmProps } from './popconfirm'; declare var __VLS_22: { confirm: (e: MouseEvent) => void; cancel: (e: MouseEvent) => void; }, __VLS_40: {}; type __VLS_Slots = {} & { actions?: (props: typeof __VLS_22) => any; } & { reference?: (props: typeof __VLS_40) => any; }; declare const __VLS_base: import("vue").DefineComponent<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<PopconfirmProps>, { confirmButtonType: string; cancelButtonType: string; icon: () => any; iconColor: string; hideAfter: number; effect: string; teleported: boolean; width: number; }>, { popperRef: import("vue").ComputedRef<import("element-plus").PopperInstance | undefined>; hide: () => void; }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { cancel: (e: MouseEvent) => void; confirm: (e: MouseEvent) => void; }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaultsLocal<__VLS_TypePropsToOption<PopconfirmProps>, { confirmButtonType: string; cancelButtonType: string; icon: () => any; iconColor: string; hideAfter: number; effect: string; teleported: boolean; width: number; }>>> & { onCancel?: ((e: MouseEvent) => any) | undefined; onConfirm?: ((e: MouseEvent) => any) | undefined; }, { width: string | number; icon: string | import("vue").Component; effect: import("element-plus").PopperEffect; hideAfter: number; teleported: boolean; confirmButtonType: import("element-plus/es/components/button").ButtonType; cancelButtonType: import("element-plus/es/components/button").ButtonType; iconColor: string; }, {}>; declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<Required<T>[K]>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaultsLocal<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal<T> = { [K in keyof T as K]: T[K]; } & {};