icon.mjs 843 B

123456789101112131415161718192021222324252627282930313233
  1. import { definePropType } from "./props/runtime.mjs";
  2. import { CircleCheck, CircleClose, CircleCloseFilled, Close, InfoFilled, Loading, SuccessFilled, WarningFilled } from "@element-plus/icons-vue";
  3. //#region ../../packages/utils/vue/icon.ts
  4. const iconPropType = definePropType([
  5. String,
  6. Object,
  7. Function
  8. ]);
  9. const CloseComponents = { Close };
  10. const TypeComponents = {
  11. Close,
  12. SuccessFilled,
  13. InfoFilled,
  14. WarningFilled,
  15. CircleCloseFilled
  16. };
  17. const TypeComponentsMap = {
  18. primary: InfoFilled,
  19. success: SuccessFilled,
  20. warning: WarningFilled,
  21. error: CircleCloseFilled,
  22. info: InfoFilled
  23. };
  24. const ValidateComponentsMap = {
  25. validating: Loading,
  26. success: CircleCheck,
  27. error: CircleClose
  28. };
  29. //#endregion
  30. export { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType };
  31. //# sourceMappingURL=icon.mjs.map