From de0f741b37ca98a93499cee652cd00a31a22a1c9 Mon Sep 17 00:00:00 2001 From: manzhenhua Date: Wed, 18 Mar 2020 08:28:09 -0400 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E4=BC=A0?= =?UTF-8?q?=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/DataView/index.js | 46 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/components/DataView/index.js b/components/DataView/index.js index 5d65ca3..1f95afd 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} + + )} ); })} -- 2.21.0