SkeletonParagraph.mjs 712 B

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