@wx-design/components 1.1.35 → 1.1.37
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/core/Table/index.vue.d.ts +1 -1
- package/es/index.mjs +16 -10
- package/lib/core/Table/index.vue.d.ts +1 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
32
32
|
editable: boolean;
|
|
33
33
|
border: VxeTablePropTypes.Border;
|
|
34
34
|
fit: VxeTablePropTypes.Fit;
|
|
35
|
+
headerFilterConfig: import("../../types/table").SabHeaderFilterProps;
|
|
35
36
|
resizable: VxeTablePropTypes.Resizable;
|
|
36
37
|
headerAlign: VxeTablePropTypes.HeaderAlign;
|
|
37
38
|
footerAlign: VxeTablePropTypes.FooterAlign;
|
|
@@ -39,7 +40,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
39
40
|
showHeaderOverflow: VxeTablePropTypes.ShowHeaderOverflow;
|
|
40
41
|
showFooterOverflow: VxeTablePropTypes.ShowFooterOverflow;
|
|
41
42
|
params: VxeTablePropTypes.Params;
|
|
42
|
-
headerFilterConfig: import("../../types/table").SabHeaderFilterProps;
|
|
43
43
|
footerMethod: VxeTablePropTypes.FooterMethod<VxeTablePropTypes.Row>;
|
|
44
44
|
round: VxeTablePropTypes.Round;
|
|
45
45
|
maxHeight: VxeTablePropTypes.MaxHeight;
|
package/es/index.mjs
CHANGED
|
@@ -16219,7 +16219,7 @@ const rC = /* @__PURE__ */ Dr(BG), zf = {
|
|
|
16219
16219
|
p.value = N, a.value = rC(
|
|
16220
16220
|
$.map((H) => {
|
|
16221
16221
|
const K = H[y];
|
|
16222
|
-
return (K == null || K === "" || K.replace(/\s+/g, "") === "") && (H[y] = ""), H;
|
|
16222
|
+
return (K == null || K === "" || String(K).replace(/\s+/g, "") === "") && (H[y] = ""), H;
|
|
16223
16223
|
}),
|
|
16224
16224
|
y
|
|
16225
16225
|
).sort((H, K) => H[y] < K[y] ? -1 : 1).map((H) => ({
|
|
@@ -17145,6 +17145,9 @@ const NX = /* @__PURE__ */ Dr(RX), AX = "sab-table-config-", CC = (e) => `${AX}$
|
|
|
17145
17145
|
width: 70,
|
|
17146
17146
|
editorProps: {
|
|
17147
17147
|
controls: !1
|
|
17148
|
+
},
|
|
17149
|
+
headerFilterConfig: {
|
|
17150
|
+
autoCollect: !1
|
|
17148
17151
|
}
|
|
17149
17152
|
},
|
|
17150
17153
|
{
|
|
@@ -17942,25 +17945,28 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
|
|
|
17942
17945
|
}
|
|
17943
17946
|
return !0;
|
|
17944
17947
|
};
|
|
17945
|
-
return at(() =>
|
|
17948
|
+
return at(() => {
|
|
17949
|
+
var c, d;
|
|
17950
|
+
return n[((d = (c = t.headerFilterConfig) == null ? void 0 : c.editorProps) == null ? void 0 : d.effectValueField) || t.field];
|
|
17951
|
+
}, vd((c) => {
|
|
17946
17952
|
var u, f, p, b, v;
|
|
17947
17953
|
if (!((u = t.headerFilterConfig) != null && u.enable))
|
|
17948
17954
|
return;
|
|
17949
17955
|
const d = o.value;
|
|
17950
17956
|
if (d) {
|
|
17951
|
-
const O =
|
|
17952
|
-
if (
|
|
17953
|
-
const
|
|
17954
|
-
|
|
17955
|
-
const
|
|
17957
|
+
const O = ((p = (f = t.headerFilterConfig) == null ? void 0 : f.editorProps) == null ? void 0 : p.effectValueField) || t.field, D = d.getColumnByField(O);
|
|
17958
|
+
if (D) {
|
|
17959
|
+
const h = D.filters[0];
|
|
17960
|
+
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();
|
|
17961
|
+
const g = (b = o.value) == null ? void 0 : b.getCheckedFilters();
|
|
17956
17962
|
(v = e.onFilter) == null || v.call(e, {
|
|
17957
17963
|
$table: o.value,
|
|
17958
17964
|
// @ts-ignore
|
|
17959
17965
|
column: t,
|
|
17960
|
-
field:
|
|
17966
|
+
field: O,
|
|
17961
17967
|
values: Array.isArray(c) ? c : [c],
|
|
17962
|
-
filters:
|
|
17963
|
-
filterList:
|
|
17968
|
+
filters: g,
|
|
17969
|
+
filterList: g
|
|
17964
17970
|
});
|
|
17965
17971
|
}
|
|
17966
17972
|
}
|
|
@@ -32,6 +32,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
32
32
|
editable: boolean;
|
|
33
33
|
border: VxeTablePropTypes.Border;
|
|
34
34
|
fit: VxeTablePropTypes.Fit;
|
|
35
|
+
headerFilterConfig: import("../../types/table").SabHeaderFilterProps;
|
|
35
36
|
resizable: VxeTablePropTypes.Resizable;
|
|
36
37
|
headerAlign: VxeTablePropTypes.HeaderAlign;
|
|
37
38
|
footerAlign: VxeTablePropTypes.FooterAlign;
|
|
@@ -39,7 +40,6 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
39
40
|
showHeaderOverflow: VxeTablePropTypes.ShowHeaderOverflow;
|
|
40
41
|
showFooterOverflow: VxeTablePropTypes.ShowFooterOverflow;
|
|
41
42
|
params: VxeTablePropTypes.Params;
|
|
42
|
-
headerFilterConfig: import("../../types/table").SabHeaderFilterProps;
|
|
43
43
|
footerMethod: VxeTablePropTypes.FooterMethod<VxeTablePropTypes.Row>;
|
|
44
44
|
round: VxeTablePropTypes.Round;
|
|
45
45
|
maxHeight: VxeTablePropTypes.MaxHeight;
|