@wx-design/components 1.1.34 → 1.1.35

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/es/index.mjs CHANGED
@@ -17943,24 +17943,24 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
17943
17943
  return !0;
17944
17944
  };
17945
17945
  return at(() => n[t.field], vd((c) => {
17946
- var u, f, p;
17946
+ var u, f, p, b, v;
17947
17947
  if (!((u = t.headerFilterConfig) != null && u.enable))
17948
17948
  return;
17949
17949
  const d = o.value;
17950
17950
  if (d) {
17951
- const b = d.getColumnByField(t.field);
17952
- if (b) {
17953
- const v = b.filters[0];
17954
- v.data = c, Array.isArray(v.value) && v.value.length || (c === "" || c === null || typeof c > "u" || Array.isArray(c) && c.length === 0 ? v.checked = !1 : v.checked = !0), d.updateData();
17955
- const O = (f = o.value) == null ? void 0 : f.getCheckedFilters();
17956
- (p = e.onFilter) == null || p.call(e, {
17951
+ const O = d.getColumnByField(((p = (f = t.headerFilterConfig) == null ? void 0 : f.editorProps) == null ? void 0 : p.effectValueField) || t.field);
17952
+ if (O) {
17953
+ const D = O.filters[0];
17954
+ D.data = c, Array.isArray(D.value) && D.value.length || (c === "" || c === null || typeof c > "u" || Array.isArray(c) && c.length === 0 ? D.checked = !1 : D.checked = !0), d.updateData();
17955
+ const h = (b = o.value) == null ? void 0 : b.getCheckedFilters();
17956
+ (v = e.onFilter) == null || v.call(e, {
17957
17957
  $table: o.value,
17958
17958
  // @ts-ignore
17959
17959
  column: t,
17960
17960
  field: t.field,
17961
17961
  values: Array.isArray(c) ? c : [c],
17962
- filters: O,
17963
- filterList: O
17962
+ filters: h,
17963
+ filterList: h
17964
17964
  });
17965
17965
  }
17966
17966
  }