From e70f1cf40124bd9b975fd8ad3c1b21b556e66d3d Mon Sep 17 00:00:00 2001 From: chenxian Date: Mon, 1 Apr 2019 17:10:58 +0800 Subject: [PATCH 1/3] change data-filter margin --- src/data-filter/style/data-filter.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data-filter/style/data-filter.scss b/src/data-filter/style/data-filter.scss index f358e3d..ae8e1c5 100644 --- a/src/data-filter/style/data-filter.scss +++ b/src/data-filter/style/data-filter.scss @@ -4,7 +4,7 @@ position: relative; display: flex; flex-direction: column; - margin-bottom: $spacer-6; + margin-bottom: $spacer-2; // Filter actions &__actions { @@ -28,7 +28,7 @@ } &__form { - margin-bottom: $spacer-6; + margin-bottom: $spacer-2; } } From ad55c0a1c81c2f02c1cc5d198959de7e623e3475 Mon Sep 17 00:00:00 2001 From: chenxian Date: Mon, 1 Apr 2019 17:13:11 +0800 Subject: [PATCH 2/3] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5967387..ad2e74c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hi-ui/component-kit", - "version": "0.5.3", + "version": "0.5.4", "main": "index.js", "module": "es/index.js", "file": [ From 3681fde3f31e926fca5902850b76b13e6531baec Mon Sep 17 00:00:00 2001 From: chenxian Date: Mon, 1 Apr 2019 18:12:04 +0800 Subject: [PATCH 3/3] format --- src/data-filter/field-group.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data-filter/field-group.js b/src/data-filter/field-group.js index 27cb395..1b30ce2 100644 --- a/src/data-filter/field-group.js +++ b/src/data-filter/field-group.js @@ -28,7 +28,7 @@ export default class FieldGroup extends Component { } } - componentWillReceiveProps(nextProps) { + componentWillReceiveProps (nextProps) { if (nextProps.id !== this.props.id) { // id 每个FieldGroup标识,改变时清空fields,并且强制渲染children this.resetFields() } @@ -39,8 +39,8 @@ export default class FieldGroup extends Component { component: this } } - - resetFields() { + + resetFields () { this.setState({ advancedFields: [], fields: []