Title.js 753 B

12345678910111213141516171819202122232425262728293031
  1. import { createVNode as _createVNode } from "vue";
  2. import { defineComponent } from 'vue';
  3. export var skeletonTitleProps = function skeletonTitleProps() {
  4. return {
  5. prefixCls: String,
  6. width: {
  7. type: [Number, String]
  8. }
  9. };
  10. };
  11. var SkeletonTitle = defineComponent({
  12. compatConfig: {
  13. MODE: 3
  14. },
  15. name: 'SkeletonTitle',
  16. props: skeletonTitleProps(),
  17. setup: function setup(props) {
  18. return function () {
  19. var prefixCls = props.prefixCls,
  20. width = props.width;
  21. var zWidth = typeof width === 'number' ? "".concat(width, "px") : width;
  22. return _createVNode("h3", {
  23. "class": prefixCls,
  24. "style": {
  25. width: zWidth
  26. }
  27. }, null);
  28. };
  29. }
  30. });
  31. export default SkeletonTitle;