@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 +9 -9
- package/lib/index.js +1 -1
- package/package.json +1 -1
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
|
|
17952
|
-
if (
|
|
17953
|
-
const
|
|
17954
|
-
|
|
17955
|
-
const
|
|
17956
|
-
(
|
|
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:
|
|
17963
|
-
filterList:
|
|
17962
|
+
filters: h,
|
|
17963
|
+
filterList: h
|
|
17964
17964
|
});
|
|
17965
17965
|
}
|
|
17966
17966
|
}
|