cloud-web-corejs 1.0.54-dev.371 → 1.0.54-dev.373

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.371",
4
+ "version": "1.0.54-dev.373",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -194,35 +194,43 @@ modules = {
194
194
  this.resetFilterEvent();
195
195
  return;
196
196
  }
197
+
197
198
  data.vals = vals;
198
199
  option.data.hasFilter = true;
199
200
  $panel.changeOption(evnt, true, option);
200
201
  $panel.confirmFilter();
201
202
 
202
- let checkStrictly = $table.$options.propsData?.checkboxConfig?.checkStrictly;
203
- $table.setAllCheckboxRow(false);
204
- // $table.clearCheckboxRow();
205
- // debugger
206
- // var originOption = $grid.originOption;
207
- /* if(checkStrictly){
208
-
209
- }else{
210
-
211
- } */
212
-
203
+ let checkStrictly =
204
+ $table.$options.propsData?.checkboxConfig?.checkStrictly;
205
+ // $table.setAllCheckboxRow(false);
206
+ this.clearTableCheckboxRow($table);
207
+ },
208
+ clearTableCheckboxRow($table) {
209
+ let originOption = $table.$xegrid?.originOption;
210
+ if (originOption) {
211
+ let target = originOption.vue;
212
+ if (
213
+ target.defaultTableRefName === originOption.tableRef &&
214
+ target._clearChecked
215
+ ) {
216
+ target._clearChecked();
217
+ } else {
218
+ $table.clearCheckboxRow();
219
+ }
220
+ originOption.onFilter && originOption.onFilter();
221
+ } else {
222
+ $table.clearCheckboxRow();
223
+ }
213
224
  },
214
225
  resetFilterEvent() {
215
226
  const { $panel, $table } = this.params;
216
- let checkStrictly = $table.$options.propsData?.checkboxConfig?.checkStrictly;
227
+ let checkStrictly =
228
+ $table.$options.propsData?.checkboxConfig?.checkStrictly;
217
229
  this.option.data.hasFilter = false;
218
230
  $panel.resetFilter();
219
- $table.setAllCheckboxRow(false);
220
- // $table.clearCheckboxRow();
221
- /* if(checkStrictly){
222
-
223
- }else{
231
+ // $table.setAllCheckboxRow(false);
224
232
 
225
- } */
233
+ this.clearTableCheckboxRow($table);
226
234
  },
227
235
  },
228
236
  },