/** * @file 组件 comment * @author chenkai13 */ import './style/index.less'; import Base from 'santd/base'; import {classCreator} from '../core/util'; const prefixCls = classCreator('comment')(); class Action extends Base { static template = '
  • '; } class Comment extends Base { public Action = Action; static template = `
    `; inited() { let {author, datetime, actions, nested} = this.sourceSlots.named; this.data.set('hasAuthor', author || datetime); this.data.set('hasActions', !!actions); this.data.set('hasNested', !!nested); } } export default Comment;