easy3wui 1.5.49-beta2 → 1.5.49-beta3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,15 +131,25 @@ var Easy3wGridPage = function (_Component) {
131
131
  _props$columns = _props.columns,
132
132
  columns = _props$columns === undefined ? [] : _props$columns;
133
133
 
134
- if (nextProps.dataList.length !== dataList.length || JSON.stringify(nextProps.dataList) !== JSON.stringify(dataList)) {
135
- this.setState({
136
- arrData: nextProps.dataList && nextProps.dataList.length ? JSON.parse(JSON.stringify(nextProps.dataList)) : []
137
- });
134
+ var arrDataFlag = false;
135
+ var arrColumnsFlag = false;
136
+ var objSetData = {};
137
+ if (nextProps.dataList && nextProps.dataList.length !== dataList.length || JSON.stringify(nextProps.dataList) !== JSON.stringify(dataList)) {
138
+ arrDataFlag = true;
139
+ objSetData.arrData = nextProps.dataList && nextProps.dataList.length ? JSON.parse(JSON.stringify(nextProps.dataList)) : [];
140
+ // this.setState({
141
+ // arrData: nextProps.dataList && nextProps.dataList.length ? JSON.parse(JSON.stringify(nextProps.dataList)) : [],
142
+ // });
138
143
  }
139
- if (nextProps.columns.length !== columns.length || JSON.stringify(nextProps.columns) !== JSON.stringify(columns)) {
140
- this.setState({
141
- arrColumns: nextProps.columns && nextProps.columns.length ? this.formatColumns((0, _cloneDeep2['default'])(nextProps.columns)) : []
142
- });
144
+ if (nextProps.columns && nextProps.columns.length !== columns.length) {
145
+ arrColumnsFlag = true;
146
+ objSetData.arrColumns = nextProps.columns && nextProps.columns.length ? this.touchCreateColumns((0, _cloneDeep2['default'])(nextProps.columns)) : [];
147
+ // this.setState({
148
+ // arrColumns: nextProps.columns && nextProps.columns.length ? this.touchCreateColumns(cloneDeep(nextProps.columns)) : [],
149
+ // });
150
+ }
151
+ if (arrColumnsFlag || arrDataFlag) {
152
+ this.setState((0, _extends3['default'])({}, objSetData));
143
153
  }
144
154
  if (nextProps.cleanFlag === '1') {
145
155
  this.delAll();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.49-beta2",
3
+ "version": "1.5.49-beta3",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",