ss-component-new 1.3.539 → 1.3.540
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/{MTLLoader-C39kpgdW.js → MTLLoader-n-KoP65c.js} +1 -1
- package/dist/{OrbitControls-gxPdDfJE.js → OrbitControls-BqrOYGHm.js} +1 -1
- package/dist/{URDFLoader-_Fx0i2TU.js → URDFLoader-b42ri9Cz.js} +2 -2
- package/dist/{animationData-CluZJZuh.js → animationData-BuLt7Nke.js} +1 -1
- package/dist/{array-CvIYSfPf.js → array-B70YjtYq.js} +2 -2
- package/dist/{iconfont-SlSF8dh4.js → iconfont-CwvcdlB0.js} +2 -2
- package/dist/{index-BmXJsp_5.js → index-BYo-rrsD.js} +263 -263
- package/dist/{index-BgFsJTRi.js → index-BwjvUGJV.js} +1 -1
- package/dist/{index-BLlYLkpo.js → index-BztcV_ey.js} +1 -1
- package/dist/{index-CZYjnaB4.js → index-C2lI6faP.js} +4 -4
- package/dist/{index-CUpk1gQx.js → index-CYBcDeKK.js} +1 -1
- package/dist/{index-COLCZG9X.js → index-DLGDETXd.js} +13627 -13583
- package/dist/{index-BnQxLEeP.js → index-DWcXV7eF.js} +1 -1
- package/dist/{index-CThJS2hV.js → index-DgNLJmxL.js} +1 -1
- package/dist/{index-GY3-9I5w.js → index-DgqGt4p0.js} +3 -3
- package/dist/{index-D-nAxY--.js → index-EKIIOaYa.js} +3 -3
- package/dist/{index-CUiW029G.js → index-TzoBgHO7.js} +2 -2
- package/dist/{index-C_bkw4Ks.js → index-Vc4pISb0.js} +10 -10
- package/dist/{index-CVIPXYtg.js → index-eOjl2_8m.js} +1 -1
- package/dist/{index-BMW0Bmak.js → index-rf-9iB7j.js} +2 -2
- package/dist/{index-DA0q73bO.js → index-xzIFpkI1.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_07c75c98_lang-CSiO4SIG.js → index.vue_vue_type_style_index_0_scoped_07c75c98_lang-D3jpk_gZ.js} +3592 -3585
- package/dist/{main-ZR_JK1Yg.js → main-DiqEK0i-.js} +2 -2
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-4Q0gEotC.js → threeModel-BPhxV90Z.js} +3 -3
- package/dist/{threePreview-DPTGt5fZ.js → threePreview-Bickprk7.js} +3 -3
- package/dist/{threeSceneView-Bm5LEA_Q.js → threeSceneView-CZOT1ZFY.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-B3SUlGk5.js → threeSceneViewForCPMPIP-BjE92Ze8.js} +7 -7
- package/dist/{threeTrackPathView-CHwHb3Z5.js → threeTrackPathView-CVmRu3CT.js} +3 -3
- package/dist/{threeViewerHost-p-5Iqaxw.js → threeViewerHost-B8kV-QtZ.js} +2 -2
- package/dist/{urdfTree-_2vCDAO7.js → urdfTree-oyBd8xdq.js} +1 -1
- package/dist/{workpieceTreePanel-BaMbkaOM.js → workpieceTreePanel-D-5wKRZv.js} +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as N, resolveComponent as J, createBlock as q, openBlock as x, defineComponent as i0, computed as
|
|
2
|
-
import { a8 as C9, a9 as k9, g as D9, aa as O9, ab as M9, ac as T9, a5 as Yi, ad as z9, ae as P9, af as V9, ag as A9, ah as Fi, ai as Ki } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-
|
|
1
|
+
import { ref as N, resolveComponent as J, createBlock as q, openBlock as x, defineComponent as i0, computed as a2, watch as F2, createElementBlock as z, createVNode as t2, withCtx as H, createElementVNode as c2, Fragment as k2, renderList as M2, withModifiers as Ge, normalizeClass as Ce, toDisplayString as E2, createSlots as ae, renderSlot as D2, nextTick as G0, onMounted as Ve, createTextVNode as T0, isRef as m9, isReactive as w9, toRaw as x9, createCommentVNode as Q, onBeforeUnmount as X4, normalizeStyle as h0, resolveDynamicComponent as Lt, normalizeProps as b9, guardReactiveProps as _9, unref as Y0, mergeProps as G1, reactive as o6, inject as x6, withDirectives as v3, vShow as b6, watchEffect as it, onUnmounted as e1, resolveDirective as y9, h as qi, toRefs as S9 } from "vue";
|
|
2
|
+
import { a8 as C9, a9 as k9, g as D9, aa as O9, ab as M9, ac as T9, a5 as Yi, ad as z9, ae as P9, af as V9, ag as A9, ah as Fi, ai as Ki } from "./index.vue_vue_type_style_index_0_scoped_07c75c98_lang-D3jpk_gZ.js";
|
|
3
3
|
import { _ as B2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { S as It } from "./index-BHtNKL1L.js";
|
|
5
5
|
import { r as s8, t as o8, R as E9, T as Xi, E as Xe, s as Q4, C as l8, p as Q6, m as B9, ca as L9, aM as H9, aN as G9, c9 as R9, b as N9 } from "./request-B1c8BUkR.js";
|
|
@@ -8,8 +8,8 @@ import { _ as q0 } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js
|
|
|
8
8
|
import { m as Qi, B as W9, Y as a8 } from "./index-DB1HWx1W.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { s as ei } from "./index-11kpzK0A.js";
|
|
11
|
-
import { T as Ji, a as U9 } from "./threeViewerHost-
|
|
12
|
-
import { A as I9 } from "./index-
|
|
11
|
+
import { T as Ji, a as U9 } from "./threeViewerHost-B8kV-QtZ.js";
|
|
12
|
+
import { A as I9 } from "./index-eOjl2_8m.js";
|
|
13
13
|
var q9 = "[object Date]";
|
|
14
14
|
function Y9(n) {
|
|
15
15
|
return s8(n) && o8(n) == q9;
|
|
@@ -105,7 +105,7 @@ const K9 = {
|
|
|
105
105
|
"focus"
|
|
106
106
|
],
|
|
107
107
|
setup(n, { emit: e }) {
|
|
108
|
-
const t = n, i = e, s =
|
|
108
|
+
const t = n, i = e, s = a2({
|
|
109
109
|
get() {
|
|
110
110
|
return t.modelValue ?? t.value ?? "";
|
|
111
111
|
},
|
|
@@ -198,7 +198,7 @@ const K9 = {
|
|
|
198
198
|
]), 1032, ["modelValue", "disabled"])
|
|
199
199
|
]),
|
|
200
200
|
default: H(() => [
|
|
201
|
-
|
|
201
|
+
c2("div", {
|
|
202
202
|
class: "suggest-dropdown",
|
|
203
203
|
ref_key: "suggestDropdownRef",
|
|
204
204
|
ref: r
|
|
@@ -1036,7 +1036,7 @@ const Ap = { class: "icon-popover" }, Ep = ["onClick"], Bp = /* @__PURE__ */ i0(
|
|
|
1036
1036
|
placement: "bottom"
|
|
1037
1037
|
}, {
|
|
1038
1038
|
default: H(() => [
|
|
1039
|
-
|
|
1039
|
+
c2("div", Ap, [
|
|
1040
1040
|
(x(!0), z(k2, null, M2(l.value, (p, g) => (x(), z("div", {
|
|
1041
1041
|
key: g,
|
|
1042
1042
|
class: "icon-wrap",
|
|
@@ -1390,24 +1390,24 @@ const Wp = async (n) => {
|
|
|
1390
1390
|
label: o.value,
|
|
1391
1391
|
value: o.value
|
|
1392
1392
|
}), r.value = L, k.value ? s.value = [o.value] : s.value = o.value, l.value = !1, i("blurChange"), i("fixChangeValue");
|
|
1393
|
-
}, v =
|
|
1393
|
+
}, v = a2(() => {
|
|
1394
1394
|
const L = [];
|
|
1395
1395
|
return k.value && L.push("multiple"), L;
|
|
1396
1396
|
}), S = (L) => {
|
|
1397
|
-
var
|
|
1397
|
+
var o2;
|
|
1398
1398
|
const { value: U } = L;
|
|
1399
|
-
return Array.isArray(a.value) || (a.value = []), ((
|
|
1399
|
+
return Array.isArray(a.value) || (a.value = []), ((o2 = a.value) == null ? void 0 : o2.find((S2) => U == S2)) && k.value ? "active" : "";
|
|
1400
1400
|
}, M = (L) => {
|
|
1401
1401
|
let U = mt(a.value);
|
|
1402
|
-
const
|
|
1403
|
-
for (let
|
|
1404
|
-
const S2 = L[
|
|
1405
|
-
|
|
1402
|
+
const s2 = /* @__PURE__ */ new Set();
|
|
1403
|
+
for (let o2 = 0; o2 < L.length; o2++) {
|
|
1404
|
+
const S2 = L[o2];
|
|
1405
|
+
s2.add(S2);
|
|
1406
1406
|
}
|
|
1407
|
-
U = U.filter((
|
|
1407
|
+
U = U.filter((o2) => s2.has(o2)), l8(a.value, U) || (a.value = U, i("tagChange", U));
|
|
1408
1408
|
}, D = (L) => {
|
|
1409
|
-
const { value: U } = L,
|
|
1410
|
-
return
|
|
1409
|
+
const { value: U } = L, s2 = mt(a.value), o2 = s2.findIndex((S2) => S2 === U);
|
|
1410
|
+
return o2 >= 0 ? s2.splice(o2, 1) : s2.push(U), s2;
|
|
1411
1411
|
}, O = (L) => {
|
|
1412
1412
|
if (!k.value)
|
|
1413
1413
|
return;
|
|
@@ -1415,33 +1415,33 @@ const Wp = async (n) => {
|
|
|
1415
1415
|
a.value = U, i("tagChange", U);
|
|
1416
1416
|
}, _ = (L) => {
|
|
1417
1417
|
i("blurChange"), k.value && M(L);
|
|
1418
|
-
}, k =
|
|
1418
|
+
}, k = a2(() => {
|
|
1419
1419
|
const L = t.optionUrl;
|
|
1420
1420
|
return !!(L != null && L.multiple);
|
|
1421
|
-
}), G =
|
|
1422
|
-
var L, U,
|
|
1423
|
-
return !((L = t.optionUrl) != null && L.multipleLimit) && ((U = t.optionUrl) == null ? void 0 : U.multipleLimit) !== 0 ? 1 : parseInt((
|
|
1424
|
-
}), E =
|
|
1421
|
+
}), G = a2(() => {
|
|
1422
|
+
var L, U, s2;
|
|
1423
|
+
return !((L = t.optionUrl) != null && L.multipleLimit) && ((U = t.optionUrl) == null ? void 0 : U.multipleLimit) !== 0 ? 1 : parseInt((s2 = t.optionUrl) == null ? void 0 : s2.multipleLimit);
|
|
1424
|
+
}), E = a2(() => {
|
|
1425
1425
|
var L;
|
|
1426
1426
|
return (L = r.value) == null ? void 0 : L.filter(
|
|
1427
|
-
(U,
|
|
1427
|
+
(U, s2, o2) => s2 === o2.findIndex((S2) => S2.value === U.value)
|
|
1428
1428
|
);
|
|
1429
1429
|
}), V = (L) => {
|
|
1430
1430
|
if (!L) return "";
|
|
1431
1431
|
const U = /* @__PURE__ */ new Set(["id", "create_time", "update_time", "sort", "create_user_id", "update_user_id", "department_id", "relatedId"]);
|
|
1432
|
-
return Object.keys(L).filter((
|
|
1432
|
+
return Object.keys(L).filter((o2) => !U.has(o2) && L[o2] !== void 0 && L[o2] !== "").map((o2) => `${o2}: ${L[o2]}`).join("<br/>");
|
|
1433
1433
|
}, Y = (L) => {
|
|
1434
|
-
var
|
|
1435
|
-
if (!(L != null && L.value) || !(((
|
|
1436
|
-
const
|
|
1437
|
-
return
|
|
1434
|
+
var o2, S2, v2, L2;
|
|
1435
|
+
if (!(L != null && L.value) || !(((o2 = t.optionUrl) == null ? void 0 : o2.mainKey) && Array.isArray((S2 = t.optionUrl) == null ? void 0 : S2.menus) && t.optionUrl.menus.length > 0) || !((L2 = (v2 = t.optionUrl) == null ? void 0 : v2.words) != null && L2.length)) return "";
|
|
1436
|
+
const s2 = h.value.get(L.value);
|
|
1437
|
+
return s2 !== void 0 ? s2 : "加载中...";
|
|
1438
1438
|
}, P = async (L) => {
|
|
1439
|
-
var
|
|
1440
|
-
if (!((S2 = (
|
|
1441
|
-
const
|
|
1439
|
+
var o2, S2, v2, L2, n0, q2, J2, a0;
|
|
1440
|
+
if (!((S2 = (o2 = t.optionUrl) == null ? void 0 : o2.menus) != null && S2.length) || !((L2 = (v2 = t.optionUrl) == null ? void 0 : v2.words) != null && L2.length) || !((a0 = (n0 = t.optionUrl) == null ? void 0 : n0.words) == null ? void 0 : a0[((J2 = (q2 = t.optionUrl) == null ? void 0 : q2.words) == null ? void 0 : J2.length) - 1])) return;
|
|
1441
|
+
const s2 = new Map(h.value);
|
|
1442
1442
|
L == null || L.forEach((X2) => {
|
|
1443
|
-
|
|
1444
|
-
}), h.value =
|
|
1443
|
+
s2.has(X2) || s2.set(X2, "加载中...");
|
|
1444
|
+
}), h.value = s2;
|
|
1445
1445
|
for (const X2 of L || []) {
|
|
1446
1446
|
if (h.value.get(X2) !== "加载中...") continue;
|
|
1447
1447
|
const v0 = { ...t.optionUrl, value: X2 };
|
|
@@ -1454,10 +1454,10 @@ const Wp = async (n) => {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
}, f2 = async () => {
|
|
1457
|
-
var L, U,
|
|
1457
|
+
var L, U, s2, o2, S2, v2, L2, n0, q2, J2, a0, X2, v0, R, I, x2;
|
|
1458
1458
|
if (((U = (L = t.optionUrl) == null ? void 0 : L.allSelectionContents) == null ? void 0 : U.length) > 0) {
|
|
1459
|
-
let F = [], j2 = [], G2 = (
|
|
1460
|
-
Array.isArray(G2) || (G2 = (S2 = (
|
|
1459
|
+
let F = [], j2 = [], G2 = (s2 = t.optionUrl) == null ? void 0 : s2.filterContent;
|
|
1460
|
+
Array.isArray(G2) || (G2 = (S2 = (o2 = G2 == null ? void 0 : G2.replaceAll("(", "")) == null ? void 0 : o2.replaceAll(")", "")) == null ? void 0 : S2.split("||")), G2 == null || G2.forEach((p2) => {
|
|
1461
1461
|
var Z2, w, X0;
|
|
1462
1462
|
(p2 == null ? void 0 : p2[0]) === "@" && (p2 = (w = (Z2 = p2 == null ? void 0 : p2.replace("(", "$R")) == null ? void 0 : Z2.split("$R")) == null ? void 0 : w[1], p2 = p2 == null ? void 0 : p2.slice(0, (p2 == null ? void 0 : p2.length) - 1)), j2 == null || j2.push(Qi("(" + p2 + ")")), F == null || F.push(Object.keys((X0 = Qi("(" + p2 + ")")) == null ? void 0 : X0[0]));
|
|
1463
1463
|
}), F = F == null ? void 0 : F[0];
|
|
@@ -1486,7 +1486,7 @@ const Wp = async (n) => {
|
|
|
1486
1486
|
await P((x2 = r.value) == null ? void 0 : x2.map((F) => F == null ? void 0 : F.value)), i("click");
|
|
1487
1487
|
};
|
|
1488
1488
|
return (L, U) => {
|
|
1489
|
-
const
|
|
1489
|
+
const s2 = J("el-tooltip"), o2 = J("el-option"), S2 = J("el-select");
|
|
1490
1490
|
return l.value ? l.value ? (x(), q(Gt, {
|
|
1491
1491
|
key: 1,
|
|
1492
1492
|
modelValue: o.value,
|
|
@@ -1519,21 +1519,21 @@ const Wp = async (n) => {
|
|
|
1519
1519
|
onMouseenter: f
|
|
1520
1520
|
}, {
|
|
1521
1521
|
label: H(({ label: v2, value: L2 }) => [
|
|
1522
|
-
|
|
1522
|
+
c2("div", {
|
|
1523
1523
|
class: Ce(["option", [S({ value: L2 })]]),
|
|
1524
1524
|
onClick: Ge((n0) => O({ value: L2 }), ["stop"])
|
|
1525
1525
|
}, [
|
|
1526
|
-
|
|
1526
|
+
c2("div", Ip, E2(v2), 1)
|
|
1527
1527
|
], 10, Up)
|
|
1528
1528
|
]),
|
|
1529
1529
|
default: H(() => [
|
|
1530
|
-
(x(!0), z(k2, null, M2(E.value, (v2) => (x(), q(
|
|
1530
|
+
(x(!0), z(k2, null, M2(E.value, (v2) => (x(), q(o2, {
|
|
1531
1531
|
key: v2.value,
|
|
1532
1532
|
label: v2.label,
|
|
1533
1533
|
value: v2.value
|
|
1534
1534
|
}, {
|
|
1535
1535
|
default: H(() => [
|
|
1536
|
-
Y(v2) ? (x(), q(
|
|
1536
|
+
Y(v2) ? (x(), q(s2, {
|
|
1537
1537
|
key: 0,
|
|
1538
1538
|
placement: "right",
|
|
1539
1539
|
effect: "dark",
|
|
@@ -1542,7 +1542,7 @@ const Wp = async (n) => {
|
|
|
1542
1542
|
offset: 50
|
|
1543
1543
|
}, {
|
|
1544
1544
|
default: H(() => [
|
|
1545
|
-
|
|
1545
|
+
c2("span", null, E2(v2.label), 1)
|
|
1546
1546
|
]),
|
|
1547
1547
|
_: 2
|
|
1548
1548
|
}, 1032, ["content"])) : (x(), z("span", qp, E2(v2.label), 1))
|
|
@@ -1644,14 +1644,14 @@ const Wp = async (n) => {
|
|
|
1644
1644
|
Ve(() => {
|
|
1645
1645
|
v0();
|
|
1646
1646
|
});
|
|
1647
|
-
const r = e, a = N(null), h = N(null), c = N(), d = N(), u = N(0), f = N(""), p = N(""), g = N(!1), m = N(""), v =
|
|
1647
|
+
const r = e, a = N(null), h = N(null), c = N(), d = N(), u = N(0), f = N(""), p = N(""), g = N(!1), m = N(""), v = a2(() => {
|
|
1648
1648
|
const I = ((t == null ? void 0 : t.rowContents) || []).some((x2) => {
|
|
1649
1649
|
var G2;
|
|
1650
1650
|
const { prop: F } = x2 || {};
|
|
1651
1651
|
return (G2 = F == null ? void 0 : F.includes) == null ? void 0 : G2.call(F, ".");
|
|
1652
1652
|
});
|
|
1653
1653
|
return (t == null ? void 0 : t.layer) && I;
|
|
1654
|
-
}), S =
|
|
1654
|
+
}), S = a2(() => {
|
|
1655
1655
|
var x2;
|
|
1656
1656
|
const R = {
|
|
1657
1657
|
[ft]: [],
|
|
@@ -1720,12 +1720,12 @@ const Wp = async (n) => {
|
|
|
1720
1720
|
}, O = N < HTMLInputElement | null > null, _ = () => {
|
|
1721
1721
|
var R;
|
|
1722
1722
|
(R = O.value) == null || R.click();
|
|
1723
|
-
}, k =
|
|
1723
|
+
}, k = a2(() => {
|
|
1724
1724
|
const R = Number(t == null ? void 0 : t.textSize), I = W9(t == null ? void 0 : t.textColor), x2 = {
|
|
1725
1725
|
flexDirection: t != null && t.isButtonRow ? "row" : "column"
|
|
1726
1726
|
};
|
|
1727
1727
|
return !Number.isNaN(R) && R && (x2["--ssform-label-fontSize"] = `${R}px`, x2["--ssform-input-fontSize"] = `${R}px`), I && (x2["--ssform-label-color"] = I), p.value && (x2.backgroundImage = `url(${p.value})`, x2.backgroundSize = "cover", x2.backgroundPosition = "center", x2.backgroundRepeat = "no-repeat"), x2;
|
|
1728
|
-
}), G =
|
|
1728
|
+
}), G = a2(() => {
|
|
1729
1729
|
var R;
|
|
1730
1730
|
return (R = a8) == null ? void 0 : R.map((I) => ({
|
|
1731
1731
|
value: I == null ? void 0 : I.key,
|
|
@@ -1733,7 +1733,7 @@ const Wp = async (n) => {
|
|
|
1733
1733
|
}));
|
|
1734
1734
|
}), E = (R) => {
|
|
1735
1735
|
r("routeUrl", R);
|
|
1736
|
-
}, V =
|
|
1736
|
+
}, V = a2(() => {
|
|
1737
1737
|
var x2;
|
|
1738
1738
|
const R = (x2 = l.value) == null ? void 0 : x2.split("/");
|
|
1739
1739
|
return (R == null ? void 0 : R.some((F) => (F == null ? void 0 : F.includes("updateLoading")) || (F == null ? void 0 : F.includes("loading")))) ? !1 : s.value === "view" && (t == null ? void 0 : t.showOperator);
|
|
@@ -1745,12 +1745,12 @@ const Wp = async (n) => {
|
|
|
1745
1745
|
r("preview", R);
|
|
1746
1746
|
}, U = () => {
|
|
1747
1747
|
r("blur", d.value);
|
|
1748
|
-
},
|
|
1748
|
+
}, s2 = (R, I) => {
|
|
1749
1749
|
r("tagChange", {
|
|
1750
1750
|
value: R,
|
|
1751
1751
|
key: I
|
|
1752
1752
|
});
|
|
1753
|
-
},
|
|
1753
|
+
}, o2 = (R) => {
|
|
1754
1754
|
r("blurChange", d.value, {
|
|
1755
1755
|
changeProp: R
|
|
1756
1756
|
});
|
|
@@ -1797,7 +1797,7 @@ const Wp = async (n) => {
|
|
|
1797
1797
|
}), c.value = R, d.value = R, v2();
|
|
1798
1798
|
},
|
|
1799
1799
|
{ deep: !0, immediate: !0 }
|
|
1800
|
-
),
|
|
1800
|
+
), a2(() => {
|
|
1801
1801
|
var I;
|
|
1802
1802
|
return (I = t == null ? void 0 : t.rowContents) == null ? void 0 : I.find((x2) => {
|
|
1803
1803
|
const { type: F, optionUrl: j2 = {} } = x2, { multiple: G2, multipleLimit: c0, menuFilter: Q2 = [] } = j2, A2 = F === "Select", p2 = G2, Z2 = "@Type:Manual", w = Q2 == null ? void 0 : Q2.find((V0) => {
|
|
@@ -1859,14 +1859,14 @@ const Wp = async (n) => {
|
|
|
1859
1859
|
class: "form-backGround-upload",
|
|
1860
1860
|
onClick: I[0] || (I[0] = Ge((A2) => _(), ["stop"]))
|
|
1861
1861
|
}, [
|
|
1862
|
-
|
|
1862
|
+
c2("input", {
|
|
1863
1863
|
type: "file",
|
|
1864
1864
|
accept: "image/*",
|
|
1865
1865
|
ref: "bgUploadRef",
|
|
1866
1866
|
style: { display: "none" },
|
|
1867
1867
|
onChange: D
|
|
1868
1868
|
}, null, 544),
|
|
1869
|
-
|
|
1869
|
+
c2("img", {
|
|
1870
1870
|
src: jp,
|
|
1871
1871
|
class: "bg-upload-icon",
|
|
1872
1872
|
loading: g.value,
|
|
@@ -1880,7 +1880,7 @@ const Wp = async (n) => {
|
|
|
1880
1880
|
formLabelsOperable: n.formLabelsOperable
|
|
1881
1881
|
}, void 0, !0)
|
|
1882
1882
|
])) : Q("", !0),
|
|
1883
|
-
|
|
1883
|
+
c2("div", Xp, [
|
|
1884
1884
|
v.value ? (x(), q(G2, {
|
|
1885
1885
|
key: 0,
|
|
1886
1886
|
ref_key: "formRef",
|
|
@@ -1894,7 +1894,7 @@ const Wp = async (n) => {
|
|
|
1894
1894
|
var A2, p2, Z2, w, X0, V0, ue;
|
|
1895
1895
|
return [
|
|
1896
1896
|
(p2 = (A2 = S.value) == null ? void 0 : A2[ft]) != null && p2.length ? (x(), z("div", Qp, [
|
|
1897
|
-
|
|
1897
|
+
c2("div", Jp, [
|
|
1898
1898
|
!((Z2 = R.item) != null && Z2.isFormColHidden) && !((w = R.item) != null && w.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(S.value[ft], (b, se) => (x(), q(x2, {
|
|
1899
1899
|
key: b == null ? void 0 : b.prop,
|
|
1900
1900
|
class: Ce(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
@@ -1925,9 +1925,9 @@ const Wp = async (n) => {
|
|
|
1925
1925
|
key: b == null ? void 0 : b.prop,
|
|
1926
1926
|
optionUrl: b,
|
|
1927
1927
|
onChangeVisible: q2,
|
|
1928
|
-
onBlurChange: (j0) =>
|
|
1928
|
+
onBlurChange: (j0) => o2((b == null ? void 0 : b.prop) ?? (b == null ? void 0 : b.name)),
|
|
1929
1929
|
wholeValue: d.value,
|
|
1930
|
-
onTagChange: (j0) =>
|
|
1930
|
+
onTagChange: (j0) => s2(j0, (b == null ? void 0 : b.prop) ?? b.name),
|
|
1931
1931
|
onCreate: (j0) => S2(b, j0),
|
|
1932
1932
|
config: b == null ? void 0 : b.config,
|
|
1933
1933
|
configModel: (b == null ? void 0 : b.prop) ?? (b == null ? void 0 : b.name),
|
|
@@ -2001,7 +2001,7 @@ const Wp = async (n) => {
|
|
|
2001
2001
|
default: H(() => {
|
|
2002
2002
|
var se, O0;
|
|
2003
2003
|
return [
|
|
2004
|
-
|
|
2004
|
+
c2("div", ig, [
|
|
2005
2005
|
!((se = R.layerFormItem) != null && se.isFormColHidden) && !((O0 = R.layerFormItem) != null && O0.isHideInForm) ? (x(!0), z(k2, { key: 0 }, M2(b.rows, (y, Ue) => (x(), q(x2, {
|
|
2006
2006
|
key: y == null ? void 0 : y.prop,
|
|
2007
2007
|
class: Ce(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
@@ -2032,9 +2032,9 @@ const Wp = async (n) => {
|
|
|
2032
2032
|
key: y == null ? void 0 : y.prop,
|
|
2033
2033
|
optionUrl: y,
|
|
2034
2034
|
onChangeVisible: q2,
|
|
2035
|
-
onBlurChange: (A) =>
|
|
2035
|
+
onBlurChange: (A) => o2((y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.name)),
|
|
2036
2036
|
wholeValue: d.value,
|
|
2037
|
-
onTagChange: (A) =>
|
|
2037
|
+
onTagChange: (A) => s2(A, (y == null ? void 0 : y.prop) ?? y.name),
|
|
2038
2038
|
onCreate: (A) => S2(y, A),
|
|
2039
2039
|
config: y == null ? void 0 : y.config,
|
|
2040
2040
|
configModel: (y == null ? void 0 : y.prop) ?? (y == null ? void 0 : y.name),
|
|
@@ -2161,9 +2161,9 @@ const Wp = async (n) => {
|
|
|
2161
2161
|
key: w == null ? void 0 : w.prop,
|
|
2162
2162
|
optionUrl: w,
|
|
2163
2163
|
onChangeVisible: q2,
|
|
2164
|
-
onBlurChange: (y0) =>
|
|
2164
|
+
onBlurChange: (y0) => o2((w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name)),
|
|
2165
2165
|
wholeValue: d.value,
|
|
2166
|
-
onTagChange: (y0) =>
|
|
2166
|
+
onTagChange: (y0) => s2(y0, (w == null ? void 0 : w.prop) ?? w.name),
|
|
2167
2167
|
onCreate: (y0) => S2(w, y0),
|
|
2168
2168
|
config: w == null ? void 0 : w.config,
|
|
2169
2169
|
configModel: (w == null ? void 0 : w.prop) ?? (w == null ? void 0 : w.name),
|
|
@@ -2392,7 +2392,7 @@ const Wp = async (n) => {
|
|
|
2392
2392
|
style: h0({ width: n.isWrap ? "100%" : "auto", marginRight: n.isWrap ? 0 : "12px" })
|
|
2393
2393
|
}, {
|
|
2394
2394
|
default: H(() => [
|
|
2395
|
-
|
|
2395
|
+
c2("span", null, E2(c.label), 1),
|
|
2396
2396
|
D2(l.$slots, "append")
|
|
2397
2397
|
]),
|
|
2398
2398
|
_: 2
|
|
@@ -2578,7 +2578,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2578
2578
|
},
|
|
2579
2579
|
emits: ["handleColEditChange", "handleColTypeChange"],
|
|
2580
2580
|
setup(n, { emit: e }) {
|
|
2581
|
-
const t = n, i = e, s = N(null), o =
|
|
2581
|
+
const t = n, i = e, s = N(null), o = a2(() => {
|
|
2582
2582
|
var d, u;
|
|
2583
2583
|
return (u = (d = a8) == null ? void 0 : d.map((f) => ({
|
|
2584
2584
|
value: f == null ? void 0 : f.key,
|
|
@@ -2682,12 +2682,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2682
2682
|
}, ae({ _: 2 }, [
|
|
2683
2683
|
M2(d.$slots, (P, f2) => ({
|
|
2684
2684
|
name: f2,
|
|
2685
|
-
fn: H(({ row: L, slotData: U, item:
|
|
2685
|
+
fn: H(({ row: L, slotData: U, item: s2, column: o2 }) => [
|
|
2686
2686
|
D2(d.$slots, f2, G1({ ref_for: !0 }, U ?? L, {
|
|
2687
|
-
item:
|
|
2687
|
+
item: s2 ?? V,
|
|
2688
2688
|
slotData: U ?? L,
|
|
2689
2689
|
row: L,
|
|
2690
|
-
column:
|
|
2690
|
+
column: o2,
|
|
2691
2691
|
columnProp: V
|
|
2692
2692
|
}))
|
|
2693
2693
|
])
|
|
@@ -2845,19 +2845,19 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2845
2845
|
Be.extend(O9), Be.extend(M9), Be.extend(T9), Be.locale("zh-cn");
|
|
2846
2846
|
const t = n;
|
|
2847
2847
|
J4(Ht);
|
|
2848
|
-
const i = $9(Ht), { chooseTitle: s } = qt(i), o = Z4(Ht), { activeMenuPath: l } = qt(o), r = N(!1), a = N(), h = N(), c =
|
|
2848
|
+
const i = $9(Ht), { chooseTitle: s } = qt(i), o = Z4(Ht), { activeMenuPath: l } = qt(o), r = N(!1), a = N(), h = N(), c = a2(() => {
|
|
2849
2849
|
var C, T;
|
|
2850
2850
|
try {
|
|
2851
2851
|
return (((T = (C = g.value) == null ? void 0 : C.getSelectionRows) == null ? void 0 : T.call(C)) ?? []).length > 0;
|
|
2852
2852
|
} catch {
|
|
2853
2853
|
return !1;
|
|
2854
2854
|
}
|
|
2855
|
-
}), d = o6({ x: 0, y: 0 }), u = N([]), f = N([]), p = N(0), g = N(null), m = N(null), v = N(null), S =
|
|
2855
|
+
}), d = o6({ x: 0, y: 0 }), u = N([]), f = N([]), p = N(0), g = N(null), m = N(null), v = N(null), S = a2(() => {
|
|
2856
2856
|
var C, T;
|
|
2857
2857
|
return Array.isArray(u.value) && ((T = (C = u.value) == null ? void 0 : C[0]) == null ? void 0 : T.prop) === "disabled";
|
|
2858
|
-
}), M =
|
|
2858
|
+
}), M = a2(() => t.allowRowAddOrDelete && !S.value), D = e;
|
|
2859
2859
|
x6("contentRef"), Ve(() => {
|
|
2860
|
-
var T, A, $,
|
|
2860
|
+
var T, A, $, l2, r2, _2;
|
|
2861
2861
|
G = k(), u.value = t == null ? void 0 : t.columns, f.value = (T = t == null ? void 0 : t.tableData) == null ? void 0 : T.map((K) => {
|
|
2862
2862
|
var d2, u2;
|
|
2863
2863
|
let h2 = {};
|
|
@@ -2875,7 +2875,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2875
2875
|
});
|
|
2876
2876
|
let C = (A = s.value) == null ? void 0 : A.find((K) => (K == null ? void 0 : K.parentContent) === l.value);
|
|
2877
2877
|
if (C) {
|
|
2878
|
-
let K = (
|
|
2878
|
+
let K = (l2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : l2.prop, h2 = (r2 = f.value) == null ? void 0 : r2.find((d2) => (d2 == null ? void 0 : d2[K]) === (C == null ? void 0 : C.value));
|
|
2879
2879
|
(_2 = g.value) == null || _2.setCurrentRow(), g.value && setTimeout(() => {
|
|
2880
2880
|
g.value && g.value.setCurrentRow(h2);
|
|
2881
2881
|
}, 100);
|
|
@@ -2892,7 +2892,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2892
2892
|
};
|
|
2893
2893
|
function k() {
|
|
2894
2894
|
const C = /* @__PURE__ */ new WeakSet(), T = new MutationObserver(_2), A = /* @__PURE__ */ new WeakMap(), $ = [];
|
|
2895
|
-
function
|
|
2895
|
+
function l2(K) {
|
|
2896
2896
|
try {
|
|
2897
2897
|
const h2 = K.getBoundingClientRect(), d2 = K.clientWidth || h2.width || 1, u2 = h2.width / d2 || 1, i2 = parseFloat(getComputedStyle(K).zoom || "1");
|
|
2898
2898
|
return i2 ? u2 / i2 : u2;
|
|
@@ -2900,7 +2900,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2900
2900
|
return 1;
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
function
|
|
2903
|
+
function r2(K) {
|
|
2904
2904
|
var u2;
|
|
2905
2905
|
if (!K || C.has(K)) return;
|
|
2906
2906
|
C.add(K);
|
|
@@ -2914,7 +2914,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2914
2914
|
} catch {
|
|
2915
2915
|
}
|
|
2916
2916
|
h2.classList.add("is-dragging");
|
|
2917
|
-
const z2 =
|
|
2917
|
+
const z2 = l2(h2), e0 = h2.clientWidth || 1, S0 = K.clientWidth || 0, Y2 = Math.max(1, (e0 - S0) / z2), C2 = Math.max(1, (d2.scrollWidth || 0) - (d2.clientWidth || 0)), W2 = i2.clientX, b2 = d2.scrollLeft, H2 = C2 / Y2, xe = (j) => {
|
|
2918
2918
|
const Ie = (j.clientX - W2) / z2;
|
|
2919
2919
|
d2.scrollLeft = b2 + Ie * H2;
|
|
2920
2920
|
}, le = () => {
|
|
@@ -2936,7 +2936,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2936
2936
|
const h2 = K.querySelector(".el-scrollbar__wrap"), d2 = K.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
2937
2937
|
if (!h2 || !d2) return;
|
|
2938
2938
|
const u2 = h2.querySelector(".el-scrollbar__view") || h2.firstElementChild || h2, i2 = u2.querySelector("table") || u2.querySelector(".el-table__body") || u2, z2 = i2.scrollWidth, e0 = h2.clientWidth, S0 = z2 - e0 > 2;
|
|
2939
|
-
if (K.classList.toggle("has-x-scroll", S0), d2.style.display = "", S0 && K.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(
|
|
2939
|
+
if (K.classList.toggle("has-x-scroll", S0), d2.style.display = "", S0 && K.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(r2), !A.has(h2)) {
|
|
2940
2940
|
const Y2 = new ResizeObserver(() => {
|
|
2941
2941
|
const C2 = i2 && i2.scrollWidth || h2.scrollWidth, W2 = h2.clientWidth, b2 = C2 - W2 > 2;
|
|
2942
2942
|
K.classList.toggle("has-x-scroll", b2);
|
|
@@ -2958,10 +2958,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2958
2958
|
F2(
|
|
2959
2959
|
() => [s.value],
|
|
2960
2960
|
() => {
|
|
2961
|
-
var T, A, $,
|
|
2961
|
+
var T, A, $, l2, r2, _2, K;
|
|
2962
2962
|
let C = (T = s.value) == null ? void 0 : T.find((h2) => (h2 == null ? void 0 : h2.parentContent) === l.value);
|
|
2963
2963
|
if (C || !(($ = (A = s.value) == null ? void 0 : A[0]) != null && $.parentContent)) {
|
|
2964
|
-
let h2 = (
|
|
2964
|
+
let h2 = (r2 = (l2 = u.value) == null ? void 0 : l2[0]) == null ? void 0 : r2.prop, d2 = (_2 = f.value) == null ? void 0 : _2.find((u2) => {
|
|
2965
2965
|
var i2, z2;
|
|
2966
2966
|
return (u2 == null ? void 0 : u2[h2]) === ((C == null ? void 0 : C.value) ?? ((z2 = (i2 = s.value) == null ? void 0 : i2[0]) == null ? void 0 : z2.value));
|
|
2967
2967
|
});
|
|
@@ -2988,42 +2988,42 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
2988
2988
|
}, Y = (C, T) => {
|
|
2989
2989
|
D("handleColTypeChange", C, T);
|
|
2990
2990
|
}, P = (C) => {
|
|
2991
|
-
var A, $,
|
|
2991
|
+
var A, $, l2, r2;
|
|
2992
2992
|
if (r.value = !1, !t.isEditViewport) return;
|
|
2993
2993
|
const T = C == null ? void 0 : C.target;
|
|
2994
|
-
($ = (A = g.value) == null ? void 0 : A.$el) != null && $.contains(T) || (
|
|
2994
|
+
($ = (A = g.value) == null ? void 0 : A.$el) != null && $.contains(T) || (l2 = T == null ? void 0 : T.closest) != null && l2.call(T, "#themeButton, #themeBorderButton,#tableHeaderButton") || (r2 = T == null ? void 0 : T.closest) != null && r2.call(
|
|
2995
2995
|
T,
|
|
2996
2996
|
".el-popper, .el-select__popper, .el-select-dropdown, .el-picker__popper, .el-picker-panel,.el-dialog__wrapper, .el-overlay, .el-message-box__wrapper, .el-popover"
|
|
2997
2997
|
) || D("submitEditingTable");
|
|
2998
|
-
}, f2 =
|
|
2998
|
+
}, f2 = a2(() => t == null ? void 0 : t.extraButton), L = a2(() => t == null ? void 0 : t.extraButton), U = N(0), s2 = N(!1), o2 = (C, T, A) => {
|
|
2999
2999
|
U.value = C == null ? void 0 : C.id;
|
|
3000
3000
|
}, S2 = (C, T, A) => {
|
|
3001
3001
|
U.value = 0;
|
|
3002
3002
|
}, v2 = () => {
|
|
3003
|
-
|
|
3003
|
+
s2.value = !1;
|
|
3004
3004
|
}, L2 = x6("getSuggestListForCell", () => []), n0 = x6("getSuggestLoadingForCell", () => !1), q2 = (C, T, A, $) => {
|
|
3005
|
-
const
|
|
3006
|
-
|
|
3005
|
+
const l2 = ($ == null ? void 0 : $.formType) || ($ == null ? void 0 : $.columnType) || "";
|
|
3006
|
+
l2 && l2.toUpperCase() !== "INPUT" && l2 !== "" || D("cellInput", T, A, C);
|
|
3007
3007
|
}, J2 = (C, T, A, $) => {
|
|
3008
3008
|
D("selectSuggest", T, A, C);
|
|
3009
3009
|
}, a0 = (C) => {
|
|
3010
3010
|
D("selectChange", C);
|
|
3011
3011
|
}, X2 = (C, T) => {
|
|
3012
|
-
var A, $,
|
|
3012
|
+
var A, $, l2;
|
|
3013
3013
|
if (typeof t.selectable == "function")
|
|
3014
3014
|
return t.selectable(C, T);
|
|
3015
3015
|
if (t.selectMode === "single") {
|
|
3016
|
-
const
|
|
3017
|
-
return
|
|
3016
|
+
const r2 = (($ = (A = g.value) == null ? void 0 : A.getSelectionRows) == null ? void 0 : $.call(A)) ?? [];
|
|
3017
|
+
return r2.length === 0 || ((l2 = r2 == null ? void 0 : r2[0]) == null ? void 0 : l2.id) === (C == null ? void 0 : C.id);
|
|
3018
3018
|
}
|
|
3019
3019
|
return !0;
|
|
3020
|
-
}, v0 = (C, T, A, $) =>
|
|
3021
|
-
var
|
|
3022
|
-
let
|
|
3023
|
-
return Array.isArray(
|
|
3020
|
+
}, v0 = (C, T, A, $) => a2(() => {
|
|
3021
|
+
var r2, _2, K, h2, d2, u2, i2, z2, e0, S0;
|
|
3022
|
+
let l2 = C != null && C[T == null ? void 0 : T.prop] ? ((_2 = (r2 = C == null ? void 0 : C[T == null ? void 0 : T.prop]) == null ? void 0 : r2[0]) == null ? void 0 : _2.contents) ?? (C == null ? void 0 : C[T == null ? void 0 : T.prop]) : ((h2 = (K = C == null ? void 0 : C[A == null ? void 0 : A.prop]) == null ? void 0 : K[0]) == null ? void 0 : h2.contents) ?? (C == null ? void 0 : C[A == null ? void 0 : A.prop]) ?? ((u2 = (d2 = $ == null ? void 0 : $[A == null ? void 0 : A.prop]) == null ? void 0 : d2[0]) == null ? void 0 : u2.contents) ?? ($ == null ? void 0 : $[A == null ? void 0 : A.prop]) ?? ((e0 = (z2 = C == null ? void 0 : C[(i2 = A == null ? void 0 : A.child) == null ? void 0 : i2.prop]) == null ? void 0 : z2[0]) == null ? void 0 : e0.contents) ?? (C == null ? void 0 : C[(S0 = A == null ? void 0 : A.child) == null ? void 0 : S0.prop]);
|
|
3023
|
+
return Array.isArray(l2) && !(l2 != null && l2.every((Y2) => typeof Y2 == "string" || typeof Y2 == "number")) ? "查看" : l2;
|
|
3024
3024
|
}), R = (C) => {
|
|
3025
|
-
var $,
|
|
3026
|
-
let T = (
|
|
3025
|
+
var $, l2, r2;
|
|
3026
|
+
let T = (l2 = ($ = u.value) == null ? void 0 : $[0]) == null ? void 0 : l2.prop, A = (r2 = f.value) == null ? void 0 : r2.map((_2) => _2 == null ? void 0 : _2[T]);
|
|
3027
3027
|
D("rowClick", {
|
|
3028
3028
|
row: C,
|
|
3029
3029
|
type: "table",
|
|
@@ -3032,8 +3032,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3032
3032
|
});
|
|
3033
3033
|
}, I = (C, T, A, $) => {
|
|
3034
3034
|
if (!M.value) return;
|
|
3035
|
-
const
|
|
3036
|
-
d.x = $.clientX, d.y = $.clientY, r.value = !0,
|
|
3035
|
+
const l2 = A == null ? void 0 : A.innerText, r2 = Ag(l2);
|
|
3036
|
+
d.x = $.clientX, d.y = $.clientY, r.value = !0, r2 && (a.value = A.innerText), h.value = C;
|
|
3037
3037
|
}, x2 = () => {
|
|
3038
3038
|
D("clickButton", "删除", h.value, { extra: { label: "删除" } }), r.value = !1;
|
|
3039
3039
|
}, F = () => {
|
|
@@ -3048,15 +3048,15 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3048
3048
|
() => {
|
|
3049
3049
|
var C;
|
|
3050
3050
|
f.value = (C = t == null ? void 0 : t.tableData) == null ? void 0 : C.map((T) => {
|
|
3051
|
-
var $,
|
|
3051
|
+
var $, l2;
|
|
3052
3052
|
let A = {};
|
|
3053
|
-
for (let
|
|
3054
|
-
if (A[
|
|
3055
|
-
if (!T[
|
|
3056
|
-
A[
|
|
3053
|
+
for (let r2 in T)
|
|
3054
|
+
if (A[r2] = tn(T[r2]) && T[r2] === 0 ? ($ = T[r2]) == null ? void 0 : $.toString() : T[r2], r2 !== "id" && ((l2 = oe.value) == null ? void 0 : l2.prop) !== r2 && _(T[r2]))
|
|
3055
|
+
if (!T[r2] || T[r2] === "" || T[r2] === null || T[r2] === void 0)
|
|
3056
|
+
A[r2] = "";
|
|
3057
3057
|
else {
|
|
3058
|
-
const _2 = Be(T[
|
|
3059
|
-
A[
|
|
3058
|
+
const _2 = Be(T[r2], ["YYYY-MM-DD", "YYYY-MM-DD HH:mm:ss", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
|
|
3059
|
+
A[r2] = _2.isValid() ? _2.format("YYYY-MM-DD HH:mm:ss") : "";
|
|
3060
3060
|
}
|
|
3061
3061
|
return A;
|
|
3062
3062
|
});
|
|
@@ -3078,10 +3078,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3078
3078
|
}, V0 = (C, T) => {
|
|
3079
3079
|
D("clickButton", "删除", C, { extra: { label: "删除" }, index: T });
|
|
3080
3080
|
}, ue = (C, T) => {
|
|
3081
|
-
var
|
|
3081
|
+
var r2, _2, K, h2;
|
|
3082
3082
|
if ((C == null ? void 0 : C.id) === "__empty__") {
|
|
3083
3083
|
const d2 = {};
|
|
3084
|
-
(
|
|
3084
|
+
(r2 = u.value) == null || r2.forEach((u2) => {
|
|
3085
3085
|
const i2 = u2 == null ? void 0 : u2.prop;
|
|
3086
3086
|
!i2 || i2 === "operate" || (d2[i2] = "");
|
|
3087
3087
|
}), d2.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, d2._isTemp = !0, D("addNewRow", { newRow: d2, targetIndex: 0 });
|
|
@@ -3092,8 +3092,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3092
3092
|
const u2 = d2 == null ? void 0 : d2.prop;
|
|
3093
3093
|
!u2 || u2 === "operate" || (A[u2] = "");
|
|
3094
3094
|
}), A.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, A._isTemp = !0, (C == null ? void 0 : C.level) !== void 0 && (A.level = C.level), (C == null ? void 0 : C.tableEditType) !== void 0 && (A.tableEditType = C.tableEditType);
|
|
3095
|
-
const $ = typeof T == "number" ? T : (K = f.value) == null ? void 0 : K.findIndex((d2) => (d2 == null ? void 0 : d2.id) === (C == null ? void 0 : C.id)),
|
|
3096
|
-
D("addNewRow", { newRow: A, targetIndex:
|
|
3095
|
+
const $ = typeof T == "number" ? T : (K = f.value) == null ? void 0 : K.findIndex((d2) => (d2 == null ? void 0 : d2.id) === (C == null ? void 0 : C.id)), l2 = $ >= 0 ? $ + 1 : ((h2 = f.value) == null ? void 0 : h2.length) ?? 0;
|
|
3096
|
+
D("addNewRow", { newRow: A, targetIndex: l2 });
|
|
3097
3097
|
}, b = (C, T, A, $) => {
|
|
3098
3098
|
D("contentClick", C, T, A, $);
|
|
3099
3099
|
}, se = () => {
|
|
@@ -3107,8 +3107,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3107
3107
|
onMove: (A) => !A.related.classList.contains("is-not-drag"),
|
|
3108
3108
|
onEnd: (A) => {
|
|
3109
3109
|
p.value++;
|
|
3110
|
-
const $ = A.oldIndex - 3,
|
|
3111
|
-
u.value.splice(
|
|
3110
|
+
const $ = A.oldIndex - 3, l2 = A.newIndex - 3, r2 = u.value.splice($, 1)[0];
|
|
3111
|
+
u.value.splice(l2, 0, r2), t.isMoveColumn && G0(() => {
|
|
3112
3112
|
se(), y();
|
|
3113
3113
|
});
|
|
3114
3114
|
}
|
|
@@ -3121,8 +3121,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3121
3121
|
handle: ".custom-drag-icon",
|
|
3122
3122
|
ghostClass: "sortable-ghost",
|
|
3123
3123
|
onEnd: ({ newIndex: A, oldIndex: $ }) => {
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3124
|
+
const l2 = [...f.value], [r2] = l2.splice($, 1);
|
|
3125
|
+
l2.splice($, 0, r2), f.value = l2, G0(() => {
|
|
3126
3126
|
y();
|
|
3127
3127
|
});
|
|
3128
3128
|
}
|
|
@@ -3131,24 +3131,24 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3131
3131
|
const A = new FileReader();
|
|
3132
3132
|
A.onloadend = () => T(A.result), A.readAsDataURL(C);
|
|
3133
3133
|
}), A0 = (C, T = "file") => {
|
|
3134
|
-
let A = C.split(","), $ = A[0].match(/:(.*?);/)[1],
|
|
3134
|
+
let A = C.split(","), $ = A[0].match(/:(.*?);/)[1], l2 = $.split("/")[1], r2 = atob(A[1]), _2 = r2.length, K = new Uint8Array(_2);
|
|
3135
3135
|
for (; _2--; )
|
|
3136
|
-
K[_2] =
|
|
3137
|
-
return new File([K], `${T}.${
|
|
3136
|
+
K[_2] = r2.charCodeAt(_2);
|
|
3137
|
+
return new File([K], `${T}.${l2}`, {
|
|
3138
3138
|
type: $
|
|
3139
3139
|
});
|
|
3140
3140
|
}, fe = async (C) => {
|
|
3141
3141
|
const T = await Ue(C);
|
|
3142
3142
|
let A = A0(T), $ = new FormData();
|
|
3143
3143
|
$.append("file", A);
|
|
3144
|
-
let
|
|
3145
|
-
return await J6($).then((
|
|
3144
|
+
let l2;
|
|
3145
|
+
return await J6($).then((r2) => {
|
|
3146
3146
|
var _2, K, h2, d2, u2, i2, z2;
|
|
3147
|
-
|
|
3148
|
-
url: (_2 =
|
|
3149
|
-
name: (z2 = (h2 = (K =
|
|
3147
|
+
l2 = {
|
|
3148
|
+
url: (_2 = r2.data.result) == null ? void 0 : _2.url,
|
|
3149
|
+
name: (z2 = (h2 = (K = r2.data.result) == null ? void 0 : K.url) == null ? void 0 : h2.split("/")) == null ? void 0 : z2[((i2 = (u2 = (d2 = r2.data.result) == null ? void 0 : d2.url) == null ? void 0 : u2.split("/")) == null ? void 0 : i2.length) - 1]
|
|
3150
3150
|
};
|
|
3151
|
-
}),
|
|
3151
|
+
}), l2;
|
|
3152
3152
|
}, pe = async (C) => {
|
|
3153
3153
|
var T;
|
|
3154
3154
|
try {
|
|
@@ -3156,10 +3156,10 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3156
3156
|
if ($ === void 0) return;
|
|
3157
3157
|
if ($.includes("<table")) {
|
|
3158
3158
|
C.preventDefault();
|
|
3159
|
-
const
|
|
3160
|
-
if (!
|
|
3161
|
-
const { rowIndex:
|
|
3162
|
-
if (
|
|
3159
|
+
const l2 = ge($);
|
|
3160
|
+
if (!l2.length) return;
|
|
3161
|
+
const { rowIndex: r2, columnIndex: _2 } = v.value || { rowIndex: 0, columnIndex: 0 }, K = [];
|
|
3162
|
+
if (l2 == null || l2.forEach((h2) => {
|
|
3163
3163
|
K.push(h2.length + _2);
|
|
3164
3164
|
}), (K == null ? void 0 : K.filter((h2) => {
|
|
3165
3165
|
var d2;
|
|
@@ -3171,17 +3171,17 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3171
3171
|
});
|
|
3172
3172
|
return;
|
|
3173
3173
|
}
|
|
3174
|
-
for (let h2 = 0; h2 <
|
|
3175
|
-
const d2 =
|
|
3174
|
+
for (let h2 = 0; h2 < l2.length; h2++) {
|
|
3175
|
+
const d2 = l2[h2], u2 = f.value[r2 + h2], i2 = F0(u.value).map((z2) => z2.prop);
|
|
3176
3176
|
for (let z2 = 0; z2 < d2.length && _2 + z2 < i2.length; z2++) {
|
|
3177
3177
|
const e0 = i2[_2 + z2];
|
|
3178
3178
|
(u2 == null ? void 0 : u2[e0]) !== void 0 && (u2[e0] = d2[z2] || "");
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
} else {
|
|
3182
|
-
const
|
|
3183
|
-
if (
|
|
3184
|
-
const _2 = new DOMParser().parseFromString(
|
|
3182
|
+
const l2 = A.getData("text/html");
|
|
3183
|
+
if (l2 === void 0) return;
|
|
3184
|
+
const _2 = new DOMParser().parseFromString(l2, "text/html"), K = _2.querySelectorAll("table");
|
|
3185
3185
|
if ((K == null ? void 0 : K.length) > 0) {
|
|
3186
3186
|
C.preventDefault();
|
|
3187
3187
|
const d2 = K[0].querySelectorAll("tr"), u2 = [];
|
|
@@ -3252,7 +3252,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3252
3252
|
} catch (A) {
|
|
3253
3253
|
console.error("粘贴失败:", A);
|
|
3254
3254
|
}
|
|
3255
|
-
}, ge = (C) => C.trim().split(/\r\n|\n|\r/).map(($) => $.trim() ? $.split(" ").map((
|
|
3255
|
+
}, ge = (C) => C.trim().split(/\r\n|\n|\r/).map(($) => $.trim() ? $.split(" ").map((l2) => l2.replace(/^"(.*)"$/, "$1")) : [""]), ve = (C) => {
|
|
3256
3256
|
var T;
|
|
3257
3257
|
C && (v.value = {
|
|
3258
3258
|
rowIndex: C == null ? void 0 : C.$index,
|
|
@@ -3265,8 +3265,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3265
3265
|
if (!$ || $ === "" || $ === null || $ === void 0)
|
|
3266
3266
|
$ = "";
|
|
3267
3267
|
else {
|
|
3268
|
-
const
|
|
3269
|
-
$ =
|
|
3268
|
+
const l2 = Be($, ["YYYY-MM-DD", "YYYY/MM/DD", "YYYY年MM月DD日"], !0);
|
|
3269
|
+
$ = l2.isValid() ? l2.format("YYYY-MM-DD") : "";
|
|
3270
3270
|
}
|
|
3271
3271
|
T[A.prop] = $;
|
|
3272
3272
|
}
|
|
@@ -3276,26 +3276,26 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3276
3276
|
maximumFractionDigits: 2
|
|
3277
3277
|
}), dt = (C) => {
|
|
3278
3278
|
const { columns: T, data: A } = C, $ = [];
|
|
3279
|
-
return T.forEach((
|
|
3279
|
+
return T.forEach((l2, r2) => {
|
|
3280
3280
|
var h2, d2;
|
|
3281
|
-
if (
|
|
3282
|
-
$[
|
|
3281
|
+
if (r2 === 0) {
|
|
3282
|
+
$[r2] = "合计";
|
|
3283
3283
|
return;
|
|
3284
3284
|
}
|
|
3285
|
-
const _2 =
|
|
3285
|
+
const _2 = l2.property, K = (d2 = (h2 = t.columns) == null ? void 0 : h2.filter((u2) => u2 == null ? void 0 : u2.showSummary)) == null ? void 0 : d2.map((u2) => u2.prop);
|
|
3286
3286
|
if (K != null && K.includes(_2)) {
|
|
3287
3287
|
const u2 = A == null ? void 0 : A.map((i2) => Number(i2[_2]));
|
|
3288
3288
|
if (u2.every((i2) => isNaN(i2)))
|
|
3289
|
-
$[
|
|
3289
|
+
$[r2] = "N/A";
|
|
3290
3290
|
else {
|
|
3291
3291
|
const i2 = u2.reduce((z2, e0) => {
|
|
3292
3292
|
const S0 = Number(e0);
|
|
3293
3293
|
return isNaN(S0) ? z2 : z2 + S0;
|
|
3294
3294
|
}, 0);
|
|
3295
|
-
$[
|
|
3295
|
+
$[r2] = ht(i2), ["price", "sales", "cost", "profit"].includes(_2) && ($[r2] = "¥" + $[r2]);
|
|
3296
3296
|
}
|
|
3297
3297
|
} else
|
|
3298
|
-
$[
|
|
3298
|
+
$[r2] = "";
|
|
3299
3299
|
}), $;
|
|
3300
3300
|
};
|
|
3301
3301
|
F2(
|
|
@@ -3306,11 +3306,11 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3306
3306
|
},
|
|
3307
3307
|
{ immediate: !0 }
|
|
3308
3308
|
);
|
|
3309
|
-
const oe =
|
|
3309
|
+
const oe = a2(() => {
|
|
3310
3310
|
var T, A;
|
|
3311
3311
|
const C = (T = u.value) == null ? void 0 : T.find(($) => $ == null ? void 0 : $.isMainKey);
|
|
3312
3312
|
return C || ((A = u.value) == null ? void 0 : A[0]);
|
|
3313
|
-
}), j0 =
|
|
3313
|
+
}), j0 = a2(() => {
|
|
3314
3314
|
const C = [], T = (A) => {
|
|
3315
3315
|
(A || []).forEach(($) => {
|
|
3316
3316
|
$ != null && $.children && $.children.length > 0 ? T($.children) : C.push($);
|
|
@@ -3320,7 +3320,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3320
3320
|
});
|
|
3321
3321
|
return (C, T) => {
|
|
3322
3322
|
var K, h2, d2, u2, i2, z2, e0, S0, Y2;
|
|
3323
|
-
const A = J("el-icon"), $ = J("svg-icon"),
|
|
3323
|
+
const A = J("el-icon"), $ = J("svg-icon"), l2 = J("el-table-column"), r2 = J("el-table"), _2 = J("el-pagination");
|
|
3324
3324
|
return x(), z("div", {
|
|
3325
3325
|
class: "table-content-show",
|
|
3326
3326
|
ref_key: "tableOuterRef",
|
|
@@ -3341,7 +3341,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3341
3341
|
_: 3
|
|
3342
3342
|
}, 8, ["buttons", "columns"])) : Q("", !0),
|
|
3343
3343
|
D2(C.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
|
|
3344
|
-
!n.isCardViewport && ((h2 = n.columns) == null ? void 0 : h2.length) > 0 ? (x(), q(
|
|
3344
|
+
!n.isCardViewport && ((h2 = n.columns) == null ? void 0 : h2.length) > 0 ? (x(), q(r2, {
|
|
3345
3345
|
border: !0,
|
|
3346
3346
|
"highlight-current-row": "",
|
|
3347
3347
|
class: "table-wrap",
|
|
@@ -3363,7 +3363,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3363
3363
|
"row-class-name": me,
|
|
3364
3364
|
"header-cell-class-name": O0,
|
|
3365
3365
|
"cell-class-name": we,
|
|
3366
|
-
onCellMouseEnter:
|
|
3366
|
+
onCellMouseEnter: o2,
|
|
3367
3367
|
onCellMouseLeave: S2,
|
|
3368
3368
|
onContextmenu: T[3] || (T[3] = Ge(() => {
|
|
3369
3369
|
}, ["prevent"])),
|
|
@@ -3374,12 +3374,12 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3374
3374
|
onMouseleave: v2
|
|
3375
3375
|
}, {
|
|
3376
3376
|
empty: H(() => [
|
|
3377
|
-
|
|
3377
|
+
c2("div", {
|
|
3378
3378
|
class: "ss-empty-wrapper",
|
|
3379
|
-
onMouseenter: T[1] || (T[1] = (C2) =>
|
|
3380
|
-
onMouseleave: T[2] || (T[2] = (C2) =>
|
|
3379
|
+
onMouseenter: T[1] || (T[1] = (C2) => s2.value = !0),
|
|
3380
|
+
onMouseleave: T[2] || (T[2] = (C2) => s2.value = !1)
|
|
3381
3381
|
}, [
|
|
3382
|
-
T[5] || (T[5] =
|
|
3382
|
+
T[5] || (T[5] = c2("div", { class: "ss-empty-text" }, "暂无数据", -1)),
|
|
3383
3383
|
M.value ? v3((x(), z("span", {
|
|
3384
3384
|
key: 0,
|
|
3385
3385
|
title: "新增行",
|
|
@@ -3393,14 +3393,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3393
3393
|
_: 1
|
|
3394
3394
|
})
|
|
3395
3395
|
], 512)), [
|
|
3396
|
-
[b6,
|
|
3396
|
+
[b6, s2.value]
|
|
3397
3397
|
]) : Q("", !0)
|
|
3398
3398
|
], 32)
|
|
3399
3399
|
]),
|
|
3400
3400
|
default: H(() => {
|
|
3401
3401
|
var C2, W2, b2, H2, xe, le;
|
|
3402
3402
|
return [
|
|
3403
|
-
M.value ? (x(), q(
|
|
3403
|
+
M.value ? (x(), q(l2, {
|
|
3404
3404
|
key: 0,
|
|
3405
3405
|
width: 55,
|
|
3406
3406
|
fixed: "",
|
|
@@ -3408,14 +3408,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3408
3408
|
"class-name": "no-ellipsis"
|
|
3409
3409
|
}, {
|
|
3410
3410
|
default: H(({ row: j, $index: Ie }) => [
|
|
3411
|
-
v3(
|
|
3412
|
-
|
|
3411
|
+
v3(c2("div", Eg, [
|
|
3412
|
+
c2("span", Bg, [
|
|
3413
3413
|
t2($, {
|
|
3414
3414
|
name: "drag",
|
|
3415
3415
|
style: { width: "15px", height: "15px", cursor: "move" }
|
|
3416
3416
|
})
|
|
3417
3417
|
]),
|
|
3418
|
-
|
|
3418
|
+
c2("span", {
|
|
3419
3419
|
title: "新增行",
|
|
3420
3420
|
style: { cursor: "pointer" },
|
|
3421
3421
|
onClick: Ge((qe) => ue(j, Ie), ["stop"])
|
|
@@ -3427,7 +3427,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3427
3427
|
_: 1
|
|
3428
3428
|
})
|
|
3429
3429
|
], 8, Lg),
|
|
3430
|
-
|
|
3430
|
+
c2("span", {
|
|
3431
3431
|
title: "删除本行",
|
|
3432
3432
|
style: { cursor: "pointer" },
|
|
3433
3433
|
onClick: Ge((qe) => V0(j, Ie), ["stop"])
|
|
@@ -3445,14 +3445,14 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3445
3445
|
]),
|
|
3446
3446
|
_: 1
|
|
3447
3447
|
}, 8, ["align"])) : Q("", !0),
|
|
3448
|
-
n.allowSelect && n.isEditViewport ? (x(), q(
|
|
3448
|
+
n.allowSelect && n.isEditViewport ? (x(), q(l2, {
|
|
3449
3449
|
key: 1,
|
|
3450
3450
|
type: "selection",
|
|
3451
3451
|
width: (C2 = n.columns) != null && C2.some((j) => j == null ? void 0 : j.showSummary) ? 55 : 38,
|
|
3452
3452
|
fixed: "",
|
|
3453
3453
|
selectable: X2
|
|
3454
3454
|
}, null, 8, ["width"])) : Q("", !0),
|
|
3455
|
-
t != null && t.showIndex && !((W2 = t == null ? void 0 : t.tableData) != null && W2.some((j) => j == null ? void 0 : j.children)) && ((H2 = (b2 = t == null ? void 0 : t.columns) == null ? void 0 : b2[0]) == null ? void 0 : H2.prop) !== "disabled" ? (x(), q(
|
|
3455
|
+
t != null && t.showIndex && !((W2 = t == null ? void 0 : t.tableData) != null && W2.some((j) => j == null ? void 0 : j.children)) && ((H2 = (b2 = t == null ? void 0 : t.columns) == null ? void 0 : b2[0]) == null ? void 0 : H2.prop) !== "disabled" ? (x(), q(l2, {
|
|
3456
3456
|
key: 2,
|
|
3457
3457
|
type: "index",
|
|
3458
3458
|
label: "序号",
|
|
@@ -3466,7 +3466,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3466
3466
|
]),
|
|
3467
3467
|
_: 1
|
|
3468
3468
|
})) : Q("", !0),
|
|
3469
|
-
(xe = n.tableData) != null && xe.some((j) => j == null ? void 0 : j.children) && ((le = n.columns) == null ? void 0 : le.length) > 0 ? (x(), q(
|
|
3469
|
+
(xe = n.tableData) != null && xe.some((j) => j == null ? void 0 : j.children) && ((le = n.columns) == null ? void 0 : le.length) > 0 ? (x(), q(l2, {
|
|
3470
3470
|
key: 3,
|
|
3471
3471
|
type: "index",
|
|
3472
3472
|
label: "序号",
|
|
@@ -3589,8 +3589,8 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3589
3589
|
header: H(() => {
|
|
3590
3590
|
var W2, b2;
|
|
3591
3591
|
return [
|
|
3592
|
-
|
|
3593
|
-
|
|
3592
|
+
c2("div", qg, [
|
|
3593
|
+
c2("span", {
|
|
3594
3594
|
title: C2 == null ? void 0 : C2[(W2 = oe.value) == null ? void 0 : W2.prop]
|
|
3595
3595
|
}, E2(C2[(b2 = oe.value) == null ? void 0 : b2.prop]), 9, Yg)
|
|
3596
3596
|
])
|
|
@@ -3609,13 +3609,13 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3609
3609
|
class: "card-content",
|
|
3610
3610
|
key: b2 == null ? void 0 : b2.prop
|
|
3611
3611
|
}, [
|
|
3612
|
-
|
|
3612
|
+
c2("span", {
|
|
3613
3613
|
title: b2 == null ? void 0 : b2.label
|
|
3614
3614
|
}, [
|
|
3615
3615
|
T0(E2(b2 == null ? void 0 : b2.label), 1),
|
|
3616
|
-
T[7] || (T[7] =
|
|
3616
|
+
T[7] || (T[7] = c2("span", { style: { "margin-left": "3px" } }, ":", -1))
|
|
3617
3617
|
], 8, Fg),
|
|
3618
|
-
|
|
3618
|
+
c2("span", {
|
|
3619
3619
|
title: C2 == null ? void 0 : C2[b2 == null ? void 0 : b2.prop]
|
|
3620
3620
|
}, E2(C2 == null ? void 0 : C2[b2 == null ? void 0 : b2.prop]), 9, Kg)
|
|
3621
3621
|
]))), 128))
|
|
@@ -3624,7 +3624,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3624
3624
|
footer: H(() => {
|
|
3625
3625
|
var W2, b2;
|
|
3626
3626
|
return [
|
|
3627
|
-
|
|
3627
|
+
c2("div", Xg, [
|
|
3628
3628
|
(W2 = n.rowButton) != null && W2.find((H2) => (H2 == null ? void 0 : H2.label) === "编辑") ? (x(), q($, {
|
|
3629
3629
|
key: 0,
|
|
3630
3630
|
onClick: (H2) => Q2("编辑", C2, { extra: { label: "编辑" } }),
|
|
@@ -3643,7 +3643,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3643
3643
|
_: 2
|
|
3644
3644
|
}, 1024))), 128))
|
|
3645
3645
|
])),
|
|
3646
|
-
|
|
3646
|
+
c2("div", Qg, [
|
|
3647
3647
|
n.isCardViewport ? Q("", !0) : D2(C.$slots, "batchButton", {
|
|
3648
3648
|
key: 0,
|
|
3649
3649
|
buttons: L.value,
|
|
@@ -3677,7 +3677,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3677
3677
|
style: h0({ top: d.y + "px", left: d.x + "px", position: "fixed", zIndex: 999 })
|
|
3678
3678
|
}, {
|
|
3679
3679
|
content: H(() => [
|
|
3680
|
-
|
|
3680
|
+
c2("div", Zg, [
|
|
3681
3681
|
t2(q0, {
|
|
3682
3682
|
emptyColor: !0,
|
|
3683
3683
|
onClickTrigger: x2,
|
|
@@ -3947,7 +3947,7 @@ const _g = /* @__PURE__ */ B2(xg, [["render", bg]]), yg = { class: "extra-button
|
|
|
3947
3947
|
c("selectMenu", D);
|
|
3948
3948
|
}, p = (D) => {
|
|
3949
3949
|
c("closeMenu", D);
|
|
3950
|
-
}, g =
|
|
3950
|
+
}, g = a2(() => a.value ? (h == null ? void 0 : h.mode) === "vertical" ? a.value : l.value : (h == null ? void 0 : h.mode) === "vertical" ? s.value : l.value), m = a2(() => o.value), v = N(null);
|
|
3951
3951
|
return e({
|
|
3952
3952
|
handleResize: () => {
|
|
3953
3953
|
var D;
|
|
@@ -4146,7 +4146,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4146
4146
|
blobUrl: String
|
|
4147
4147
|
},
|
|
4148
4148
|
setup(n) {
|
|
4149
|
-
const e = n, t =
|
|
4149
|
+
const e = n, t = a2(() => e.blobUrl), i = N(null);
|
|
4150
4150
|
return it(async () => {
|
|
4151
4151
|
t.value;
|
|
4152
4152
|
const o = await (await fetch(t.value)).blob();
|
|
@@ -4172,7 +4172,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4172
4172
|
renderAltChunks: !0
|
|
4173
4173
|
});
|
|
4174
4174
|
}), (s, o) => (x(), z("div", uv, [
|
|
4175
|
-
|
|
4175
|
+
c2("div", {
|
|
4176
4176
|
ref_key: "docxPreview",
|
|
4177
4177
|
ref: i,
|
|
4178
4178
|
class: "render-docx-wrappper"
|
|
@@ -4186,7 +4186,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4186
4186
|
blobUrl: String
|
|
4187
4187
|
},
|
|
4188
4188
|
setup(n) {
|
|
4189
|
-
const e = n, t =
|
|
4189
|
+
const e = n, t = a2(() => e.blobUrl), i = N(null);
|
|
4190
4190
|
return it(async () => {
|
|
4191
4191
|
t.value;
|
|
4192
4192
|
const o = await (await fetch(t.value)).blob();
|
|
@@ -4196,7 +4196,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4196
4196
|
console.log("预览失败", l);
|
|
4197
4197
|
});
|
|
4198
4198
|
}), (s, o) => (x(), z("div", gv, o[0] || (o[0] = [
|
|
4199
|
-
|
|
4199
|
+
c2("div", { id: "excel" }, null, -1)
|
|
4200
4200
|
])));
|
|
4201
4201
|
}
|
|
4202
4202
|
}, mv = /* @__PURE__ */ B2(vv, [["__scopeId", "data-v-08dbfb73"]]), wv = { class: "csv-renderer" }, xv = { class: "csv-pagination" }, bv = {
|
|
@@ -4206,14 +4206,14 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4206
4206
|
blobUrl: String
|
|
4207
4207
|
},
|
|
4208
4208
|
setup(n) {
|
|
4209
|
-
const e = n, t =
|
|
4209
|
+
const e = n, t = a2(() => e.blobUrl), s = o6({
|
|
4210
4210
|
currentPage: 1,
|
|
4211
4211
|
pageSize: 10
|
|
4212
4212
|
});
|
|
4213
4213
|
N([]);
|
|
4214
4214
|
const o = N([]), l = N([]), r = (c) => {
|
|
4215
4215
|
s.currentPage = c;
|
|
4216
|
-
}, a =
|
|
4216
|
+
}, a = a2(() => {
|
|
4217
4217
|
const c = (s.currentPage - 1) * s.pageSize, d = c + s.pageSize;
|
|
4218
4218
|
return o.value.slice(c, d);
|
|
4219
4219
|
}), h = (c) => {
|
|
@@ -4249,7 +4249,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4249
4249
|
]),
|
|
4250
4250
|
_: 1
|
|
4251
4251
|
}, 8, ["data"]),
|
|
4252
|
-
|
|
4252
|
+
c2("div", xv, [
|
|
4253
4253
|
t2(p, {
|
|
4254
4254
|
class: "pagination-self",
|
|
4255
4255
|
onCurrentChange: r,
|
|
@@ -4275,7 +4275,7 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4275
4275
|
blobUrl: String
|
|
4276
4276
|
},
|
|
4277
4277
|
setup(n) {
|
|
4278
|
-
const e = n, t =
|
|
4278
|
+
const e = n, t = a2(() => e.blobUrl), i = N(""), s = N(!1);
|
|
4279
4279
|
return it(async () => {
|
|
4280
4280
|
const o = t.value;
|
|
4281
4281
|
if (!o) {
|
|
@@ -4297,8 +4297,8 @@ const uv = { class: "docx-renderer" }, fv = {
|
|
|
4297
4297
|
i.value && URL.revokeObjectURL(i.value);
|
|
4298
4298
|
}), (o, l) => (x(), z("div", yv, [
|
|
4299
4299
|
s.value ? (x(), z("div", Sv, l[0] || (l[0] = [
|
|
4300
|
-
|
|
4301
|
-
|
|
4300
|
+
c2("div", { class: "pdf-error-title" }, "证书附件加载失败", -1),
|
|
4301
|
+
c2("div", { class: "pdf-error-desc" }, "PDF 文件无法正常打开,请检查附件是否存在或稍后重试。", -1)
|
|
4302
4302
|
]))) : i.value ? (x(), z("iframe", {
|
|
4303
4303
|
key: 1,
|
|
4304
4304
|
src: i.value,
|
|
@@ -12874,22 +12874,22 @@ function Tw(n, e, t) {
|
|
|
12874
12874
|
}
|
|
12875
12875
|
function M(O, _, k) {
|
|
12876
12876
|
let G = 1e9, E = -1e9, V = [];
|
|
12877
|
-
function Y(L, U,
|
|
12878
|
-
let v2 = n.coordsAtPos(L, L == k.to ? -2 : 2), L2 = n.coordsAtPos(
|
|
12879
|
-
!v2 || !L2 || (G = Math.min(v2.top, L2.top, G), E = Math.max(v2.bottom, L2.bottom, E), S2 == I2.LTR ? V.push(o && U ? d : v2.left, o &&
|
|
12877
|
+
function Y(L, U, s2, o2, S2) {
|
|
12878
|
+
let v2 = n.coordsAtPos(L, L == k.to ? -2 : 2), L2 = n.coordsAtPos(s2, s2 == k.from ? 2 : -2);
|
|
12879
|
+
!v2 || !L2 || (G = Math.min(v2.top, L2.top, G), E = Math.max(v2.bottom, L2.bottom, E), S2 == I2.LTR ? V.push(o && U ? d : v2.left, o && o2 ? u : L2.right) : V.push(!o && o2 ? d : L2.left, !o && U ? u : v2.right));
|
|
12880
12880
|
}
|
|
12881
12881
|
let P = O ?? k.from, f2 = _ ?? k.to;
|
|
12882
12882
|
for (let L of n.visibleRanges)
|
|
12883
12883
|
if (L.to > P && L.from < f2)
|
|
12884
|
-
for (let U = Math.max(L.from, P),
|
|
12885
|
-
let
|
|
12886
|
-
for (let S2 of n.bidiSpans(
|
|
12887
|
-
let v2 = S2.from +
|
|
12888
|
-
if (v2 >=
|
|
12884
|
+
for (let U = Math.max(L.from, P), s2 = Math.min(L.to, f2); ; ) {
|
|
12885
|
+
let o2 = n.state.doc.lineAt(U);
|
|
12886
|
+
for (let S2 of n.bidiSpans(o2)) {
|
|
12887
|
+
let v2 = S2.from + o2.from, L2 = S2.to + o2.from;
|
|
12888
|
+
if (v2 >= s2)
|
|
12889
12889
|
break;
|
|
12890
|
-
L2 > U && Y(Math.max(v2, U), O == null && v2 <= P, Math.min(L2,
|
|
12890
|
+
L2 > U && Y(Math.max(v2, U), O == null && v2 <= P, Math.min(L2, s2), _ == null && L2 >= f2, S2.dir);
|
|
12891
12891
|
}
|
|
12892
|
-
if (U =
|
|
12892
|
+
if (U = o2.to + 1, U >= s2)
|
|
12893
12893
|
break;
|
|
12894
12894
|
}
|
|
12895
12895
|
return V.length == 0 && Y(P, O == null, f2, _ == null, n.textDirection), { top: G, bottom: E, horizontal: V };
|
|
@@ -15368,7 +15368,7 @@ function Vx(n) {
|
|
|
15368
15368
|
var e;
|
|
15369
15369
|
let { buffer: t, nodeSet: i, maxBufferLength: s = Go, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new xi(t, t.length) : t, a = i.types, h = 0, c = 0;
|
|
15370
15370
|
function d(O, _, k, G, E, V) {
|
|
15371
|
-
let { id: Y, start: P, end: f2, size: L } = r, U = c,
|
|
15371
|
+
let { id: Y, start: P, end: f2, size: L } = r, U = c, s2 = h;
|
|
15372
15372
|
for (; L < 0; )
|
|
15373
15373
|
if (r.next(), L == -1) {
|
|
15374
15374
|
let n0 = o[Y];
|
|
@@ -15382,7 +15382,7 @@ function Vx(n) {
|
|
|
15382
15382
|
return;
|
|
15383
15383
|
} else
|
|
15384
15384
|
throw new RangeError(`Unrecognized record size: ${L}`);
|
|
15385
|
-
let
|
|
15385
|
+
let o2 = a[Y], S2, v2, L2 = P - O;
|
|
15386
15386
|
if (f2 - P <= s && (v2 = m(r.pos - _, E))) {
|
|
15387
15387
|
let n0 = new Uint16Array(v2.size - v2.skip), q2 = r.pos - v2.size, J2 = n0.length;
|
|
15388
15388
|
for (; r.pos > q2; )
|
|
@@ -15393,12 +15393,12 @@ function Vx(n) {
|
|
|
15393
15393
|
r.next();
|
|
15394
15394
|
let q2 = [], J2 = [], a0 = Y >= l ? Y : -1, X2 = 0, v0 = f2;
|
|
15395
15395
|
for (; r.pos > n0; )
|
|
15396
|
-
a0 >= 0 && r.id == a0 && r.size >= 0 ? (r.end <= v0 - s && (p(q2, J2, P, X2, r.end, v0, a0, U,
|
|
15397
|
-
if (a0 >= 0 && X2 > 0 && X2 < q2.length && p(q2, J2, P, X2, P, v0, a0, U,
|
|
15398
|
-
let R = f(
|
|
15399
|
-
S2 = _i(
|
|
15396
|
+
a0 >= 0 && r.id == a0 && r.size >= 0 ? (r.end <= v0 - s && (p(q2, J2, P, X2, r.end, v0, a0, U, s2), X2 = q2.length, v0 = r.end), r.next()) : V > 2500 ? u(P, n0, q2, J2) : d(P, n0, q2, J2, a0, V + 1);
|
|
15397
|
+
if (a0 >= 0 && X2 > 0 && X2 < q2.length && p(q2, J2, P, X2, P, v0, a0, U, s2), q2.reverse(), J2.reverse(), a0 > -1 && X2 > 0) {
|
|
15398
|
+
let R = f(o2, s2);
|
|
15399
|
+
S2 = _i(o2, q2, J2, 0, q2.length, 0, f2 - P, R, R);
|
|
15400
15400
|
} else
|
|
15401
|
-
S2 = g(
|
|
15401
|
+
S2 = g(o2, q2, J2, f2 - P, U - f2, s2);
|
|
15402
15402
|
}
|
|
15403
15403
|
k.push(S2), G.push(L2);
|
|
15404
15404
|
}
|
|
@@ -15460,17 +15460,17 @@ function Vx(n) {
|
|
|
15460
15460
|
let U = k.pos - L;
|
|
15461
15461
|
if (L < 0 || U < f2 || k.start < Y)
|
|
15462
15462
|
break;
|
|
15463
|
-
let
|
|
15463
|
+
let s2 = k.id >= l ? 4 : 0, o2 = k.start;
|
|
15464
15464
|
for (k.next(); k.pos > U; ) {
|
|
15465
15465
|
if (k.size < 0)
|
|
15466
15466
|
if (k.size == -3)
|
|
15467
|
-
|
|
15467
|
+
s2 += 4;
|
|
15468
15468
|
else
|
|
15469
15469
|
break e;
|
|
15470
|
-
else k.id >= l && (
|
|
15470
|
+
else k.id >= l && (s2 += 4);
|
|
15471
15471
|
k.next();
|
|
15472
15472
|
}
|
|
15473
|
-
E =
|
|
15473
|
+
E = o2, G += L, V += s2;
|
|
15474
15474
|
}
|
|
15475
15475
|
return (_ < 0 || G == O) && (P.size = G, P.start = E, P.skip = V), P.size > 4 ? P : void 0;
|
|
15476
15476
|
}
|
|
@@ -22302,7 +22302,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22302
22302
|
blobUrl: String
|
|
22303
22303
|
},
|
|
22304
22304
|
setup(n) {
|
|
22305
|
-
const e = n, t =
|
|
22305
|
+
const e = n, t = a2(() => e.blobUrl), i = N("");
|
|
22306
22306
|
return it(async () => {
|
|
22307
22307
|
const o = await (await fetch(t.value)).blob(), l = new FileReader();
|
|
22308
22308
|
l.onload = function(r) {
|
|
@@ -22316,7 +22316,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22316
22316
|
});
|
|
22317
22317
|
s.dom.style.width = "100%";
|
|
22318
22318
|
}), (s, o) => (x(), z("div", JS, [
|
|
22319
|
-
|
|
22319
|
+
c2("div", ZS, null, 512)
|
|
22320
22320
|
]));
|
|
22321
22321
|
}
|
|
22322
22322
|
}, tC = /* @__PURE__ */ B2(eC, [["__scopeId", "data-v-5a7ea2b9"]]), iC = { class: "img-renderer" }, nC = {
|
|
@@ -22326,7 +22326,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22326
22326
|
blobUrl: String
|
|
22327
22327
|
},
|
|
22328
22328
|
setup(n) {
|
|
22329
|
-
const e = n, t =
|
|
22329
|
+
const e = n, t = a2(() => e.blobUrl), i = a2(() => [e.blobUrl]);
|
|
22330
22330
|
return (s, o) => {
|
|
22331
22331
|
const l = J("el-image");
|
|
22332
22332
|
return x(), z("div", iC, [
|
|
@@ -22349,7 +22349,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22349
22349
|
blobUrl: String
|
|
22350
22350
|
},
|
|
22351
22351
|
setup(n) {
|
|
22352
|
-
const e = n, t =
|
|
22352
|
+
const e = n, t = a2(() => e.blobUrl), i = N(null);
|
|
22353
22353
|
return it(async () => {
|
|
22354
22354
|
const s = t.value, l = await (await fetch(s)).arrayBuffer();
|
|
22355
22355
|
G0(() => {
|
|
@@ -22360,7 +22360,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22360
22360
|
}).preview(l);
|
|
22361
22361
|
});
|
|
22362
22362
|
}), (s, o) => (x(), z("div", oC, [
|
|
22363
|
-
|
|
22363
|
+
c2("div", {
|
|
22364
22364
|
ref_key: "pptxPreview",
|
|
22365
22365
|
ref: i,
|
|
22366
22366
|
class: "render-pptx-wrappper"
|
|
@@ -22374,14 +22374,14 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22374
22374
|
blobUrl: String
|
|
22375
22375
|
},
|
|
22376
22376
|
setup(n) {
|
|
22377
|
-
const e = n, t =
|
|
22377
|
+
const e = n, t = a2(() => e.blobUrl), i = N("");
|
|
22378
22378
|
return it(async () => {
|
|
22379
22379
|
const o = await (await fetch(t.value)).blob(), l = URL.createObjectURL(o);
|
|
22380
22380
|
i.value = l;
|
|
22381
22381
|
}), e1(() => {
|
|
22382
22382
|
i.value && URL.revokeObjectURL(i.value);
|
|
22383
22383
|
}), (s, o) => (x(), z("div", aC, [
|
|
22384
|
-
|
|
22384
|
+
c2("video", {
|
|
22385
22385
|
src: i.value,
|
|
22386
22386
|
class: "video-tag",
|
|
22387
22387
|
controls: ""
|
|
@@ -22430,32 +22430,32 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22430
22430
|
},
|
|
22431
22431
|
emits: ["destroy"],
|
|
22432
22432
|
setup(n, { emit: e }) {
|
|
22433
|
-
const t = e, i = n, s =
|
|
22433
|
+
const t = e, i = n, s = a2(() => i.blobUrl), o = a2(() => i.fileName), l = a2(() => [{
|
|
22434
22434
|
url: i == null ? void 0 : i.blobUrl,
|
|
22435
22435
|
extension: r.value
|
|
22436
|
-
}]), r =
|
|
22436
|
+
}]), r = a2(() => {
|
|
22437
22437
|
const V = o.value;
|
|
22438
22438
|
if (!V) return;
|
|
22439
22439
|
const Y = V.lastIndexOf(".");
|
|
22440
22440
|
let P = V == null ? void 0 : V.slice(Y + 1);
|
|
22441
22441
|
return P = P == null ? void 0 : P.toLowerCase(), P;
|
|
22442
|
-
}), a =
|
|
22443
|
-
|
|
22442
|
+
}), a = a2(() => (o.value, c.value || d.value || u.value));
|
|
22443
|
+
a2(() => ({
|
|
22444
22444
|
isUv: c.value,
|
|
22445
22445
|
isCpt: h.value,
|
|
22446
22446
|
isCyd: d.value,
|
|
22447
22447
|
isNc: u.value
|
|
22448
22448
|
}));
|
|
22449
|
-
const h =
|
|
22450
|
-
var V, Y, P, f2, L, U;
|
|
22451
|
-
return ((Y = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : Y.includes(".OBJ")) || ((f2 = (P = i.blobUrl) == null ? void 0 : P.toUpperCase()) == null ? void 0 : f2.includes(".
|
|
22452
|
-
}), g =
|
|
22449
|
+
const h = a2(() => (r == null ? void 0 : r.value) === "cpt"), c = a2(() => (r == null ? void 0 : r.value) === "uv"), d = a2(() => (r == null ? void 0 : r.value) === "cyd"), u = a2(() => (r == null ? void 0 : r.value) === "nc"), f = a2(() => (r == null ? void 0 : r.value) === "txt"), p = a2(() => {
|
|
22450
|
+
var V, Y, P, f2, L, U, s2, o2;
|
|
22451
|
+
return ((Y = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : Y.includes(".OBJ")) || ((f2 = (P = i.blobUrl) == null ? void 0 : P.toUpperCase()) == null ? void 0 : f2.includes(".GLB")) || ((U = (L = i.blobUrl) == null ? void 0 : L.toUpperCase()) == null ? void 0 : U.includes(".STL")) || ((o2 = (s2 = i.blobUrl) == null ? void 0 : s2.toUpperCase()) == null ? void 0 : o2.includes(".MTL")) || (r == null ? void 0 : r.value) === "obj" || (r == null ? void 0 : r.value) === "stl";
|
|
22452
|
+
}), g = a2(() => (r == null ? void 0 : r.value) === "ls"), m = a2(() => {
|
|
22453
22453
|
var V, Y;
|
|
22454
22454
|
return ((Y = (V = i.blobUrl) == null ? void 0 : V.toUpperCase()) == null ? void 0 : Y.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
|
|
22455
|
-
}), v =
|
|
22455
|
+
}), v = a2(() => m.value), S = a2(() => (r == null ? void 0 : r.value) === "docx"), M = a2(() => (r == null ? void 0 : r.value) === "csv"), D = a2(() => (r == null ? void 0 : r.value) === "xlsx"), O = a2(() => (r == null ? void 0 : r.value) === "pdf"), _ = a2(() => {
|
|
22456
22456
|
const V = r == null ? void 0 : r.value;
|
|
22457
22457
|
return V === "jpg" || V === "jpeg" || V === "png" || V === "gif" || V === "webp" || V === "bmp";
|
|
22458
|
-
}), k =
|
|
22458
|
+
}), k = a2(() => (r == null ? void 0 : r.value) === "pptx"), G = a2(() => (r == null ? void 0 : r.value) === "mp4"), E = a2(() => !f && !g && !v && !S && !D && !O && !_ && !k);
|
|
22459
22459
|
return e1(() => {
|
|
22460
22460
|
t("destroy");
|
|
22461
22461
|
}), (V, Y) => (x(), z("div", uC, [
|
|
@@ -22528,11 +22528,11 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22528
22528
|
}, null, 8, ["fileName", "blobUrl"])
|
|
22529
22529
|
])) : Q("", !0),
|
|
22530
22530
|
E.value ? (x(), z("div", SC, Y[0] || (Y[0] = [
|
|
22531
|
-
|
|
22531
|
+
c2("div", null, "当前文件格式暂不支持预览", -1)
|
|
22532
22532
|
]))) : Q("", !0)
|
|
22533
22533
|
]));
|
|
22534
22534
|
}
|
|
22535
|
-
}, h9 = /* @__PURE__ */ B2(CC, [["__scopeId", "data-v-
|
|
22535
|
+
}, h9 = /* @__PURE__ */ B2(CC, [["__scopeId", "data-v-b1d28382"]]), kC = { class: "file-preview-container" }, DC = {
|
|
22536
22536
|
key: 0,
|
|
22537
22537
|
class: "container-left"
|
|
22538
22538
|
}, OC = ["title", "onClick"], MC = { class: "container-right" }, TC = /* @__PURE__ */ i0({
|
|
@@ -22552,13 +22552,13 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22552
22552
|
},
|
|
22553
22553
|
{ deep: !0, immediate: !0 }
|
|
22554
22554
|
);
|
|
22555
|
-
const o = N(i.index || 0), l =
|
|
22555
|
+
const o = N(i.index || 0), l = a2(() => {
|
|
22556
22556
|
const c = s == null ? void 0 : s.value, d = o.value;
|
|
22557
22557
|
return c == null ? void 0 : c[d];
|
|
22558
|
-
}), r =
|
|
22558
|
+
}), r = a2(() => {
|
|
22559
22559
|
const c = l == null ? void 0 : l.value;
|
|
22560
22560
|
return c == null ? void 0 : c.name;
|
|
22561
|
-
}), a =
|
|
22561
|
+
}), a = a2(() => {
|
|
22562
22562
|
const c = l == null ? void 0 : l.value;
|
|
22563
22563
|
return c == null ? void 0 : c.blobUrl;
|
|
22564
22564
|
}), h = (c) => {
|
|
@@ -22576,14 +22576,14 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22576
22576
|
"active-item": p == o.value
|
|
22577
22577
|
}])
|
|
22578
22578
|
}, [
|
|
22579
|
-
|
|
22579
|
+
c2("div", {
|
|
22580
22580
|
class: "item-name",
|
|
22581
22581
|
title: f.name,
|
|
22582
22582
|
onClick: (g) => h(p)
|
|
22583
22583
|
}, E2(f == null ? void 0 : f.name), 9, OC)
|
|
22584
22584
|
], 2))), 128))
|
|
22585
22585
|
])) : Q("", !0),
|
|
22586
|
-
|
|
22586
|
+
c2("div", MC, [
|
|
22587
22587
|
t2(h9, {
|
|
22588
22588
|
class: "right-item",
|
|
22589
22589
|
fileName: r.value,
|
|
@@ -22604,7 +22604,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22604
22604
|
},
|
|
22605
22605
|
emits: ["destroy"],
|
|
22606
22606
|
setup(n, { emit: e }) {
|
|
22607
|
-
const t = e, i = n, s = N(!0), o =
|
|
22607
|
+
const t = e, i = n, s = N(!0), o = a2(() => i.fileDataList), l = a2(() => i.index), r = a2(() => i.isRevokeBlob), a = a2(() => {
|
|
22608
22608
|
var m;
|
|
22609
22609
|
const p = o.value;
|
|
22610
22610
|
return (m = p == null ? void 0 : p[0]) == null ? void 0 : m.name;
|
|
@@ -22638,12 +22638,12 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22638
22638
|
zIndex: 3e3
|
|
22639
22639
|
}, {
|
|
22640
22640
|
header: H(() => [
|
|
22641
|
-
|
|
22642
|
-
|
|
22641
|
+
c2("div", zC, [
|
|
22642
|
+
c2("div", {
|
|
22643
22643
|
class: "header-left",
|
|
22644
22644
|
title: a.value
|
|
22645
22645
|
}, E2(a.value), 9, PC),
|
|
22646
|
-
|
|
22646
|
+
c2("div", VC, [
|
|
22647
22647
|
t2(m, null, {
|
|
22648
22648
|
default: H(() => [
|
|
22649
22649
|
t2(Y0(L9), { onClick: h })
|
|
@@ -22668,8 +22668,8 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22668
22668
|
default: H(() => {
|
|
22669
22669
|
var v;
|
|
22670
22670
|
return [
|
|
22671
|
-
|
|
22672
|
-
g[0] || (g[0] =
|
|
22671
|
+
c2("div", AC, [
|
|
22672
|
+
g[0] || (g[0] = c2("div", { class: "file-preview-header" }, null, -1)),
|
|
22673
22673
|
(x(), q(d9, {
|
|
22674
22674
|
class: "file-preview-content",
|
|
22675
22675
|
fileDataList: o.value,
|
|
@@ -22730,20 +22730,20 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22730
22730
|
d.value = _ == null ? void 0 : _.url;
|
|
22731
22731
|
return d.value;
|
|
22732
22732
|
}, g = async (_) => {
|
|
22733
|
-
var G, E, V, Y, P, f2, L, U,
|
|
22733
|
+
var G, E, V, Y, P, f2, L, U, s2;
|
|
22734
22734
|
if ((_ == null ? void 0 : _.oldUrl) || (_ == null ? void 0 : _.url)) {
|
|
22735
|
-
const
|
|
22735
|
+
const o2 = j9.service({
|
|
22736
22736
|
lock: !0,
|
|
22737
22737
|
text: "Loading",
|
|
22738
22738
|
background: "rgba(0, 0, 0, 0.7)"
|
|
22739
22739
|
});
|
|
22740
|
-
c.value = _ != null && _.oldUrl ? (V = _ == null ? void 0 : _.oldUrl) == null ? void 0 : V.split("/")[((E = (G = _ == null ? void 0 : _.oldUrl) == null ? void 0 : G.split("/")) == null ? void 0 : E.length) - 1] : (_ == null ? void 0 : _.name) + "." + ((
|
|
22741
|
-
|
|
22740
|
+
c.value = _ != null && _.oldUrl ? (V = _ == null ? void 0 : _.oldUrl) == null ? void 0 : V.split("/")[((E = (G = _ == null ? void 0 : _.oldUrl) == null ? void 0 : G.split("/")) == null ? void 0 : E.length) - 1] : (_ == null ? void 0 : _.name) + "." + ((s2 = (P = (Y = F0(_)) == null ? void 0 : Y.url) == null ? void 0 : P.split(".")) == null ? void 0 : s2[((U = (L = (f2 = F0(_)) == null ? void 0 : f2.url) == null ? void 0 : L.split(".")) == null ? void 0 : U.length) - 1]), d.value = await p(_).finally(() => {
|
|
22741
|
+
o2.close();
|
|
22742
22742
|
});
|
|
22743
22743
|
} else {
|
|
22744
22744
|
c.value = _ == null ? void 0 : _.name;
|
|
22745
|
-
const
|
|
22746
|
-
d.value = URL.createObjectURL(
|
|
22745
|
+
const o2 = _.raw;
|
|
22746
|
+
d.value = URL.createObjectURL(o2);
|
|
22747
22747
|
}
|
|
22748
22748
|
r.value = [{
|
|
22749
22749
|
name: c.value,
|
|
@@ -22777,11 +22777,11 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22777
22777
|
}), k = await Promise.all(_);
|
|
22778
22778
|
let G = [];
|
|
22779
22779
|
k == null || k.map((V) => {
|
|
22780
|
-
var Y, P, f2, L, U,
|
|
22780
|
+
var Y, P, f2, L, U, s2;
|
|
22781
22781
|
return G.push({
|
|
22782
22782
|
name: ((P = (Y = V == null ? void 0 : V.data) == null ? void 0 : Y.result) == null ? void 0 : P.fileName) ?? (V == null ? void 0 : V.name),
|
|
22783
22783
|
url: ((L = (f2 = V == null ? void 0 : V.data) == null ? void 0 : f2.result) == null ? void 0 : L.url) ?? (V == null ? void 0 : V.url)
|
|
22784
|
-
}), (
|
|
22784
|
+
}), (s2 = (U = V == null ? void 0 : V.data) == null ? void 0 : U.result) == null ? void 0 : s2.url;
|
|
22785
22785
|
}), Xe.success("上传成功"), o.value = G, i("update:modelValue", G), i("change", G), a.value = [], h.value = !1, s.value = !1;
|
|
22786
22786
|
}, D = () => {
|
|
22787
22787
|
h.value = !1, a.value = o.value, u.value = o.value;
|
|
@@ -22814,19 +22814,19 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22814
22814
|
class: "upload-button",
|
|
22815
22815
|
modelValue: "上传"
|
|
22816
22816
|
}),
|
|
22817
|
-
|
|
22817
|
+
c2("div", LC, [
|
|
22818
22818
|
(x(!0), z(k2, null, M2(o.value, (P) => {
|
|
22819
|
-
var f2, L, U,
|
|
22819
|
+
var f2, L, U, s2, o2, S2;
|
|
22820
22820
|
return x(), z("div", {
|
|
22821
22821
|
class: "upload-content-title",
|
|
22822
22822
|
key: P,
|
|
22823
22823
|
style: { display: "flex", "justify-content": "space-between", width: "100%", position: "relative" }
|
|
22824
22824
|
}, [
|
|
22825
|
-
|
|
22825
|
+
c2("div", {
|
|
22826
22826
|
style: { width: "90%", overflow: "hidden", "text-overflow": "ellipsis", "white-space": "nowrap" },
|
|
22827
22827
|
title: P == null ? void 0 : P.name
|
|
22828
|
-
}, E2((L = (f2 = P == null ? void 0 : P.url) == null ? void 0 : f2.split(".")) != null && L[1] ? (P == null ? void 0 : P.name) + "." + ((S2 = (U = P == null ? void 0 : P.url) == null ? void 0 : U.split(".")) == null ? void 0 : S2[((
|
|
22829
|
-
|
|
22828
|
+
}, E2((L = (f2 = P == null ? void 0 : P.url) == null ? void 0 : f2.split(".")) != null && L[1] ? (P == null ? void 0 : P.name) + "." + ((S2 = (U = P == null ? void 0 : P.url) == null ? void 0 : U.split(".")) == null ? void 0 : S2[((o2 = (s2 = P == null ? void 0 : P.url) == null ? void 0 : s2.split(".")) == null ? void 0 : o2.length) - 1]) : P == null ? void 0 : P.name), 9, HC),
|
|
22829
|
+
c2("div", GC, [
|
|
22830
22830
|
t2(G, {
|
|
22831
22831
|
class: "icon-blue",
|
|
22832
22832
|
name: "EyeFill",
|
|
@@ -22856,7 +22856,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22856
22856
|
class: "upload-content"
|
|
22857
22857
|
}, {
|
|
22858
22858
|
tip: H(() => k[1] || (k[1] = [
|
|
22859
|
-
|
|
22859
|
+
c2("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
|
|
22860
22860
|
])),
|
|
22861
22861
|
default: H(() => [
|
|
22862
22862
|
t2(E, { class: "el-icon--upload" }, {
|
|
@@ -22865,17 +22865,17 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22865
22865
|
]),
|
|
22866
22866
|
_: 1
|
|
22867
22867
|
}),
|
|
22868
|
-
k[2] || (k[2] =
|
|
22868
|
+
k[2] || (k[2] = c2("div", { class: "el-upload__text" }, [
|
|
22869
22869
|
T0(" 将文件拖到此处或"),
|
|
22870
|
-
|
|
22870
|
+
c2("em", null, "点击上传")
|
|
22871
22871
|
], -1))
|
|
22872
22872
|
]),
|
|
22873
22873
|
file: H(({ file: P, index: f2 }) => {
|
|
22874
|
-
var L, U,
|
|
22874
|
+
var L, U, s2, o2;
|
|
22875
22875
|
return [
|
|
22876
|
-
|
|
22877
|
-
|
|
22878
|
-
|
|
22876
|
+
c2("div", RC, [
|
|
22877
|
+
c2("div", NC, E2((U = (L = P == null ? void 0 : P.url) == null ? void 0 : L.split(".")) != null && U[1] ? (P == null ? void 0 : P.name) + "." + ((o2 = (s2 = P == null ? void 0 : P.url) == null ? void 0 : s2.split(".")) == null ? void 0 : o2[1]) : P == null ? void 0 : P.name), 1),
|
|
22878
|
+
c2("div", $C, [
|
|
22879
22879
|
t2(G, {
|
|
22880
22880
|
class: "icon-blue",
|
|
22881
22881
|
name: "EyeFill",
|
|
@@ -22899,7 +22899,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22899
22899
|
])
|
|
22900
22900
|
]),
|
|
22901
22901
|
footer: H(() => [
|
|
22902
|
-
|
|
22902
|
+
c2("div", jC, [
|
|
22903
22903
|
t2(q0, {
|
|
22904
22904
|
onClickTrigger: D,
|
|
22905
22905
|
id: "themeBorderButton",
|
|
@@ -22935,7 +22935,7 @@ const QS = /* @__PURE__ */ Z.inputHandler.of((n, e, t, i, s) => {
|
|
|
22935
22935
|
},
|
|
22936
22936
|
emits: ["update:modelValue", "change"],
|
|
22937
22937
|
setup(n, { emit: e }) {
|
|
22938
|
-
const t = n, i =
|
|
22938
|
+
const t = n, i = a2(() => "http://222.92.178.198:62001"), s = e, o = async (h) => {
|
|
22939
22939
|
var g, m, v, S, M;
|
|
22940
22940
|
const { file: c, onSuccess: d, onError: u } = h, f = new FormData();
|
|
22941
22941
|
f.append("file", c);
|
|
@@ -23375,11 +23375,11 @@ var JC = /* @__PURE__ */ i0({
|
|
|
23375
23375
|
onResizeHandler: null,
|
|
23376
23376
|
signaturePad: {},
|
|
23377
23377
|
signatureData: n8
|
|
23378
|
-
}), i = N(null), s =
|
|
23378
|
+
}), i = N(null), s = a2(() => {
|
|
23379
23379
|
if (!i.value)
|
|
23380
23380
|
throw new Error('No canvas could be found with this "ref" in the template');
|
|
23381
23381
|
return i.value;
|
|
23382
|
-
}), o =
|
|
23382
|
+
}), o = a2(() => {
|
|
23383
23383
|
const _ = Array.from(i8(n.images)), k = Array.from(i8(t.cacheImages));
|
|
23384
23384
|
return [..._, ...k];
|
|
23385
23385
|
});
|
|
@@ -23581,9 +23581,9 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23581
23581
|
var p, g, m;
|
|
23582
23582
|
const d = J("el-input-number"), u = J("el-color-picker"), f = J("el-button");
|
|
23583
23583
|
return x(), z(k2, null, [
|
|
23584
|
-
|
|
23584
|
+
c2("div", ek, [
|
|
23585
23585
|
D2(h.$slots, "signatureRender", {}, void 0, !0),
|
|
23586
|
-
|
|
23586
|
+
c2("div", tk, [
|
|
23587
23587
|
D2(h.$slots, "signatureTypes", {}, void 0, !0)
|
|
23588
23588
|
])
|
|
23589
23589
|
]),
|
|
@@ -23595,16 +23595,16 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23595
23595
|
onBeforeDestroy: l
|
|
23596
23596
|
}, {
|
|
23597
23597
|
default: H(() => [
|
|
23598
|
-
|
|
23598
|
+
c2("div", ik, [
|
|
23599
23599
|
t2(Y0(ZC), {
|
|
23600
23600
|
ref_key: "signaturePadRef",
|
|
23601
23601
|
ref: i,
|
|
23602
23602
|
options: s.signOptions
|
|
23603
23603
|
}, null, 8, ["options"])
|
|
23604
23604
|
]),
|
|
23605
|
-
|
|
23606
|
-
|
|
23607
|
-
c[2] || (c[2] =
|
|
23605
|
+
c2("div", nk, [
|
|
23606
|
+
c2("div", null, [
|
|
23607
|
+
c[2] || (c[2] = c2("span", null, "画笔粗细:", -1)),
|
|
23608
23608
|
t2(d, {
|
|
23609
23609
|
modelValue: s.signOptions.minWidth,
|
|
23610
23610
|
"onUpdate:modelValue": c[0] || (c[0] = (v) => s.signOptions.minWidth = v),
|
|
@@ -23614,8 +23614,8 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23614
23614
|
size: "small"
|
|
23615
23615
|
}, null, 8, ["modelValue"])
|
|
23616
23616
|
]),
|
|
23617
|
-
|
|
23618
|
-
c[3] || (c[3] =
|
|
23617
|
+
c2("div", null, [
|
|
23618
|
+
c[3] || (c[3] = c2("span", null, "画笔颜色:", -1)),
|
|
23619
23619
|
t2(u, {
|
|
23620
23620
|
modelValue: s.signOptions.penColor,
|
|
23621
23621
|
"onUpdate:modelValue": c[1] || (c[1] = (v) => s.signOptions.penColor = v),
|
|
@@ -23668,7 +23668,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23668
23668
|
})
|
|
23669
23669
|
]),
|
|
23670
23670
|
default: H(() => [
|
|
23671
|
-
|
|
23671
|
+
c2("div", null, [
|
|
23672
23672
|
D2(i.$slots, "dropTitle")
|
|
23673
23673
|
])
|
|
23674
23674
|
]),
|
|
@@ -23830,7 +23830,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23830
23830
|
a.value = v.root.innerHTML, r("update:modelValue", a.value);
|
|
23831
23831
|
});
|
|
23832
23832
|
}), e({ getDeltaOps: g, setContent: m }), (v, S) => (x(), z("div", rk, [
|
|
23833
|
-
|
|
23833
|
+
c2("div", {
|
|
23834
23834
|
ref_key: "quillEditorRef",
|
|
23835
23835
|
ref: s,
|
|
23836
23836
|
class: "rich-editor"
|
|
@@ -23912,11 +23912,11 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
23912
23912
|
onChange: o
|
|
23913
23913
|
}, {
|
|
23914
23914
|
label: H(({ label: g, value: m }) => [
|
|
23915
|
-
|
|
23915
|
+
c2("div", {
|
|
23916
23916
|
class: Ce(["option", [a({ value: m })]]),
|
|
23917
23917
|
onClick: (v) => c({ value: m })
|
|
23918
23918
|
}, [
|
|
23919
|
-
|
|
23919
|
+
c2("span", null, E2(g) + ": ", 1)
|
|
23920
23920
|
], 10, dk)
|
|
23921
23921
|
]),
|
|
23922
23922
|
default: H(() => [
|
|
@@ -24001,7 +24001,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
24001
24001
|
parent: s
|
|
24002
24002
|
}), i.dom.style.width = "100%");
|
|
24003
24003
|
}), (s, o) => (x(), z("div", gk, [
|
|
24004
|
-
|
|
24004
|
+
c2("div", vk, null, 512)
|
|
24005
24005
|
]));
|
|
24006
24006
|
}
|
|
24007
24007
|
}), wk = /* @__PURE__ */ B2(mk, [["__scopeId", "data-v-1a171015"]]), xk = {
|
|
@@ -24040,7 +24040,7 @@ const ek = { class: "signature-wrap" }, tk = { class: "signature-types" }, ik =
|
|
|
24040
24040
|
default: H(() => [
|
|
24041
24041
|
(x(!0), z(k2, null, M2(t.value, (r, a) => (x(), q(o, { key: a }, {
|
|
24042
24042
|
default: H(() => [
|
|
24043
|
-
|
|
24043
|
+
c2("img", {
|
|
24044
24044
|
src: (r == null ? void 0 : r.url) ?? "",
|
|
24045
24045
|
style: { width: "100%", height: "100%", "object-fit": "cover", "object-position": "center" }
|
|
24046
24046
|
}, null, 8, bk)
|