@wx-design/components 1.1.33 → 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 +23 -20
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -17815,26 +17815,29 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
|
|
|
17815
17815
|
) : o == null ? void 0 : o.editorProps;
|
|
17816
17816
|
});
|
|
17817
17817
|
return () => {
|
|
17818
|
-
var a;
|
|
17818
|
+
var a, c;
|
|
17819
17819
|
return o != null && o.useNativeInput ? Uw(Qt("input", Wn({
|
|
17820
17820
|
class: "sab-table-header-filter-input"
|
|
17821
17821
|
}, l.value, {
|
|
17822
|
-
"onUpdate:modelValue": (
|
|
17822
|
+
"onUpdate:modelValue": (d) => e.headerFilterModel[n.field] = d
|
|
17823
17823
|
}), null), [[Gw, e.headerFilterModel[n.field]]]) : s === Nn.InputNumber ? Qt(TC, Wn({
|
|
17824
17824
|
modelValue: e.headerFilterModel[n.field],
|
|
17825
|
-
"onUpdate:modelValue": (
|
|
17825
|
+
"onUpdate:modelValue": (d) => e.headerFilterModel[n.field] = d
|
|
17826
17826
|
}, l.value), null) : s === Nn.Boolean ? Qt(VC, Wn({
|
|
17827
17827
|
modelValue: e.headerFilterModel[n.field],
|
|
17828
|
-
"onUpdate:modelValue": (
|
|
17828
|
+
"onUpdate:modelValue": (d) => e.headerFilterModel[n.field] = d
|
|
17829
17829
|
}, l.value), null) : s === Nn.DatePciker ? Qt($C, Wn({
|
|
17830
17830
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
17831
17831
|
modelValue: e.headerFilterModel[n.field],
|
|
17832
|
-
"onUpdate:modelValue": (
|
|
17832
|
+
"onUpdate:modelValue": (d) => e.headerFilterModel[n.field] = d
|
|
17833
17833
|
}, l.value, {
|
|
17834
17834
|
type: ((a = l.value) == null ? void 0 : a.type) ?? "datetimerange"
|
|
17835
17835
|
}), null) : s === Nn.Select ? Qt(Hf, Wn({
|
|
17836
|
-
modelValue: e.headerFilterModel[n.field],
|
|
17837
|
-
"onUpdate:modelValue": (
|
|
17836
|
+
modelValue: e.headerFilterModel[((c = l.value) == null ? void 0 : c.effectValueField) || n.field],
|
|
17837
|
+
"onUpdate:modelValue": (d) => {
|
|
17838
|
+
var u;
|
|
17839
|
+
return e.headerFilterModel[((u = l.value) == null ? void 0 : u.effectValueField) || n.field] = d;
|
|
17840
|
+
}
|
|
17838
17841
|
}, l.value, {
|
|
17839
17842
|
teleported: !0,
|
|
17840
17843
|
clearable: !0,
|
|
@@ -17842,10 +17845,10 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
|
|
|
17842
17845
|
"collapse-tags-tooltip": !0
|
|
17843
17846
|
}), null) : s === Nn.Image || s === Nn.Dynamic || !n.field ? null : Qt(DC, Wn(l.value, {
|
|
17844
17847
|
modelValue: e.headerFilterModel[n.field],
|
|
17845
|
-
"onUpdate:modelValue": (
|
|
17846
|
-
onChange: (
|
|
17847
|
-
var
|
|
17848
|
-
(
|
|
17848
|
+
"onUpdate:modelValue": (d) => e.headerFilterModel[n.field] = d,
|
|
17849
|
+
onChange: (d) => {
|
|
17850
|
+
var u;
|
|
17851
|
+
(u = l == null ? void 0 : l.onChange) == null || u.call(l, d);
|
|
17849
17852
|
}
|
|
17850
17853
|
}), null);
|
|
17851
17854
|
};
|
|
@@ -17940,24 +17943,24 @@ const EC = "$__table_id", SC = "$__table_parent", bs = (e, t) => {
|
|
|
17940
17943
|
return !0;
|
|
17941
17944
|
};
|
|
17942
17945
|
return at(() => n[t.field], vd((c) => {
|
|
17943
|
-
var u, f, p;
|
|
17946
|
+
var u, f, p, b, v;
|
|
17944
17947
|
if (!((u = t.headerFilterConfig) != null && u.enable))
|
|
17945
17948
|
return;
|
|
17946
17949
|
const d = o.value;
|
|
17947
17950
|
if (d) {
|
|
17948
|
-
const
|
|
17949
|
-
if (
|
|
17950
|
-
const
|
|
17951
|
-
|
|
17952
|
-
const
|
|
17953
|
-
(
|
|
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, {
|
|
17954
17957
|
$table: o.value,
|
|
17955
17958
|
// @ts-ignore
|
|
17956
17959
|
column: t,
|
|
17957
17960
|
field: t.field,
|
|
17958
17961
|
values: Array.isArray(c) ? c : [c],
|
|
17959
|
-
filters:
|
|
17960
|
-
filterList:
|
|
17962
|
+
filters: h,
|
|
17963
|
+
filterList: h
|
|
17961
17964
|
});
|
|
17962
17965
|
}
|
|
17963
17966
|
}
|