UNPKG

761 BJavaScriptView Raw
1import { createVNode as _createVNode } from "vue";
2import { defineComponent } from 'vue';
3import PropTypes from '../_util/vue-types';
4var skeletonTitleProps = {
5 prefixCls: PropTypes.string,
6 width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
7};
8export var SkeletonTitleProps = PropTypes.shape(skeletonTitleProps);
9var Title = defineComponent({
10 props: skeletonTitleProps,
11 render: function render() {
12 var _this$$props = this.$props,
13 prefixCls = _this$$props.prefixCls,
14 width = _this$$props.width;
15 var zWidth = typeof width === 'number' ? "".concat(width, "px") : width;
16 return _createVNode("h3", {
17 "class": prefixCls,
18 "style": {
19 width: zWidth
20 }
21 }, null);
22 }
23});
24export default Title;
\No newline at end of file