You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
516 B
20 lines
516 B
import PropTypes from '../_util/vue-types';
|
|
|
|
const skeletonTitleProps = {
|
|
prefixCls: PropTypes.string,
|
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
};
|
|
|
|
export const SkeletonTitleProps = PropTypes.shape(skeletonTitleProps);
|
|
|
|
const Title = {
|
|
props: skeletonTitleProps,
|
|
render() {
|
|
const { prefixCls, width } = this.$props;
|
|
const zWidth = typeof width === 'number' ? `${width}px` : width;
|
|
return <h3 class={prefixCls} style={{ width: zWidth }} />;
|
|
},
|
|
};
|
|
|
|
export default Title;
|