You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

3 months ago
  1. import { QuestionFilled } from '@element-plus/icons-vue';
  2. import { buttonTypes } from '../../button/src/button.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: {
  29. type: Boolean,
  30. default: false
  31. },
  32. hideAfter: {
  33. type: Number,
  34. default: 200
  35. },
  36. teleported: useTooltipContentProps.teleported,
  37. persistent: useTooltipContentProps.persistent,
  38. width: {
  39. type: [String, Number],
  40. default: 150
  41. }
  42. });
  43. const popconfirmEmits = {
  44. confirm: (e) => e instanceof MouseEvent,
  45. cancel: (e) => e instanceof MouseEvent
  46. };
  47. export { popconfirmEmits, popconfirmProps };
  48. //# sourceMappingURL=popconfirm.mjs.map