popconfirm.d.ts 2.1 KB

1234567891011121314151617181920212223242526272829
  1. import type { ExtractPropTypes } from 'vue';
  2. import type Popconfirm from './popconfirm.vue';
  3. export declare const popconfirmProps: {
  4. readonly title: StringConstructor;
  5. readonly confirmButtonText: StringConstructor;
  6. readonly cancelButtonText: StringConstructor;
  7. readonly confirmButtonType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown, "primary", boolean>;
  8. readonly cancelButtonType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "text" | "default" | "success" | "warning" | "info" | "primary" | "danger", unknown, "text", boolean>;
  9. 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>;
  10. readonly iconColor: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#f90", boolean>;
  11. readonly hideIcon: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  12. readonly hideAfter: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 200, boolean>;
  13. readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  14. readonly persistent: BooleanConstructor;
  15. readonly width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 150, boolean>;
  16. };
  17. export declare const popconfirmEmits: {
  18. /**
  19. * @description triggers when click confirm button
  20. */
  21. confirm: (e: MouseEvent) => boolean;
  22. /**
  23. * @description triggers when click cancel button
  24. */
  25. cancel: (e: MouseEvent) => boolean;
  26. };
  27. export type PopconfirmEmits = typeof popconfirmEmits;
  28. export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
  29. export type PopconfirmInstance = InstanceType<typeof Popconfirm> & unknown;