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