doway-coms 2.11.95 → 2.11.96

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,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.11.95",
3
+ "version": "2.11.96",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -3426,6 +3426,24 @@ export default {
3426
3426
  displayValueSearchTextChange(colInfo) {
3427
3427
  console.debug(colInfo.filters[0].data.displayValueSearchText)
3428
3428
  },
3429
+ handleFilterCheckboxChange (column, value, event) {
3430
+ const displayValues = column.filters[0].data.displayValues;
3431
+ const isChecked = event.target.checked;
3432
+ if (isChecked) {
3433
+ // 添加到选中值中(避免重复添加)
3434
+ if (!displayValues.includes(value)) {
3435
+ displayValues.push(value);
3436
+ }
3437
+ } else {
3438
+ // 从选中值中移除
3439
+ const index = displayValues.indexOf(value);
3440
+ if (index > -1) {
3441
+ displayValues.splice(index, 1);
3442
+ }
3443
+ }
3444
+ // 确保响应式更新
3445
+ this.$set(column.filters[0].data, 'displayValues', [...displayValues]);
3446
+ },
3429
3447
  /**
3430
3448
  * 表尾
3431
3449
  */