"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.skeletonTitleProps = exports.default = void 0;
var _vue = require("vue");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
const skeletonTitleProps = () => ({
  prefixCls: String,
  width: {
    type: [Number, String]
  },
  className: String,
  style: {
    type: Object
  }
});
exports.skeletonTitleProps = skeletonTitleProps;
const SkeletonTitle = (0, _vue.defineComponent)({
  compatConfig: {
    MODE: 3
  },
  name: 'SkeletonTitle',
  props: skeletonTitleProps(),
  setup(props) {
    return () => {
      const {
        prefixCls,
        width,
        className,
        style
      } = props;
      const zWidth = typeof width === 'number' ? `${width}px` : width;
      return (0, _vue.createVNode)("h3", {
        "class": [prefixCls, className],
        "style": (0, _extends2.default)({
          width: zWidth
        }, style || {})
      }, null);
    };
  }
});
var _default = exports.default = SkeletonTitle;