@vue-ui-kit/ant 2.2.0 → 2.2.1
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/dist/es/index.js
CHANGED
|
@@ -3362,7 +3362,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3362
3362
|
}).catch(() => {
|
|
3363
3363
|
at.error("删除失败");
|
|
3364
3364
|
}).finally(() => {
|
|
3365
|
-
f.table = !1, f.toolbar = !1,
|
|
3365
|
+
f.table = !1, f.toolbar = !1, b.multiDelete = !1;
|
|
3366
3366
|
});
|
|
3367
3367
|
}) : at.warn("请选择要删除的数据"));
|
|
3368
3368
|
break;
|
|
@@ -3372,7 +3372,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3372
3372
|
return ti(o.value ?? [], (D) => {
|
|
3373
3373
|
D.slots && D.slots.title && (D.field || (D.field = "__holder__" + L.length), L.push(D));
|
|
3374
3374
|
}), L;
|
|
3375
|
-
}), S = X(), H = X(), B = X(qe()),
|
|
3375
|
+
}), S = X(), H = X(), B = X(qe()), _ = X(qe()), b = wt(
|
|
3376
3376
|
[
|
|
3377
3377
|
...(((be = (tt = i.toolbarConfig) == null ? void 0 : tt.buttons) == null ? void 0 : be.map((L) => L.code)) ?? []).filter((L) => L),
|
|
3378
3378
|
...(((qt = (Le = i.toolbarConfig) == null ? void 0 : Le.tools) == null ? void 0 : qt.map((L) => L.code)) ?? []).filter((L) => L)
|
|
@@ -3381,9 +3381,9 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3381
3381
|
{}
|
|
3382
3382
|
)
|
|
3383
3383
|
), R = (L, D) => {
|
|
3384
|
-
|
|
3384
|
+
b[L] = D;
|
|
3385
3385
|
}, O = () => {
|
|
3386
|
-
|
|
3386
|
+
_.value = qe();
|
|
3387
3387
|
}, p = I.debounce(O, 100), k = U(() => {
|
|
3388
3388
|
const L = [];
|
|
3389
3389
|
return ti(o.value ?? [], (D) => {
|
|
@@ -3607,7 +3607,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3607
3607
|
type: F.type,
|
|
3608
3608
|
size: F.size ?? "middle",
|
|
3609
3609
|
disabled: T(n).disabled || F.disabled,
|
|
3610
|
-
loading: f.toolbar || !!F.code &&
|
|
3610
|
+
loading: f.toolbar || !!F.code && b[F.code],
|
|
3611
3611
|
danger: F.danger,
|
|
3612
3612
|
shape: F.shape,
|
|
3613
3613
|
ghost: F.ghost,
|
|
@@ -3630,7 +3630,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3630
3630
|
type: F.type,
|
|
3631
3631
|
size: F.size ?? "middle",
|
|
3632
3632
|
disabled: T(n).disabled || F.disabled,
|
|
3633
|
-
loading: f.toolbar || !!F.code &&
|
|
3633
|
+
loading: f.toolbar || !!F.code && b[F.code],
|
|
3634
3634
|
danger: F.danger,
|
|
3635
3635
|
shape: F.shape,
|
|
3636
3636
|
ghost: F.ghost,
|
|
@@ -3659,7 +3659,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3659
3659
|
ghost: F.ghost,
|
|
3660
3660
|
block: F.block,
|
|
3661
3661
|
onClick: (mt) => T(lr)(F.code),
|
|
3662
|
-
loading: f.toolbar || !!F.code &&
|
|
3662
|
+
loading: f.toolbar || !!F.code && b[F.code]
|
|
3663
3663
|
}, {
|
|
3664
3664
|
default: Y(() => [
|
|
3665
3665
|
F.icon ? ($(), z(T(ye), {
|
|
@@ -3677,7 +3677,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3677
3677
|
}, [
|
|
3678
3678
|
(gs = T(d)) != null && gs.multiple && T(d).showCount ? ($(), q("div", wb, " 已选:" + Me(w.value.length), 1)) : ie("", !0),
|
|
3679
3679
|
($(), z(T(cc), G({
|
|
3680
|
-
key:
|
|
3680
|
+
key: _.value + "_table",
|
|
3681
3681
|
"row-key": L.rowKey ?? "id",
|
|
3682
3682
|
ref_key: "tableEl",
|
|
3683
3683
|
ref: H,
|
|
@@ -3696,7 +3696,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3696
3696
|
name: "headerCell",
|
|
3697
3697
|
fn: Y(({ column: F }) => [
|
|
3698
3698
|
E.value.some((De) => F.key && De.field === F.key) ? ($(), z(T(ub), {
|
|
3699
|
-
key:
|
|
3699
|
+
key: _.value + "_title_" + V.value + "_slot_" + F.key,
|
|
3700
3700
|
column: E.value.find((De) => F.key && De.field === F.key)
|
|
3701
3701
|
}, null, 8, ["column"])) : ie("", !0)
|
|
3702
3702
|
]),
|
|
@@ -3706,7 +3706,7 @@ const Yi = at.warning, vb = { key: 0 }, xb = {
|
|
|
3706
3706
|
name: "bodyCell",
|
|
3707
3707
|
fn: Y(({ column: F, record: De, index: mt }) => [
|
|
3708
3708
|
k.value.some((ur) => F.key && ur.field === F.key) ? ($(), z(T(Rl), {
|
|
3709
|
-
key:
|
|
3709
|
+
key: _.value + "_cell_" + V.value + "_slot_" + F.key,
|
|
3710
3710
|
column: k.value.find((ur) => F.key && ur.field === F.key),
|
|
3711
3711
|
"default-handler": { pick: cr, setLoadings: v },
|
|
3712
3712
|
row: De,
|
|
@@ -4249,14 +4249,14 @@ class as extends Hl {
|
|
|
4249
4249
|
if (this.cellType === "footer") {
|
|
4250
4250
|
let H = l, B = n;
|
|
4251
4251
|
if (typeof s == "function") {
|
|
4252
|
-
const
|
|
4252
|
+
const _ = s, { backgroundColor: b, color: R, font: O } = _({
|
|
4253
4253
|
row: this.row,
|
|
4254
4254
|
rowIndex: this.rowIndex,
|
|
4255
4255
|
colIndex: this.colIndex,
|
|
4256
4256
|
column: this.column,
|
|
4257
4257
|
value: this.getValue()
|
|
4258
4258
|
}) || {};
|
|
4259
|
-
|
|
4259
|
+
b && (H = b), R && (B = R), O && (this.drawTextFont = O);
|
|
4260
4260
|
}
|
|
4261
4261
|
this.drawCellSkyBgColor = "transparent", this.drawCellBgColor = H, this.drawTextColor = B;
|
|
4262
4262
|
return;
|
|
@@ -4271,7 +4271,7 @@ class as extends Hl {
|
|
|
4271
4271
|
u && m && (m.rowKey === this.rowKey && (g = f), m.rowIndex >= C && m.rowIndex <= y && (g = f)), h && w && (w.rowKey === this.rowKey && (g = d), w.rowIndex >= C && w.rowIndex <= y && (g = d)), this.drawCellSkyBgColor = g;
|
|
4272
4272
|
let E = e, S = o;
|
|
4273
4273
|
if (this.ctx.database.getReadonly(this.rowKey, this.key) || (E = t, S = a), v && (this.rowIndex % 2 ? E = x : E = e), typeof i == "function") {
|
|
4274
|
-
const H = i, { backgroundColor: B, color:
|
|
4274
|
+
const H = i, { backgroundColor: B, color: _, font: b } = H({
|
|
4275
4275
|
row: this.row,
|
|
4276
4276
|
rowIndex: this.rowIndex,
|
|
4277
4277
|
colIndex: this.colIndex,
|
|
@@ -4279,7 +4279,7 @@ class as extends Hl {
|
|
|
4279
4279
|
isHasChanged: this.isHasChanged,
|
|
4280
4280
|
value: this.getValue()
|
|
4281
4281
|
}) || {};
|
|
4282
|
-
B && (E = B),
|
|
4282
|
+
B && (E = B), _ && (S = _), b && (this.drawTextFont = b);
|
|
4283
4283
|
}
|
|
4284
4284
|
this.drawCellBgColor = E, this.drawTextColor = S;
|
|
4285
4285
|
}
|
|
@@ -5623,10 +5623,10 @@ class Db {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
]
|
|
5625
5625
|
};
|
|
5626
|
-
let m = t, w = t, C = n, y = n, E = [], S = 0, H = 0, B = 0,
|
|
5626
|
+
let m = t, w = t, C = n, y = n, E = [], S = 0, H = 0, B = 0, _ = 0;
|
|
5627
5627
|
if (d !== 1 && x) {
|
|
5628
|
-
|
|
5629
|
-
const
|
|
5628
|
+
_ = f;
|
|
5629
|
+
const b = l.reduce((R, O) => {
|
|
5630
5630
|
const p = this.getItemValue(s, O) ?? "";
|
|
5631
5631
|
return `${R}${p}`;
|
|
5632
5632
|
}, "");
|
|
@@ -5635,7 +5635,7 @@ class Db {
|
|
|
5635
5635
|
const V = this.getItemValue(O, A) ?? "";
|
|
5636
5636
|
return `${k}${V}`;
|
|
5637
5637
|
}, "");
|
|
5638
|
-
if (
|
|
5638
|
+
if (b === p)
|
|
5639
5639
|
m = R;
|
|
5640
5640
|
else
|
|
5641
5641
|
break;
|
|
@@ -5645,7 +5645,7 @@ class Db {
|
|
|
5645
5645
|
const V = this.getItemValue(O, A) ?? "";
|
|
5646
5646
|
return `${k}${V}`;
|
|
5647
5647
|
}, "");
|
|
5648
|
-
if (
|
|
5648
|
+
if (b === p)
|
|
5649
5649
|
w = R;
|
|
5650
5650
|
else
|
|
5651
5651
|
break;
|
|
@@ -5668,37 +5668,37 @@ class Db {
|
|
|
5668
5668
|
}
|
|
5669
5669
|
if (v !== 1 && g) {
|
|
5670
5670
|
B = u;
|
|
5671
|
-
for (let
|
|
5672
|
-
const R = this.getColumnByColIndex(
|
|
5671
|
+
for (let b = n - 1; b >= 0; b--) {
|
|
5672
|
+
const R = this.getColumnByColIndex(b);
|
|
5673
5673
|
if (!R)
|
|
5674
5674
|
break;
|
|
5675
5675
|
const O = this.getItemValue(s, i), p = this.getItemValue(s, R.key);
|
|
5676
5676
|
if (O === p && h.includes(R.key))
|
|
5677
|
-
C =
|
|
5677
|
+
C = b;
|
|
5678
5678
|
else
|
|
5679
5679
|
break;
|
|
5680
5680
|
}
|
|
5681
|
-
for (let
|
|
5682
|
-
const R = this.getColumnByColIndex(
|
|
5681
|
+
for (let b = n; b <= this.ctx.maxColIndex; b++) {
|
|
5682
|
+
const R = this.getColumnByColIndex(b);
|
|
5683
5683
|
if (!R)
|
|
5684
5684
|
break;
|
|
5685
5685
|
const O = this.getItemValue(s, i), p = this.getItemValue(s, R.key);
|
|
5686
5686
|
if (O === p && h.includes(R.key))
|
|
5687
|
-
y =
|
|
5687
|
+
y = b;
|
|
5688
5688
|
else
|
|
5689
5689
|
break;
|
|
5690
5690
|
}
|
|
5691
|
-
for (let
|
|
5692
|
-
const R = this.getColumnByColIndex(
|
|
5691
|
+
for (let b = C; b < n; b++) {
|
|
5692
|
+
const R = this.getColumnByColIndex(b);
|
|
5693
5693
|
if (!R)
|
|
5694
5694
|
break;
|
|
5695
5695
|
H += R.width || 100;
|
|
5696
5696
|
}
|
|
5697
|
-
for (let
|
|
5698
|
-
const R = this.getColumnByColIndex(
|
|
5697
|
+
for (let b = C; b <= y; b++) {
|
|
5698
|
+
const R = this.getColumnByColIndex(b);
|
|
5699
5699
|
if (!R)
|
|
5700
5700
|
break;
|
|
5701
|
-
|
|
5701
|
+
_ += R.width || 100, E.push({
|
|
5702
5702
|
rowKey: s,
|
|
5703
5703
|
key: R.key,
|
|
5704
5704
|
value: this.getItemValue(s, R.key),
|
|
@@ -5712,7 +5712,7 @@ class Db {
|
|
|
5712
5712
|
rowspan: d,
|
|
5713
5713
|
colspan: v,
|
|
5714
5714
|
height: B,
|
|
5715
|
-
width:
|
|
5715
|
+
width: _,
|
|
5716
5716
|
offsetTop: S,
|
|
5717
5717
|
offsetLeft: H,
|
|
5718
5718
|
dataList: E
|
|
@@ -6140,32 +6140,32 @@ class Hb {
|
|
|
6140
6140
|
let S = this.wrapText(e, C, o.cacheTextKey), H = Math.min(S.length, Math.max(E, 1));
|
|
6141
6141
|
v === "auto" && x ? H = S.length : typeof v == "number" && v < H && v !== 1 ? H = v : (v === 1 && (S = [e], H = 1), v === "auto" && E === 1 && (S = [e], H = 1));
|
|
6142
6142
|
let B = i + u;
|
|
6143
|
-
const
|
|
6144
|
-
f === "middle" ? B = i + (a -
|
|
6145
|
-
let
|
|
6146
|
-
h === "center" ?
|
|
6143
|
+
const _ = Math.round(H * w);
|
|
6144
|
+
f === "middle" ? B = i + (a - _) / 2 : f === "bottom" && (B = i + a - _ - u);
|
|
6145
|
+
let b = t + u + g;
|
|
6146
|
+
h === "center" ? b = t + s / 2 : h === "right" && (b = t + s - u - m);
|
|
6147
6147
|
for (let R = 0; R < S.length; R++) {
|
|
6148
6148
|
const O = S[R], p = B + R * w;
|
|
6149
6149
|
if (this.ctx.textBaseline = "top", R === H - 1) {
|
|
6150
6150
|
const k = S.slice(R).join(""), { _text: A, ellipsis: V } = this.handleEllipsis(k, s, u, l);
|
|
6151
|
-
this.ctx.fillText(A,
|
|
6151
|
+
this.ctx.fillText(A, b, p), y = V;
|
|
6152
6152
|
break;
|
|
6153
6153
|
}
|
|
6154
|
-
this.ctx.fillText(O,
|
|
6154
|
+
this.ctx.fillText(O, b, p);
|
|
6155
6155
|
}
|
|
6156
6156
|
if (o.textCallback && S.length) {
|
|
6157
6157
|
const R = S.reduce((V, Z) => Math.max(V, this.ctx.measureText(Z).width), 0), O = Math.round(R);
|
|
6158
|
-
let p =
|
|
6159
|
-
h === "center" ? (p =
|
|
6158
|
+
let p = b, k = b + O;
|
|
6159
|
+
h === "center" ? (p = b - O / 2, k = b + O / 2) : h === "right" && (p = b - O, k = b);
|
|
6160
6160
|
const A = {
|
|
6161
|
-
x:
|
|
6161
|
+
x: b,
|
|
6162
6162
|
y: B,
|
|
6163
6163
|
width: O,
|
|
6164
|
-
height:
|
|
6164
|
+
height: _,
|
|
6165
6165
|
left: p,
|
|
6166
6166
|
right: k,
|
|
6167
6167
|
top: B,
|
|
6168
|
-
bottom: B +
|
|
6168
|
+
bottom: B + _
|
|
6169
6169
|
};
|
|
6170
6170
|
o.textCallback(A);
|
|
6171
6171
|
}
|
|
@@ -7720,18 +7720,18 @@ class zb {
|
|
|
7720
7720
|
a ? this.visibleHeight = E - g : this.visibleHeight = E, this.data.length || (this.height = this.visibleHeight), this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = v;
|
|
7721
7721
|
const S = window.devicePixelRatio || 1, H = this.ctx.stageWidth * S, B = this.ctx.stageHeight * S;
|
|
7722
7722
|
e.width = Math.round(H), e.height = Math.round(B);
|
|
7723
|
-
const
|
|
7723
|
+
const _ = this.data.length ? "not-empty" : "empty";
|
|
7724
7724
|
this.ctx.emit("emptyChange", {
|
|
7725
|
-
isEmpty:
|
|
7726
|
-
type:
|
|
7725
|
+
isEmpty: _,
|
|
7726
|
+
type: _,
|
|
7727
7727
|
headerHeight: t.height,
|
|
7728
7728
|
bodyHeight: this.height,
|
|
7729
7729
|
footerHeight: g,
|
|
7730
7730
|
width: this.width,
|
|
7731
7731
|
height: this.data.length ? 0 : l + g
|
|
7732
7732
|
});
|
|
7733
|
-
const
|
|
7734
|
-
this.ctx.canvasElement.setAttribute("style", `height:${R}px;width:${
|
|
7733
|
+
const b = Math.round(e.width / S * 1e4) / 1e4, R = Math.round(e.height / S * 1e4) / 1e4;
|
|
7734
|
+
this.ctx.canvasElement.setAttribute("style", `height:${R}px;width:${b}px;`), this.ctx.paint.scale(S);
|
|
7735
7735
|
}
|
|
7736
7736
|
// 调整行的高度
|
|
7737
7737
|
initResizeRow() {
|
|
@@ -8324,16 +8324,16 @@ class Gb {
|
|
|
8324
8324
|
for (let y = 0; y <= o.length - 1; y++) {
|
|
8325
8325
|
const E = o[y].length;
|
|
8326
8326
|
for (let S = 0; S <= E - 1; S++) {
|
|
8327
|
-
const H = y + t, B = S + i,
|
|
8327
|
+
const H = y + t, B = S + i, _ = o[y][S], b = this.ctx.database.getItemValueForRowIndexAndColIndex(
|
|
8328
8328
|
H,
|
|
8329
8329
|
B
|
|
8330
8330
|
);
|
|
8331
|
-
if (
|
|
8332
|
-
const { rowKey: R, key: O } =
|
|
8331
|
+
if (b) {
|
|
8332
|
+
const { rowKey: R, key: O } = b;
|
|
8333
8333
|
this.ctx.database.getReadonly(R, O) || (s.add(R), m.push({
|
|
8334
8334
|
rowKey: R,
|
|
8335
8335
|
key: O,
|
|
8336
|
-
value:
|
|
8336
|
+
value: _,
|
|
8337
8337
|
row: {}
|
|
8338
8338
|
//内部有设置
|
|
8339
8339
|
}));
|
|
@@ -8438,11 +8438,11 @@ class Gb {
|
|
|
8438
8438
|
const { drawX: g, drawY: m, width: w, height: C, fixed: y } = i, E = a - g + 1, S = i.drawX + w - (t - s) + 1;
|
|
8439
8439
|
let H = o.height - m, B = C;
|
|
8440
8440
|
B > l.visibleHeight && (B = l.visibleHeight);
|
|
8441
|
-
let
|
|
8442
|
-
f && (v === "top" ? H = o.height + n.height - m :
|
|
8443
|
-
const
|
|
8441
|
+
let _ = 0;
|
|
8442
|
+
f && (v === "top" ? H = o.height + n.height - m : _ = n.visibleHeight);
|
|
8443
|
+
const b = m + B - (e - _ - u);
|
|
8444
8444
|
let R = h, O = d;
|
|
8445
|
-
S > 0 && !y ? R = Math.floor(h + S) : E > 0 && !y && (R = Math.floor(h - E)), H > 0 ? O = Math.floor(d - H) :
|
|
8445
|
+
S > 0 && !y ? R = Math.floor(h + S) : E > 0 && !y && (R = Math.floor(h - E)), H > 0 ? O = Math.floor(d - H) : b > 0 && (O = Math.floor(d + b)), (Math.abs(h - R) > 2 || Math.abs(d - O) > 2) && (this.ctx.adjustPositioning = !0, this.ctx.emit("adjustBoundaryPosition", i), this.ctx.setScroll(R, O));
|
|
8446
8446
|
}
|
|
8447
8447
|
destroy() {
|
|
8448
8448
|
}
|
|
@@ -8501,16 +8501,16 @@ class Ub {
|
|
|
8501
8501
|
if (E < m || H < C)
|
|
8502
8502
|
return;
|
|
8503
8503
|
o = [Math.max(m, E), Math.min(w, S)], n = [Math.max(C, H), Math.min(y, B)];
|
|
8504
|
-
const { BEFORE_SET_AUTOFILL_METHOD:
|
|
8505
|
-
if (typeof
|
|
8506
|
-
const
|
|
8504
|
+
const { BEFORE_SET_AUTOFILL_METHOD: _ } = this.ctx.config;
|
|
8505
|
+
if (typeof _ == "function") {
|
|
8506
|
+
const b = _({
|
|
8507
8507
|
focusCell: this.ctx.focusCell,
|
|
8508
8508
|
xArr: o,
|
|
8509
8509
|
yArr: n
|
|
8510
8510
|
});
|
|
8511
|
-
if (!
|
|
8511
|
+
if (!b)
|
|
8512
8512
|
return;
|
|
8513
|
-
o =
|
|
8513
|
+
o = b.xArr, n = b.yArr;
|
|
8514
8514
|
}
|
|
8515
8515
|
this.ctx.autofill.xArr = o, this.ctx.autofill.yArr = n, this.ctx.emit("setAutofill", this.ctx.autofill), this.ctx.emit("draw");
|
|
8516
8516
|
}
|
|
@@ -8865,7 +8865,7 @@ const o_ = (r) => ({
|
|
|
8865
8865
|
}, v = ls(s), x = ns(v), g = await o.getDimensions(h), m = v === "y", w = m ? "top" : "left", C = m ? "bottom" : "right", y = m ? "clientHeight" : "clientWidth", E = a.reference[x] + a.reference[v] - f[v] - a.floating[x], S = f[v] - a.reference[v], H = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(h));
|
|
8866
8866
|
let B = H ? H[y] : 0;
|
|
8867
8867
|
(!B || !await (o.isElement == null ? void 0 : o.isElement(H))) && (B = n.floating[y] || a.floating[x]);
|
|
8868
|
-
const
|
|
8868
|
+
const _ = E / 2 - S / 2, b = B / 2 - g[x] / 2 - 1, R = Ft(u[w], b), O = Ft(u[C], b), p = R, k = B - g[x] - O, A = B / 2 - g[x] / 2 + _, V = Hr(p, A, k), Z = !l.arrow && xi(s) != null && A !== V && a.reference[x] / 2 - (A < p ? R : O) - g[x] / 2 < 0, P = Z ? A < p ? A - p : A - k : 0;
|
|
8869
8869
|
return {
|
|
8870
8870
|
[v]: f[v] + P,
|
|
8871
8871
|
data: {
|
|
@@ -8904,16 +8904,16 @@ const o_ = (r) => ({
|
|
|
8904
8904
|
return {};
|
|
8905
8905
|
const w = _t(s), C = ot(n), y = _t(n) === n, E = await (l.isRTL == null ? void 0 : l.isRTL(h.floating)), S = f || (y || !g ? [Pi(n)] : jb(n)), H = x !== "none";
|
|
8906
8906
|
!f && H && S.push(...r_(n, g, x, E));
|
|
8907
|
-
const B = [n, ...S],
|
|
8907
|
+
const B = [n, ...S], _ = await Yl(e, m), b = [];
|
|
8908
8908
|
let R = ((i = a.flip) == null ? void 0 : i.overflows) || [];
|
|
8909
|
-
if (d &&
|
|
8909
|
+
if (d && b.push(_[w]), u) {
|
|
8910
8910
|
const A = Qb(s, o, E);
|
|
8911
|
-
|
|
8911
|
+
b.push(_[A[0]], _[A[1]]);
|
|
8912
8912
|
}
|
|
8913
8913
|
if (R = [...R, {
|
|
8914
8914
|
placement: s,
|
|
8915
|
-
overflows:
|
|
8916
|
-
}], !
|
|
8915
|
+
overflows: b
|
|
8916
|
+
}], !b.every((A) => A <= 0)) {
|
|
8917
8917
|
var O, p;
|
|
8918
8918
|
const A = (((O = a.flip) == null ? void 0 : O.index) || 0) + 1, V = B[A];
|
|
8919
8919
|
if (V && (!(u === "alignment" && C !== ot(V)) || // We leave the current main axis only if every placement on that axis
|
|
@@ -10380,19 +10380,19 @@ class W_ {
|
|
|
10380
10380
|
onClick: (C, y) => {
|
|
10381
10381
|
const { xArr: E } = this.ctx.selector, [S, H] = E;
|
|
10382
10382
|
if (y === "fixedLeft" || y === "fixedRight" || y === "fixedNone") {
|
|
10383
|
-
const B = this.ctx.header.allCellHeaders.filter((
|
|
10383
|
+
const B = this.ctx.header.allCellHeaders.filter((_) => _.colIndex >= S && _.colIndex <= H).filter((_) => _.level === 0).filter((_) => !_.column.fixedDisabled).map((_) => _.key);
|
|
10384
10384
|
this.ctx.database.setCustomHeaderFixedData(
|
|
10385
10385
|
B,
|
|
10386
10386
|
y === "fixedLeft" ? "left" : y === "fixedRight" ? "right" : ""
|
|
10387
10387
|
), this.hide();
|
|
10388
10388
|
} else if (y === "hide") {
|
|
10389
|
-
const B = this.ctx.header.leafCellHeaders.filter((
|
|
10389
|
+
const B = this.ctx.header.leafCellHeaders.filter((_) => _.colIndex >= S && _.colIndex <= H).filter((_) => !_.children.length).filter((_) => !_.column.hideDisabled).map((_) => _.key);
|
|
10390
10390
|
B.length > 0 && this.ctx.database.setCustomHeaderHideData(B, !0), this.hide();
|
|
10391
10391
|
} else if (y !== "visible") if (y.startsWith("visible_")) {
|
|
10392
10392
|
const B = y.replace("visible_", "");
|
|
10393
10393
|
this.ctx.database.setCustomHeaderHideData([B], !1), this.currentDOMTreeMenu && this.currentDOMTreeMenu.removeSubMenuItem(y);
|
|
10394
|
-
const
|
|
10395
|
-
si(
|
|
10394
|
+
const _ = this.ctx.database.getColumns();
|
|
10395
|
+
si(_).filter((b) => b.hide).length === 0 && this.hide();
|
|
10396
10396
|
} else y === "resetHeader" && (this.ctx.database.resetCustomHeader(), this.hide());
|
|
10397
10397
|
}
|
|
10398
10398
|
}), this.positionMenu(t);
|
|
@@ -10857,14 +10857,14 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
10857
10857
|
{}
|
|
10858
10858
|
);
|
|
10859
10859
|
};
|
|
10860
|
-
},
|
|
10860
|
+
}, _ = (p) => {
|
|
10861
10861
|
var k, A;
|
|
10862
10862
|
if ((k = p.slots) != null && k.title && I.isFunction((A = p.slots) == null ? void 0 : A.title))
|
|
10863
10863
|
return (V) => {
|
|
10864
10864
|
var Z, P;
|
|
10865
10865
|
return (P = (Z = p.slots) == null ? void 0 : Z.title) == null ? void 0 : P.call(Z, { column: p });
|
|
10866
10866
|
};
|
|
10867
|
-
},
|
|
10867
|
+
}, b = (p) => {
|
|
10868
10868
|
var k, A, V, Z, P, J, ee;
|
|
10869
10869
|
return (k = p.slots) != null && k.edit && (p.field || p.key) && I.isFunction((A = p.slots) == null ? void 0 : A.edit) ? w[`__slot:${p.field || p.key}`] = p : (V = p.editRender) != null && V.name && (p.field || p.key) && (C[p.field || p.key] = p.editRender), {
|
|
10870
10870
|
...I.omit(p, ["formatter"]),
|
|
@@ -10872,14 +10872,14 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
10872
10872
|
formatter: I.isString(p.formatter) ? H(E(p.formatter)) : I.isArray(p.formatter) && I.isString(p.formatter[0]) ? H(E(p.formatter[0]), ...p.formatter.slice(1)) : I.isFunction(p.formatter) ? H(p.formatter) : void 0,
|
|
10873
10873
|
editorType: p.editorType ?? ((Z = p.slots) != null && Z.edit && (p.field || p.key) && I.isFunction((P = p.slots) == null ? void 0 : P.edit) ? `__slot:${p.field || p.key}` : (J = p.editRender) != null && J.name ? p.editRender.name : void 0),
|
|
10874
10874
|
render: B(p),
|
|
10875
|
-
renderHeader:
|
|
10876
|
-
children: (ee = p.children) == null ? void 0 : ee.map((re) =>
|
|
10875
|
+
renderHeader: _(p),
|
|
10876
|
+
children: (ee = p.children) == null ? void 0 : ee.map((re) => b(re))
|
|
10877
10877
|
};
|
|
10878
10878
|
};
|
|
10879
10879
|
Ui(() => {
|
|
10880
10880
|
d.value && (l = new X_(d.value, {
|
|
10881
10881
|
config: n.value.config,
|
|
10882
|
-
columns: a.columns.map((p) =>
|
|
10882
|
+
columns: a.columns.map((p) => b(p)),
|
|
10883
10883
|
data: a.data,
|
|
10884
10884
|
footerData: a.footerData,
|
|
10885
10885
|
emptyElement: f.value || void 0,
|
|
@@ -10919,7 +10919,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
10919
10919
|
), _l(
|
|
10920
10920
|
() => a.columns,
|
|
10921
10921
|
(p, k) => {
|
|
10922
|
-
I.isEqual(p, k) || l == null || l.loadColumns(p.map((A) =>
|
|
10922
|
+
I.isEqual(p, k) || l == null || l.loadColumns(p.map((A) => b(A)));
|
|
10923
10923
|
},
|
|
10924
10924
|
{ deep: !0 }
|
|
10925
10925
|
), Ue(
|
|
@@ -11091,7 +11091,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11091
11091
|
}), E = wt({
|
|
11092
11092
|
page: 1,
|
|
11093
11093
|
size: ((yi = n.value) == null ? void 0 : yi.pageSize) ?? 10
|
|
11094
|
-
}), S = X(0), H = X(0), B = X([]),
|
|
11094
|
+
}), S = X(0), H = X(0), B = X([]), _ = X(), b = X(), R = X(), O = X(), p = X(500), k = X({}), A = (M) => {
|
|
11095
11095
|
k.value[E.page] = M;
|
|
11096
11096
|
}, V = wt(
|
|
11097
11097
|
[
|
|
@@ -11238,11 +11238,11 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11238
11238
|
passQuery: pi,
|
|
11239
11239
|
forcePassQuery: hr
|
|
11240
11240
|
},
|
|
11241
|
-
$canvasTable: U(() =>
|
|
11241
|
+
$canvasTable: U(() => b.value),
|
|
11242
11242
|
selectedRowKeys: re,
|
|
11243
11243
|
setBtnLoading: Z,
|
|
11244
11244
|
selectedRecords: J,
|
|
11245
|
-
$form: U(() =>
|
|
11245
|
+
$form: U(() => _.value),
|
|
11246
11246
|
getFormData: () => g.value,
|
|
11247
11247
|
setLoadings: P,
|
|
11248
11248
|
resizeTable: vt
|
|
@@ -11268,7 +11268,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11268
11268
|
($(), z(T(qi), G({
|
|
11269
11269
|
key: x.value,
|
|
11270
11270
|
ref_key: "formEl",
|
|
11271
|
-
ref:
|
|
11271
|
+
ref: _,
|
|
11272
11272
|
model: g.value
|
|
11273
11273
|
}, C.value, { onSubmit: ee }), {
|
|
11274
11274
|
default: Y(() => [
|
|
@@ -11383,7 +11383,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11383
11383
|
(qt = T(f)) != null && qt.selectable && T(f).showCount ? ($(), q("div", Q_, " 已选:" + Me(re.value.length), 1)) : ie("", !0),
|
|
11384
11384
|
N(Zl, {
|
|
11385
11385
|
ref_key: "canvasTableRef",
|
|
11386
|
-
ref:
|
|
11386
|
+
ref: b,
|
|
11387
11387
|
columns: dr.value,
|
|
11388
11388
|
config: {
|
|
11389
11389
|
...m.value.config,
|
|
@@ -11492,7 +11492,8 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11492
11492
|
props: /* @__PURE__ */ ec({
|
|
11493
11493
|
getFormSetting: { type: Function },
|
|
11494
11494
|
title: {},
|
|
11495
|
-
tabLabel: {
|
|
11495
|
+
tabLabel: {},
|
|
11496
|
+
getTabLabel: { type: Function },
|
|
11496
11497
|
editAble: { type: Boolean },
|
|
11497
11498
|
showAdd: { type: Boolean },
|
|
11498
11499
|
collapsible: { type: Boolean },
|
|
@@ -11514,9 +11515,9 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11514
11515
|
}),
|
|
11515
11516
|
emits: ["update:modelValue"],
|
|
11516
11517
|
setup(r, { expose: e }) {
|
|
11517
|
-
const t = qi.useForm, i = X(), s = r, a = X(), o = tc(r, "modelValue"), n = X(0), l = X([]), h = X([]), d = (
|
|
11518
|
-
n.value =
|
|
11519
|
-
}, u = U(() => s.max ?? 1 / 0), f = (
|
|
11518
|
+
const t = qi.useForm, i = X(), s = r, a = X(), o = tc(r, "modelValue"), n = X(0), l = X([]), h = X([]), d = (_) => {
|
|
11519
|
+
n.value = _;
|
|
11520
|
+
}, u = U(() => s.max ?? 1 / 0), f = (_) => {
|
|
11520
11521
|
(s.createItem ?? (() => Promise.resolve({})))({ list: o.value }).then((R) => {
|
|
11521
11522
|
var O;
|
|
11522
11523
|
o.value = [
|
|
@@ -11525,43 +11526,46 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11525
11526
|
...R,
|
|
11526
11527
|
__index: (((O = I.max(o.value, (p) => p.__index ?? -1)) == null ? void 0 : O.__index) ?? -1) + 1
|
|
11527
11528
|
}
|
|
11528
|
-
], n.value =
|
|
11529
|
+
], n.value = _;
|
|
11529
11530
|
});
|
|
11530
11531
|
}, v = s.itemMenus ?? [
|
|
11531
11532
|
{ content: "复制", code: "copy" },
|
|
11532
11533
|
{ content: "删除", code: "delete" }
|
|
11533
|
-
], x = (
|
|
11534
|
-
var
|
|
11535
|
-
return ((k = (p = (O = (R = (
|
|
11536
|
-
}, g = U(() => s.forceRender || o.value.length <= 5), m = (
|
|
11534
|
+
], x = (_) => {
|
|
11535
|
+
var b, R, O, p, k, A;
|
|
11536
|
+
return ((k = (p = (O = (R = (b = _ == null ? void 0 : _.parentElement) == null ? void 0 : b.parentElement) == null ? void 0 : R.parentElement) == null ? void 0 : O.parentElement) == null ? void 0 : p.parentElement) == null ? void 0 : k.parentElement) ?? ((A = a.value) == null ? void 0 : A.$el) ?? document.body;
|
|
11537
|
+
}, g = U(() => s.forceRender || o.value.length <= 5), m = (_) => {
|
|
11537
11538
|
var R;
|
|
11538
|
-
const
|
|
11539
|
-
se(
|
|
11539
|
+
const b = (R = o.value.find((O, p) => p === _)) == null ? void 0 : R.__index;
|
|
11540
|
+
se(b) && (l.value = l.value.filter((O) => O !== b));
|
|
11540
11541
|
}, w = () => {
|
|
11541
11542
|
Ni().then(() => {
|
|
11542
|
-
var
|
|
11543
|
-
m(n.value), (
|
|
11543
|
+
var _, b;
|
|
11544
|
+
m(n.value), (b = (_ = h.value[n.value]) == null ? void 0 : _.$form) == null || b.validate();
|
|
11544
11545
|
});
|
|
11545
|
-
}, C = (b) =>
|
|
11546
|
+
}, C = (_, b) => {
|
|
11547
|
+
var R;
|
|
11548
|
+
return ((R = s.getTabLabel) == null ? void 0 : R.call(s, _, b)) ?? `${s.tabLabel} ${s.keepSerial ? b + 1 : (_.__index ?? 0) + 1}`;
|
|
11549
|
+
};
|
|
11546
11550
|
Ue(
|
|
11547
11551
|
() => o.value,
|
|
11548
11552
|
() => {
|
|
11549
11553
|
if (!s.keepSerial) {
|
|
11550
|
-
const
|
|
11551
|
-
|
|
11554
|
+
const _ = o.value.filter((b) => !se(b.__index));
|
|
11555
|
+
_.length > 0 && _.forEach((b) => {
|
|
11552
11556
|
var R;
|
|
11553
|
-
|
|
11557
|
+
b.__index = (((R = I.max(o.value, (O) => O.__index ?? -1)) == null ? void 0 : R.__index) ?? -1) + 1;
|
|
11554
11558
|
});
|
|
11555
11559
|
}
|
|
11556
11560
|
},
|
|
11557
11561
|
{ immediate: !0 }
|
|
11558
11562
|
);
|
|
11559
|
-
const y = ({ key:
|
|
11563
|
+
const y = ({ key: _ }, b, R) => {
|
|
11560
11564
|
var O;
|
|
11561
11565
|
if (s.menuHandler && I.isFunction(s.menuHandler))
|
|
11562
|
-
s.menuHandler({ code: I.toString(
|
|
11566
|
+
s.menuHandler({ code: I.toString(_), data: b, index: R });
|
|
11563
11567
|
else
|
|
11564
|
-
switch (
|
|
11568
|
+
switch (_) {
|
|
11565
11569
|
case "delete":
|
|
11566
11570
|
o.value = o.value.filter((p, k) => k !== R), Ni(() => {
|
|
11567
11571
|
h.value = h.value.filter((p) => !!p), R <= n.value && n.value > 0 && n.value--;
|
|
@@ -11575,7 +11579,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11575
11579
|
o.value = [
|
|
11576
11580
|
...o.value,
|
|
11577
11581
|
I.clone({
|
|
11578
|
-
...I.omit(
|
|
11582
|
+
...I.omit(b, ["id", "__index"]),
|
|
11579
11583
|
__index: (((O = I.max(o.value, (p) => p.__index ?? -1)) == null ? void 0 : O.__index) ?? -1) + 1
|
|
11580
11584
|
})
|
|
11581
11585
|
];
|
|
@@ -11588,35 +11592,35 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11588
11592
|
const S = I.debounce(m, 50);
|
|
11589
11593
|
vs(() => {
|
|
11590
11594
|
var R;
|
|
11591
|
-
const
|
|
11592
|
-
|
|
11595
|
+
const _ = o.value.map((O, p) => l.value.includes(O.__index) ? p : void 0).filter(se), b = (R = i.value) == null ? void 0 : R.$el;
|
|
11596
|
+
b && b.querySelectorAll(
|
|
11593
11597
|
":scope >.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab>.ant-tabs-tab-btn"
|
|
11594
11598
|
).forEach((p, k) => {
|
|
11595
|
-
|
|
11599
|
+
_.includes(k) ? p.classList.add("p-error-group-tab") : p.classList.remove("p-error-group-tab");
|
|
11596
11600
|
});
|
|
11597
11601
|
}), e({
|
|
11598
11602
|
collapse: () => {
|
|
11599
|
-
var
|
|
11600
|
-
(
|
|
11603
|
+
var _, b;
|
|
11604
|
+
(b = (_ = a.value) == null ? void 0 : _.collapse) == null || b.call(_);
|
|
11601
11605
|
},
|
|
11602
11606
|
expand: () => {
|
|
11603
|
-
var
|
|
11604
|
-
(
|
|
11607
|
+
var _, b;
|
|
11608
|
+
(b = (_ = a.value) == null ? void 0 : _.expand) == null || b.call(_);
|
|
11605
11609
|
},
|
|
11606
11610
|
activeKey: U(() => n.value),
|
|
11607
11611
|
setActiveKey: d,
|
|
11608
11612
|
validateAll: () => {
|
|
11609
|
-
const
|
|
11613
|
+
const _ = g.value ? h.value.map((b) => {
|
|
11610
11614
|
var R;
|
|
11611
|
-
return (R =
|
|
11615
|
+
return (R = b.$form) == null ? void 0 : R.validate();
|
|
11612
11616
|
}) : o.value.map(
|
|
11613
|
-
(
|
|
11617
|
+
(b) => {
|
|
11614
11618
|
var R;
|
|
11615
|
-
return ((R = t(
|
|
11619
|
+
return ((R = t(b, s.getFormSetting(b).rules)) == null ? void 0 : R.validate()) ?? Promise.resolve();
|
|
11616
11620
|
}
|
|
11617
11621
|
);
|
|
11618
|
-
return Promise.allSettled(
|
|
11619
|
-
if (l.value =
|
|
11622
|
+
return Promise.allSettled(_).then((b) => {
|
|
11623
|
+
if (l.value = b.map(
|
|
11620
11624
|
(R, O) => {
|
|
11621
11625
|
var p;
|
|
11622
11626
|
return R.status === "rejected" && typeof ((p = o.value[O]) == null ? void 0 : p.__index) == "number" ? o.value[O].__index : void 0;
|
|
@@ -11625,27 +11629,27 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11625
11629
|
const R = l.value[0], O = o.value.findIndex((p) => p.__index === R);
|
|
11626
11630
|
O !== -1 && (n.value = O);
|
|
11627
11631
|
}
|
|
11628
|
-
return l.value.length ? Promise.reject({ error_indexes: l.value, results:
|
|
11632
|
+
return l.value.length ? Promise.reject({ error_indexes: l.value, results: b }) : Promise.resolve(b);
|
|
11629
11633
|
});
|
|
11630
11634
|
},
|
|
11631
|
-
validate: async (
|
|
11635
|
+
validate: async (_, b) => {
|
|
11632
11636
|
var O, p, k;
|
|
11633
|
-
const R = o.value.findIndex((A) => A.__index ===
|
|
11637
|
+
const R = o.value.findIndex((A) => A.__index === _);
|
|
11634
11638
|
try {
|
|
11635
11639
|
return await (g.value ? ((p = (O = h.value[R]) == null ? void 0 : O.$form) == null ? void 0 : p.validate()) ?? Promise.resolve() : ((k = t(
|
|
11636
11640
|
o.value[R],
|
|
11637
11641
|
s.getFormSetting(o.value[R]).rules
|
|
11638
|
-
)) == null ? void 0 : k.validate()) ?? Promise.resolve()), l.value = l.value.filter((A) => A !==
|
|
11642
|
+
)) == null ? void 0 : k.validate()) ?? Promise.resolve()), l.value = l.value.filter((A) => A !== _), Promise.resolve();
|
|
11639
11643
|
} catch (A) {
|
|
11640
|
-
return !l.value.includes(
|
|
11644
|
+
return !l.value.includes(_) && !b && (l.value = [...l.value, _]), Promise.reject(A);
|
|
11641
11645
|
}
|
|
11642
11646
|
},
|
|
11643
|
-
validateFields: async (
|
|
11647
|
+
validateFields: async (_, b, R) => {
|
|
11644
11648
|
var V, Z;
|
|
11645
|
-
const O = o.value.findIndex((P) => P.__index ===
|
|
11649
|
+
const O = o.value.findIndex((P) => P.__index === _), k = s.getFormSetting(o.value[O]).rules, A = t(o.value[O], k);
|
|
11646
11650
|
try {
|
|
11647
|
-
return await (g.value ? ((Z = (V = h.value[O]) == null ? void 0 : V.$form) == null ? void 0 : Z.validateFields(
|
|
11648
|
-
|
|
11651
|
+
return await (g.value ? ((Z = (V = h.value[O]) == null ? void 0 : V.$form) == null ? void 0 : Z.validateFields(b)) ?? Promise.resolve() : Promise.allSettled(
|
|
11652
|
+
b.map(
|
|
11649
11653
|
(P) => A.validateField(
|
|
11650
11654
|
P,
|
|
11651
11655
|
o.value[O][P],
|
|
@@ -11654,26 +11658,26 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11654
11658
|
)
|
|
11655
11659
|
)), Promise.resolve();
|
|
11656
11660
|
} catch (P) {
|
|
11657
|
-
return !l.value.includes(
|
|
11661
|
+
return !l.value.includes(_) && !R && (l.value = [...l.value, _]), Promise.reject(P);
|
|
11658
11662
|
}
|
|
11659
11663
|
}
|
|
11660
11664
|
});
|
|
11661
|
-
const H = ic(), B = U(() => Object.keys(H).filter((
|
|
11662
|
-
original:
|
|
11663
|
-
target:
|
|
11665
|
+
const H = ic(), B = U(() => Object.keys(H).filter((_) => _.startsWith("group-")).map((_) => ({
|
|
11666
|
+
original: _,
|
|
11667
|
+
target: _.replace("group-", "")
|
|
11664
11668
|
})));
|
|
11665
|
-
return (
|
|
11669
|
+
return (_, b) => {
|
|
11666
11670
|
const R = ae("a-spin");
|
|
11667
11671
|
return $(), z(e4, {
|
|
11668
11672
|
ref_key: "rootRef",
|
|
11669
11673
|
ref: a,
|
|
11670
|
-
title:
|
|
11674
|
+
title: _.title,
|
|
11671
11675
|
size: "small",
|
|
11672
|
-
collapsible:
|
|
11673
|
-
"default-collapsed":
|
|
11676
|
+
collapsible: _.collapsible,
|
|
11677
|
+
"default-collapsed": _.defaultCollapsed
|
|
11674
11678
|
}, nt({
|
|
11675
11679
|
default: Y(() => [
|
|
11676
|
-
|
|
11680
|
+
_.loading ? ($(), z(R, {
|
|
11677
11681
|
key: 0,
|
|
11678
11682
|
class: "w-full"
|
|
11679
11683
|
})) : ($(), z(T(dc), {
|
|
@@ -11682,18 +11686,18 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11682
11686
|
ref: i,
|
|
11683
11687
|
type: "editable-card",
|
|
11684
11688
|
activeKey: n.value,
|
|
11685
|
-
"onUpdate:activeKey":
|
|
11689
|
+
"onUpdate:activeKey": b[1] || (b[1] = (O) => n.value = O),
|
|
11686
11690
|
"hide-add": "",
|
|
11687
11691
|
onChange: w
|
|
11688
11692
|
}, {
|
|
11689
11693
|
rightExtra: Y(() => [
|
|
11690
|
-
bt(
|
|
11691
|
-
|
|
11694
|
+
bt(_.$slots, "rightExtra", {}, () => [
|
|
11695
|
+
_.showAdd && o.value.length < u.value ? ($(), z(T(ge), {
|
|
11692
11696
|
key: 0,
|
|
11693
11697
|
type: "link",
|
|
11694
|
-
onClick:
|
|
11698
|
+
onClick: b[0] || (b[0] = (O) => f(o.value.length))
|
|
11695
11699
|
}, {
|
|
11696
|
-
default: Y(() =>
|
|
11700
|
+
default: Y(() => b[2] || (b[2] = [
|
|
11697
11701
|
_e(" + 新增 ", -1)
|
|
11698
11702
|
])),
|
|
11699
11703
|
_: 1,
|
|
@@ -11704,13 +11708,13 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11704
11708
|
default: Y(() => [
|
|
11705
11709
|
($(!0), q(ne, null, le(o.value, (O, p) => ($(), z(T(uc), {
|
|
11706
11710
|
key: p,
|
|
11707
|
-
tab:
|
|
11711
|
+
tab: C(O, p),
|
|
11708
11712
|
"force-render": g.value
|
|
11709
11713
|
}, {
|
|
11710
11714
|
closeIcon: Y(() => {
|
|
11711
11715
|
var k;
|
|
11712
11716
|
return [
|
|
11713
|
-
|
|
11717
|
+
_.editAble && ((k = T(v)) != null && k.length) ? ($(), z(T(Eo), {
|
|
11714
11718
|
key: 0,
|
|
11715
11719
|
"get-popup-container": x
|
|
11716
11720
|
}, {
|
|
@@ -11750,7 +11754,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11750
11754
|
ref: h,
|
|
11751
11755
|
key: p,
|
|
11752
11756
|
source: O,
|
|
11753
|
-
"get-form-setting":
|
|
11757
|
+
"get-form-setting": _.getFormSetting,
|
|
11754
11758
|
onFocusCapture: (k) => T(S)(p),
|
|
11755
11759
|
onClickCapture: (k) => T(S)(p)
|
|
11756
11760
|
}, null, 8, ["source", "get-form-setting", "onFocusCapture", "onClickCapture"]))
|
|
@@ -11766,7 +11770,7 @@ const z_ = /* @__PURE__ */ fe((r, {
|
|
|
11766
11770
|
le(B.value, (O) => ({
|
|
11767
11771
|
name: O.target,
|
|
11768
11772
|
fn: Y(() => [
|
|
11769
|
-
bt(
|
|
11773
|
+
bt(_.$slots, O.original)
|
|
11770
11774
|
])
|
|
11771
11775
|
}))
|
|
11772
11776
|
]), 1032, ["title", "collapsible", "default-collapsed"]);
|