import PropTypes from '../_util/vue-types'; import { getComponentFromProp } from '../_util/props-util'; import { ConfigConsumerProps } from '../config-provider'; export default { name: 'ACardMeta', props: { prefixCls: PropTypes.string, title: PropTypes.any, description: PropTypes.any, }, inject: { configProvider: { default: () => ({}) }, }, render() { const { prefixCls: customizePrefixCls } = this.$props; const getPrefixCls = this.configProvider.getPrefixCls || ConfigConsumerProps.getPrefixCls; const prefixCls = getPrefixCls('card', customizePrefixCls); const classString = { [`${prefixCls}-meta`]: true, }; const avatar = getComponentFromProp(this, 'avatar'); const title = getComponentFromProp(this, 'title'); const description = getComponentFromProp(this, 'description'); const avatarDom = avatar ?
: null; const titleDom = title ? : null; const descriptionDom = description ? ( ) : null; const MetaDetail = titleDom || descriptionDom ? ( ) : null; return (