39 lines
2.8 KiB
TypeScript
39 lines
2.8 KiB
TypeScript
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
|
import type Popconfirm from './popconfirm.vue';
|
|
export declare const popconfirmProps: {
|
|
readonly title: StringConstructor;
|
|
readonly confirmButtonText: StringConstructor;
|
|
readonly cancelButtonText: StringConstructor;
|
|
readonly confirmButtonType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "primary", boolean>;
|
|
readonly cancelButtonType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger", unknown, "text", boolean>;
|
|
readonly icon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown, () => any, boolean>;
|
|
readonly iconColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
|
|
readonly hideIcon: BooleanConstructor;
|
|
readonly hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
|
|
readonly effect: {
|
|
readonly default: "light";
|
|
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string) | (() => import("element-plus").PopperEffect) | ((new (...args: any[]) => string) | (() => import("element-plus").PopperEffect))[], unknown, unknown>>;
|
|
readonly required: false;
|
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
readonly __epPropKey: true;
|
|
};
|
|
readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
readonly persistent: BooleanConstructor;
|
|
readonly width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 150, boolean>;
|
|
readonly closeOnPressEscape: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
};
|
|
export declare const popconfirmEmits: {
|
|
/**
|
|
* @description triggers when click confirm button
|
|
*/
|
|
confirm: (e: MouseEvent) => boolean;
|
|
/**
|
|
* @description triggers when click cancel button
|
|
*/
|
|
cancel: (e: MouseEvent | KeyboardEvent) => boolean;
|
|
};
|
|
export type PopconfirmEmits = typeof popconfirmEmits;
|
|
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
export type PopconfirmPropsPublic = __ExtractPublicPropTypes<typeof popconfirmProps>;
|
|
export type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown;
|