From 4a3e8e28433725a065415a604a5556ee4e596879 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Wed, 13 Mar 2019 10:18:37 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BC=98=E5=8C=96=20resourceList=20?= =?UTF-8?q?=E4=B8=8D=E5=B1=95=E5=BC=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/src/pages/Admin/ResourceList.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/admin-web/src/pages/Admin/ResourceList.js b/admin-web/src/pages/Admin/ResourceList.js index 7557ecf9e..2f51d5f7a 100644 --- a/admin-web/src/pages/Admin/ResourceList.js +++ b/admin-web/src/pages/Admin/ResourceList.js @@ -99,7 +99,6 @@ class ResourceList extends PureComponent { modalVisible: false, modalType: 'add', //add update initValues: {}, - defaultExpandAllRows: false, }; componentDidMount() { @@ -110,12 +109,6 @@ class ResourceList extends PureComponent { }); } - changeExpandAll() { - this.setState({ - defaultExpandAllRows: !this.state.defaultExpandAllRows, - }); - } - handleModalVisible = (flag, modalType, initValues) => { this.setState({ modalVisible: !!flag, @@ -175,7 +168,7 @@ class ResourceList extends PureComponent { render() { const { list } = this.props; - const { modalVisible, modalType, initValues, defaultExpandAllRows } = this.state; + const { modalVisible, modalType, initValues } = this.state; const parentMethods = { handleAdd: this.handleAdd, handleModalVisible: this.handleModalVisible, @@ -250,18 +243,9 @@ class ResourceList extends PureComponent { > 新建 - - TODO 展开没效果,需要研究下 -