SkeletonParagraph.mjs 734 B

1234567891011121314151617181920212223242526272829303132
  1. import { createVNode as _createVNode } from "vue";
  2. import { defineComponent } from "vue";
  3. import { createNamespace, numericProp } from "../utils/index.mjs";
  4. const DEFAULT_ROW_WIDTH = "100%";
  5. const skeletonParagraphProps = {
  6. round: Boolean,
  7. rowWidth: {
  8. type: numericProp,
  9. default: DEFAULT_ROW_WIDTH
  10. }
  11. };
  12. const [name, bem] = createNamespace("skeleton-paragraph");
  13. var stdin_default = defineComponent({
  14. name,
  15. props: skeletonParagraphProps,
  16. setup(props) {
  17. return () => _createVNode("div", {
  18. "class": bem([{
  19. round: props.round
  20. }]),
  21. "style": {
  22. width: props.rowWidth
  23. }
  24. }, null);
  25. }
  26. });
  27. export {
  28. DEFAULT_ROW_WIDTH,
  29. stdin_default as default,
  30. skeletonParagraphProps
  31. };