@wx-design/components 1.1.14 → 1.1.16
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 -8
- package/lib/index.js +2 -2
- package/package.json +1 -1
- package/types/table/column.d.ts +16 -6
- package/types/table/table-set.d.ts +2 -0
package/es/index.mjs
CHANGED
|
@@ -17334,6 +17334,7 @@ const BX = /* @__PURE__ */ Dr(_X), WX = "sab-table-config-", CC = (e) => `${WX}$
|
|
|
17334
17334
|
columns: {},
|
|
17335
17335
|
getTableConfig: { type: Function },
|
|
17336
17336
|
setTableConfig: { type: Function },
|
|
17337
|
+
onSetTableConfig: { type: Function },
|
|
17337
17338
|
tableRef: {}
|
|
17338
17339
|
},
|
|
17339
17340
|
emits: ["update:columns"],
|
|
@@ -17345,11 +17346,12 @@ const BX = /* @__PURE__ */ Dr(_X), WX = "sab-table-config-", CC = (e) => `${WX}$
|
|
|
17345
17346
|
},
|
|
17346
17347
|
set: Di(
|
|
17347
17348
|
async (c) => {
|
|
17349
|
+
var u;
|
|
17348
17350
|
const d = {
|
|
17349
17351
|
name: n.name,
|
|
17350
17352
|
config: c
|
|
17351
17353
|
};
|
|
17352
|
-
typeof n.setTableConfig == "function" ? await n.setTableConfig(d) : await jX(d);
|
|
17354
|
+
typeof n.setTableConfig == "function" ? await n.setTableConfig(d) : await jX(d), (u = n.onSetTableConfig) == null || u.call(n);
|
|
17353
17355
|
},
|
|
17354
17356
|
500,
|
|
17355
17357
|
{
|
|
@@ -41855,25 +41857,27 @@ const qf = /* @__PURE__ */ st({
|
|
|
41855
41857
|
},
|
|
41856
41858
|
slots: {
|
|
41857
41859
|
default: (e, t) => {
|
|
41860
|
+
var c, d;
|
|
41858
41861
|
const {
|
|
41859
41862
|
row: n,
|
|
41860
41863
|
column: o
|
|
41861
41864
|
} = e, s = bs(e, t), l = $e(), a = A(() => {
|
|
41862
|
-
var
|
|
41863
|
-
return (
|
|
41865
|
+
var u;
|
|
41866
|
+
return (u = l.value) == null ? void 0 : u.popoverRef;
|
|
41864
41867
|
});
|
|
41865
41868
|
return nn(nJ, {
|
|
41866
41869
|
ref: l,
|
|
41867
41870
|
scope: e,
|
|
41868
41871
|
popover: s
|
|
41869
41872
|
}, {
|
|
41870
|
-
|
|
41871
|
-
|
|
41872
|
-
|
|
41873
|
+
// @ts-ignore
|
|
41874
|
+
default: (c = o.slots) != null && c.popoverCell ? (d = o.slots) == null ? void 0 : d.popoverCell : () => n[o.field],
|
|
41875
|
+
popover: (u) => {
|
|
41876
|
+
var f;
|
|
41873
41877
|
return (
|
|
41874
41878
|
// @ts-ignore
|
|
41875
|
-
(
|
|
41876
|
-
...
|
|
41879
|
+
(f = o.slots) == null ? void 0 : f.popover({
|
|
41880
|
+
...u,
|
|
41877
41881
|
popoverRef: a.value
|
|
41878
41882
|
})
|
|
41879
41883
|
);
|