evui 3.4.12 → 3.4.13

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.
package/dist/evui.umd.js CHANGED
@@ -8118,7 +8118,7 @@ $({ target: 'Number', stat: true }, {
8118
8118
  /***/ "9224":
8119
8119
  /***/ (function(module) {
8120
8120
 
8121
- module.exports = JSON.parse("{\"a\":\"3.4.12\"}");
8121
+ module.exports = JSON.parse("{\"a\":\"3.4.13\"}");
8122
8122
 
8123
8123
  /***/ }),
8124
8124
 
@@ -32238,29 +32238,38 @@ var uses_filterEvent = function filterEvent(params) {
32238
32238
  var originStore = stores.originStore;
32239
32239
  var filterStore = [];
32240
32240
  var filteredOnce = false;
32241
- fields.forEach(function (field) {
32241
+ var prevStore = [];
32242
+ fields.forEach(function (field, idx) {
32242
32243
  var filters = filteringItemsByColumn[field];
32243
32244
  var index = getColumnIndex(field);
32244
32245
  var columnType = props.columns[index].type;
32246
+ var OR = idx > 0 && filterInfo.columnOperator === 'or';
32247
+ var AND = idx > 0 && filterInfo.columnOperator === 'and';
32245
32248
  filters.forEach(function (item, ix) {
32246
32249
  if (!filterStore.length && !filteredOnce) {
32247
32250
  filterStore = getFilteringData(originStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32248
32251
  index: index
32249
32252
  }));
32250
- } else if (ix === 0 && filterInfo.columnOperator === 'or') {
32251
- var _filterStore;
32253
+ } else if (AND && item.operator === 'or') {
32254
+ if (ix > 0) {
32255
+ var _filterStore;
32252
32256
 
32253
- (_filterStore = filterStore).push.apply(_filterStore, _toConsumableArray(getFilteringData(originStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32254
- index: index
32255
- }))));
32256
- } else if (ix !== 0 && item.operator === 'or') {
32257
+ (_filterStore = filterStore).push.apply(_filterStore, _toConsumableArray(getFilteringData(prevStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32258
+ index: index
32259
+ }))));
32260
+ } else {
32261
+ // ix === 0
32262
+ filterStore = getFilteringData(prevStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32263
+ index: index
32264
+ }));
32265
+ }
32266
+ } else if (OR || item.operator === 'or') {
32257
32267
  var _filterStore2;
32258
32268
 
32259
32269
  (_filterStore2 = filterStore).push.apply(_filterStore2, _toConsumableArray(getFilteringData(originStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32260
32270
  index: index
32261
32271
  }))));
32262
32272
  } else {
32263
- // (ix === 0 && filterInfo.columnOperator === 'and') || item.operator === 'and'
32264
32273
  filterStore = getFilteringData(filterStore, columnType, _objectSpread2(_objectSpread2({}, item), {}, {
32265
32274
  index: index
32266
32275
  }));
@@ -32268,6 +32277,7 @@ var uses_filterEvent = function filterEvent(params) {
32268
32277
 
32269
32278
  filteredOnce = true;
32270
32279
  });
32280
+ prevStore = JSON.parse(JSON.stringify(filterStore));
32271
32281
  });
32272
32282
 
32273
32283
  if (!filteredOnce) {