Title.js 611 B

1234567891011121314151617181920212223
  1. import PropTypes from '../_util/vue-types';
  2. var skeletonTitleProps = {
  3. prefixCls: PropTypes.string,
  4. width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
  5. };
  6. export var SkeletonTitleProps = PropTypes.shape(skeletonTitleProps);
  7. var Title = {
  8. props: skeletonTitleProps,
  9. render: function render() {
  10. var h = arguments[0];
  11. var _$props = this.$props,
  12. prefixCls = _$props.prefixCls,
  13. width = _$props.width;
  14. var zWidth = typeof width === 'number' ? width + 'px' : width;
  15. return h('h3', { 'class': prefixCls, style: { width: zWidth } });
  16. }
  17. };
  18. export default Title;