Skip to content

Commit

Permalink
Merge pull request #5 from hiui-group/hotfix/data-filter
Browse files Browse the repository at this point in the history
Hotfix/data filter
  • Loading branch information
sivan authored Apr 1, 2019
2 parents bea12cb + 3681fde commit 95650ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
6 changes: 3 additions & 3 deletions src/data-filter/field-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -39,8 +39,8 @@ export default class FieldGroup extends Component {
component: this
}
}
resetFields() {

resetFields () {
this.setState({
advancedFields: [],
fields: []
Expand Down
4 changes: 2 additions & 2 deletions src/data-filter/style/data-filter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
position: relative;
display: flex;
flex-direction: column;
margin-bottom: $spacer-6;
margin-bottom: $spacer-2;

// Filter actions
&__actions {
Expand All @@ -28,7 +28,7 @@
}

&__form {
margin-bottom: $spacer-6;
margin-bottom: $spacer-2;
}
}

Expand Down

0 comments on commit 95650ce

Please sign in to comment.