SkeletonImage.mjs 761 B

123456789101112131415161718192021222324252627
  1. import { createVNode as _createVNode } from "vue";
  2. import { defineComponent } from "vue";
  3. import { numericProp, getSizeStyle, makeStringProp, createNamespace } from "../utils/index.mjs";
  4. import { Icon } from "../icon/index.mjs";
  5. const [name, bem] = createNamespace("skeleton-image");
  6. const skeletonImageProps = {
  7. imageSize: numericProp,
  8. imageShape: makeStringProp("square")
  9. };
  10. var stdin_default = defineComponent({
  11. name,
  12. props: skeletonImageProps,
  13. setup(props) {
  14. return () => _createVNode("div", {
  15. "class": bem([props.imageShape]),
  16. "style": getSizeStyle(props.imageSize)
  17. }, [_createVNode(Icon, {
  18. "name": "photo",
  19. "class": bem("icon")
  20. }, null)]);
  21. }
  22. });
  23. export {
  24. stdin_default as default,
  25. skeletonImageProps
  26. };