diff --git a/components/DataView/index.js b/components/DataView/index.js index 5d65ca3de537e806528e882266c8b55712e8c9f9..1f95afdf7e8cd1c804d5bdb3679a97bf28e5bfd3 100644 --- a/components/DataView/index.js +++ b/components/DataView/index.js @@ -309,13 +309,13 @@ export default class DataView extends React.Component { const newPage = page.total > 0 ? { - current: page.pageNum, - total: page.total, - } + current: page.pageNum, + total: page.total, + } : { - current: PAGINATION.current, - total: PAGINATION.total, - }; + current: PAGINATION.current, + total: PAGINATION.total, + }; const newData = _.assign({}, data, { origin: list }); this.setState({ pagination: _.assign({}, pagination, newPage), @@ -639,10 +639,10 @@ export default class DataView extends React.Component { // 渲染顶部tips _renderTips() { - const { tips } = this.props; + const { tips, tipsClassName } = this.props; if (tips) { return ( -
+
{tips} {this._renderBtns()}
@@ -674,21 +674,21 @@ export default class DataView extends React.Component { {type === 'download' ? ( download() ) : ( - - {iconBtnSrc && iconBtnSrc !== '' ? ( - - ) : ( - - )} - {label} - - )} + + {iconBtnSrc && iconBtnSrc !== '' ? ( + + ) : ( + + )} + {label} + + )} ); })}