SkeletonImage.mjs 739 B

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