/** * @file 组件 card * @author chenkai13 */ import './style/index.less'; import Base from 'santd/base'; import {classCreator} from '../core/util'; const prefixCls = classCreator('card')(); export default class Meta extends Base { static template = `
{{title}}
{{description}}
`; inited(): void { this.data.set('isAvatar', !!this.sourceSlots.named.avatar); this.data.set('isDes', !!this.sourceSlots.named.description); this.data.set('isTitle', !!this.sourceSlots.named.title); } }