Skip to content

Commit

Permalink
Table: fix emptyText
Browse files Browse the repository at this point in the history
  • Loading branch information
sam019 committed Mar 21, 2018
1 parent af05297 commit d5158b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-react",
"version": "1.4.8",
"version": "1.4.9",
"description": "Element UI for React",
"private": false,
"main": "dist/npm/es5/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/table/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Component, PropTypes } from '../../libs';
import TableHeader from './TableHeader';
import TableBody from './TableBody';
import TableFooter from './TableFooter';
import local from '../locale';

import type {
TableProps,
Expand Down Expand Up @@ -149,7 +148,7 @@ export default class Table extends Component<TableProps, TableState> {
style={{ width: this.bodyWidth }}
className="el-table__empty-block"
>
<span className="el-table__empty-text">{local.t('el.table.emptyText')}</span>
<span className="el-table__empty-text">{props.emptyText}</span>
</div>
)}
</div>
Expand Down

0 comments on commit d5158b6

Please sign in to comment.