SkeletonTitle.mjs 636 B

123456789101112131415161718192021222324252627
  1. import { createVNode as _createVNode } from "vue";
  2. import { defineComponent } from "vue";
  3. import { createNamespace, numericProp, addUnit } from "../utils/index.mjs";
  4. const [name, bem] = createNamespace("skeleton-title");
  5. const skeletonTitleProps = {
  6. round: Boolean,
  7. titleWidth: numericProp
  8. };
  9. var stdin_default = defineComponent({
  10. name,
  11. props: skeletonTitleProps,
  12. setup(props) {
  13. return () => _createVNode("h3", {
  14. "class": bem([{
  15. round: props.round
  16. }]),
  17. "style": {
  18. width: addUnit(props.titleWidth)
  19. }
  20. }, null);
  21. }
  22. });
  23. export {
  24. stdin_default as default,
  25. skeletonTitleProps
  26. };