mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
put icon into emptyText, close #1759
This commit is contained in:
parent
6944a8e7c1
commit
43cf39d9a0
@ -21,7 +21,7 @@ const defaultLocale = {
|
||||
filterTitle: '筛选',
|
||||
filterConfirm: '确定',
|
||||
filterReset: '重置',
|
||||
emptyText: '暂无数据',
|
||||
emptyText: <span><Icon type="frown" />暂无数据</span>,
|
||||
};
|
||||
|
||||
const defaultPagination = {
|
||||
@ -711,7 +711,7 @@ export default class Table extends React.Component {
|
||||
if (!data || data.length === 0) {
|
||||
emptyText = (
|
||||
<div className="ant-table-placeholder">
|
||||
<Icon type="frown" />{locale.emptyText}
|
||||
{locale.emptyText}
|
||||
</div>
|
||||
);
|
||||
emptyClass = 'ant-table-empty';
|
||||
|
Loading…
Reference in New Issue
Block a user