e83834ba48f73d1fab86caaed056966aefe52e2e8d012f6f5563386cd690951d8e107ff39f0e3af1ccf5d57628f03d2207f50b8579d32ec0bbe4ecd970eade 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { QuestionFilled } from '@element-plus/icons-vue';
  2. import { buttonTypes } from '../../button/src/button2.mjs';
  3. import { buildProps } from '../../../utils/vue/props/runtime.mjs';
  4. import { iconPropType } from '../../../utils/vue/icon.mjs';
  5. import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
  6. const popconfirmProps = buildProps({
  7. title: String,
  8. confirmButtonText: String,
  9. cancelButtonText: String,
  10. confirmButtonType: {
  11. type: String,
  12. values: buttonTypes,
  13. default: "primary"
  14. },
  15. cancelButtonType: {
  16. type: String,
  17. values: buttonTypes,
  18. default: "text"
  19. },
  20. icon: {
  21. type: iconPropType,
  22. default: () => QuestionFilled
  23. },
  24. iconColor: {
  25. type: String,
  26. default: "#f90"
  27. },
  28. hideIcon: Boolean,
  29. hideAfter: {
  30. type: Number,
  31. default: 200
  32. },
  33. effect: {
  34. ...useTooltipContentProps.effect,
  35. default: "light"
  36. },
  37. teleported: useTooltipContentProps.teleported,
  38. persistent: useTooltipContentProps.persistent,
  39. width: {
  40. type: [String, Number],
  41. default: 150
  42. },
  43. closeOnPressEscape: {
  44. type: Boolean,
  45. default: true
  46. }
  47. });
  48. const popconfirmEmits = {
  49. confirm: (e) => e instanceof MouseEvent,
  50. cancel: (e) => e instanceof MouseEvent || e instanceof KeyboardEvent
  51. };
  52. export { popconfirmEmits, popconfirmProps };
  53. //# sourceMappingURL=popconfirm.mjs.map