mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +08:00
feat: card subTitle支持更多渲染方式 (#10037)
* feat: card subTitle支持更多渲染方式 * feat: card subTitle支持更多渲染方式 * feat: card subTitle支持更多渲染方式 --------- Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
f5aecd7849
commit
d5299267ef
@ -86,7 +86,7 @@ export interface CardSchema extends BaseSchema {
|
||||
/**
|
||||
* 副标题
|
||||
*/
|
||||
subTitle?: SchemaTpl;
|
||||
subTitle?: SchemaTpl | Schema;
|
||||
subTitleClassName?: SchemaClassName;
|
||||
subTitlePlaceholder?: string;
|
||||
|
||||
@ -593,8 +593,8 @@ export class CardRenderer extends React.Component<CardProps> {
|
||||
if (header) {
|
||||
const {subTitle: subTitleTpl} = header || {};
|
||||
|
||||
const subTitle = filter(subTitleTpl, data);
|
||||
return subTitle ? render('sub-title', subTitleTpl!) : undefined;
|
||||
// const subTitle = filter(subTitleTpl, data);
|
||||
return subTitleTpl ? render('sub-title', subTitleTpl, data) : undefined;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user