mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:38:53 +08:00
fix: 修复 card 变量经过多次处理的问题 (#3102)
This commit is contained in:
parent
764e8b2daa
commit
ee3783a319
@ -556,7 +556,7 @@ export class Card extends React.Component<CardProps> {
|
||||
header?.titleClassName || titleClassName
|
||||
)}
|
||||
>
|
||||
{render('title', title)}
|
||||
{render('title', titleTpl!)}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
@ -567,7 +567,7 @@ export class Card extends React.Component<CardProps> {
|
||||
header?.subTitleClassName || subTitleClassName
|
||||
)}
|
||||
>
|
||||
{render('sub-title', subTitle || subTitlePlaceholder!, {
|
||||
{render('sub-title', subTitleTpl || subTitlePlaceholder!, {
|
||||
className: cx(!subTitle ? 'Card-placeholder' : undefined)
|
||||
})}
|
||||
</div>
|
||||
@ -582,7 +582,7 @@ export class Card extends React.Component<CardProps> {
|
||||
descClassName
|
||||
)}
|
||||
>
|
||||
{render('desc', desc || descPlaceholder!, {
|
||||
{render('desc', header?.description || descTpl!, {
|
||||
className: !desc ? 'text-muted' : undefined
|
||||
})}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user