mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:09:08 +08:00
修复list placeholder问题 (#1897)
This commit is contained in:
parent
f4188afc37
commit
25295dd6e7
@ -95,7 +95,8 @@ export default class ListControl extends React.Component<ListProps, any> {
|
||||
itemSchema,
|
||||
data,
|
||||
labelField,
|
||||
listClassName
|
||||
listClassName,
|
||||
translate: __
|
||||
} = this.props;
|
||||
|
||||
let body: JSX.Element | null = null;
|
||||
@ -153,7 +154,9 @@ export default class ListControl extends React.Component<ListProps, any> {
|
||||
{body ? (
|
||||
body
|
||||
) : (
|
||||
<span className={cx('ListControl-placeholder')}>{placeholder}</span>
|
||||
<span className={cx('ListControl-placeholder')}>
|
||||
{__(placeholder)}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user