avatar.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
  2. const require_size = require("../../../constants/size.js");
  3. const require_types = require("../../../utils/types.js");
  4. const require_runtime = require("../../../utils/vue/props/runtime.js");
  5. const require_icon = require("../../../utils/vue/icon.js");
  6. //#region ../../packages/components/avatar/src/avatar.ts
  7. /**
  8. * @deprecated Removed after 3.0.0, Use `AvatarProps` instead.
  9. */
  10. const avatarProps = require_runtime.buildProps({
  11. /**
  12. * @description avatar size.
  13. */
  14. size: {
  15. type: [Number, String],
  16. values: require_size.componentSizes,
  17. validator: (val) => require_types.isNumber(val)
  18. },
  19. /**
  20. * @description avatar shape.
  21. */
  22. shape: {
  23. type: String,
  24. values: ["circle", "square"]
  25. },
  26. /**
  27. * @description representation type to icon, more info on icon component.
  28. */
  29. icon: { type: require_icon.iconPropType },
  30. /**
  31. * @description the source of the image for an image avatar.
  32. */
  33. src: {
  34. type: String,
  35. default: ""
  36. },
  37. /**
  38. * @description native attribute `alt` of image avatar.
  39. */
  40. alt: String,
  41. /**
  42. * @description native attribute srcset of image avatar.
  43. */
  44. srcSet: String,
  45. /**
  46. * @description set how the image fit its container for an image avatar.
  47. */
  48. fit: {
  49. type: require_runtime.definePropType(String),
  50. default: "cover"
  51. }
  52. });
  53. const avatarEmits = { error: (evt) => evt instanceof Event };
  54. //#endregion
  55. exports.avatarEmits = avatarEmits;
  56. exports.avatarProps = avatarProps;
  57. //# sourceMappingURL=avatar.js.map