@wx-design/components 0.1.8 → 0.1.10
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
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineComponent as d, computed as _, ref as q, openBlock as
|
|
3
|
-
import { ElButton as A, ElInput as
|
|
1
|
+
import te, { Column as le, Table as re } from "vxe-table";
|
|
2
|
+
import { defineComponent as d, computed as _, ref as q, openBlock as g, createElementBlock as y, mergeProps as m, Fragment as k, renderList as $, createBlock as T, unref as h, withCtx as w, createTextVNode as B, createCommentVNode as G, renderSlot as R, createVNode as i, createElementVNode as I, mergeDefaults as ne, toHandlers as oe, normalizeProps as ae, guardReactiveProps as ie, createSlots as se } from "vue";
|
|
3
|
+
import { ElButton as A, ElInput as ce, ElInputNumber as ue, ElDatePicker as fe, ElSelect as de, ElOption as be, ElIcon as F, ElImage as M, ElPopover as ge, ElCheckbox as me } from "element-plus";
|
|
4
4
|
var j = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
5
|
function L(e) {
|
|
6
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function pe(e, t) {
|
|
9
9
|
for (var l = -1, n = t.length, r = e.length; ++l < n; )
|
|
10
10
|
e[r + l] = t[l];
|
|
11
11
|
return e;
|
|
12
12
|
}
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
var t =
|
|
13
|
+
var ye = pe, he = typeof j == "object" && j && j.Object === Object && j, Ce = he, ve = Ce, Se = typeof self == "object" && self && self.Object === Object && self, we = ve || Se || Function("return this")(), _e = we, Oe = _e, je = Oe.Symbol, V = je, P = V, X = Object.prototype, ke = X.hasOwnProperty, Te = X.toString, S = P ? P.toStringTag : void 0;
|
|
14
|
+
function xe(e) {
|
|
15
|
+
var t = ke.call(e, S), l = e[S];
|
|
16
16
|
try {
|
|
17
17
|
e[S] = void 0;
|
|
18
18
|
var n = !0;
|
|
19
19
|
} catch {
|
|
20
20
|
}
|
|
21
|
-
var r =
|
|
21
|
+
var r = Te.call(e);
|
|
22
22
|
return n && (t ? e[S] = l : delete e[S]), r;
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return
|
|
24
|
+
var Ee = xe, $e = Object.prototype, Re = $e.toString;
|
|
25
|
+
function Ve(e) {
|
|
26
|
+
return Re.call(e);
|
|
27
27
|
}
|
|
28
|
-
var
|
|
29
|
-
function
|
|
30
|
-
return e == null ? e === void 0 ?
|
|
28
|
+
var Be = Ve, N = V, Ie = Ee, Ae = Be, Fe = "[object Null]", Me = "[object Undefined]", z = N ? N.toStringTag : void 0;
|
|
29
|
+
function Pe(e) {
|
|
30
|
+
return e == null ? e === void 0 ? Me : Fe : z && z in Object(e) ? Ie(e) : Ae(e);
|
|
31
31
|
}
|
|
32
|
-
var
|
|
33
|
-
function
|
|
32
|
+
var Ne = Pe;
|
|
33
|
+
function ze(e) {
|
|
34
34
|
return e != null && typeof e == "object";
|
|
35
35
|
}
|
|
36
|
-
var J =
|
|
37
|
-
function
|
|
38
|
-
return
|
|
36
|
+
var J = ze, De = Ne, He = J, Ke = "[object Arguments]";
|
|
37
|
+
function Ue(e) {
|
|
38
|
+
return He(e) && De(e) == Ke;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var Ye = Ue, D = Ye, qe = J, Q = Object.prototype, Ge = Q.hasOwnProperty, Le = Q.propertyIsEnumerable, Xe = D(function() {
|
|
41
41
|
return arguments;
|
|
42
42
|
}()) ? D : function(e) {
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
function
|
|
46
|
-
return
|
|
43
|
+
return qe(e) && Ge.call(e, "callee") && !Le.call(e, "callee");
|
|
44
|
+
}, Je = Xe, Qe = Array.isArray, We = Qe, H = V, Ze = Je, et = We, K = H ? H.isConcatSpreadable : void 0;
|
|
45
|
+
function tt(e) {
|
|
46
|
+
return et(e) || Ze(e) || !!(K && e && e[K]);
|
|
47
47
|
}
|
|
48
|
-
var
|
|
48
|
+
var lt = tt, rt = ye, nt = lt;
|
|
49
49
|
function W(e, t, l, n, r) {
|
|
50
50
|
var o = -1, c = e.length;
|
|
51
|
-
for (l || (l =
|
|
51
|
+
for (l || (l = nt), r || (r = []); ++o < c; ) {
|
|
52
52
|
var a = e[o];
|
|
53
|
-
t > 0 && l(a) ? t > 1 ? W(a, t - 1, l, n, r) :
|
|
53
|
+
t > 0 && l(a) ? t > 1 ? W(a, t - 1, l, n, r) : rt(r, a) : n || (r[r.length] = a);
|
|
54
54
|
}
|
|
55
55
|
return r;
|
|
56
56
|
}
|
|
57
|
-
var
|
|
58
|
-
function
|
|
57
|
+
var ot = W, at = ot;
|
|
58
|
+
function it(e) {
|
|
59
59
|
var t = e == null ? 0 : e.length;
|
|
60
|
-
return t ?
|
|
60
|
+
return t ? at(e, 1) : [];
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const
|
|
62
|
+
var st = it;
|
|
63
|
+
const ct = /* @__PURE__ */ L(st), ut = (e) => {
|
|
64
64
|
const t = e.tableRef;
|
|
65
65
|
return {
|
|
66
66
|
clearCheckboxRow: () => {
|
|
@@ -72,7 +72,7 @@ const st = /* @__PURE__ */ L(it), ct = (e) => {
|
|
|
72
72
|
return (r = t.value) == null ? void 0 : r.getCheckboxRecords();
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
},
|
|
75
|
+
}, ft = /* @__PURE__ */ d({
|
|
76
76
|
name: "SabTableToolbar",
|
|
77
77
|
__name: "index",
|
|
78
78
|
props: {
|
|
@@ -88,7 +88,7 @@ const st = /* @__PURE__ */ L(it), ct = (e) => {
|
|
|
88
88
|
const t = e, l = _(() => t.tableRef), {
|
|
89
89
|
clearCheckboxRow: n,
|
|
90
90
|
getCheckboxRecords: r
|
|
91
|
-
} =
|
|
91
|
+
} = ut({
|
|
92
92
|
tableRef: l
|
|
93
93
|
}), o = q(!1), c = async () => {
|
|
94
94
|
var a;
|
|
@@ -96,22 +96,22 @@ const st = /* @__PURE__ */ L(it), ct = (e) => {
|
|
|
96
96
|
try {
|
|
97
97
|
const f = r();
|
|
98
98
|
await ((a = t.saveSelectRecords) == null ? void 0 : a.call(t, f)), f.forEach((s) => {
|
|
99
|
-
var
|
|
100
|
-
return (
|
|
99
|
+
var p;
|
|
100
|
+
return (p = l.value) == null ? void 0 : p.reloadRow(s, {});
|
|
101
101
|
}), n();
|
|
102
102
|
} finally {
|
|
103
103
|
o.value = !1;
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
return (a, f) => (
|
|
106
|
+
return (a, f) => (g(), y("div", m({
|
|
107
107
|
class: ["sab-table-toolbar", t.class]
|
|
108
|
-
}, a.$attrs), [(
|
|
108
|
+
}, a.$attrs), [(g(!0), y(k, null, $(a.features, (s) => (g(), y(k, null, [s === "clearSelect" ? (g(), T(h(A), {
|
|
109
109
|
key: 0,
|
|
110
110
|
onClick: h(n)
|
|
111
111
|
}, {
|
|
112
112
|
default: w(() => [B("清空选择")]),
|
|
113
113
|
_: 1
|
|
114
|
-
}, 8, ["onClick"])) : s === "saveSelect" ? (
|
|
114
|
+
}, 8, ["onClick"])) : s === "saveSelect" ? (g(), T(h(A), {
|
|
115
115
|
key: 1,
|
|
116
116
|
onClick: c,
|
|
117
117
|
loading: o.value
|
|
@@ -120,7 +120,7 @@ const st = /* @__PURE__ */ L(it), ct = (e) => {
|
|
|
120
120
|
_: 1
|
|
121
121
|
}, 8, ["loading"])) : G("", !0)], 64))), 256)), R(a.$slots, "default")], 16));
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), dt = /* @__PURE__ */ d({
|
|
124
124
|
setup(e, {
|
|
125
125
|
attrs: t,
|
|
126
126
|
slots: l
|
|
@@ -135,49 +135,49 @@ const st = /* @__PURE__ */ L(it), ct = (e) => {
|
|
|
135
135
|
a[f] = (s) => typeof n[f] == "string" ? l[n[f]](s) : typeof n[f] == "function" ? n[f](s, r) : null;
|
|
136
136
|
}), a;
|
|
137
137
|
});
|
|
138
|
-
return () => i(
|
|
138
|
+
return () => i(le, o, {
|
|
139
139
|
...c.value
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
var
|
|
144
|
-
return
|
|
143
|
+
var bt = function(t) {
|
|
144
|
+
return gt(t) && !mt(t);
|
|
145
145
|
};
|
|
146
|
-
function
|
|
146
|
+
function gt(e) {
|
|
147
147
|
return !!e && typeof e == "object";
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function mt(e) {
|
|
150
150
|
var t = Object.prototype.toString.call(e);
|
|
151
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
152
|
-
}
|
|
153
|
-
var mt = typeof Symbol == "function" && Symbol.for, pt = mt ? Symbol.for("react.element") : 60103;
|
|
154
|
-
function yt(e) {
|
|
155
|
-
return e.$$typeof === pt;
|
|
151
|
+
return t === "[object RegExp]" || t === "[object Date]" || ht(e);
|
|
156
152
|
}
|
|
153
|
+
var pt = typeof Symbol == "function" && Symbol.for, yt = pt ? Symbol.for("react.element") : 60103;
|
|
157
154
|
function ht(e) {
|
|
155
|
+
return e.$$typeof === yt;
|
|
156
|
+
}
|
|
157
|
+
function Ct(e) {
|
|
158
158
|
return Array.isArray(e) ? [] : {};
|
|
159
159
|
}
|
|
160
160
|
function O(e, t) {
|
|
161
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? C(
|
|
161
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? C(Ct(e), e, t) : e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function vt(e, t, l) {
|
|
164
164
|
return e.concat(t).map(function(n) {
|
|
165
165
|
return O(n, l);
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function St(e, t) {
|
|
169
169
|
if (!t.customMerge)
|
|
170
170
|
return C;
|
|
171
171
|
var l = t.customMerge(e);
|
|
172
172
|
return typeof l == "function" ? l : C;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function wt(e) {
|
|
175
175
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
176
176
|
return Object.propertyIsEnumerable.call(e, t);
|
|
177
177
|
}) : [];
|
|
178
178
|
}
|
|
179
179
|
function U(e) {
|
|
180
|
-
return Object.keys(e).concat(
|
|
180
|
+
return Object.keys(e).concat(wt(e));
|
|
181
181
|
}
|
|
182
182
|
function Z(e, t) {
|
|
183
183
|
try {
|
|
@@ -186,21 +186,21 @@ function Z(e, t) {
|
|
|
186
186
|
return !1;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function _t(e, t) {
|
|
190
190
|
return Z(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ot(e, t, l) {
|
|
193
193
|
var n = {};
|
|
194
194
|
return l.isMergeableObject(e) && U(e).forEach(function(r) {
|
|
195
195
|
n[r] = O(e[r], l);
|
|
196
196
|
}), U(t).forEach(function(r) {
|
|
197
|
-
|
|
197
|
+
_t(e, r) || (Z(e, r) && l.isMergeableObject(t[r]) ? n[r] = St(r, l)(e[r], t[r], l) : n[r] = O(t[r], l));
|
|
198
198
|
}), n;
|
|
199
199
|
}
|
|
200
200
|
function C(e, t, l) {
|
|
201
|
-
l = l || {}, l.arrayMerge = l.arrayMerge ||
|
|
201
|
+
l = l || {}, l.arrayMerge = l.arrayMerge || vt, l.isMergeableObject = l.isMergeableObject || bt, l.cloneUnlessOtherwiseSpecified = O;
|
|
202
202
|
var n = Array.isArray(t), r = Array.isArray(e), o = n === r;
|
|
203
|
-
return o ? n ? l.arrayMerge(e, t, l) :
|
|
203
|
+
return o ? n ? l.arrayMerge(e, t, l) : Ot(e, t, l) : O(t, l);
|
|
204
204
|
}
|
|
205
205
|
C.all = function(t, l) {
|
|
206
206
|
if (!Array.isArray(t))
|
|
@@ -209,8 +209,9 @@ C.all = function(t, l) {
|
|
|
209
209
|
return C(n, r, l);
|
|
210
210
|
}, {});
|
|
211
211
|
};
|
|
212
|
-
var
|
|
213
|
-
const
|
|
212
|
+
var jt = C, kt = jt;
|
|
213
|
+
const b = /* @__PURE__ */ L(kt), ee = {
|
|
214
|
+
fit: !0,
|
|
214
215
|
// 带边框
|
|
215
216
|
border: !0,
|
|
216
217
|
// 展示头部
|
|
@@ -296,15 +297,18 @@ const p = /* @__PURE__ */ L(jt), kt = {
|
|
|
296
297
|
}
|
|
297
298
|
}, Tt = (e, t = {}) => {
|
|
298
299
|
var n, r, o, c;
|
|
299
|
-
|
|
300
|
-
return l.editable === !1 ? delete l.editConfig : l.editable === !0 && (l.editConfig =
|
|
300
|
+
let l = b(ee, e);
|
|
301
|
+
return l = b(l, t), l.editable === !1 ? delete l.editConfig : l.editable === !0 && (l.editConfig = b({}, l.editConfig || {})), l.withCheckbox === !0 && !((n = l.columns) != null && n.some((a) => a.field === "sab-table-checkbox")) && ((r = l.columns) == null || r.unshift({
|
|
301
302
|
type: "checkbox",
|
|
302
303
|
fixed: "left",
|
|
303
|
-
field: "sab-table-checkbox"
|
|
304
|
+
field: "sab-table-checkbox",
|
|
305
|
+
width: 40
|
|
304
306
|
})), l.withSeq === !0 && !((o = l.columns) != null && o.some((a) => a.field === "sab-table-seq")) && ((c = l.columns) == null || c.unshift({
|
|
305
307
|
type: "checkbox",
|
|
306
308
|
fixed: "left",
|
|
307
309
|
field: "sab-table-seq",
|
|
310
|
+
width: 50,
|
|
311
|
+
className: "sab-table-seq",
|
|
308
312
|
slots: {
|
|
309
313
|
header: () => null,
|
|
310
314
|
checkbox: ({ rowIndex: a }) => a + 1
|
|
@@ -373,7 +377,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
373
377
|
const n = (r) => {
|
|
374
378
|
l("update:modelValue", r);
|
|
375
379
|
};
|
|
376
|
-
return () => i(
|
|
380
|
+
return () => i(ce, m({
|
|
377
381
|
size: "small",
|
|
378
382
|
modelValue: e.modelValue,
|
|
379
383
|
onInput: n
|
|
@@ -403,7 +407,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
403
407
|
const n = (r, o) => {
|
|
404
408
|
l("update:modelValue", r, o);
|
|
405
409
|
};
|
|
406
|
-
return () => i(
|
|
410
|
+
return () => i(ue, m({
|
|
407
411
|
size: "small",
|
|
408
412
|
modelValue: e.modelValue,
|
|
409
413
|
controlsPosition: "right",
|
|
@@ -435,7 +439,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
435
439
|
const n = (r) => {
|
|
436
440
|
l("update:modelValue", r);
|
|
437
441
|
};
|
|
438
|
-
return () => i(
|
|
442
|
+
return () => i(fe, m({
|
|
439
443
|
size: "small",
|
|
440
444
|
format: "YYYY-MM-DD",
|
|
441
445
|
valueFormat: "YYYY-MM-DD",
|
|
@@ -452,7 +456,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
452
456
|
edit: ({
|
|
453
457
|
row: e,
|
|
454
458
|
column: t
|
|
455
|
-
}, l) => i(Bt,
|
|
459
|
+
}, l) => i(Bt, m({
|
|
456
460
|
modelValue: e[t.field],
|
|
457
461
|
"onUpdate:modelValue": (n) => e[t.field] = n
|
|
458
462
|
}, l), null)
|
|
@@ -486,7 +490,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
486
490
|
const n = (r) => {
|
|
487
491
|
l("update:modelValue", r);
|
|
488
492
|
};
|
|
489
|
-
return () => i(
|
|
493
|
+
return () => i(de, m({
|
|
490
494
|
size: "small",
|
|
491
495
|
filterable: !0,
|
|
492
496
|
modelValue: e.modelValue,
|
|
@@ -494,7 +498,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
494
498
|
}, t), {
|
|
495
499
|
default: () => {
|
|
496
500
|
var r;
|
|
497
|
-
return [(r = e.options) == null ? void 0 : r.map((o) => i(
|
|
501
|
+
return [(r = e.options) == null ? void 0 : r.map((o) => i(be, {
|
|
498
502
|
key: o[e.valueKey],
|
|
499
503
|
value: o[e.valueKey],
|
|
500
504
|
label: o[e.labelKey],
|
|
@@ -514,7 +518,7 @@ const Et = /* @__PURE__ */ d({
|
|
|
514
518
|
column: t
|
|
515
519
|
}, l) => (
|
|
516
520
|
// @ts-ignore
|
|
517
|
-
i(At,
|
|
521
|
+
i(At, m({
|
|
518
522
|
automaticDropdown: !0,
|
|
519
523
|
modelValue: e[t.field],
|
|
520
524
|
"onUpdate:modelValue": (n) => e[t.field] = n
|
|
@@ -527,7 +531,7 @@ var Mt = /* @__PURE__ */ d({
|
|
|
527
531
|
name: "Picture",
|
|
528
532
|
__name: "picture",
|
|
529
533
|
setup(e) {
|
|
530
|
-
return (t, l) => (
|
|
534
|
+
return (t, l) => (g(), y("svg", {
|
|
531
535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
532
536
|
viewBox: "0 0 1024 1024"
|
|
533
537
|
}, [
|
|
@@ -552,7 +556,7 @@ const Pt = /* @__PURE__ */ d({
|
|
|
552
556
|
setup(e, {
|
|
553
557
|
attrs: t
|
|
554
558
|
}) {
|
|
555
|
-
return e.src ? e.preview ? () => i(M,
|
|
559
|
+
return e.src ? e.preview ? () => i(M, m({
|
|
556
560
|
lazy: !0,
|
|
557
561
|
fit: "contain",
|
|
558
562
|
src: e.src,
|
|
@@ -562,7 +566,7 @@ const Pt = /* @__PURE__ */ d({
|
|
|
562
566
|
width: "40px"
|
|
563
567
|
},
|
|
564
568
|
"preview-src-list": [e.src]
|
|
565
|
-
}, t), null) : () => i(
|
|
569
|
+
}, t), null) : () => i(ge, {
|
|
566
570
|
transition: "el-zoom-in-top",
|
|
567
571
|
trigger: "click",
|
|
568
572
|
persistent: !1
|
|
@@ -576,7 +580,7 @@ const Pt = /* @__PURE__ */ d({
|
|
|
576
580
|
}, {
|
|
577
581
|
default: () => [i(Y, null, null)]
|
|
578
582
|
}),
|
|
579
|
-
default: () => i(M,
|
|
583
|
+
default: () => i(M, m({
|
|
580
584
|
lazy: !0,
|
|
581
585
|
src: e.src,
|
|
582
586
|
style: {
|
|
@@ -647,7 +651,7 @@ const Pt = /* @__PURE__ */ d({
|
|
|
647
651
|
const l = (n) => {
|
|
648
652
|
t("update:modelValue", n);
|
|
649
653
|
};
|
|
650
|
-
return () => i(
|
|
654
|
+
return () => i(me, {
|
|
651
655
|
style: {
|
|
652
656
|
lineHieght: 1
|
|
653
657
|
},
|
|
@@ -669,10 +673,10 @@ const Pt = /* @__PURE__ */ d({
|
|
|
669
673
|
"onUpdate:modelValue": (l) => e[t.field] = l
|
|
670
674
|
}, null)
|
|
671
675
|
}
|
|
672
|
-
}, Ut = (e) => (e.editable === !1 && delete e.editRender, e.sabCellType === u.Input ?
|
|
676
|
+
}, Ut = (e) => (e.editable === !1 && delete e.editRender, e.sabCellType === u.Input ? b($t, e) : e.sabCellType === u.InputNumber ? b(Vt, e) : e.sabCellType === u.DatePciker ? b(It, e) : e.sabCellType === u.Select ? b(Ft, e) : e.sabCellType === u.Image ? b(Nt, e) : e.sabCellType === u.Color ? b(Dt, e) : e.sabCellType === u.Boolean ? b(Kt, e) : e), Yt = (e) => e.map((t) => Ut(t)).filter((t) => !t.hidden), E = /* @__PURE__ */ d({
|
|
673
677
|
name: "SabTable",
|
|
674
678
|
__name: "index",
|
|
675
|
-
props:
|
|
679
|
+
props: ne({
|
|
676
680
|
size: {},
|
|
677
681
|
id: {},
|
|
678
682
|
data: {},
|
|
@@ -761,14 +765,14 @@ const Pt = /* @__PURE__ */ d({
|
|
|
761
765
|
withCheckbox: { type: Boolean },
|
|
762
766
|
showToolbar: { type: Boolean },
|
|
763
767
|
autoClearSelected: { type: Boolean }
|
|
764
|
-
},
|
|
768
|
+
}, ee),
|
|
765
769
|
setup(e, { expose: t, emit: l }) {
|
|
766
770
|
const n = e, r = l, o = q(), c = _(() => {
|
|
767
771
|
const s = Tt(
|
|
768
772
|
{
|
|
769
773
|
keyboardConfig: {
|
|
770
|
-
editMethod({ row:
|
|
771
|
-
return o.value.setEditCell(
|
|
774
|
+
editMethod({ row: p, column: v }) {
|
|
775
|
+
return o.value.setEditCell(p, v), !0;
|
|
772
776
|
}
|
|
773
777
|
}
|
|
774
778
|
},
|
|
@@ -777,8 +781,8 @@ const Pt = /* @__PURE__ */ d({
|
|
|
777
781
|
return s.columns = Yt(s.columns || []), s;
|
|
778
782
|
}), a = _(() => {
|
|
779
783
|
var s;
|
|
780
|
-
return
|
|
781
|
-
(s = c.value.columns) == null ? void 0 : s.map((
|
|
784
|
+
return ct(
|
|
785
|
+
(s = c.value.columns) == null ? void 0 : s.map((p) => p.slots ? Object.values(p.slots).filter(
|
|
782
786
|
(v) => typeof v == "string"
|
|
783
787
|
) : [])
|
|
784
788
|
);
|
|
@@ -788,8 +792,8 @@ const Pt = /* @__PURE__ */ d({
|
|
|
788
792
|
...o.value
|
|
789
793
|
});
|
|
790
794
|
const f = xt(r, c, o);
|
|
791
|
-
return (s,
|
|
792
|
-
s.showToolbar ? (
|
|
795
|
+
return (s, p) => (g(), y(k, null, [
|
|
796
|
+
s.showToolbar ? (g(), T(ft, {
|
|
793
797
|
key: 0,
|
|
794
798
|
style: { "margin-bottom": "10px" },
|
|
795
799
|
"table-ref": o.value
|
|
@@ -799,14 +803,14 @@ const Pt = /* @__PURE__ */ d({
|
|
|
799
803
|
]),
|
|
800
804
|
_: 3
|
|
801
805
|
}, 8, ["table-ref"])) : G("", !0),
|
|
802
|
-
i(h(
|
|
806
|
+
i(h(re), m({
|
|
803
807
|
ref_key: "xTable",
|
|
804
808
|
ref: o
|
|
805
|
-
}, c.value,
|
|
809
|
+
}, c.value, oe(h(f)), {
|
|
806
810
|
class: ["sab-table", c.value.class]
|
|
807
811
|
}), {
|
|
808
812
|
default: w(() => [
|
|
809
|
-
(
|
|
813
|
+
(g(!0), y(k, null, $(c.value.columns, (v) => (g(), T(h(dt), ae(ie(v)), se({ _: 2 }, [
|
|
810
814
|
$(a.value, (x) => ({
|
|
811
815
|
name: x,
|
|
812
816
|
fn: w(() => [
|
|
@@ -821,7 +825,7 @@ const Pt = /* @__PURE__ */ d({
|
|
|
821
825
|
}
|
|
822
826
|
});
|
|
823
827
|
E.install = (e) => {
|
|
824
|
-
e.component(E.name, E), e.use(
|
|
828
|
+
e.component(E.name, E), e.use(te);
|
|
825
829
|
};
|
|
826
830
|
export {
|
|
827
831
|
u as SabCellType,
|