mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Card 的 desc 优先用 description
This commit is contained in:
parent
6d1642710f
commit
d2f315dbbb
@ -299,16 +299,18 @@ export class Card extends React.Component<CardProps> {
|
||||
title: titleTpl,
|
||||
subTitle: subTitleTpl,
|
||||
subTitlePlaceholder,
|
||||
desc: descTpl,
|
||||
descPlaceholder
|
||||
desc: descTpl
|
||||
} = header;
|
||||
|
||||
const descPlaceholder =
|
||||
header.descriptionPlaceholder || header.descPlaceholder;
|
||||
|
||||
const highlight = !!evalExpression(highlightTpl, data as object);
|
||||
const avatar = filter(avatarTpl, data, '| raw');
|
||||
const avatarText = filter(avatarTextTpl, data);
|
||||
const title = filter(titleTpl, data);
|
||||
const subTitle = filter(subTitleTpl, data);
|
||||
const desc = filter(descTpl, data);
|
||||
const desc = filter(header.description || descTpl, data);
|
||||
|
||||
heading = (
|
||||
<div className={cx('Card-heading', header.className)}>
|
||||
|
Loading…
Reference in New Issue
Block a user