05c08455d1ad754074c177acb496a3c85d3a8f9a397652e4f2fdcd0c0d216b8eddf424e792174333a50f2c45b318022503ba460ed35053e74c13cf35e0b8d3 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var iconsVue = require('@element-plus/icons-vue');
  4. var runtime = require('../../../utils/vue/props/runtime.js');
  5. var icon = require('../../../utils/vue/icon.js');
  6. const notificationTypes = [
  7. "primary",
  8. "success",
  9. "info",
  10. "warning",
  11. "error"
  12. ];
  13. const notificationProps = runtime.buildProps({
  14. customClass: {
  15. type: String,
  16. default: ""
  17. },
  18. dangerouslyUseHTMLString: Boolean,
  19. duration: {
  20. type: Number,
  21. default: 4500
  22. },
  23. icon: {
  24. type: icon.iconPropType
  25. },
  26. id: {
  27. type: String,
  28. default: ""
  29. },
  30. message: {
  31. type: runtime.definePropType([
  32. String,
  33. Object,
  34. Function
  35. ]),
  36. default: ""
  37. },
  38. offset: {
  39. type: Number,
  40. default: 0
  41. },
  42. onClick: {
  43. type: runtime.definePropType(Function),
  44. default: () => void 0
  45. },
  46. onClose: {
  47. type: runtime.definePropType(Function),
  48. required: true
  49. },
  50. position: {
  51. type: String,
  52. values: ["top-right", "top-left", "bottom-right", "bottom-left"],
  53. default: "top-right"
  54. },
  55. showClose: {
  56. type: Boolean,
  57. default: true
  58. },
  59. title: {
  60. type: String,
  61. default: ""
  62. },
  63. type: {
  64. type: String,
  65. values: [...notificationTypes, ""],
  66. default: ""
  67. },
  68. zIndex: Number,
  69. closeIcon: {
  70. type: icon.iconPropType,
  71. default: iconsVue.Close
  72. }
  73. });
  74. const notificationEmits = {
  75. destroy: () => true
  76. };
  77. exports.notificationEmits = notificationEmits;
  78. exports.notificationProps = notificationProps;
  79. exports.notificationTypes = notificationTypes;
  80. //# sourceMappingURL=notification.js.map