bp-aicc-editor 1.2.531 → 1.2.534
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/lib/{ScreenPreview-B5hb_Ab0.js → ScreenPreview-DyuXV3Fe.js} +12 -13
- package/lib/{atlas-DiNmNFXG.js → atlas-72a9MW3Q.js} +86 -86
- package/lib/{button-base-BzLHHlQI.js → button-base-D5dx1TSg.js} +1 -1
- package/lib/{config-provider-BTqYx_ln.js → config-provider-CeNinumG.js} +3 -3
- package/lib/{container-group-BQUovUzA.js → container-group-Ln14yyvZ.js} +1 -1
- package/lib/{copy-DIQqr93L.js → copy-Bhmf_UCm.js} +1 -1
- package/lib/{datav-Cfubg4bw.js → datav-WwVVRNdH.js} +37 -38
- package/lib/{delete-1rVRMIUh.js → delete-CE8yZysH.js} +1 -1
- package/lib/{divider-CkcziCO9.js → divider-CiZvDmuv.js} +1 -1
- package/lib/{dropdown-vYLJTSU-.js → dropdown-DQ_rB4fU.js} +1 -1
- package/lib/{edit-CnXz8I8A.js → edit-CGZ_f_lr.js} +1 -1
- package/lib/{el-form-item-CgbRceQF.js → el-form-item-BNRgil_Z.js} +91 -91
- package/lib/{el-link-BecQJB50.js → el-link-BaG8kAnZ.js} +3 -3
- package/lib/{el-loading-CUOEJDIx.js → el-loading-BCrkAc5-.js} +25 -25
- package/lib/{fullscreen-Dt8ug8Cm.js → fullscreen-wa2HuLvI.js} +1 -1
- package/lib/{image-C8I5vsAi.js → image-DlrjD1DH.js} +1 -1
- package/lib/{index-D2t5MWS3.js → index--cHzZbdp.js} +2 -2
- package/lib/{index-fr2IVrdU.js → index-5yxJCkkQ.js} +3 -3
- package/lib/{index-DDMYmIzj.js → index-AtdUKOkL.js} +5 -5
- package/lib/{index-D9uKr5lH.js → index-B7DBBH9o.js} +24 -24
- package/lib/{index-BeGavc6F.js → index-BE4dJ77v.js} +90 -90
- package/lib/{index-B04QbF2y.js → index-BTkhheAB.js} +45 -45
- package/lib/{index-AlZU9FJo.js → index-BUkhClZ4.js} +2 -2
- package/lib/{index-CTyqt-r8.js → index-BZmimTYh.js} +8 -8
- package/lib/{index-Mv2_jSdU.js → index-Bbz2NfWO.js} +5 -5
- package/lib/{index-Da9BqzmG.js → index-Bir6ct31.js} +130 -130
- package/lib/{index-Cxdk7-XH.js → index-Bn5CIBPW.js} +3 -3
- package/lib/{index-9fK7Afre.js → index-Bp2zRiXe.js} +10 -10
- package/lib/{index-klNrkd6b.js → index-BpY5QJb6.js} +94 -94
- package/lib/index-C1EmQ4vZ.js +523 -0
- package/lib/{index-DYBbkUeC.js → index-CBFbZCCu.js} +11 -12
- package/lib/{index-Dxyw7tuq.js → index-CRHownMo.js} +31 -31
- package/lib/{index-BMuNDo9k.js → index-CYE28Jz2.js} +10 -10
- package/lib/{index-CfrPVKvH.js → index-CarewwBi.js} +2 -2
- package/lib/{index-C5XB0POJ.js → index-CbxaxfWo.js} +2 -2
- package/lib/{index-CF7aJSkX.js → index-Cclcf0x7.js} +55 -55
- package/lib/{index-BDGE3zOy.js → index-Cd90WcDn.js} +1 -1
- package/lib/{index-CcpvyXLh.js → index-CiADfZ7m.js} +74 -75
- package/lib/{index-B27bX7GN.js → index-Clb4872q.js} +1 -1
- package/lib/{index-Bb50ylDE.js → index-ClwPLACj.js} +1 -1
- package/lib/{index-DNsQpj6g.js → index-CntTjPuy.js} +4 -4
- package/lib/{index-BdHiIJ6d.js → index-CoyKXtA1.js} +5 -5
- package/lib/{index-Dt_aqbpU.js → index-CvUPTwHN.js} +24 -24
- package/lib/index-Cvt2o1tr.js +154 -0
- package/lib/{index-BjMOOEwi.js → index-D0joMRIS.js} +5 -5
- package/lib/{index-DxzD_dRC.js → index-D9mjjUFb.js} +14 -14
- package/lib/{index-AUiNOT8J.js → index-DM0nqV-u.js} +52 -52
- package/lib/{index-DahYYA6-.js → index-DNuoN64K.js} +1 -1
- package/lib/{index-Bc6eaQIV.js → index-DZDlslk7.js} +2 -2
- package/lib/index-Dedh5wu5.js +998 -0
- package/lib/{index-38BWHU31.js → index-DorSxXxR.js} +89 -89
- package/lib/{index-ApQFJFkJ.js → index-DvEzCF87.js} +2 -2
- package/lib/{index-D1nJmtcW.js → index-DwMdiPAW.js} +75 -75
- package/lib/{index-BwGSo2Ka.js → index-DyHZedMb.js} +2 -2
- package/lib/{index-ZXj-Jg7J.js → index-HQm-WFXa.js} +1 -1
- package/lib/{index-BCXmlpXx.js → index-IKDR_UfD.js} +1 -1
- package/lib/{index-dpdmGgby.js → index-JEyXiivB.js} +30 -30
- package/lib/{index-PE2_NK3d.js → index-NYoawnOg.js} +78 -78
- package/lib/index-NruDo1kX.js +31872 -0
- package/lib/{index-DR_dUR-O.js → index-_pjQHx63.js} +24 -24
- package/lib/{index-D52iuZaK.js → index-ag4Jirad.js} +16 -16
- package/lib/{index-C3KQY3yp.js → index-eYOE8PdC.js} +2 -2
- package/lib/index-jH_64ze8.js +1828 -0
- package/lib/{index-BWo60ut7.js → index-kFSYPLll.js} +11 -11
- package/lib/{index-CiMXmaW7.js → index-kwc8n6U_.js} +53 -53
- package/lib/{index-Df7YLI2q.js → index-lvmbcrFa.js} +108 -108
- package/lib/index.es.js +1 -1
- package/lib/index.umd.js +49 -42
- package/lib/{layer-setting-panel-BO1TB6L-.js → layer-setting-panel-B3INmamy.js} +2 -2
- package/lib/{line-show-B1V6-BrC.js → line-show-FvOrjd4e.js} +1 -1
- package/lib/{multi-layout-config-CNneYzCX.js → multi-layout-config-D5Jsj9Qs.js} +1 -1
- package/lib/{multiline-text-DFbZsLr3.js → multiline-text-ueduRw4p.js} +9 -4
- package/lib/{navigation-Da25bSt3.js → navigation-ChWz9zQO.js} +1 -1
- package/lib/{page-config-BJKxfwzP.js → page-config-0Fn2Zarb.js} +104 -86
- package/lib/{page-tabs-BnenKcSK.js → page-tabs-BxEZI8H5.js} +17 -17
- package/lib/{plus-BCgialg9.js → plus-BU04jj99.js} +1 -1
- package/lib/{raf-DiDB_51H.js → raf-C-Dteqzl.js} +1 -1
- package/lib/{requestOld-C1UOAtSO.js → requestOld-yfYXfqTx.js} +3 -3
- package/lib/{schema-C-AkuLIm.js → schema--1GaD3Hc.js} +1 -1
- package/lib/schema-8ua0zSPH.js +477 -0
- package/lib/{schema-Bo6rWOc2.js → schema-CE_CtuVq.js} +1 -1
- package/lib/{schema-azYYN-gl.js → schema-DZwMMHDn.js} +1 -1
- package/lib/{schema-CYB1keoZ.js → schema-VhDUZXHG.js} +25 -25
- package/lib/{schema-BYHwNOUT.js → schema-kRQ0HyCE.js} +25 -0
- package/lib/{schema-dJbdT7gn.js → schema-x3vZCpCc.js} +1 -1
- package/lib/{scroll-C6Ta4g5g.js → scroll-DAnL_1AK.js} +1 -1
- package/lib/select-all-B35Q-kSQ.js +34 -0
- package/lib/{setting-panel-BRCCr_o5.js → setting-panel-BTyvnmHU.js} +103 -104
- package/lib/{show-8QqXQerW.js → show-DqmqR02x.js} +1 -1
- package/lib/{stepper-DFYougb_.js → stepper-13NvKxqk.js} +1 -1
- package/lib/strings-Mnc2dNT1.js +6 -0
- package/lib/style.css +1 -1
- package/lib/{switch-BP4P74C5.js → switch-a7mGs56D.js} +21 -17
- package/lib/{toolbar-Dhf_BVAU.js → toolbar-Bg8J941F.js} +1 -1
- package/lib/{unlock-CqZj13e0.js → unlock-CxmKx1E_.js} +1 -1
- package/lib/use-common-defs-CBnk0k-_.js +6 -0
- package/lib/{use-env-url-drEPV0sp.js → use-env-url-d9Z0ev4W.js} +1 -1
- package/lib/{use-global-config-B18s1Lg0.js → use-global-config-D8WF2yJv.js} +12 -12
- package/lib/{validator-CfTmg5Mr.js → validator-CaVf2B4v.js} +1 -1
- package/lib/{vnode-BhDXi7UB.js → vnode-UiM7brj_.js} +1 -1
- package/package.json +1 -1
- package/lib/cache-C8gAGpzu.js +0 -42
- package/lib/index-0FXfN_W3.js +0 -705
- package/lib/index-BhCtWQXQ.js +0 -1773
- package/lib/index-Dh5E5f-9.js +0 -147
- package/lib/index-FjkV5ENo.js +0 -441
- package/lib/index-gYF8PSol.js +0 -27291
- package/lib/schema-BPmcYF_B.js +0 -395
- package/lib/strings-Ce9pW_WB.js +0 -6
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { w as d, s, l as F, u as D, a as p, _ as m } from "./index-
|
|
1
|
+
import { w as d, d as i, s as E, l as F, u as D, a as p, _ as m } from "./index-NruDo1kX.js";
|
|
2
2
|
import { defineComponent as C, provide as B, onMounted as h, resolveComponent as f, createBlock as g, openBlock as b, withCtx as A, createElementVNode as n, createVNode as _ } from "vue";
|
|
3
|
-
import {
|
|
4
|
-
import { C as v } from "./config-provider-BTqYx_ln.js";
|
|
3
|
+
import { C as v } from "./config-provider-CeNinumG.js";
|
|
5
4
|
const l = d(v);
|
|
6
5
|
var y = {
|
|
7
6
|
name: "zh-cn",
|
|
@@ -212,13 +211,13 @@ const w = i("debug", {
|
|
|
212
211
|
this.debug = !1;
|
|
213
212
|
},
|
|
214
213
|
async setOrigin(u, e, t) {
|
|
215
|
-
this.debug &&
|
|
214
|
+
this.debug && E(this.originMap, `${u}.${e}`, t);
|
|
216
215
|
},
|
|
217
216
|
async setFieldStatus(u, e, t) {
|
|
218
|
-
this.debug &&
|
|
217
|
+
this.debug && E(this.fieldStatusMap, `${u}.${e}`, t);
|
|
219
218
|
},
|
|
220
219
|
async setDataStatus(u, e, t, r) {
|
|
221
|
-
this.debug &&
|
|
220
|
+
this.debug && E(this.dataStatusMap, `${u}.${e}.${t}`, r);
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
223
|
}), S = i("filter", {
|
|
@@ -244,7 +243,7 @@ function x(u, e) {
|
|
|
244
243
|
const M = C({
|
|
245
244
|
name: "ScreenPreview",
|
|
246
245
|
components: {
|
|
247
|
-
CanvasMain: F(() => import("./index-
|
|
246
|
+
CanvasMain: F(() => import("./index-lvmbcrFa.js")),
|
|
248
247
|
ElConfigProvider: l
|
|
249
248
|
},
|
|
250
249
|
props: {
|
|
@@ -256,7 +255,7 @@ const M = C({
|
|
|
256
255
|
},
|
|
257
256
|
emits: ["componentClick"],
|
|
258
257
|
setup(u, { emit: e }) {
|
|
259
|
-
const t = S(), r = w(), a = D(),
|
|
258
|
+
const t = S(), r = w(), a = D(), s = p();
|
|
260
259
|
return r.enable(), a.setEditMode(!1), B("COMPONENT_CLICK", (o) => {
|
|
261
260
|
e("componentClick", o);
|
|
262
261
|
}), h(async () => {
|
|
@@ -266,8 +265,8 @@ const M = C({
|
|
|
266
265
|
await Promise.all([
|
|
267
266
|
a.loadScreen(u.screenData),
|
|
268
267
|
t.loadFilters(),
|
|
269
|
-
|
|
270
|
-
|
|
268
|
+
s.requestCom(u.screenData),
|
|
269
|
+
s.requestCollectComs(u.screenData)
|
|
271
270
|
]);
|
|
272
271
|
} catch (o) {
|
|
273
272
|
x("editor", o);
|
|
@@ -285,7 +284,7 @@ const M = C({
|
|
|
285
284
|
id: "iking-editor-main",
|
|
286
285
|
class: "g-layout edit-main"
|
|
287
286
|
};
|
|
288
|
-
function j(u, e, t, r, a,
|
|
287
|
+
function j(u, e, t, r, a, s) {
|
|
289
288
|
const o = f("CanvasMain"), c = l;
|
|
290
289
|
return b(), g(c, { locale: u.zhCn }, {
|
|
291
290
|
default: A(() => [
|
|
@@ -304,7 +303,7 @@ function j(u, e, t, r, a, E) {
|
|
|
304
303
|
_: 1
|
|
305
304
|
}, 8, ["locale"]);
|
|
306
305
|
}
|
|
307
|
-
const O = /* @__PURE__ */ m(M, [["render", j], ["__scopeId", "data-v-ea84de8d"]]),
|
|
306
|
+
const O = /* @__PURE__ */ m(M, [["render", j], ["__scopeId", "data-v-ea84de8d"]]), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
308
307
|
__proto__: null,
|
|
309
308
|
default: O
|
|
310
309
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -312,7 +311,7 @@ export {
|
|
|
312
311
|
l as E,
|
|
313
312
|
O as S,
|
|
314
313
|
w as a,
|
|
315
|
-
|
|
314
|
+
q as b,
|
|
316
315
|
S as u,
|
|
317
316
|
x as w,
|
|
318
317
|
y as z
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isVNode as Xt, Comment as Gt, Fragment as
|
|
2
|
-
import { E as Jt } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
import { g as ol } from "./use-global-config-
|
|
5
|
-
import { a as on, E as Ve } from "./index-
|
|
6
|
-
import { r as an } from "./raf-
|
|
7
|
-
import { s as rn } from "./requestOld-
|
|
1
|
+
import { isVNode as Xt, Comment as Gt, Fragment as ze, createVNode as ge, render as kt, getCurrentInstance as ue, ref as E, unref as ae, computed as D, watch as ie, toRefs as Il, nextTick as Pe, isRef as zl, defineComponent as Oe, resolveComponent as ce, createBlock as ke, openBlock as J, withCtx as Ne, createElementVNode as se, normalizeClass as U, renderSlot as Fe, createElementBlock as fe, renderList as Mt, createTextVNode as St, toDisplayString as He, onBeforeMount as Qt, onMounted as je, onUpdated as _l, onUnmounted as xt, inject as Ce, h as P, reactive as Dl, onBeforeUnmount as Et, watchEffect as ct, resolveDirective as Vl, normalizeStyle as Be, withDirectives as st, createCommentVNode as Ee, vShow as At, provide as jl } from "vue";
|
|
2
|
+
import { E as Jt } from "./index-JEyXiivB.js";
|
|
3
|
+
import { bm as Me, aW as xe, j as Ae, W as ve, aB as he, S as de, bX as Ue, o as Zt, n as el, am as Ul, al as Le, bY as tl, k as tt, aN as $t, aj as ll, i as ye, v as at, ag as lt, R as _e, h as Rt, b2 as Yl, bZ as ql, as as Xl, E as Nt, aX as Ie, N as Gl, O as Re, bU as Xe, aJ as De, V as Ql, aL as nt, C as Pt, b8 as Kt, au as Jl, a7 as Zl, H as nl, aU as en, a6 as tn, w as ln, ao as nn } from "./index-NruDo1kX.js";
|
|
4
|
+
import { g as ol } from "./use-global-config-D8WF2yJv.js";
|
|
5
|
+
import { a as on, E as Ve } from "./index-DwMdiPAW.js";
|
|
6
|
+
import { r as an } from "./raf-C-Dteqzl.js";
|
|
7
|
+
import { s as rn } from "./requestOld-yfYXfqTx.js";
|
|
8
8
|
const it = function(e) {
|
|
9
9
|
var t;
|
|
10
10
|
return (t = e.target) == null ? void 0 : t.closest("td");
|
|
@@ -224,7 +224,7 @@ function pn(e, t, n, l, r, i) {
|
|
|
224
224
|
function sl(e) {
|
|
225
225
|
return e.children ? tl(e.children, sl) : [e];
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function It(e, t) {
|
|
228
228
|
return e + t.colSpan;
|
|
229
229
|
}
|
|
230
230
|
const il = (e, t, n, l) => {
|
|
@@ -232,7 +232,7 @@ const il = (e, t, n, l) => {
|
|
|
232
232
|
const f = n.states.columns.value;
|
|
233
233
|
if (l) {
|
|
234
234
|
const s = sl(l[e]);
|
|
235
|
-
r = f.slice(0, f.indexOf(s[0])).reduce(
|
|
235
|
+
r = f.slice(0, f.indexOf(s[0])).reduce(It, 0), i = r + s.reduce(It, 0) - 1;
|
|
236
236
|
} else
|
|
237
237
|
r = e;
|
|
238
238
|
let o;
|
|
@@ -264,7 +264,7 @@ const il = (e, t, n, l) => {
|
|
|
264
264
|
}
|
|
265
265
|
return f;
|
|
266
266
|
};
|
|
267
|
-
function
|
|
267
|
+
function zt(e, t) {
|
|
268
268
|
return e + (Ue(t.realWidth) || Number.isNaN(t.realWidth) ? Number(t.width) : t.realWidth);
|
|
269
269
|
}
|
|
270
270
|
const Ft = (e, t, n, l) => {
|
|
@@ -276,12 +276,12 @@ const Ft = (e, t, n, l) => {
|
|
|
276
276
|
if (!r)
|
|
277
277
|
return;
|
|
278
278
|
const o = {}, s = r === "left", a = n.states.columns.value;
|
|
279
|
-
return s ? o.left = a.slice(0, i).reduce(
|
|
279
|
+
return s ? o.left = a.slice(0, i).reduce(zt, 0) : o.right = a.slice(f + 1).reverse().reduce(zt, 0), o;
|
|
280
280
|
}, Ke = (e, t) => {
|
|
281
281
|
e && (Number.isNaN(e[t]) || (e[t] = `${e[t]}px`));
|
|
282
282
|
};
|
|
283
283
|
function ul(e) {
|
|
284
|
-
return e.some((t) => Xt(t) ? !(t.type === Gt || t.type ===
|
|
284
|
+
return e.some((t) => Xt(t) ? !(t.type === Gt || t.type === ze && !ul(t.children)) : !0) ? e : null;
|
|
285
285
|
}
|
|
286
286
|
function mn(e) {
|
|
287
287
|
const t = ue(), n = E(!1), l = E([]);
|
|
@@ -411,37 +411,37 @@ function yn(e) {
|
|
|
411
411
|
v || (v = (w = a.store) == null ? void 0 : w.states.defaultExpandAll.value);
|
|
412
412
|
const y = u.value, x = d.value, R = Object.keys(y), H = {};
|
|
413
413
|
if (R.length) {
|
|
414
|
-
const k = ae(n), $ = [], M = (
|
|
414
|
+
const k = ae(n), $ = [], M = (z, L) => {
|
|
415
415
|
if (c)
|
|
416
|
-
return t.value ? v || t.value.includes(L) : !!(v ||
|
|
416
|
+
return t.value ? v || t.value.includes(L) : !!(v || z?.expanded);
|
|
417
417
|
{
|
|
418
418
|
const W = v || t.value && t.value.includes(L);
|
|
419
|
-
return !!(
|
|
419
|
+
return !!(z?.expanded || W);
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
R.forEach((
|
|
423
|
-
const L = k[
|
|
424
|
-
if (W.expanded = M(L,
|
|
422
|
+
R.forEach((z) => {
|
|
423
|
+
const L = k[z], W = { ...y[z] };
|
|
424
|
+
if (W.expanded = M(L, z), W.lazy) {
|
|
425
425
|
const { loaded: A = !1, loading: T = !1 } = L || {};
|
|
426
|
-
W.loaded = !!A, W.loading = !!T, $.push(
|
|
426
|
+
W.loaded = !!A, W.loading = !!T, $.push(z);
|
|
427
427
|
}
|
|
428
|
-
H[
|
|
428
|
+
H[z] = W;
|
|
429
429
|
});
|
|
430
430
|
const X = Object.keys(x);
|
|
431
|
-
r.value && X.length && $.length && X.forEach((
|
|
431
|
+
r.value && X.length && $.length && X.forEach((z) => {
|
|
432
432
|
var L;
|
|
433
|
-
const W = k[
|
|
434
|
-
if ($.includes(
|
|
435
|
-
if (((L = H[
|
|
433
|
+
const W = k[z], A = x[z].children;
|
|
434
|
+
if ($.includes(z)) {
|
|
435
|
+
if (((L = H[z].children) == null ? void 0 : L.length) !== 0)
|
|
436
436
|
throw new Error("[ElTable]children must be an empty array.");
|
|
437
|
-
H[
|
|
437
|
+
H[z].children = A;
|
|
438
438
|
} else {
|
|
439
|
-
const { loaded: T = !1, loading:
|
|
440
|
-
H[
|
|
439
|
+
const { loaded: T = !1, loading: I = !1 } = W || {};
|
|
440
|
+
H[z] = {
|
|
441
441
|
lazy: !0,
|
|
442
442
|
loaded: !!T,
|
|
443
|
-
loading: !!
|
|
444
|
-
expanded: M(W,
|
|
443
|
+
loading: !!I,
|
|
444
|
+
expanded: M(W, z),
|
|
445
445
|
children: A,
|
|
446
446
|
level: void 0
|
|
447
447
|
};
|
|
@@ -531,7 +531,7 @@ const bn = (e, t) => {
|
|
|
531
531
|
};
|
|
532
532
|
function Cn() {
|
|
533
533
|
var e;
|
|
534
|
-
const t = ue(), { size: n } =
|
|
534
|
+
const t = ue(), { size: n } = Il((e = t.proxy) == null ? void 0 : e.$props), l = E(null), r = E([]), i = E([]), f = E(!1), o = E([]), s = E([]), a = E([]), u = E([]), d = E([]), m = E([]), h = E([]), p = E([]), b = [], C = E(0), O = E(0), N = E(0), S = E(!1), c = E([]), v = E(!1), w = E(!1), g = E(null), y = E({}), x = E(null), R = E(null), H = E(null), k = E(null), $ = E(null), M = D(() => l.value ? $e(c.value, l.value) : void 0);
|
|
535
535
|
ie(
|
|
536
536
|
r,
|
|
537
537
|
() => {
|
|
@@ -545,14 +545,14 @@ function Cn() {
|
|
|
545
545
|
const X = () => {
|
|
546
546
|
if (!l.value)
|
|
547
547
|
throw new Error("[ElTable] prop row-key is required");
|
|
548
|
-
},
|
|
548
|
+
}, z = (F) => {
|
|
549
549
|
var K;
|
|
550
550
|
(K = F.children) == null || K.forEach((_) => {
|
|
551
|
-
_.fixed = F.fixed,
|
|
551
|
+
_.fixed = F.fixed, z(_);
|
|
552
552
|
});
|
|
553
553
|
}, L = () => {
|
|
554
554
|
o.value.forEach((q) => {
|
|
555
|
-
|
|
555
|
+
z(q);
|
|
556
556
|
}), u.value = o.value.filter(
|
|
557
557
|
(q) => [!0, "left"].includes(q.fixed)
|
|
558
558
|
);
|
|
@@ -575,7 +575,7 @@ function Cn() {
|
|
|
575
575
|
S.value = !1;
|
|
576
576
|
const F = c.value;
|
|
577
577
|
c.value = [], F.length && t.emit("selection-change", []);
|
|
578
|
-
},
|
|
578
|
+
}, I = () => {
|
|
579
579
|
var F, K;
|
|
580
580
|
let _;
|
|
581
581
|
if (l.value) {
|
|
@@ -768,7 +768,7 @@ function Cn() {
|
|
|
768
768
|
scheduleLayout: W,
|
|
769
769
|
isSelected: A,
|
|
770
770
|
clearSelection: T,
|
|
771
|
-
cleanSelection:
|
|
771
|
+
cleanSelection: I,
|
|
772
772
|
getSelectionRows: Y,
|
|
773
773
|
toggleRowSelection: Z,
|
|
774
774
|
_toggleAllSelection: Q,
|
|
@@ -991,7 +991,7 @@ class En {
|
|
|
991
991
|
constructor(t) {
|
|
992
992
|
this.observers = [], this.table = null, this.store = null, this.columns = [], this.fit = !0, this.showHeader = !0, this.height = E(null), this.scrollX = E(!1), this.scrollY = E(!1), this.bodyWidth = E(null), this.fixedWidth = E(null), this.rightFixedWidth = E(null), this.gutterWidth = 0;
|
|
993
993
|
for (const n in t)
|
|
994
|
-
Me(t, n) && (
|
|
994
|
+
Me(t, n) && (zl(this[n]) ? this[n].value = t[n] : this[n] = t[n]);
|
|
995
995
|
if (!this.table)
|
|
996
996
|
throw new Error("Table is required for Table Layout");
|
|
997
997
|
if (!this.store)
|
|
@@ -1160,7 +1160,7 @@ const Rn = Oe({
|
|
|
1160
1160
|
return (((g = e.column) == null ? void 0 : g.filteredValue) || [])[0];
|
|
1161
1161
|
},
|
|
1162
1162
|
set: (g) => {
|
|
1163
|
-
d.value && (
|
|
1163
|
+
d.value && (Ie(g) ? d.value.splice(0, 1) : d.value.splice(0, 1, g));
|
|
1164
1164
|
}
|
|
1165
1165
|
}), d = D({
|
|
1166
1166
|
get() {
|
|
@@ -1178,7 +1178,7 @@ const Rn = Oe({
|
|
|
1178
1178
|
}, C = () => {
|
|
1179
1179
|
d.value = [], N(d.value), p();
|
|
1180
1180
|
}, O = (g, y) => {
|
|
1181
|
-
u.value = g, o.value = y,
|
|
1181
|
+
u.value = g, o.value = y, Ie(g) ? N([]) : N(d.value), p();
|
|
1182
1182
|
}, N = (g) => {
|
|
1183
1183
|
var y, x;
|
|
1184
1184
|
(y = e.store) == null || y.commit("filterChange", {
|
|
@@ -1192,7 +1192,7 @@ const Rn = Oe({
|
|
|
1192
1192
|
var g;
|
|
1193
1193
|
e.column && ((g = e.upDataColumn) == null || g.call(e, "filterOpened", !1));
|
|
1194
1194
|
}, v = () => {
|
|
1195
|
-
if (
|
|
1195
|
+
if (Ie(u)) {
|
|
1196
1196
|
o.value = 0;
|
|
1197
1197
|
return;
|
|
1198
1198
|
}
|
|
@@ -1208,7 +1208,7 @@ const Rn = Oe({
|
|
|
1208
1208
|
handleConfirm: b,
|
|
1209
1209
|
handleReset: C,
|
|
1210
1210
|
handleSelect: O,
|
|
1211
|
-
isPropAbsent:
|
|
1211
|
+
isPropAbsent: Ie,
|
|
1212
1212
|
isActive: h,
|
|
1213
1213
|
t: n,
|
|
1214
1214
|
ns: l,
|
|
@@ -1299,7 +1299,7 @@ function On(e, t, n, l, r, i) {
|
|
|
1299
1299
|
}, {
|
|
1300
1300
|
default: Ne(() => [
|
|
1301
1301
|
(J(!0), fe(
|
|
1302
|
-
|
|
1302
|
+
ze,
|
|
1303
1303
|
null,
|
|
1304
1304
|
Mt(e.filters, (h) => (J(), ke(f, {
|
|
1305
1305
|
key: h.value,
|
|
@@ -1372,7 +1372,7 @@ function On(e, t, n, l, r, i) {
|
|
|
1372
1372
|
onClick: t[3] || (t[3] = (h) => e.handleSelect(null, 0))
|
|
1373
1373
|
}, He(e.t("el.table.clearFilter")), 11, Ln),
|
|
1374
1374
|
(J(!0), fe(
|
|
1375
|
-
|
|
1375
|
+
ze,
|
|
1376
1376
|
null,
|
|
1377
1377
|
Mt(e.filters, (h, p) => (J(), fe("li", {
|
|
1378
1378
|
key: h.value,
|
|
@@ -1981,8 +1981,8 @@ function $n(e) {
|
|
|
1981
1981
|
return;
|
|
1982
1982
|
const X = document.createRange();
|
|
1983
1983
|
X.setStart(M, 0), X.setEnd(M, M.childNodes.length);
|
|
1984
|
-
const { width:
|
|
1985
|
-
ut(
|
|
1984
|
+
const { width: z, height: L } = X.getBoundingClientRect(), { width: W, height: A } = M.getBoundingClientRect(), { top: T, left: I, right: Y, bottom: Z } = u(M), Q = I + Y, ne = T + Z;
|
|
1985
|
+
ut(z + Q, W) || ut(L + ne, A) || ut(M.scrollWidth, W) ? pn(
|
|
1986
1986
|
C,
|
|
1987
1987
|
(g = H?.innerText || H?.textContent) != null ? g : "",
|
|
1988
1988
|
b,
|
|
@@ -2111,8 +2111,8 @@ const Kn = ["colspan", "rowspan"], Bn = Oe({
|
|
|
2111
2111
|
], 8, Kn));
|
|
2112
2112
|
}
|
|
2113
2113
|
});
|
|
2114
|
-
var
|
|
2115
|
-
function
|
|
2114
|
+
var In = /* @__PURE__ */ Rt(Bn, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/table/src/table-body/td-wrapper.vue"]]);
|
|
2115
|
+
function zn(e) {
|
|
2116
2116
|
const t = Ce(be), n = ye("table"), {
|
|
2117
2117
|
handleDoubleClick: l,
|
|
2118
2118
|
handleClick: r,
|
|
@@ -2142,7 +2142,7 @@ function In(e) {
|
|
|
2142
2142
|
const H = (R = t?.props) == null ? void 0 : R.rowKey;
|
|
2143
2143
|
return H ? te(y, H) : x;
|
|
2144
2144
|
}, v = (y, x, R, H = !1) => {
|
|
2145
|
-
const { tooltipEffect: k, tooltipOptions: $, store: M } = e, { indent: X, columns:
|
|
2145
|
+
const { tooltipEffect: k, tooltipOptions: $, store: M } = e, { indent: X, columns: z } = M.states, L = [];
|
|
2146
2146
|
let W = !0;
|
|
2147
2147
|
return R && (L.push(n.em("row", `level-${R.level}`)), W = !!R.display), x === 0 && (N = -1), e.stripe && W && N++, L.push(...h(y, x, N)), P(
|
|
2148
2148
|
"tr",
|
|
@@ -2156,15 +2156,15 @@ function In(e) {
|
|
|
2156
2156
|
onMouseenter: () => f(x),
|
|
2157
2157
|
onMouseleave: o
|
|
2158
2158
|
},
|
|
2159
|
-
|
|
2160
|
-
const { rowspan: Y, colspan: Z } = C(y, T, x,
|
|
2159
|
+
z.value.map((T, I) => {
|
|
2160
|
+
const { rowspan: Y, colspan: Z } = C(y, T, x, I);
|
|
2161
2161
|
if (!Y || !Z)
|
|
2162
2162
|
return null;
|
|
2163
2163
|
const Q = Object.assign({}, T);
|
|
2164
2164
|
Q.realWidth = O(
|
|
2165
|
-
|
|
2165
|
+
z.value,
|
|
2166
2166
|
Z,
|
|
2167
|
-
|
|
2167
|
+
I
|
|
2168
2168
|
);
|
|
2169
2169
|
const ne = {
|
|
2170
2170
|
store: M,
|
|
@@ -2172,14 +2172,14 @@ function In(e) {
|
|
|
2172
2172
|
column: Q,
|
|
2173
2173
|
row: y,
|
|
2174
2174
|
$index: x,
|
|
2175
|
-
cellIndex:
|
|
2175
|
+
cellIndex: I,
|
|
2176
2176
|
expanded: H
|
|
2177
2177
|
};
|
|
2178
|
-
|
|
2178
|
+
I === S.value && R && (ne.treeNode = {
|
|
2179
2179
|
indent: R.level && R.level * X.value,
|
|
2180
2180
|
level: R.level
|
|
2181
2181
|
}, Le(R.expanded) && (ne.treeNode.expanded = R.expanded, "loading" in R && (ne.treeNode.loading = R.loading), "noLazyChildren" in R && (ne.treeNode.noLazyChildren = R.noLazyChildren)));
|
|
2182
|
-
const G = `${c(y, x)},${
|
|
2182
|
+
const G = `${c(y, x)},${I}`, pe = Q.columnKey || Q.rawColumnKey || "", oe = T.showOverflowTooltip && Zt(
|
|
2183
2183
|
{
|
|
2184
2184
|
effect: k
|
|
2185
2185
|
},
|
|
@@ -2187,10 +2187,10 @@ function In(e) {
|
|
|
2187
2187
|
T.showOverflowTooltip
|
|
2188
2188
|
);
|
|
2189
2189
|
return P(
|
|
2190
|
-
|
|
2190
|
+
In,
|
|
2191
2191
|
{
|
|
2192
|
-
style: p(x,
|
|
2193
|
-
class: b(x,
|
|
2192
|
+
style: p(x, I, y, T),
|
|
2193
|
+
class: b(x, I, y, T, Z - 1),
|
|
2194
2194
|
key: `${pe}${G}`,
|
|
2195
2195
|
rowspan: Y,
|
|
2196
2196
|
colspan: Z,
|
|
@@ -2202,7 +2202,7 @@ function In(e) {
|
|
|
2202
2202
|
onMouseleave: a
|
|
2203
2203
|
},
|
|
2204
2204
|
{
|
|
2205
|
-
default: () => w(
|
|
2205
|
+
default: () => w(I, T, ne)
|
|
2206
2206
|
}
|
|
2207
2207
|
);
|
|
2208
2208
|
})
|
|
@@ -2210,10 +2210,10 @@ function In(e) {
|
|
|
2210
2210
|
}, w = (y, x, R) => x.renderCell(R);
|
|
2211
2211
|
return {
|
|
2212
2212
|
wrappedRowRender: (y, x) => {
|
|
2213
|
-
const R = e.store, { isRowExpanded: H, assertRowKey: k } = R, { treeData: $, lazyTreeNodeMap: M, childrenColumnName: X, rowKey:
|
|
2213
|
+
const R = e.store, { isRowExpanded: H, assertRowKey: k } = R, { treeData: $, lazyTreeNodeMap: M, childrenColumnName: X, rowKey: z } = R.states, L = R.states.columns.value;
|
|
2214
2214
|
if (L.some(({ type: A }) => A === "expand")) {
|
|
2215
|
-
const A = H(y), T = v(y, x, void 0, A),
|
|
2216
|
-
if (!
|
|
2215
|
+
const A = H(y), T = v(y, x, void 0, A), I = t?.renderExpanded;
|
|
2216
|
+
if (!I)
|
|
2217
2217
|
return console.error("[Element Error]renderExpanded is required."), T;
|
|
2218
2218
|
const Y = [[T]];
|
|
2219
2219
|
return (t.props.preserveExpandedContent || A) && Y[0].push(
|
|
@@ -2230,23 +2230,23 @@ function In(e) {
|
|
|
2230
2230
|
colspan: L.length,
|
|
2231
2231
|
class: `${n.e("cell")} ${n.e("expanded-cell")}`
|
|
2232
2232
|
},
|
|
2233
|
-
[
|
|
2233
|
+
[I({ row: y, $index: x, store: R, expanded: A })]
|
|
2234
2234
|
)
|
|
2235
2235
|
]
|
|
2236
2236
|
)
|
|
2237
2237
|
), Y;
|
|
2238
2238
|
} else if (Object.keys($.value).length) {
|
|
2239
2239
|
k();
|
|
2240
|
-
const A = te(y,
|
|
2241
|
-
let T = $.value[A],
|
|
2242
|
-
T && (
|
|
2240
|
+
const A = te(y, z.value);
|
|
2241
|
+
let T = $.value[A], I = null;
|
|
2242
|
+
T && (I = {
|
|
2243
2243
|
expanded: T.expanded,
|
|
2244
2244
|
level: T.level,
|
|
2245
2245
|
display: !0,
|
|
2246
2246
|
noLazyChildren: void 0,
|
|
2247
2247
|
loading: void 0
|
|
2248
|
-
}, Le(T.lazy) && (
|
|
2249
|
-
const Y = [v(y, x,
|
|
2248
|
+
}, Le(T.lazy) && (I && Le(T.loaded) && T.loaded && (I.noLazyChildren = !(T.children && T.children.length)), I.loading = T.loading));
|
|
2249
|
+
const Y = [v(y, x, I ?? void 0)];
|
|
2250
2250
|
if (T) {
|
|
2251
2251
|
let Z = 0;
|
|
2252
2252
|
const Q = (G, pe) => {
|
|
@@ -2257,8 +2257,8 @@ function In(e) {
|
|
|
2257
2257
|
expanded: !1,
|
|
2258
2258
|
noLazyChildren: !1,
|
|
2259
2259
|
loading: !1
|
|
2260
|
-
}, We = te(oe,
|
|
2261
|
-
if (
|
|
2260
|
+
}, We = te(oe, z.value);
|
|
2261
|
+
if (Ie(We))
|
|
2262
2262
|
throw new Error("For nested data item, row-key is required.");
|
|
2263
2263
|
if (T = { ...$.value[We] }, T && (me.expanded = T.expanded, T.level = T.level || me.level, T.display = !!(T.expanded && me.display), Le(T.lazy) && (Le(T.loaded) && T.loaded && (me.noLazyChildren = !(T.children && T.children.length)), me.loading = T.loading)), Z++, Y.push(v(oe, x + Z, me)), T) {
|
|
2264
2264
|
const rt = M.value[We] || oe[X.value];
|
|
@@ -2305,7 +2305,7 @@ var Dn = Oe({
|
|
|
2305
2305
|
props: _n,
|
|
2306
2306
|
setup(e) {
|
|
2307
2307
|
var t;
|
|
2308
|
-
const n = ue(), l = Ce(be), r = ye("table"), { wrappedRowRender: i, tooltipContent: f, tooltipTrigger: o } =
|
|
2308
|
+
const n = ue(), l = Ce(be), r = ye("table"), { wrappedRowRender: i, tooltipContent: f, tooltipTrigger: o } = zn(e), { onColumnsChange: s, onScrollableChange: a } = Wt(l), u = [];
|
|
2309
2309
|
return ie((t = e.store) == null ? void 0 : t.states.hoverRow, (d, m) => {
|
|
2310
2310
|
var h, p;
|
|
2311
2311
|
const b = n?.vnode.el, C = Array.from(b?.children || []).filter(
|
|
@@ -2622,8 +2622,8 @@ function qn(e, t, n, l) {
|
|
|
2622
2622
|
const L = l.refs.scrollBarRef.wrapRef;
|
|
2623
2623
|
if (!L)
|
|
2624
2624
|
return;
|
|
2625
|
-
const { scrollLeft: W, offsetWidth: A, scrollWidth: T } = L, { headerWrapper:
|
|
2626
|
-
|
|
2625
|
+
const { scrollLeft: W, offsetWidth: A, scrollWidth: T } = L, { headerWrapper: I, footerWrapper: Y } = l.refs;
|
|
2626
|
+
I && (I.scrollLeft = W), Y && (Y.scrollLeft = W);
|
|
2627
2627
|
const Z = T - A - 1;
|
|
2628
2628
|
W >= Z ? g("is-scrolling-right") : g(W === 0 ? "is-scrolling-left" : "is-scrolling-middle");
|
|
2629
2629
|
}, R = () => {
|
|
@@ -2640,17 +2640,17 @@ function qn(e, t, n, l) {
|
|
|
2640
2640
|
}));
|
|
2641
2641
|
}, H = () => {
|
|
2642
2642
|
var L, W, A, T;
|
|
2643
|
-
const
|
|
2644
|
-
if (!l.$ready || !
|
|
2643
|
+
const I = l.vnode.el;
|
|
2644
|
+
if (!l.$ready || !I)
|
|
2645
2645
|
return;
|
|
2646
2646
|
let Y = !1;
|
|
2647
2647
|
const {
|
|
2648
2648
|
width: Z,
|
|
2649
2649
|
height: Q,
|
|
2650
2650
|
headerHeight: ne
|
|
2651
|
-
} = s.value, G = d.value =
|
|
2651
|
+
} = s.value, G = d.value = I.offsetWidth;
|
|
2652
2652
|
Z !== G && (Y = !0);
|
|
2653
|
-
const pe =
|
|
2653
|
+
const pe = I.offsetHeight;
|
|
2654
2654
|
(e.height || S.value) && Q !== pe && (Y = !0);
|
|
2655
2655
|
const oe = e.tableLayout === "fixed" ? l.refs.headerWrapper : (L = l.refs.tableHeaderRef) == null ? void 0 : L.$el;
|
|
2656
2656
|
e.showHeader && oe?.offsetHeight !== ne && (Y = !0), m.value = ((W = l.refs.tableWrapper) == null ? void 0 : W.scrollHeight) || 0, p.value = oe?.scrollHeight || 0, b.value = ((A = l.refs.footerWrapper) == null ? void 0 : A.offsetHeight) || 0, C.value = ((T = l.refs.appendWrapper) == null ? void 0 : T.offsetHeight) || 0, h.value = m.value - p.value - b.value - C.value, Y && (s.value = {
|
|
@@ -2671,7 +2671,7 @@ function qn(e, t, n, l) {
|
|
|
2671
2671
|
width: W ? `${W}px` : "",
|
|
2672
2672
|
height: L
|
|
2673
2673
|
};
|
|
2674
|
-
}),
|
|
2674
|
+
}), z = D(() => e.height ? {
|
|
2675
2675
|
height: "100%"
|
|
2676
2676
|
} : e.maxHeight ? Number.isNaN(Number(e.maxHeight)) ? {
|
|
2677
2677
|
maxHeight: `calc(${e.maxHeight} - ${p.value + b.value}px)`
|
|
@@ -2694,7 +2694,7 @@ function qn(e, t, n, l) {
|
|
|
2694
2694
|
tableBodyStyles: c,
|
|
2695
2695
|
tableLayout: M,
|
|
2696
2696
|
scrollbarViewStyle: u,
|
|
2697
|
-
scrollbarStyle:
|
|
2697
|
+
scrollbarStyle: z
|
|
2698
2698
|
};
|
|
2699
2699
|
}
|
|
2700
2700
|
function Xn(e) {
|
|
@@ -3001,13 +3001,13 @@ const ro = Oe({
|
|
|
3001
3001
|
tableBodyStyles: $,
|
|
3002
3002
|
tableLayout: M,
|
|
3003
3003
|
scrollbarViewStyle: X,
|
|
3004
|
-
scrollbarStyle:
|
|
3005
|
-
} = qn(e, i, r, l), { scrollBarRef: L, scrollTo: W, setScrollLeft: A, setScrollTop: T } = Qn(),
|
|
3004
|
+
scrollbarStyle: z
|
|
3005
|
+
} = qn(e, i, r, l), { scrollBarRef: L, scrollTo: W, setScrollLeft: A, setScrollTop: T } = Qn(), I = lt(k, 50), Y = `${n.namespace.value}-table_${ao++}`;
|
|
3006
3006
|
l.tableId = Y, l.state = {
|
|
3007
3007
|
isGroup: c,
|
|
3008
3008
|
resizeState: H,
|
|
3009
3009
|
doLayout: k,
|
|
3010
|
-
debouncedUpdateLayout:
|
|
3010
|
+
debouncedUpdateLayout: I
|
|
3011
3011
|
};
|
|
3012
3012
|
const Z = D(
|
|
3013
3013
|
() => {
|
|
@@ -3019,7 +3019,7 @@ const ro = Oe({
|
|
|
3019
3019
|
return (G = e.emptyText) != null ? G : t("el.table.emptyText");
|
|
3020
3020
|
}), ne = D(() => hl(r.states.originColumns.value)[0]);
|
|
3021
3021
|
return Xn(l), Et(() => {
|
|
3022
|
-
|
|
3022
|
+
I.cancel();
|
|
3023
3023
|
}), {
|
|
3024
3024
|
ns: n,
|
|
3025
3025
|
layout: i,
|
|
@@ -3038,7 +3038,7 @@ const ro = Oe({
|
|
|
3038
3038
|
bodyWidth: R,
|
|
3039
3039
|
tableBodyStyles: $,
|
|
3040
3040
|
emptyBlockStyle: y,
|
|
3041
|
-
debouncedUpdateLayout:
|
|
3041
|
+
debouncedUpdateLayout: I,
|
|
3042
3042
|
setCurrentRow: o,
|
|
3043
3043
|
getSelectionRows: s,
|
|
3044
3044
|
toggleRowSelection: a,
|
|
@@ -3057,7 +3057,7 @@ const ro = Oe({
|
|
|
3057
3057
|
computedEmptyText: Q,
|
|
3058
3058
|
tableLayout: M,
|
|
3059
3059
|
scrollbarViewStyle: X,
|
|
3060
|
-
scrollbarStyle:
|
|
3060
|
+
scrollbarStyle: z,
|
|
3061
3061
|
scrollBarRef: L,
|
|
3062
3062
|
scrollTo: W,
|
|
3063
3063
|
setScrollLeft: A,
|
|
@@ -3635,7 +3635,7 @@ function bo(e, t, n) {
|
|
|
3635
3635
|
if (l.columnConfig.value.label, t.header) {
|
|
3636
3636
|
const g = t.header(w);
|
|
3637
3637
|
if (ul(g))
|
|
3638
|
-
return P(
|
|
3638
|
+
return P(ze, g);
|
|
3639
3639
|
}
|
|
3640
3640
|
return St(c.label);
|
|
3641
3641
|
}), t["filter-icon"] && (c.renderFilterIcon = (w) => Fe(t, "filter-icon", w)), t.expand && (c.renderExpand = (w) => Fe(t, "expand", w));
|
|
@@ -3839,7 +3839,7 @@ var xl = Oe({
|
|
|
3839
3839
|
}), r = [];
|
|
3840
3840
|
if (de(l))
|
|
3841
3841
|
for (const f of l)
|
|
3842
|
-
((n = f.type) == null ? void 0 : n.name) === "ElTableColumn" || f.shapeFlag & 2 ? r.push(f) : f.type ===
|
|
3842
|
+
((n = f.type) == null ? void 0 : n.name) === "ElTableColumn" || f.shapeFlag & 2 ? r.push(f) : f.type === ze && de(f.children) && f.children.forEach((o) => {
|
|
3843
3843
|
o?.patchFlag !== 1024 && !ve(o?.children) && r.push(o);
|
|
3844
3844
|
});
|
|
3845
3845
|
return P("div", r);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, watch as s, renderSlot as l } from "vue";
|
|
2
|
-
import { p as u } from "./use-global-config-
|
|
3
|
-
import { u as m } from "./index-
|
|
4
|
-
import {
|
|
2
|
+
import { p as u } from "./use-global-config-D8WF2yJv.js";
|
|
3
|
+
import { u as m } from "./index-CYE28Jz2.js";
|
|
4
|
+
import { f as d, g as e, a7 as c } from "./index-NruDo1kX.js";
|
|
5
5
|
const f = d({
|
|
6
6
|
a11y: {
|
|
7
7
|
type: Boolean,
|