ss-component-new 1.2.174 → 1.2.176
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-DnU-_0qE.cjs → MTLLoader-45vFx6Ci.cjs} +1 -1
- package/dist/{MTLLoader-Dl-ac2Xc.js → MTLLoader-DgByTNTq.js} +1 -1
- package/dist/{OrbitControls-DBaOfNY1.cjs → OrbitControls-CV-MrHG5.cjs} +1 -1
- package/dist/{OrbitControls-08gYRf-k.js → OrbitControls-Cv9SGdpv.js} +1 -1
- package/dist/{URDFLoader-C11oinCY.js → URDFLoader-BY2oim56.js} +2 -2
- package/dist/{URDFLoader-BYN2TFBY.cjs → URDFLoader-DwCZd3DT.cjs} +1 -1
- package/dist/{animationData-fw9gK6CN.js → animationData-B8-fvoQG.js} +2 -2
- package/dist/{animationData-BwErKO8V.cjs → animationData-BKJUksL6.cjs} +1 -1
- package/dist/{array-CjCpc4js.js → array-DDU6IBRR.js} +3 -3
- package/dist/{array-D4229AW1.cjs → array-iLq62gEW.cjs} +1 -1
- package/dist/{iconfont-B4PGRH37.cjs → iconfont-B1otHnDa.cjs} +1 -1
- package/dist/{iconfont-Dr0PaeMz.js → iconfont-CbHnKyhA.js} +2 -2
- package/dist/{index-B21qqUNb.js → index--EnWvfjl.js} +12 -12
- package/dist/{index-T0S7XRLq.cjs → index-1Dx828Pd.cjs} +1 -1
- package/dist/{index-FpU5EJWF.cjs → index-2T7wIHAe.cjs} +8 -8
- package/dist/{index-DO9m7iwV.cjs → index-B6EJeVdw.cjs} +1 -1
- package/dist/index-B8sq_vLt.cjs +1 -0
- package/dist/{index-BbzUzdxF.cjs → index-BAsZ3voF.cjs} +1 -1
- package/dist/{index-DSpiwuKc.js → index-BCLmAS_S.js} +3 -3
- package/dist/{index-BWdWpylx.js → index-BGy8QZn-.js} +2 -2
- package/dist/{index-B5qThuu5.js → index-BHKVF-1G.js} +4 -4
- package/dist/{index-_lg-jrRI.js → index-BIiBz_NW.js} +2 -2
- package/dist/{index-B0Y6mTFc.cjs → index-BJ73Hg5A.cjs} +1 -1
- package/dist/{index-gvHJ-SKY.js → index-BTwnAq9V.js} +2 -2
- package/dist/{index-CcIz2WvB.cjs → index-BW4bir8C.cjs} +1 -1
- package/dist/{index-BoXjy_oE.cjs → index-BXaReejM.cjs} +1 -1
- package/dist/{index-62PHNV7A.js → index-B_OASRUO.js} +2 -2
- package/dist/{index-B9Fj4p7y.cjs → index-B_UBWpUs.cjs} +1 -1
- package/dist/{index-B9RgIMDB.cjs → index-Bb1ASXl0.cjs} +1 -1
- package/dist/{index-8NtV5Za3.cjs → index-Bc0ovJko.cjs} +1 -1
- package/dist/{index--o3zbzBq.cjs → index-BeqOPHw8.cjs} +1 -1
- package/dist/{index-D11k4SIo.js → index-Bh6Cfkzz.js} +4 -4
- package/dist/{index-BVJgsri-.js → index-BoKPQB2W.js} +2 -2
- package/dist/{index-2EVaN5A_.js → index-Bqrm3VDZ.js} +1 -1
- package/dist/{index-DOCHgBta.cjs → index-C5woD5Cw.cjs} +1 -1
- package/dist/{index-D8bsSh35.js → index-CHSOjR_9.js} +1 -1
- package/dist/{index-u_XtQAdw.js → index-CJlqtSTk.js} +2 -2
- package/dist/{index-CNKq3fM4.js → index-CJxrfrKo.js} +1 -1
- package/dist/index-CLY3ClAw.js +3003 -0
- package/dist/{index-BgqcOjwU.js → index-CLcEWUQQ.js} +309 -309
- package/dist/{index-BAz8tyeQ.cjs → index-CMdOKx6I.cjs} +1 -1
- package/dist/{index-YRgFFlVF.cjs → index-CTTqwfEF.cjs} +1 -1
- package/dist/{index-DVLGD_xN.cjs → index-CXpkAw7j.cjs} +1 -1
- package/dist/{index-BJG5F2fN.js → index-Cbz6asV0.js} +20 -20
- package/dist/{index-Z3NUprRN.cjs → index-CdvvA3L2.cjs} +1 -1
- package/dist/{index-Dow79ST3.js → index-Cepu8Qla.js} +3 -3
- package/dist/{index-Bu0HcZoI.cjs → index-ChkP8gF9.cjs} +1 -1
- package/dist/{index-D0TxueFB.js → index-CxwoI7_o.js} +11 -11
- package/dist/{index-zHH5odRp.js → index-CyZCNsOm.js} +1 -1
- package/dist/{index-CJDd22HW.cjs → index-CzxvgOoq.cjs} +1 -1
- package/dist/{index-DEXbyvkC.js → index-DBeShjqg.js} +3 -3
- package/dist/{index-BKFgofzO.cjs → index-DR2LCnDS.cjs} +1 -1
- package/dist/{index-JabYXYXQ.cjs → index-DUfSCM58.cjs} +1 -1
- package/dist/{index-CJsP-Bi6.js → index-DYp9HoIy.js} +4 -4
- package/dist/{index-CwZLLmeE.cjs → index-DaBJPfdj.cjs} +1 -1
- package/dist/{index-DZJF7-NI.cjs → index-DbA1QvN6.cjs} +1 -1
- package/dist/{index-VWXFMFZK.js → index-DdGM4pfX.js} +6 -6
- package/dist/{index-AIq5wzuR.js → index-Dh_LOm8w.js} +1 -1
- package/dist/{index-BTwAhIqv.js → index-DsBk8w3n.js} +6 -6
- package/dist/{index-CvlhzNfh.js → index-DspBnzO8.js} +3 -3
- package/dist/{index-De916rC8.js → index-DuZuYtAR.js} +2 -2
- package/dist/{index-D_HjcWeY.js → index-DwS0e871.js} +3 -3
- package/dist/{index-yLCU5zNq.cjs → index-Ium3D9Xn.cjs} +1 -1
- package/dist/{index-JzEXlhfX.cjs → index-JX0xIJJs.cjs} +1 -1
- package/dist/{index-DIUrwul5.js → index-KFoWHXov.js} +7 -5
- package/dist/{index-BIkQWptd.cjs → index-Xb_d3z-H.cjs} +1 -1
- package/dist/{index-C851lMfD.cjs → index-ebb7fOBC.cjs} +1 -1
- package/dist/{index-D_tbgi5B.cjs → index-mRt4-HgX.cjs} +1 -1
- package/dist/{index-CcS5ZULi.cjs → index-nPMsxEkB.cjs} +1 -1
- package/dist/{index-CYqvvs6c.js → index-p7fh1xeg.js} +2 -2
- package/dist/{index-C8qRkCgn.cjs → index-y1mE3_ai.cjs} +1 -1
- package/dist/{index-DnG4TOG3.js → index-zTfKUp5L.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CGlYjPep.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-21n-WGUD.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B-HlXjPZ.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-GhCn4ra9.js} +10 -10
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DK2lOc59.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B7Adlltj.cjs} +302 -302
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CB4xwX-n.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DoTLasl4.js} +9998 -9977
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DIXVC7ze.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Bz5MX8WX.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-CEuWgO-Z.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-XNlqwY8T.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BHmG03vO.js → index.vue_vue_type_style_index_1_lang-BObmb_2e.js} +5 -5
- package/dist/{index.vue_vue_type_style_index_1_lang-DpEHApyB.cjs → index.vue_vue_type_style_index_1_lang-BgpaLloL.cjs} +1 -1
- package/dist/{isString-CN3i5s9o.js → isString-BcJYo5aE.js} +1 -1
- package/dist/{isString--eJE54G5.cjs → isString-MUYgjroV.cjs} +1 -1
- package/dist/{main-B7pZ1zpO.js → main-CdSJrviV.js} +5 -5
- package/dist/{main-CcP8l8bC.cjs → main-TkudtmSP.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-BiIAmv8u.js → threeModel-CC7wm7qI.js} +5 -5
- package/dist/{threeModel-DG60NMbV.cjs → threeModel-CILtwOhV.cjs} +1 -1
- package/dist/{threePreview-D1i8Yoq7.cjs → threePreview-6K0uX_kn.cjs} +1 -1
- package/dist/{threePreview-eGNGV75a.js → threePreview-B2c38aNi.js} +4 -4
- package/dist/{threeSceneView-gtG3gW_n.js → threeSceneView-DKe-yheh.js} +11 -11
- package/dist/{threeSceneView-DHcAYydA.cjs → threeSceneView-R3C2C5mu.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-93ehCJ6D.js → threeSceneViewForCPMPIP-B8KV3E55.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-BGHtc9I0.cjs → threeSceneViewForCPMPIP-D5GmzScE.cjs} +1 -1
- package/dist/{threeTrackPathView-BLdeA91H.js → threeTrackPathView-AOVKXiLQ.js} +5 -5
- package/dist/{threeTrackPathView-DDHWF6Xv.cjs → threeTrackPathView-BYJQxkco.cjs} +1 -1
- package/dist/{threeViewerHost-xz57yFOy.cjs → threeViewerHost-Birr5icJ.cjs} +1 -1
- package/dist/{threeViewerHost-D80DHj4z.js → threeViewerHost-D3nc548f.js} +4 -4
- package/dist/{urdfTree-BItMIcjh.js → urdfTree-BORFZd89.js} +1 -1
- package/dist/{urdfTree-3xrRaA9A.cjs → urdfTree-j7pQuwXM.cjs} +1 -1
- package/dist/{workpieceTreePanel-BtfT-tQ_.cjs → workpieceTreePanel-C3Ah_exL.cjs} +1 -1
- package/dist/{workpieceTreePanel-BaZfzpLg.js → workpieceTreePanel-vnbkBGAm.js} +4 -4
- package/package.json +1 -1
- package/dist/index-BYdpkgf5.cjs +0 -1
- package/dist/index-HWW9JSNL.js +0 -2990
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as G, resolveComponent as Z, createBlock as W, openBlock as b, createCommentVNode as
|
|
1
|
+
import { ref as G, resolveComponent as Z, createBlock as W, openBlock as b, createCommentVNode as s0, createSlots as G2, withCtx as H, renderSlot as v0, defineComponent as f2, onMounted as fe, createVNode as e0, createElementVNode as d0, createElementBlock as B, Fragment as S0, renderList as k0, createTextVNode as N2, toDisplayString as U0, reactive as p1, h as Ie, Transition as qr, withDirectives as gt, vShow as Xt, createApp as Yr, toRefs as A4, nextTick as O2, isRef as Kr, watch as l2, computed as n0, onBeforeUnmount as Tn, normalizeStyle as J0, normalizeClass as Z3, resolveDynamicComponent as Qt, normalizeProps as Xr, guardReactiveProps as Qr, mergeProps as g1, withModifiers as V4, inject as Jr, watchEffect as Ce, onUnmounted as m1, unref as lt, resolveDirective as Zr } from "vue";
|
|
2
2
|
import { S as mt } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { aO as e8, W as B4, n as tt, c as t8, u as i8, T as bs, e as E4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as _s, aU as ys } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { aO as e8, W as B4, n as tt, c as t8, u as i8, T as bs, e as E4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as _s, aU as ys } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DoTLasl4.js";
|
|
4
4
|
import { _ as V0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { bQ as L4, bR as H4, cf as a8, cg as Ss, bG as c8, b8 as l3, V as h8, af as I4, aJ as zt, b7 as Cs, $ as R4, ch as d8, E as I3, p as rt, s as vt, c as ee, a as N4, ci as u8, aW as f8, aw as p8, cj as g8, b as m8, b2 as v8 } from "./index-
|
|
5
|
+
import { bQ as L4, bR as H4, cf as a8, cg as Ss, bG as c8, b8 as l3, V as h8, af as I4, aJ as zt, b7 as Cs, $ as R4, ch as d8, E as I3, p as rt, s as vt, c as ee, a as N4, ci as u8, aW as f8, aw as p8, cj as g8, b as m8, b2 as v8 } from "./index-KFoWHXov.js";
|
|
6
6
|
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
|
-
import { a as zn, u as Pn } from "./index-
|
|
8
|
-
import { s as An } from "./index-
|
|
9
|
-
import { T as ks, a as w8 } from "./threeViewerHost-
|
|
10
|
-
import { s as x8 } from "./index-
|
|
7
|
+
import { a as zn, u as Pn } from "./index-Dh_LOm8w.js";
|
|
8
|
+
import { s as An } from "./index-CHSOjR_9.js";
|
|
9
|
+
import { T as ks, a as w8 } from "./threeViewerHost-D3nc548f.js";
|
|
10
|
+
import { s as x8 } from "./index-BGy8QZn-.js";
|
|
11
11
|
var b8 = "[object Date]";
|
|
12
12
|
function _8(n) {
|
|
13
13
|
return L4(n) && H4(n) == b8;
|
|
@@ -78,7 +78,7 @@ const S8 = {
|
|
|
78
78
|
const e = n, t = G(e.value);
|
|
79
79
|
return (i, s) => {
|
|
80
80
|
const o = Z("el-input");
|
|
81
|
-
return Array.isArray(t.value) ?
|
|
81
|
+
return Array.isArray(t.value) ? s0("", !0) : (b(), W(o, {
|
|
82
82
|
key: 0,
|
|
83
83
|
modelValue: t.value,
|
|
84
84
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
@@ -1227,15 +1227,15 @@ const bu = {
|
|
|
1227
1227
|
(f, p, m) => p === m.findIndex((v) => v.value === f.value)
|
|
1228
1228
|
);
|
|
1229
1229
|
}), d = async () => {
|
|
1230
|
-
var u, f, p, m, v, w, _, D,
|
|
1230
|
+
var u, f, p, m, v, w, _, D, O, k, x, y, E, j, z, I, M;
|
|
1231
1231
|
if (((f = (u = t.optionUrl) == null ? void 0 : u.allSelectionContents) == null ? void 0 : f.length) > 0) {
|
|
1232
1232
|
let t0 = "", J = [];
|
|
1233
1233
|
(_ = (w = (v = (m = (p = t.optionUrl) == null ? void 0 : p.selectFilter) == null ? void 0 : m.replaceAll("(", "")) == null ? void 0 : v.replaceAll(")", "")) == null ? void 0 : w.split("||")) == null || _.forEach((l0) => {
|
|
1234
1234
|
let r0 = l0 == null ? void 0 : l0.split("=");
|
|
1235
1235
|
t0 = r0 == null ? void 0 : r0[0], J == null || J.push(r0 == null ? void 0 : r0[1]);
|
|
1236
1236
|
});
|
|
1237
|
-
let P = (
|
|
1238
|
-
o.value = (y = (x = (
|
|
1237
|
+
let P = (O = (D = t.optionUrl) == null ? void 0 : D.contactValue) == null ? void 0 : O[t0], $ = J == null ? void 0 : J.findIndex((l0) => l0 === P);
|
|
1238
|
+
o.value = (y = (x = (k = t.optionUrl) == null ? void 0 : k.allSelectionContents) == null ? void 0 : x[$]) == null ? void 0 : y.map((l0) => ({
|
|
1239
1239
|
label: l0,
|
|
1240
1240
|
value: l0
|
|
1241
1241
|
}));
|
|
@@ -1346,11 +1346,11 @@ const bu = {
|
|
|
1346
1346
|
r("preview", P);
|
|
1347
1347
|
}, D = () => {
|
|
1348
1348
|
r("blur", d.value);
|
|
1349
|
-
},
|
|
1349
|
+
}, O = (P) => {
|
|
1350
1350
|
r("blurChange", d.value, {
|
|
1351
1351
|
changeProp: P
|
|
1352
1352
|
});
|
|
1353
|
-
},
|
|
1353
|
+
}, k = (P, $) => {
|
|
1354
1354
|
r("create", {
|
|
1355
1355
|
item: P,
|
|
1356
1356
|
value: $
|
|
@@ -1461,7 +1461,7 @@ const bu = {
|
|
|
1461
1461
|
formDisabled: n.formDisabled,
|
|
1462
1462
|
formLabelsOperable: n.formLabelsOperable
|
|
1463
1463
|
}, void 0, !0)
|
|
1464
|
-
])) :
|
|
1464
|
+
])) : s0("", !0),
|
|
1465
1465
|
d0("div", Ou, [
|
|
1466
1466
|
t.isEnableWrap ? (b(), W(r0, {
|
|
1467
1467
|
ref_key: "formWrapRef",
|
|
@@ -1485,7 +1485,7 @@ const bu = {
|
|
|
1485
1485
|
default: H(() => {
|
|
1486
1486
|
var O0, n2, a2, M2, y2, Q0, I2, T2, U2, F2, Ae, Ve, Be, Ee;
|
|
1487
1487
|
return [
|
|
1488
|
-
g != null && g.isFormColHidden ?
|
|
1488
|
+
g != null && g.isFormColHidden ? s0("", !0) : (b(), W(Qt(v((g == null ? void 0 : g.type) ?? "Input")), {
|
|
1489
1489
|
modelValue: d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)],
|
|
1490
1490
|
"onUpdate:modelValue": (p2) => d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)] = p2,
|
|
1491
1491
|
key: g == null ? void 0 : g.type,
|
|
@@ -1497,8 +1497,8 @@ const bu = {
|
|
|
1497
1497
|
onChange: J,
|
|
1498
1498
|
optionUrl: g == null ? void 0 : g.optionUrl,
|
|
1499
1499
|
onChangeVisible: E,
|
|
1500
|
-
onBlurChange: (p2) =>
|
|
1501
|
-
onCreate: (p2) =>
|
|
1500
|
+
onBlurChange: (p2) => O((g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)),
|
|
1501
|
+
onCreate: (p2) => k(g, p2),
|
|
1502
1502
|
config: g == null ? void 0 : g.config,
|
|
1503
1503
|
configModel: (g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)
|
|
1504
1504
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "disabled", "optionUrl", "onBlurChange", "onCreate", "config", "configModel"])),
|
|
@@ -1507,7 +1507,7 @@ const bu = {
|
|
|
1507
1507
|
class: "calculator-content form-preview",
|
|
1508
1508
|
onClickTrigger: (p2) => _(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
1509
1509
|
modelValue: "预览"
|
|
1510
|
-
}, null, 8, ["onClickTrigger"])) :
|
|
1510
|
+
}, null, 8, ["onClickTrigger"])) : s0("", !0)
|
|
1511
1511
|
];
|
|
1512
1512
|
}),
|
|
1513
1513
|
_: 2
|
|
@@ -1538,7 +1538,7 @@ const bu = {
|
|
|
1538
1538
|
]),
|
|
1539
1539
|
_: 2
|
|
1540
1540
|
}, 1032, ["value", "onChange"])) : (b(), B("div", Du, U0(g == null ? void 0 : g.label), 1))
|
|
1541
|
-
], 4)) :
|
|
1541
|
+
], 4)) : s0("", !0)
|
|
1542
1542
|
]),
|
|
1543
1543
|
key: "0"
|
|
1544
1544
|
} : void 0
|
|
@@ -1559,9 +1559,9 @@ const bu = {
|
|
|
1559
1559
|
class: "form-button-item",
|
|
1560
1560
|
style: J0({ background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)" }),
|
|
1561
1561
|
onClick: (O0) => t0(g == null ? void 0 : g.label, a.value)
|
|
1562
|
-
}, U0(g == null ? void 0 : g.label), 13, Mu)) :
|
|
1562
|
+
}, U0(g == null ? void 0 : g.label), 13, Mu)) : s0("", !0)
|
|
1563
1563
|
]))), 128))
|
|
1564
|
-
], 4)) :
|
|
1564
|
+
], 4)) : s0("", !0)
|
|
1565
1565
|
];
|
|
1566
1566
|
}),
|
|
1567
1567
|
_: 1
|
|
@@ -1605,24 +1605,24 @@ const bu = {
|
|
|
1605
1605
|
key: g == null ? void 0 : g.type,
|
|
1606
1606
|
optionUrl: g == null ? void 0 : g.optionUrl,
|
|
1607
1607
|
onChangeVisible: E,
|
|
1608
|
-
onBlurChange: (p2) =>
|
|
1609
|
-
onCreate: (p2) =>
|
|
1608
|
+
onBlurChange: (p2) => O((g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)),
|
|
1609
|
+
onCreate: (p2) => k(g, p2),
|
|
1610
1610
|
config: g == null ? void 0 : g.config,
|
|
1611
1611
|
configModel: (g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)
|
|
1612
|
-
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "optionUrl", "onBlurChange", "onCreate", "config", "configModel"])) :
|
|
1612
|
+
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "optionUrl", "onBlurChange", "onCreate", "config", "configModel"])) : s0("", !0),
|
|
1613
1613
|
(g == null ? void 0 : g.type) === "Url" ? (b(), B("div", zu, [
|
|
1614
1614
|
e0(ye, {
|
|
1615
1615
|
class: "calculator-content form-preview",
|
|
1616
1616
|
onClickTrigger: (p2) => p(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
1617
1617
|
modelValue: "详情"
|
|
1618
1618
|
}, null, 8, ["onClickTrigger"])
|
|
1619
|
-
])) :
|
|
1619
|
+
])) : s0("", !0),
|
|
1620
1620
|
typeof d.value[(g == null ? void 0 : g.prop) ?? g.name] == "string" && ((O0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && O0.includes(".stl") || (n2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && n2.includes(".obj") || (a2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && a2.includes(".urdf") || (M2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && M2.includes(".STL") || (y2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && y2.includes(".ls") || (Q0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Q0.includes(".uv") || (I2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && I2.includes(".UV") || (T2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && T2.includes(".cpt") || (U2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && U2.includes(".CPT") || (F2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && F2.includes(".cyd") || (Ae = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ae.includes(".CYD") || (Ve = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ve.includes(".nc") || (Be = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Be.includes(".NC") || (Ee = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ee.includes(".csv")) ? (b(), W(ye, {
|
|
1621
1621
|
key: 2,
|
|
1622
1622
|
class: "calculator-content form-preview",
|
|
1623
1623
|
onClickTrigger: (p2) => _(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
1624
1624
|
modelValue: "预览"
|
|
1625
|
-
}, null, 8, ["onClickTrigger"])) :
|
|
1625
|
+
}, null, 8, ["onClickTrigger"])) : s0("", !0)
|
|
1626
1626
|
];
|
|
1627
1627
|
}),
|
|
1628
1628
|
_: 2
|
|
@@ -1653,7 +1653,7 @@ const bu = {
|
|
|
1653
1653
|
]),
|
|
1654
1654
|
_: 2
|
|
1655
1655
|
}, 1032, ["value", "onChange"])) : (b(), B("div", Tu, U0(g == null ? void 0 : g.label), 1))
|
|
1656
|
-
], 4)) :
|
|
1656
|
+
], 4)) : s0("", !0)
|
|
1657
1657
|
]),
|
|
1658
1658
|
key: "0"
|
|
1659
1659
|
} : void 0
|
|
@@ -1674,9 +1674,9 @@ const bu = {
|
|
|
1674
1674
|
class: "form-button-item",
|
|
1675
1675
|
style: J0({ background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)" }),
|
|
1676
1676
|
onClick: (O0) => t0(g == null ? void 0 : g.label, h.value)
|
|
1677
|
-
}, U0(g == null ? void 0 : g.label), 13, Pu)) :
|
|
1677
|
+
}, U0(g == null ? void 0 : g.label), 13, Pu)) : s0("", !0)
|
|
1678
1678
|
]))), 128))
|
|
1679
|
-
], 4)) :
|
|
1679
|
+
], 4)) : s0("", !0)
|
|
1680
1680
|
];
|
|
1681
1681
|
}),
|
|
1682
1682
|
_: 1
|
|
@@ -1702,7 +1702,7 @@ const bu = {
|
|
|
1702
1702
|
_: 2
|
|
1703
1703
|
}, 1032, ["style"])
|
|
1704
1704
|
], 8, Au))), 128))
|
|
1705
|
-
], 4)) :
|
|
1705
|
+
], 4)) : s0("", !0)
|
|
1706
1706
|
], 4);
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
@@ -1935,20 +1935,20 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
1935
1935
|
return (e, t) => {
|
|
1936
1936
|
var r, a, h, c, d, u, f, p, m, v, w;
|
|
1937
1937
|
const i = Z("svg-icon"), s = Z("el-tooltip"), o = Z("RecurseCol", !0), l = Z("el-table-column");
|
|
1938
|
-
return n.column.isHidden ?
|
|
1938
|
+
return n.column.isHidden ? s0("", !0) : (b(), W(l, {
|
|
1939
1939
|
key: 0,
|
|
1940
1940
|
label: n.column.label,
|
|
1941
1941
|
prop: n.column.prop,
|
|
1942
|
-
fixed: ((r = n.column) == null ? void 0 : r.
|
|
1942
|
+
fixed: ((r = n.column) == null ? void 0 : r.prop) === "operate" ? "right" : (a = n.column) == null ? void 0 : a.fixed,
|
|
1943
1943
|
align: ((h = n.column) == null ? void 0 : h.align) ?? "left",
|
|
1944
|
-
sortable: ((c = n.column) == null ? void 0 : c.
|
|
1944
|
+
sortable: ((c = n.column) == null ? void 0 : c.prop) === "operate" ? !1 : ((d = n.column) == null ? void 0 : d.sortable) ?? !0,
|
|
1945
1945
|
"show-overflow-tooltip": ((u = n.column) == null ? void 0 : u.showOverflowTooltip) ?? !0,
|
|
1946
1946
|
width: ((f = n.column) == null ? void 0 : f.width) > 80 ? 80 : (p = n.column) == null ? void 0 : p.width,
|
|
1947
|
-
"min-width": ((m = n.column) == null ? void 0 : m.
|
|
1947
|
+
"min-width": ((m = n.column) == null ? void 0 : m.prop) === "operate" ? 40 : (v = n.column) == null ? void 0 : v.width,
|
|
1948
1948
|
"class-name": (((w = n.column) == null ? void 0 : w.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
1949
1949
|
}, {
|
|
1950
1950
|
header: H(() => [
|
|
1951
|
-
n.column.
|
|
1951
|
+
n.column.prop !== "operate" ? (b(), B("span", Fu, U0(n.column.label), 1)) : (b(), W(s, {
|
|
1952
1952
|
key: 1,
|
|
1953
1953
|
content: "操作",
|
|
1954
1954
|
placement: "left-start",
|
|
@@ -1970,11 +1970,11 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
1970
1970
|
$index: _.$index,
|
|
1971
1971
|
scope: _
|
|
1972
1972
|
}),
|
|
1973
|
-
(b(!0), B(S0, null, k0(n.column.children, (D,
|
|
1974
|
-
key:
|
|
1973
|
+
(b(!0), B(S0, null, k0(n.column.children, (D, O) => (b(), W(o, {
|
|
1974
|
+
key: O,
|
|
1975
1975
|
column: D
|
|
1976
1976
|
}, G2({ _: 2 }, [
|
|
1977
|
-
k0(e.$slots, (
|
|
1977
|
+
k0(e.$slots, (k, x) => ({
|
|
1978
1978
|
name: x,
|
|
1979
1979
|
fn: H(({ row: y, slotData: E, item: j, column: z }) => [
|
|
1980
1980
|
v0(e.$slots, x, g1({ ref_for: !0 }, E ?? y, {
|
|
@@ -2033,24 +2033,24 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2033
2033
|
})) : !1;
|
|
2034
2034
|
};
|
|
2035
2035
|
return (d, u) => {
|
|
2036
|
-
var m, v, w, _, D,
|
|
2036
|
+
var m, v, w, _, D, O, k, x, y, E, j, z;
|
|
2037
2037
|
const f = Z("svg-icon"), p = Z("el-table-column");
|
|
2038
|
-
return n.column.isTableColHidden ?
|
|
2038
|
+
return n.column.isTableColHidden ? s0("", !0) : (b(), W(p, {
|
|
2039
2039
|
key: 0,
|
|
2040
2040
|
label: n.column.label,
|
|
2041
2041
|
prop: n.column.prop,
|
|
2042
|
-
fixed: ((m = n.column) == null ? void 0 : m.
|
|
2042
|
+
fixed: ((m = n.column) == null ? void 0 : m.prop) === "operate" ? "right" : (v = n.column) == null ? void 0 : v.fixed,
|
|
2043
2043
|
align: ((w = n.column) == null ? void 0 : w.align) ?? "left",
|
|
2044
|
-
sortable: ((_ = n.column) == null ? void 0 : _.
|
|
2045
|
-
filters: (
|
|
2044
|
+
sortable: ((_ = n.column) == null ? void 0 : _.prop) === "operate" ? !1 : ((D = n.column) == null ? void 0 : D.sortable) ?? !1,
|
|
2045
|
+
filters: (O = n.column) != null && O.filterable ? c(n.column) : null,
|
|
2046
2046
|
"filter-method": l,
|
|
2047
|
-
"show-overflow-tooltip": ((
|
|
2047
|
+
"show-overflow-tooltip": ((k = n.column) == null ? void 0 : k.showOverflowTooltip) ?? !0,
|
|
2048
2048
|
width: ((x = n.column) == null ? void 0 : x.width) > 80 ? 80 : (y = n.column) == null ? void 0 : y.width,
|
|
2049
|
-
"min-width": ((E = n.column) == null ? void 0 : E.
|
|
2049
|
+
"min-width": ((E = n.column) == null ? void 0 : E.prop) === "operate" ? 40 : "auto",
|
|
2050
2050
|
"class-name": ((j = n.column) == null ? void 0 : j.prop) === "operate" ? "action" : (((z = n.column) == null ? void 0 : z.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
2051
2051
|
}, {
|
|
2052
2052
|
header: H(() => [
|
|
2053
|
-
n.column.
|
|
2053
|
+
n.column.prop !== "operate" ? (b(), B(S0, { key: 0 }, [
|
|
2054
2054
|
n.column.operable && n.isEditViewport ? (b(), W(r3, {
|
|
2055
2055
|
key: 0,
|
|
2056
2056
|
value: s.value.label,
|
|
@@ -2081,9 +2081,9 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2081
2081
|
"filter-icon": H(() => {
|
|
2082
2082
|
var I, M, t0, J;
|
|
2083
2083
|
return [
|
|
2084
|
-
(I = n.column) != null && I.filterable && ((M = n.column) == null ? void 0 : M.
|
|
2084
|
+
(I = n.column) != null && I.filterable && ((M = n.column) == null ? void 0 : M.prop) !== "operate" ? (b(), W(f, {
|
|
2085
2085
|
key: 0,
|
|
2086
|
-
name: (t0 = n.column) != null && t0.filterable && ((J = n.column) == null ? void 0 : J.
|
|
2086
|
+
name: (t0 = n.column) != null && t0.filterable && ((J = n.column) == null ? void 0 : J.prop) !== "operate" ? "colFilter" : "",
|
|
2087
2087
|
class: "custom-filter-icon"
|
|
2088
2088
|
}, null, 8, ["name"])) : (b(), W(f, {
|
|
2089
2089
|
key: 1,
|
|
@@ -2151,7 +2151,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2151
2151
|
}),
|
|
2152
2152
|
n.showTag ? (b(), B("div", Xu, [
|
|
2153
2153
|
v0(e.$slots, "status", {}, void 0, !0)
|
|
2154
|
-
])) :
|
|
2154
|
+
])) : s0("", !0)
|
|
2155
2155
|
]);
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
@@ -2247,11 +2247,11 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2247
2247
|
const i = i8(rt), { chooseTitle: s } = vt(i), o = Pn(rt), { activeMenuPath: l } = vt(o), r = G(!1), a = G(), h = G(), c = p1({ x: 0, y: 0 }), d = G([]), u = G([]), f = G(0), p = G(null), m = G(null), v = G(null), w = e, _ = Jr("contentRef");
|
|
2248
2248
|
fe(() => {
|
|
2249
2249
|
var A, V, K, h0, p0;
|
|
2250
|
-
|
|
2251
|
-
var i0, u0,
|
|
2250
|
+
k = O(), d.value = t == null ? void 0 : t.columns, u.value = (A = t == null ? void 0 : t.tableData) == null ? void 0 : A.map((Q) => {
|
|
2251
|
+
var i0, u0, o0;
|
|
2252
2252
|
let X = {};
|
|
2253
2253
|
for (let R in Q)
|
|
2254
|
-
R !== "level" && (X[R] = Ms(Q[R]) && Q[R] === 0 ? (i0 = Q[R]) == null ? void 0 : i0.toString() : Q[R]), R !== "id" && ((u0 = Mt.value) == null ? void 0 : u0.prop) !== R && D(Q[R]) ? X[R] = Q[R] ? (
|
|
2254
|
+
R !== "level" && (X[R] = Ms(Q[R]) && Q[R] === 0 ? (i0 = Q[R]) == null ? void 0 : i0.toString() : Q[R]), R !== "id" && ((u0 = Mt.value) == null ? void 0 : u0.prop) !== R && D(Q[R]) ? X[R] = Q[R] ? (o0 = tt(Q[R])) == null ? void 0 : o0.format("YYYY-MM-DD HH:mm:ss") : Q[R] : X[R] = Q[R];
|
|
2255
2255
|
return X;
|
|
2256
2256
|
});
|
|
2257
2257
|
let S = (V = s.value) == null ? void 0 : V.find((Q) => (Q == null ? void 0 : Q.parentContent) === l.value);
|
|
@@ -2269,21 +2269,21 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2269
2269
|
const V = new Date(S);
|
|
2270
2270
|
return !isNaN(V.getTime());
|
|
2271
2271
|
};
|
|
2272
|
-
function
|
|
2272
|
+
function O() {
|
|
2273
2273
|
const S = /* @__PURE__ */ new WeakSet(), A = new MutationObserver(Q), V = /* @__PURE__ */ new WeakMap(), K = [];
|
|
2274
2274
|
function h0(X) {
|
|
2275
2275
|
try {
|
|
2276
|
-
const i0 = X.getBoundingClientRect(), u0 = X.clientWidth || i0.width || 1,
|
|
2277
|
-
return R ?
|
|
2276
|
+
const i0 = X.getBoundingClientRect(), u0 = X.clientWidth || i0.width || 1, o0 = i0.width / u0 || 1, R = parseFloat(getComputedStyle(X).zoom || "1");
|
|
2277
|
+
return R ? o0 / R : o0;
|
|
2278
2278
|
} catch {
|
|
2279
2279
|
return 1;
|
|
2280
2280
|
}
|
|
2281
2281
|
}
|
|
2282
2282
|
function p0(X) {
|
|
2283
|
-
var
|
|
2283
|
+
var o0;
|
|
2284
2284
|
if (!X || S.has(X)) return;
|
|
2285
2285
|
S.add(X);
|
|
2286
|
-
const i0 = X.parentElement, u0 = (
|
|
2286
|
+
const i0 = X.parentElement, u0 = (o0 = X.closest(".el-scrollbar")) == null ? void 0 : o0.querySelector(".el-scrollbar__wrap");
|
|
2287
2287
|
!i0 || !u0 || X.addEventListener(
|
|
2288
2288
|
"pointerdown",
|
|
2289
2289
|
(R) => {
|
|
@@ -2293,8 +2293,8 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2293
2293
|
} catch {
|
|
2294
2294
|
}
|
|
2295
2295
|
i0.classList.add("is-dragging");
|
|
2296
|
-
const m0 = h0(i0), a0 = i0.clientWidth || 1, C0 = X.clientWidth || 0, B0 = Math.max(1, (a0 - C0) / m0), z2 = Math.max(1, (u0.scrollWidth || 0) - (u0.clientWidth || 0)),
|
|
2297
|
-
const J3 = (E0.clientX -
|
|
2296
|
+
const m0 = h0(i0), a0 = i0.clientWidth || 1, C0 = X.clientWidth || 0, B0 = Math.max(1, (a0 - C0) / m0), z2 = Math.max(1, (u0.scrollWidth || 0) - (u0.clientWidth || 0)), C = R.clientX, c2 = u0.scrollLeft, I0 = z2 / B0, U = (E0) => {
|
|
2297
|
+
const J3 = (E0.clientX - C) / m0;
|
|
2298
2298
|
u0.scrollLeft = c2 + J3 * I0;
|
|
2299
2299
|
}, f0 = () => {
|
|
2300
2300
|
try {
|
|
@@ -2314,10 +2314,10 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2314
2314
|
if (!X.closest(".el-table")) return;
|
|
2315
2315
|
const i0 = X.querySelector(".el-scrollbar__wrap"), u0 = X.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
2316
2316
|
if (!i0 || !u0) return;
|
|
2317
|
-
const
|
|
2317
|
+
const o0 = i0.querySelector(".el-scrollbar__view") || i0.firstElementChild || i0, R = o0.querySelector("table") || o0.querySelector(".el-table__body") || o0, m0 = R.scrollWidth, a0 = i0.clientWidth, C0 = m0 - a0 > 2;
|
|
2318
2318
|
if (X.classList.toggle("has-x-scroll", C0), u0.style.display = "", C0 && X.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(p0), !V.has(i0)) {
|
|
2319
2319
|
const B0 = new ResizeObserver(() => {
|
|
2320
|
-
const z2 = R && R.scrollWidth || i0.scrollWidth,
|
|
2320
|
+
const z2 = R && R.scrollWidth || i0.scrollWidth, C = i0.clientWidth, c2 = z2 - C > 2;
|
|
2321
2321
|
X.classList.toggle("has-x-scroll", c2);
|
|
2322
2322
|
});
|
|
2323
2323
|
B0.observe(i0), R && B0.observe(R), V.set(i0, B0), K.push(() => B0.disconnect());
|
|
@@ -2333,26 +2333,26 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2333
2333
|
}), K.length = 0;
|
|
2334
2334
|
};
|
|
2335
2335
|
}
|
|
2336
|
-
let
|
|
2336
|
+
let k;
|
|
2337
2337
|
l2(
|
|
2338
2338
|
() => [s.value],
|
|
2339
2339
|
() => {
|
|
2340
2340
|
var A, V, K, h0, p0, Q, X;
|
|
2341
2341
|
let S = (A = s.value) == null ? void 0 : A.find((i0) => (i0 == null ? void 0 : i0.parentContent) === l.value);
|
|
2342
2342
|
if (S || !((K = (V = s.value) == null ? void 0 : V[0]) != null && K.parentContent)) {
|
|
2343
|
-
let i0 = (p0 = (h0 = d.value) == null ? void 0 : h0[0]) == null ? void 0 : p0.prop, u0 = (Q = u.value) == null ? void 0 : Q.find((
|
|
2343
|
+
let i0 = (p0 = (h0 = d.value) == null ? void 0 : h0[0]) == null ? void 0 : p0.prop, u0 = (Q = u.value) == null ? void 0 : Q.find((o0) => {
|
|
2344
2344
|
var R, m0;
|
|
2345
|
-
return (
|
|
2345
|
+
return (o0 == null ? void 0 : o0[i0]) === ((S == null ? void 0 : S.value) ?? ((m0 = (R = s.value) == null ? void 0 : R[0]) == null ? void 0 : m0.value));
|
|
2346
2346
|
});
|
|
2347
2347
|
(X = p.value) == null || X.setCurrentRow(), p.value && u0 && setTimeout(() => {
|
|
2348
|
-
var
|
|
2349
|
-
(
|
|
2348
|
+
var o0;
|
|
2349
|
+
(o0 = p.value) == null || o0.setCurrentRow(u0);
|
|
2350
2350
|
}, 20);
|
|
2351
2351
|
}
|
|
2352
2352
|
},
|
|
2353
2353
|
{ deep: !0 }
|
|
2354
2354
|
), Tn(() => {
|
|
2355
|
-
|
|
2355
|
+
k && k(), document.removeEventListener("click", j), u.value = void 0, d.value = void 0, x.value && clearTimeout(x.value);
|
|
2356
2356
|
});
|
|
2357
2357
|
const x = G(null);
|
|
2358
2358
|
l2(() => t == null ? void 0 : t.isEditViewport, async (S) => {
|
|
@@ -2388,8 +2388,8 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2388
2388
|
}, P = (S) => {
|
|
2389
2389
|
w("selectChange", S);
|
|
2390
2390
|
}, $ = (S, A, V, K) => n0(() => {
|
|
2391
|
-
var p0, Q, X, i0, u0,
|
|
2392
|
-
let h0 = S != null && S[A == null ? void 0 : A.prop] ? ((Q = (p0 = S == null ? void 0 : S[A == null ? void 0 : A.prop]) == null ? void 0 : p0[0]) == null ? void 0 : Q.contents) ?? (S == null ? void 0 : S[A == null ? void 0 : A.prop]) : ((i0 = (X = S == null ? void 0 : S[V == null ? void 0 : V.prop]) == null ? void 0 : X[0]) == null ? void 0 : i0.contents) ?? (S == null ? void 0 : S[V == null ? void 0 : V.prop]) ?? ((
|
|
2391
|
+
var p0, Q, X, i0, u0, o0, R, m0, a0, C0;
|
|
2392
|
+
let h0 = S != null && S[A == null ? void 0 : A.prop] ? ((Q = (p0 = S == null ? void 0 : S[A == null ? void 0 : A.prop]) == null ? void 0 : p0[0]) == null ? void 0 : Q.contents) ?? (S == null ? void 0 : S[A == null ? void 0 : A.prop]) : ((i0 = (X = S == null ? void 0 : S[V == null ? void 0 : V.prop]) == null ? void 0 : X[0]) == null ? void 0 : i0.contents) ?? (S == null ? void 0 : S[V == null ? void 0 : V.prop]) ?? ((o0 = (u0 = K == null ? void 0 : K[V == null ? void 0 : V.prop]) == null ? void 0 : u0[0]) == null ? void 0 : o0.contents) ?? (K == null ? void 0 : K[V == null ? void 0 : V.prop]) ?? ((a0 = (m0 = S == null ? void 0 : S[(R = V == null ? void 0 : V.child) == null ? void 0 : R.prop]) == null ? void 0 : m0[0]) == null ? void 0 : a0.contents) ?? (S == null ? void 0 : S[(C0 = V == null ? void 0 : V.child) == null ? void 0 : C0.prop]);
|
|
2393
2393
|
return Array.isArray(h0) && !(h0 != null && h0.every((B0) => typeof B0 == "string" || typeof B0 == "number")) ? "查看" : h0;
|
|
2394
2394
|
}), l0 = (S) => {
|
|
2395
2395
|
var K, h0, p0;
|
|
@@ -2488,10 +2488,10 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2488
2488
|
K.append("file", V);
|
|
2489
2489
|
let h0;
|
|
2490
2490
|
return await E4(K).then((p0) => {
|
|
2491
|
-
var Q, X, i0, u0,
|
|
2491
|
+
var Q, X, i0, u0, o0, R, m0;
|
|
2492
2492
|
h0 = {
|
|
2493
2493
|
url: (Q = p0.data.result) == null ? void 0 : Q.url,
|
|
2494
|
-
name: (m0 = (i0 = (X = p0.data.result) == null ? void 0 : X.url) == null ? void 0 : i0.split("/")) == null ? void 0 : m0[((R = (
|
|
2494
|
+
name: (m0 = (i0 = (X = p0.data.result) == null ? void 0 : X.url) == null ? void 0 : i0.split("/")) == null ? void 0 : m0[((R = (o0 = (u0 = p0.data.result) == null ? void 0 : u0.url) == null ? void 0 : o0.split("/")) == null ? void 0 : R.length) - 1]
|
|
2495
2495
|
};
|
|
2496
2496
|
}), h0;
|
|
2497
2497
|
}, Ve = async (S) => {
|
|
@@ -2517,10 +2517,10 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2517
2517
|
return;
|
|
2518
2518
|
}
|
|
2519
2519
|
for (let i0 = 0; i0 < h0.length; i0++) {
|
|
2520
|
-
const u0 = h0[i0],
|
|
2520
|
+
const u0 = h0[i0], o0 = u.value[p0 + i0], R = ee(d.value).map((m0) => m0.prop);
|
|
2521
2521
|
for (let m0 = 0; m0 < u0.length && Q + m0 < R.length; m0++) {
|
|
2522
2522
|
const a0 = R[Q + m0];
|
|
2523
|
-
(
|
|
2523
|
+
(o0 == null ? void 0 : o0[a0]) !== void 0 && (o0[a0] = u0[m0] || "");
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
} else {
|
|
@@ -2529,13 +2529,13 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2529
2529
|
const Q = new DOMParser().parseFromString(h0, "text/html"), X = Q.querySelectorAll("table");
|
|
2530
2530
|
if ((X == null ? void 0 : X.length) > 0) {
|
|
2531
2531
|
S.preventDefault();
|
|
2532
|
-
const u0 = X[0].querySelectorAll("tr"),
|
|
2532
|
+
const u0 = X[0].querySelectorAll("tr"), o0 = [];
|
|
2533
2533
|
for (const a0 of u0) {
|
|
2534
2534
|
const C0 = a0.querySelectorAll("td, th"), B0 = [];
|
|
2535
2535
|
for (const z2 of C0) {
|
|
2536
|
-
const
|
|
2537
|
-
if (
|
|
2538
|
-
for (const c2 of
|
|
2536
|
+
const C = z2.querySelectorAll("img");
|
|
2537
|
+
if (C.length > 0)
|
|
2538
|
+
for (const c2 of C) {
|
|
2539
2539
|
const I0 = c2.getAttribute("src");
|
|
2540
2540
|
if (I0 && I0.startsWith("file:///")) {
|
|
2541
2541
|
const U = I0.match(/base64,(.*)/);
|
|
@@ -2554,16 +2554,16 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2554
2554
|
content: z2.textContent.trim()
|
|
2555
2555
|
});
|
|
2556
2556
|
}
|
|
2557
|
-
|
|
2557
|
+
o0.push(B0);
|
|
2558
2558
|
}
|
|
2559
2559
|
const { rowIndex: R, columnProp: m0 } = v.value || { rowIndex: 0, columnIndex: 0 };
|
|
2560
|
-
if (Array.isArray(
|
|
2560
|
+
if (Array.isArray(o0) && o0.length) {
|
|
2561
2561
|
const a0 = [];
|
|
2562
|
-
|
|
2562
|
+
o0.forEach((B0) => {
|
|
2563
2563
|
if (B0 != null && B0.length) {
|
|
2564
|
-
const z2 = {},
|
|
2565
|
-
for (let c2 = 0; c2 < (
|
|
2566
|
-
const I0 =
|
|
2564
|
+
const z2 = {}, C = t.columns;
|
|
2565
|
+
for (let c2 = 0; c2 < (C == null ? void 0 : C.length); c2++) {
|
|
2566
|
+
const I0 = C[c2], U = I0 == null ? void 0 : I0.prop, f0 = B0 == null ? void 0 : B0[c2], E0 = f0 == null ? void 0 : f0.content;
|
|
2567
2567
|
z2[U] = E0;
|
|
2568
2568
|
}
|
|
2569
2569
|
a0.push(z2);
|
|
@@ -2576,21 +2576,21 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2576
2576
|
const i0 = Q.querySelectorAll("span");
|
|
2577
2577
|
let u0 = "";
|
|
2578
2578
|
if (i0.length === 0) {
|
|
2579
|
-
const
|
|
2579
|
+
const o0 = (A = S.clipboardData) == null ? void 0 : A.items;
|
|
2580
2580
|
u0 = [];
|
|
2581
|
-
for (const R of
|
|
2581
|
+
for (const R of o0)
|
|
2582
2582
|
if ((R == null ? void 0 : R.type) === "image/png") {
|
|
2583
2583
|
const m0 = await Ae(R == null ? void 0 : R.getAsFile());
|
|
2584
2584
|
u0.push(m0);
|
|
2585
2585
|
} else
|
|
2586
2586
|
u0 = S.clipboardData.getData("text/plain");
|
|
2587
2587
|
} else
|
|
2588
|
-
for (const
|
|
2589
|
-
u0 = u0 +
|
|
2588
|
+
for (const o0 of i0)
|
|
2589
|
+
u0 = u0 + o0.textContent.trim();
|
|
2590
2590
|
if (Array.isArray(u0)) {
|
|
2591
2591
|
S.preventDefault();
|
|
2592
|
-
const { rowIndex:
|
|
2593
|
-
a0[
|
|
2592
|
+
const { rowIndex: o0, columnProp: R } = v.value || { rowIndex: 0, columnIndex: 0 }, m0 = {}, a0 = u.value;
|
|
2593
|
+
a0[o0][R] = u0;
|
|
2594
2594
|
}
|
|
2595
2595
|
}
|
|
2596
2596
|
}
|
|
@@ -2617,13 +2617,13 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2617
2617
|
K[p0] = "合计";
|
|
2618
2618
|
return;
|
|
2619
2619
|
}
|
|
2620
|
-
const Q = h0.property, X = (u0 = (i0 = t.columns) == null ? void 0 : i0.filter((
|
|
2620
|
+
const Q = h0.property, X = (u0 = (i0 = t.columns) == null ? void 0 : i0.filter((o0) => o0 == null ? void 0 : o0.showSummary)) == null ? void 0 : u0.map((o0) => o0.prop);
|
|
2621
2621
|
if (X != null && X.includes(Q)) {
|
|
2622
|
-
const
|
|
2623
|
-
if (
|
|
2622
|
+
const o0 = V == null ? void 0 : V.map((R) => Number(R[Q]));
|
|
2623
|
+
if (o0.every((R) => isNaN(R)))
|
|
2624
2624
|
K[p0] = "N/A";
|
|
2625
2625
|
else {
|
|
2626
|
-
const R =
|
|
2626
|
+
const R = o0.reduce((m0, a0) => {
|
|
2627
2627
|
const C0 = Number(a0);
|
|
2628
2628
|
return isNaN(C0) ? m0 : m0 + C0;
|
|
2629
2629
|
}, 0);
|
|
@@ -2647,7 +2647,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2647
2647
|
return S || ((V = d.value) == null ? void 0 : V[0]);
|
|
2648
2648
|
});
|
|
2649
2649
|
return (S, A) => {
|
|
2650
|
-
var Q, X, i0, u0,
|
|
2650
|
+
var Q, X, i0, u0, o0;
|
|
2651
2651
|
const V = Z("el-table-column"), K = Z("svg-icon"), h0 = Z("el-table"), p0 = Z("el-pagination");
|
|
2652
2652
|
return b(), B("div", {
|
|
2653
2653
|
class: "table-content-show",
|
|
@@ -2691,7 +2691,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2691
2691
|
return [
|
|
2692
2692
|
(b(!0), B(S0, null, k0((m0 = d.value) == null ? void 0 : m0.filter((a0) => {
|
|
2693
2693
|
var C0;
|
|
2694
|
-
return (a0 == null ? void 0 : a0.
|
|
2694
|
+
return (a0 == null ? void 0 : a0.prop) !== "operate" && (a0 == null ? void 0 : a0.prop) !== ((C0 = Mt.value) == null ? void 0 : C0.prop);
|
|
2695
2695
|
}), (a0) => (b(), B("div", {
|
|
2696
2696
|
class: "card-content",
|
|
2697
2697
|
key: a0 == null ? void 0 : a0.prop
|
|
@@ -2717,13 +2717,13 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2717
2717
|
onClick: (C0) => g("编辑", R, { extra: { label: "编辑" } }),
|
|
2718
2718
|
name: "card-edit",
|
|
2719
2719
|
style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
|
|
2720
|
-
}, null, 8, ["onClick"])) :
|
|
2720
|
+
}, null, 8, ["onClick"])) : s0("", !0),
|
|
2721
2721
|
(a0 = n.rowButton) != null && a0.find((C0) => (C0 == null ? void 0 : C0.label) === "删除") ? (b(), W(K, {
|
|
2722
2722
|
key: 1,
|
|
2723
2723
|
onClick: (C0) => g("删除", R, { extra: { label: "删除" } }),
|
|
2724
2724
|
name: "card-delete",
|
|
2725
2725
|
style: { width: "15px", height: "15px", color: "#ff0000" }
|
|
2726
|
-
}, null, 8, ["onClick"])) :
|
|
2726
|
+
}, null, 8, ["onClick"])) : s0("", !0)
|
|
2727
2727
|
])
|
|
2728
2728
|
];
|
|
2729
2729
|
}),
|
|
@@ -2765,26 +2765,26 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2765
2765
|
((R = n.columns) == null ? void 0 : R.length) > 0 && n.allowSelect ? (b(), W(V, {
|
|
2766
2766
|
key: 0,
|
|
2767
2767
|
type: "selection",
|
|
2768
|
-
width: (m0 = n.columns) != null && m0.some((
|
|
2768
|
+
width: (m0 = n.columns) != null && m0.some((C) => C == null ? void 0 : C.showSummary) ? 55 : 38,
|
|
2769
2769
|
fixed: ""
|
|
2770
|
-
}, null, 8, ["width"])) :
|
|
2770
|
+
}, null, 8, ["width"])) : s0("", !0),
|
|
2771
2771
|
e0(V, {
|
|
2772
2772
|
"show-overflow-tooltip": !1,
|
|
2773
2773
|
"min-width": 12
|
|
2774
2774
|
}, {
|
|
2775
|
-
default: H(({ row:
|
|
2775
|
+
default: H(({ row: C, column: c2, $index: I0 }) => [
|
|
2776
2776
|
gt(d0("span", tf, [
|
|
2777
2777
|
e0(K, {
|
|
2778
2778
|
name: "drag",
|
|
2779
2779
|
style: { width: "15px", height: "15px", cursor: "move" }
|
|
2780
2780
|
})
|
|
2781
2781
|
], 512), [
|
|
2782
|
-
[Xt, (
|
|
2782
|
+
[Xt, (C == null ? void 0 : C.id) === M.value]
|
|
2783
2783
|
])
|
|
2784
2784
|
]),
|
|
2785
2785
|
_: 1
|
|
2786
2786
|
}),
|
|
2787
|
-
n.showIndex && !((a0 = n.tableData) != null && a0.some((
|
|
2787
|
+
n.showIndex && !((a0 = n.tableData) != null && a0.some((C) => C == null ? void 0 : C.children)) && ((C0 = n.columns) == null ? void 0 : C0.length) > 0 ? (b(), W(V, {
|
|
2788
2788
|
key: 1,
|
|
2789
2789
|
type: "index",
|
|
2790
2790
|
label: "序号",
|
|
@@ -2792,20 +2792,20 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2792
2792
|
}, G2({ _: 2 }, [
|
|
2793
2793
|
n.isEditViewport ? {
|
|
2794
2794
|
name: "default",
|
|
2795
|
-
fn: H(({ row:
|
|
2795
|
+
fn: H(({ row: C, column: c2, $index: I0 }) => {
|
|
2796
2796
|
var U, f0;
|
|
2797
2797
|
return [
|
|
2798
2798
|
I0 === ((U = u.value) == null ? void 0 : U.length) - 1 && ((f0 = n.cacheExtraButtons) != null && f0.some((E0) => (E0 == null ? void 0 : E0.label) === "新增")) ? v0(S.$slots, "rowCreate", {
|
|
2799
2799
|
key: 0,
|
|
2800
|
-
row:
|
|
2800
|
+
row: C,
|
|
2801
2801
|
index: I0 + 1
|
|
2802
|
-
}, void 0, !0) :
|
|
2802
|
+
}, void 0, !0) : s0("", !0)
|
|
2803
2803
|
];
|
|
2804
2804
|
}),
|
|
2805
2805
|
key: "0"
|
|
2806
2806
|
} : void 0
|
|
2807
|
-
]), 1024)) :
|
|
2808
|
-
(B0 = n.tableData) != null && B0.some((
|
|
2807
|
+
]), 1024)) : s0("", !0),
|
|
2808
|
+
(B0 = n.tableData) != null && B0.some((C) => C == null ? void 0 : C.children) && ((z2 = n.columns) == null ? void 0 : z2.length) > 0 ? (b(), W(V, {
|
|
2809
2809
|
key: 2,
|
|
2810
2810
|
type: "default",
|
|
2811
2811
|
"min-width": 15,
|
|
@@ -2813,85 +2813,85 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2813
2813
|
}, G2({ _: 2 }, [
|
|
2814
2814
|
n.isEditViewport ? {
|
|
2815
2815
|
name: "default",
|
|
2816
|
-
fn: H(({ row:
|
|
2816
|
+
fn: H(({ row: C, column: c2, $index: I0 }) => {
|
|
2817
2817
|
var U, f0;
|
|
2818
2818
|
return [
|
|
2819
2819
|
I0 === ((U = u.value) == null ? void 0 : U.length) - 1 && ((f0 = n.cacheExtraButtons) != null && f0.some((E0) => (E0 == null ? void 0 : E0.label) === "新增")) ? v0(S.$slots, "rowCreate", {
|
|
2820
2820
|
key: 0,
|
|
2821
|
-
row:
|
|
2821
|
+
row: C,
|
|
2822
2822
|
index: I0 + 1
|
|
2823
|
-
}, void 0, !0) :
|
|
2823
|
+
}, void 0, !0) : s0("", !0)
|
|
2824
2824
|
];
|
|
2825
2825
|
}),
|
|
2826
2826
|
key: "0"
|
|
2827
2827
|
} : void 0
|
|
2828
|
-
]), 1024)) :
|
|
2829
|
-
(b(!0), B(S0, null, k0(d.value, (
|
|
2828
|
+
]), 1024)) : s0("", !0),
|
|
2829
|
+
(b(!0), B(S0, null, k0(d.value, (C, c2) => {
|
|
2830
2830
|
var I0;
|
|
2831
2831
|
return b(), B(S0, null, [
|
|
2832
|
-
(I0 = n.checkedColumns) != null && I0.includes(
|
|
2832
|
+
(I0 = n.checkedColumns) != null && I0.includes(C == null ? void 0 : C.label) ? (b(), W(Ku, {
|
|
2833
2833
|
key: 0,
|
|
2834
2834
|
tableData: u.value,
|
|
2835
|
-
column:
|
|
2835
|
+
column: C,
|
|
2836
2836
|
isEditViewport: n.isEditViewport,
|
|
2837
2837
|
onHandleColEditChange: y,
|
|
2838
2838
|
onHandleColTypeChange: E
|
|
2839
2839
|
}, {
|
|
2840
2840
|
operateHeader: H(() => [
|
|
2841
|
-
v0(S.$slots, "operateCol", {}, void 0, !0)
|
|
2841
|
+
(C == null ? void 0 : C.label) === "操作" ? v0(S.$slots, "operateCol", { key: 0 }, void 0, !0) : s0("", !0)
|
|
2842
2842
|
]),
|
|
2843
2843
|
content: H(({ row: U, item: f0, slotData: E0, scope: J3, column: Qe, columnProp: Fr }) => {
|
|
2844
2844
|
var vs, ws, xs;
|
|
2845
2845
|
return [
|
|
2846
|
-
|
|
2846
|
+
C != null && C.isExistChild ? (b(), B("span", nf, [
|
|
2847
2847
|
d0("div", sf, [
|
|
2848
2848
|
e0(K, {
|
|
2849
2849
|
name: "TableLook",
|
|
2850
2850
|
style: { width: "16px", height: "16px", color: "var(--vertical-menuitem-active-bg)", cursor: "pointer" },
|
|
2851
2851
|
onClick: (q0) => {
|
|
2852
2852
|
var Tt;
|
|
2853
|
-
return y2(U != null && U[
|
|
2854
|
-
data: $(U,
|
|
2855
|
-
isMainKey:
|
|
2856
|
-
isExistChild:
|
|
2857
|
-
columnType:
|
|
2853
|
+
return y2(U != null && U[C == null ? void 0 : C.prop] ? U == null ? void 0 : U[C == null ? void 0 : C.prop] : (U == null ? void 0 : U[f0 == null ? void 0 : f0.prop]) ?? (E0 == null ? void 0 : E0[f0 == null ? void 0 : f0.prop]) ?? (U == null ? void 0 : U[(Tt = f0 == null ? void 0 : f0.child) == null ? void 0 : Tt.prop]), f0 == null ? void 0 : f0.prop, U ?? E0, {
|
|
2854
|
+
data: $(U, C, f0, E0).value,
|
|
2855
|
+
isMainKey: C == null ? void 0 : C.isMainKey,
|
|
2856
|
+
isExistChild: C == null ? void 0 : C.isExistChild,
|
|
2857
|
+
columnType: C,
|
|
2858
2858
|
rowContent: U
|
|
2859
2859
|
});
|
|
2860
2860
|
}
|
|
2861
2861
|
}, null, 8, ["onClick"])
|
|
2862
2862
|
])
|
|
2863
|
-
])) :
|
|
2864
|
-
((
|
|
2863
|
+
])) : s0("", !0),
|
|
2864
|
+
((C == null ? void 0 : C.type) ?? "text") === "text" && ((U == null ? void 0 : U.tableEditType) ?? "text") === "text" && !(C != null && C.isExistChild) ? (b(), B("span", {
|
|
2865
2865
|
key: 1,
|
|
2866
2866
|
class: "table-content",
|
|
2867
|
-
style: J0({ cursor:
|
|
2867
|
+
style: J0({ cursor: C != null && C.isMainKey ? "pointer" : "default", color: C != null && C.isMainKey && !(C != null && C.directiveColor) ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: C != null && C.isMainKey && !(C != null && C.directiveColor) ? "underline" : "" }),
|
|
2868
2868
|
onClick: (q0) => {
|
|
2869
2869
|
var Tt;
|
|
2870
|
-
return y2(U != null && U[
|
|
2871
|
-
data: $(U,
|
|
2872
|
-
isMainKey:
|
|
2870
|
+
return y2(U != null && U[C == null ? void 0 : C.prop] ? U == null ? void 0 : U[C == null ? void 0 : C.prop] : (U == null ? void 0 : U[f0 == null ? void 0 : f0.prop]) ?? (E0 == null ? void 0 : E0[f0 == null ? void 0 : f0.prop]) ?? (U == null ? void 0 : U[(Tt = f0 == null ? void 0 : f0.child) == null ? void 0 : Tt.prop]), f0 == null ? void 0 : f0.prop, U ?? E0, {
|
|
2871
|
+
data: $(U, C, f0, E0).value,
|
|
2872
|
+
isMainKey: C == null ? void 0 : C.isMainKey
|
|
2873
2873
|
});
|
|
2874
2874
|
}
|
|
2875
2875
|
}, [
|
|
2876
2876
|
S.$slots.content ? (b(), B(S0, { key: 0 }, [
|
|
2877
|
-
((vs = n.columns) == null ? void 0 : vs.findIndex((q0) => (q0 == null ? void 0 : q0.prop) === (
|
|
2877
|
+
((vs = n.columns) == null ? void 0 : vs.findIndex((q0) => (q0 == null ? void 0 : q0.prop) === (C == null ? void 0 : C.prop))) >= ((U == null ? void 0 : U.level) ?? -1) ? (b(), B("div", lf, [
|
|
2878
2878
|
v0(S.$slots, "content", {
|
|
2879
2879
|
row: U,
|
|
2880
|
-
column: Fr ??
|
|
2880
|
+
column: Fr ?? C,
|
|
2881
2881
|
colIndex: c2,
|
|
2882
2882
|
item: f0,
|
|
2883
2883
|
slotData: E0
|
|
2884
2884
|
}, void 0, !0)
|
|
2885
|
-
])) :
|
|
2886
|
-
], 64)) : ((ws = n.columns) == null ? void 0 : ws.findIndex((q0) => (q0 == null ? void 0 : q0.prop) === (
|
|
2887
|
-
N2(U0($(U,
|
|
2888
|
-
], 64)) :
|
|
2889
|
-
], 12, of)) :
|
|
2890
|
-
((
|
|
2885
|
+
])) : s0("", !0)
|
|
2886
|
+
], 64)) : ((ws = n.columns) == null ? void 0 : ws.findIndex((q0) => (q0 == null ? void 0 : q0.prop) === (C == null ? void 0 : C.prop))) >= ((U == null ? void 0 : U.level) ?? -1) ? (b(), B(S0, { key: 1 }, [
|
|
2887
|
+
N2(U0($(U, C, f0, E0)), 1)
|
|
2888
|
+
], 64)) : s0("", !0)
|
|
2889
|
+
], 12, of)) : s0("", !0),
|
|
2890
|
+
((C == null ? void 0 : C.type) ?? "text") === "operate" && !(C != null && C.isExistChild) ? (b(), B("span", {
|
|
2891
2891
|
key: 2,
|
|
2892
2892
|
class: "table-operate",
|
|
2893
2893
|
style: J0({
|
|
2894
|
-
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" :
|
|
2894
|
+
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : C == null ? void 0 : C.align
|
|
2895
2895
|
})
|
|
2896
2896
|
}, [
|
|
2897
2897
|
v0(S.$slots, "actions", { item: U }, void 0, !0),
|
|
@@ -2899,28 +2899,28 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2899
2899
|
key: 0,
|
|
2900
2900
|
onClick: (q0) => a2(U),
|
|
2901
2901
|
class: "blue-table-operate table-operate-content"
|
|
2902
|
-
}, "编辑", 8, rf)) :
|
|
2902
|
+
}, "编辑", 8, rf)) : s0("", !0),
|
|
2903
2903
|
n.isShowDelete ? (b(), B("span", {
|
|
2904
2904
|
key: 1,
|
|
2905
2905
|
onClick: (q0) => M2(U),
|
|
2906
2906
|
class: "red-table-operate table-operate-content"
|
|
2907
|
-
}, "删除", 8, af)) :
|
|
2908
|
-
], 4)) :
|
|
2909
|
-
((
|
|
2910
|
-
(b(), W(Qt(x0(U != null && U[
|
|
2907
|
+
}, "删除", 8, af)) : s0("", !0)
|
|
2908
|
+
], 4)) : s0("", !0),
|
|
2909
|
+
((C == null ? void 0 : C.type) ?? "text") === "edit" && ((U == null ? void 0 : U.tableEditType) ?? "text") !== "edit" || ((C == null ? void 0 : C.type) ?? "text") === "text" && ((U == null ? void 0 : U.tableEditType) ?? "text") === "edit" && !(C != null && C.isExistChild) ? (b(), B("span", cf, [
|
|
2910
|
+
(b(), W(Qt(x0(U != null && U[C == null ? void 0 : C.prop] && Array.isArray(U[C.prop]) && ((xs = U[C.prop]) != null && xs.every((q0) => typeof q0 == "Object")) ? "Upload" : (C == null ? void 0 : C.columnType) === "" || !(C != null && C.columnType) ? "Input" : C == null ? void 0 : C.columnType)), {
|
|
2911
2911
|
modelValue: U[Qe == null ? void 0 : Qe.property],
|
|
2912
2912
|
"onUpdate:modelValue": (q0) => U[Qe == null ? void 0 : Qe.property] = q0,
|
|
2913
2913
|
style: { height: "100%" },
|
|
2914
|
-
content: (
|
|
2915
|
-
optionUrl:
|
|
2914
|
+
content: (C == null ? void 0 : C.contents) ?? [],
|
|
2915
|
+
optionUrl: C == null ? void 0 : C.optionUrl,
|
|
2916
2916
|
onFocus: (q0) => Ee(J3),
|
|
2917
|
-
onChange: (q0) => jr(q0, U,
|
|
2917
|
+
onChange: (q0) => jr(q0, U, C)
|
|
2918
2918
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "optionUrl", "onFocus", "onChange"]))
|
|
2919
|
-
])) :
|
|
2919
|
+
])) : s0("", !0)
|
|
2920
2920
|
];
|
|
2921
2921
|
}),
|
|
2922
2922
|
_: 2
|
|
2923
|
-
}, 1032, ["tableData", "column", "isEditViewport"])) :
|
|
2923
|
+
}, 1032, ["tableData", "column", "isEditViewport"])) : s0("", !0)
|
|
2924
2924
|
], 64);
|
|
2925
2925
|
}), 256))
|
|
2926
2926
|
];
|
|
@@ -2928,7 +2928,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2928
2928
|
_: 3
|
|
2929
2929
|
}, 8, ["data", "show-summary", "sum-text", "default-sort"])),
|
|
2930
2930
|
d0("div", mf, [
|
|
2931
|
-
n.isCardViewport ?
|
|
2931
|
+
n.isCardViewport ? s0("", !0) : v0(S.$slots, "batchButton", {
|
|
2932
2932
|
key: 0,
|
|
2933
2933
|
buttons: I.value,
|
|
2934
2934
|
columns: d.value
|
|
@@ -2941,8 +2941,8 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2941
2941
|
"page-sizes": (i0 = n.pageObj) == null ? void 0 : i0.pageSizes,
|
|
2942
2942
|
"page-size": ((u0 = n.pageObj) == null ? void 0 : u0.pageSize) ?? 10,
|
|
2943
2943
|
layout: "total, sizes, prev, pager, next, jumper",
|
|
2944
|
-
total: ((
|
|
2945
|
-
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) :
|
|
2944
|
+
total: ((o0 = n.pageObj) == null ? void 0 : o0.total) ?? 0
|
|
2945
|
+
}, null, 8, ["current-page", "page-sizes", "page-size", "total"])) : s0("", !0)
|
|
2946
2946
|
]),
|
|
2947
2947
|
gt(e0($u, {
|
|
2948
2948
|
style: J0({ top: c.y + "px", left: c.x + "px", position: "fixed", zIndex: 999 })
|
|
@@ -2964,7 +2964,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
2964
2964
|
], 512);
|
|
2965
2965
|
};
|
|
2966
2966
|
}
|
|
2967
|
-
}, xf = /* @__PURE__ */ V0(wf, [["__scopeId", "data-v-
|
|
2967
|
+
}, xf = /* @__PURE__ */ V0(wf, [["__scopeId", "data-v-94163c46"]]), bf = {
|
|
2968
2968
|
__name: "index",
|
|
2969
2969
|
props: {
|
|
2970
2970
|
value: String,
|
|
@@ -3165,7 +3165,7 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
3165
3165
|
}, null, 8, ["name"])
|
|
3166
3166
|
]),
|
|
3167
3167
|
_: 2
|
|
3168
|
-
}, 1032, ["index", "onClick"])) :
|
|
3168
|
+
}, 1032, ["index", "onClick"])) : s0("", !0)
|
|
3169
3169
|
], 64))), 256);
|
|
3170
3170
|
};
|
|
3171
3171
|
}
|
|
@@ -3208,25 +3208,25 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
3208
3208
|
onClose: u
|
|
3209
3209
|
}, {
|
|
3210
3210
|
default: H(() => [
|
|
3211
|
-
(b(!0), B(S0, null, k0(n.menuList, (
|
|
3212
|
-
|
|
3213
|
-
index:
|
|
3214
|
-
key:
|
|
3215
|
-
style: J0(
|
|
3211
|
+
(b(!0), B(S0, null, k0(n.menuList, (O) => (b(), B(S0, null, [
|
|
3212
|
+
O.show && O.children && O.children.length > 0 ? (b(), W(w, {
|
|
3213
|
+
index: O.path,
|
|
3214
|
+
key: O.path,
|
|
3215
|
+
style: J0(O.style)
|
|
3216
3216
|
}, {
|
|
3217
3217
|
title: H(() => [
|
|
3218
3218
|
e0(mt, {
|
|
3219
|
-
name:
|
|
3219
|
+
name: O.icon ?? ((O == null ? void 0 : O.level) <= 2 ? "default" : ""),
|
|
3220
3220
|
class: "menu-icon"
|
|
3221
3221
|
}, null, 8, ["name"]),
|
|
3222
|
-
v0(m.$slots, "title", { menu:
|
|
3222
|
+
v0(m.$slots, "title", { menu: O }, void 0, !0)
|
|
3223
3223
|
]),
|
|
3224
3224
|
default: H(() => [
|
|
3225
3225
|
e0(Sf, {
|
|
3226
|
-
menuList:
|
|
3226
|
+
menuList: O.children,
|
|
3227
3227
|
onClickMenu: c
|
|
3228
3228
|
}, G2({ _: 2 }, [
|
|
3229
|
-
k0(m.$slots, (
|
|
3229
|
+
k0(m.$slots, (k, x) => ({
|
|
3230
3230
|
name: x,
|
|
3231
3231
|
fn: H((y) => [
|
|
3232
3232
|
v0(m.$slots, x, g1({ ref_for: !0 }, y), void 0, !0)
|
|
@@ -3235,23 +3235,23 @@ const $u = /* @__PURE__ */ V0(Nu, [["render", Gu]]), ju = { class: "extra-button
|
|
|
3235
3235
|
]), 1032, ["menuList"])
|
|
3236
3236
|
]),
|
|
3237
3237
|
_: 2
|
|
3238
|
-
}, 1032, ["index", "style"])) :
|
|
3239
|
-
index:
|
|
3240
|
-
key:
|
|
3241
|
-
style: J0(
|
|
3242
|
-
onClick: (
|
|
3238
|
+
}, 1032, ["index", "style"])) : O.show ? (b(), W(_, {
|
|
3239
|
+
index: O.path,
|
|
3240
|
+
key: O.path,
|
|
3241
|
+
style: J0(O.style),
|
|
3242
|
+
onClick: (k) => c(O)
|
|
3243
3243
|
}, {
|
|
3244
3244
|
title: H(() => [
|
|
3245
|
-
v0(m.$slots, "title", { menu:
|
|
3245
|
+
v0(m.$slots, "title", { menu: O }, void 0, !0)
|
|
3246
3246
|
]),
|
|
3247
3247
|
default: H(() => [
|
|
3248
3248
|
e0(mt, {
|
|
3249
|
-
name:
|
|
3249
|
+
name: O.icon ?? ((O == null ? void 0 : O.level) <= 2 ? "default" : ""),
|
|
3250
3250
|
class: "menu-icon"
|
|
3251
3251
|
}, null, 8, ["name"])
|
|
3252
3252
|
]),
|
|
3253
3253
|
_: 2
|
|
3254
|
-
}, 1032, ["index", "style", "onClick"])) :
|
|
3254
|
+
}, 1032, ["index", "style", "onClick"])) : s0("", !0)
|
|
3255
3255
|
], 64))), 256))
|
|
3256
3256
|
]),
|
|
3257
3257
|
_: 3
|
|
@@ -6504,12 +6504,12 @@ function pp(n, e, t, i, s, o, l, r) {
|
|
|
6504
6504
|
else {
|
|
6505
6505
|
let _ = 0, D = 0;
|
|
6506
6506
|
if (w) {
|
|
6507
|
-
let
|
|
6508
|
-
c.scrollTop += w / m, D = (c.scrollTop -
|
|
6507
|
+
let O = c.scrollTop;
|
|
6508
|
+
c.scrollTop += w / m, D = (c.scrollTop - O) * m;
|
|
6509
6509
|
}
|
|
6510
6510
|
if (v) {
|
|
6511
|
-
let
|
|
6512
|
-
c.scrollLeft += v / p, _ = (c.scrollLeft -
|
|
6511
|
+
let O = c.scrollLeft;
|
|
6512
|
+
c.scrollLeft += v / p, _ = (c.scrollLeft - O) * p;
|
|
6513
6513
|
}
|
|
6514
6514
|
e = {
|
|
6515
6515
|
left: e.left - _,
|
|
@@ -8270,10 +8270,10 @@ class Ks extends T0 {
|
|
|
8270
8270
|
break;
|
|
8271
8271
|
let { fromA: a, toA: h, fromB: c, toB: d } = r, u, f, p, m;
|
|
8272
8272
|
if (i && i.range.fromB < d && i.range.toB > c) {
|
|
8273
|
-
let
|
|
8274
|
-
f =
|
|
8273
|
+
let O = Ft.build(this.view.state.doc, c, i.range.fromB, this.decorations, this.dynamicDecorationMap), k = Ft.build(this.view.state.doc, i.range.toB, d, this.decorations, this.dynamicDecorationMap);
|
|
8274
|
+
f = O.breakAtStart, p = O.openStart, m = k.openEnd;
|
|
8275
8275
|
let x = this.compositionView(i);
|
|
8276
|
-
|
|
8276
|
+
k.breakAtStart ? x.breakAfter = 1 : k.content.length && x.merge(x.length, x.length, k.content[0], !1, k.openStart, 0) && (x.breakAfter = k.content[0].breakAfter, k.content.shift()), O.content.length && x.merge(0, 0, O.content[O.content.length - 1], !0, 0, O.openEnd) && O.content.pop(), u = O.content.concat(x).concat(k.content);
|
|
8277
8277
|
} else
|
|
8278
8278
|
({ content: u, breakAtStart: f, openStart: p, openEnd: m } = Ft.build(this.view.state.doc, c, d, this.decorations, this.dynamicDecorationMap));
|
|
8279
8279
|
let { i: v, off: w } = o.findPos(h, 1), { i: _, off: D } = o.findPos(a, -1);
|
|
@@ -8732,11 +8732,11 @@ function Wo(n, e, t, i = -1) {
|
|
|
8732
8732
|
return 0;
|
|
8733
8733
|
if (u > h)
|
|
8734
8734
|
return n.state.doc.length;
|
|
8735
|
-
for (let
|
|
8736
|
-
for (; u = i > 0 ? a.bottom +
|
|
8737
|
-
if (
|
|
8735
|
+
for (let O = n.viewState.heightOracle.textHeight / 2, k = !1; a = n.elementAtHeight(u), a.type != d2.Text; )
|
|
8736
|
+
for (; u = i > 0 ? a.bottom + O : a.top - O, !(u >= 0 && u <= h); ) {
|
|
8737
|
+
if (k)
|
|
8738
8738
|
return t ? null : 0;
|
|
8739
|
-
|
|
8739
|
+
k = !0, i = -i;
|
|
8740
8740
|
}
|
|
8741
8741
|
d = r + u;
|
|
8742
8742
|
let f = a.from;
|
|
@@ -8749,26 +8749,26 @@ function Wo(n, e, t, i = -1) {
|
|
|
8749
8749
|
let w, _ = -1;
|
|
8750
8750
|
if (v && ((s = n.docView.nearest(v)) === null || s === void 0 ? void 0 : s.isEditable) != !1) {
|
|
8751
8751
|
if (p.caretPositionFromPoint) {
|
|
8752
|
-
let
|
|
8753
|
-
|
|
8752
|
+
let O = p.caretPositionFromPoint(c, d);
|
|
8753
|
+
O && ({ offsetNode: w, offset: _ } = O);
|
|
8754
8754
|
} else if (p.caretRangeFromPoint) {
|
|
8755
|
-
let
|
|
8756
|
-
|
|
8755
|
+
let O = p.caretRangeFromPoint(c, d);
|
|
8756
|
+
O && ({ startContainer: w, startOffset: _ } = O, (!n.contentDOM.contains(w) || F.safari && Fp(w, _, c) || F.chrome && qp(w, _, c)) && (w = void 0));
|
|
8757
8757
|
}
|
|
8758
8758
|
w && (_ = Math.min(se(w), _));
|
|
8759
8759
|
}
|
|
8760
8760
|
if (!w || !n.docView.dom.contains(w)) {
|
|
8761
|
-
let
|
|
8762
|
-
if (!
|
|
8761
|
+
let O = N0.find(n.docView, f);
|
|
8762
|
+
if (!O)
|
|
8763
8763
|
return u > a.top + a.height / 2 ? a.to : a.from;
|
|
8764
|
-
({ node: w, offset: _ } = sn(
|
|
8764
|
+
({ node: w, offset: _ } = sn(O.dom, c, d));
|
|
8765
8765
|
}
|
|
8766
8766
|
let D = n.docView.nearest(w);
|
|
8767
8767
|
if (!D)
|
|
8768
8768
|
return null;
|
|
8769
8769
|
if (D.isWidget && ((o = D.dom) === null || o === void 0 ? void 0 : o.nodeType) == 1) {
|
|
8770
|
-
let
|
|
8771
|
-
return e.y <
|
|
8770
|
+
let O = D.dom.getBoundingClientRect();
|
|
8771
|
+
return e.y < O.top || e.y <= O.bottom && e.x <= (O.left + O.right) / 2 ? D.posAtStart : D.posAtEnd;
|
|
8772
8772
|
} else
|
|
8773
8773
|
return D.localPosFromDOM(w, _) + D.posAtStart;
|
|
8774
8774
|
}
|
|
@@ -10172,8 +10172,8 @@ class p6 {
|
|
|
10172
10172
|
this.contentDOMHeight = r.height, this.mustMeasureContent = !1;
|
|
10173
10173
|
let h = 0, c = 0;
|
|
10174
10174
|
if (r.width && r.height) {
|
|
10175
|
-
let { scaleX:
|
|
10176
|
-
(
|
|
10175
|
+
let { scaleX: O, scaleY: k } = ao(t, r);
|
|
10176
|
+
(O > 5e-3 && Math.abs(this.scaleX - O) > 5e-3 || k > 5e-3 && Math.abs(this.scaleY - k) > 5e-3) && (this.scaleX = O, this.scaleY = k, h |= 16, l = a = !0);
|
|
10177
10177
|
}
|
|
10178
10178
|
let d = (parseInt(i.paddingTop) || 0) * this.scaleY, u = (parseInt(i.paddingBottom) || 0) * this.scaleY;
|
|
10179
10179
|
(this.paddingTop != d || this.paddingBottom != u) && (this.paddingTop = d, this.paddingBottom = u, h |= 18), this.editorWidth != e.scrollDOM.clientWidth && (s.lineWrapping && (a = !0), this.editorWidth = e.scrollDOM.clientWidth, h |= 16);
|
|
@@ -10186,15 +10186,15 @@ class p6 {
|
|
|
10186
10186
|
return 0;
|
|
10187
10187
|
let _ = r.width;
|
|
10188
10188
|
if ((this.contentDOMWidth != _ || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = r.width, this.editorHeight = e.scrollDOM.clientHeight, h |= 16), a) {
|
|
10189
|
-
let
|
|
10190
|
-
if (s.mustRefreshForHeights(
|
|
10191
|
-
let { lineHeight:
|
|
10192
|
-
l =
|
|
10189
|
+
let O = e.docView.measureVisibleLineHeights(this.viewport);
|
|
10190
|
+
if (s.mustRefreshForHeights(O) && (l = !0), l || s.lineWrapping && Math.abs(_ - this.contentDOMWidth) > s.charWidth) {
|
|
10191
|
+
let { lineHeight: k, charWidth: x, textHeight: y } = e.docView.measureTextSize();
|
|
10192
|
+
l = k > 0 && s.refresh(o, k, x, y, Math.max(5, _ / x), O), l && (e.docView.minWidth = 0, h |= 16);
|
|
10193
10193
|
}
|
|
10194
10194
|
m > 0 && v > 0 ? c = Math.max(m, v) : m < 0 && v < 0 && (c = Math.min(m, v)), u6();
|
|
10195
|
-
for (let
|
|
10196
|
-
let x =
|
|
10197
|
-
this.heightMap = (l ? u2.empty().applyChanges(this.stateDeco, y0.empty, this.heightOracle, [new B2(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new yg(
|
|
10195
|
+
for (let k of this.viewports) {
|
|
10196
|
+
let x = k.from == this.viewport.from ? O : e.docView.measureVisibleLineHeights(k);
|
|
10197
|
+
this.heightMap = (l ? u2.empty().applyChanges(this.stateDeco, y0.empty, this.heightOracle, [new B2(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(s, 0, l, new yg(k.from, x));
|
|
10198
10198
|
}
|
|
10199
10199
|
_t && (h |= 2);
|
|
10200
10200
|
}
|
|
@@ -10297,13 +10297,13 @@ class p6 {
|
|
|
10297
10297
|
if (m > 2e6)
|
|
10298
10298
|
for (let x of e)
|
|
10299
10299
|
x.from >= c.from && x.from < c.to && x.size != x.displaySize && x.from * this.heightOracle.charWidth + w < this.pixelViewport.left && (w = x.size - x.displaySize);
|
|
10300
|
-
let _ = this.pixelViewport.left + w, D = this.pixelViewport.right + w,
|
|
10300
|
+
let _ = this.pixelViewport.left + w, D = this.pixelViewport.right + w, O, k;
|
|
10301
10301
|
if (u != null) {
|
|
10302
10302
|
let x = V1(d, u), y = ((D - _) / 2 + v) / m;
|
|
10303
|
-
|
|
10303
|
+
O = x - y, k = x + y;
|
|
10304
10304
|
} else
|
|
10305
|
-
|
|
10306
|
-
f = A1(d,
|
|
10305
|
+
O = (_ - v) / m, k = (D + v) / m;
|
|
10306
|
+
f = A1(d, O), p = A1(d, k);
|
|
10307
10307
|
}
|
|
10308
10308
|
f > c.from && a(c.from, f, c, d), p < c.to && a(p, c.to, c, d);
|
|
10309
10309
|
};
|
|
@@ -11952,9 +11952,9 @@ function Wg(n, e = Rg) {
|
|
|
11952
11952
|
preventDefault: !0,
|
|
11953
11953
|
stopPropagation: !1,
|
|
11954
11954
|
run: [(D) => {
|
|
11955
|
-
let
|
|
11955
|
+
let O = ve = { view: D, prefix: _, scope: l };
|
|
11956
11956
|
return setTimeout(() => {
|
|
11957
|
-
ve ==
|
|
11957
|
+
ve == O && (ve = null);
|
|
11958
11958
|
}, jg), !0;
|
|
11959
11959
|
}]
|
|
11960
11960
|
});
|
|
@@ -12060,25 +12060,25 @@ function Ug(n, e, t) {
|
|
|
12060
12060
|
if (m && (n.lineWrapping || f.widgetLineBreaks) && (m = _6(n, i, 1, m)), v && (n.lineWrapping || p.widgetLineBreaks) && (v = _6(n, s, -1, v)), m && v && m.from == v.from && m.to == v.to)
|
|
12061
12061
|
return _(D(t.from, t.to, m));
|
|
12062
12062
|
{
|
|
12063
|
-
let
|
|
12064
|
-
return (m || f).to < (v || p).from - (m && v ? 1 : 0) || f.widgetLineBreaks > 1 &&
|
|
12063
|
+
let k = m ? D(t.from, null, m) : O(f, !1), x = v ? D(null, t.to, v) : O(p, !0), y = [];
|
|
12064
|
+
return (m || f).to < (v || p).from - (m && v ? 1 : 0) || f.widgetLineBreaks > 1 && k.bottom + n.defaultLineHeight / 2 < x.top ? y.push(w(d, k.bottom, u, x.top)) : k.bottom < x.top && n.elementAtHeight((k.bottom + x.top) / 2).type == d2.Text && (k.bottom = x.top = (k.bottom + x.top) / 2), _(k).concat(y).concat(_(x));
|
|
12065
12065
|
}
|
|
12066
|
-
function w(
|
|
12067
|
-
return new x1(e,
|
|
12066
|
+
function w(k, x, y, E) {
|
|
12067
|
+
return new x1(e, k - a.left, x - a.top, y - k, E - x);
|
|
12068
12068
|
}
|
|
12069
|
-
function _({ top:
|
|
12069
|
+
function _({ top: k, bottom: x, horizontal: y }) {
|
|
12070
12070
|
let E = [];
|
|
12071
12071
|
for (let j = 0; j < y.length; j += 2)
|
|
12072
|
-
E.push(w(y[j],
|
|
12072
|
+
E.push(w(y[j], k, y[j + 1], x));
|
|
12073
12073
|
return E;
|
|
12074
12074
|
}
|
|
12075
|
-
function D(
|
|
12075
|
+
function D(k, x, y) {
|
|
12076
12076
|
let E = 1e9, j = -1e9, z = [];
|
|
12077
12077
|
function I(J, P, $, l0, r0) {
|
|
12078
12078
|
let z0 = n.coordsAtPos(J, J == y.to ? -2 : 2), j0 = n.coordsAtPos($, $ == y.from ? 2 : -2);
|
|
12079
12079
|
!z0 || !j0 || (E = Math.min(z0.top, j0.top, E), j = Math.max(z0.bottom, j0.bottom, j), r0 == A0.LTR ? z.push(o && P ? d : z0.left, o && l0 ? u : j0.right) : z.push(!o && l0 ? d : j0.left, !o && P ? u : z0.right));
|
|
12080
12080
|
}
|
|
12081
|
-
let M =
|
|
12081
|
+
let M = k ?? y.from, t0 = x ?? y.to;
|
|
12082
12082
|
for (let J of n.visibleRanges)
|
|
12083
12083
|
if (J.to > M && J.from < t0)
|
|
12084
12084
|
for (let P = Math.max(J.from, M), $ = Math.min(J.to, t0); ; ) {
|
|
@@ -12087,15 +12087,15 @@ function Ug(n, e, t) {
|
|
|
12087
12087
|
let z0 = r0.from + l0.from, j0 = r0.to + l0.from;
|
|
12088
12088
|
if (z0 >= $)
|
|
12089
12089
|
break;
|
|
12090
|
-
j0 > P && I(Math.max(z0, P),
|
|
12090
|
+
j0 > P && I(Math.max(z0, P), k == null && z0 <= M, Math.min(j0, $), x == null && j0 >= t0, r0.dir);
|
|
12091
12091
|
}
|
|
12092
12092
|
if (P = l0.to + 1, P >= $)
|
|
12093
12093
|
break;
|
|
12094
12094
|
}
|
|
12095
|
-
return z.length == 0 && I(M,
|
|
12095
|
+
return z.length == 0 && I(M, k == null, t0, x == null, n.textDirection), { top: E, bottom: j, horizontal: z };
|
|
12096
12096
|
}
|
|
12097
|
-
function k
|
|
12098
|
-
let y = r.top + (x ?
|
|
12097
|
+
function O(k, x) {
|
|
12098
|
+
let y = r.top + (x ? k.top : k.bottom);
|
|
12099
12099
|
return { top: y, bottom: y, horizontal: [] };
|
|
12100
12100
|
}
|
|
12101
12101
|
}
|
|
@@ -12751,25 +12751,25 @@ const hi = /* @__PURE__ */ Y.define({
|
|
|
12751
12751
|
c.style.top = Vt;
|
|
12752
12752
|
continue;
|
|
12753
12753
|
}
|
|
12754
|
-
let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, m = u.right - u.left, v = (e = O6.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, w = h.offset || Sm, _ = this.view.textDirection == A0.LTR, D = u.width > i.right - i.left ? _ ? i.left : i.right - u.width : _ ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + w.x, i.right - m)) : Math.min(Math.max(i.left, d.left - m + (f ? 14 : 0) - w.x), i.right - m),
|
|
12755
|
-
!a.strictSide && (
|
|
12756
|
-
let
|
|
12757
|
-
if (
|
|
12758
|
-
if (
|
|
12754
|
+
let f = a.arrow ? h.dom.querySelector(".cm-tooltip-arrow") : null, p = f ? 7 : 0, m = u.right - u.left, v = (e = O6.get(h)) !== null && e !== void 0 ? e : u.bottom - u.top, w = h.offset || Sm, _ = this.view.textDirection == A0.LTR, D = u.width > i.right - i.left ? _ ? i.left : i.right - u.width : _ ? Math.max(i.left, Math.min(d.left - (f ? 14 : 0) + w.x, i.right - m)) : Math.min(Math.max(i.left, d.left - m + (f ? 14 : 0) - w.x), i.right - m), O = this.above[r];
|
|
12755
|
+
!a.strictSide && (O ? d.top - v - p - w.y < i.top : d.bottom + v + p + w.y > i.bottom) && O == i.bottom - d.bottom > d.top - i.top && (O = this.above[r] = !O);
|
|
12756
|
+
let k = (O ? d.top - i.top : i.bottom - d.bottom) - p;
|
|
12757
|
+
if (k < v && h.resize !== !1) {
|
|
12758
|
+
if (k < this.view.defaultLineHeight) {
|
|
12759
12759
|
c.style.top = Vt;
|
|
12760
12760
|
continue;
|
|
12761
12761
|
}
|
|
12762
|
-
O6.set(h, v), c.style.height = (v =
|
|
12762
|
+
O6.set(h, v), c.style.height = (v = k) / o + "px";
|
|
12763
12763
|
} else c.style.height && (c.style.height = "");
|
|
12764
|
-
let x =
|
|
12764
|
+
let x = O ? d.top - v - p - w.y : d.bottom + p + w.y, y = D + m;
|
|
12765
12765
|
if (h.overlap !== !0)
|
|
12766
12766
|
for (let E of l)
|
|
12767
|
-
E.left < y && E.right > D && E.top < x + v && E.bottom > x && (x =
|
|
12767
|
+
E.left < y && E.right > D && E.top < x + v && E.bottom > x && (x = O ? E.top - v - 2 - p : E.bottom + p + 2);
|
|
12768
12768
|
if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", D6(c, (D - n.parent.left) / s)) : (c.style.top = x / o + "px", D6(c, D / s)), f) {
|
|
12769
12769
|
let E = d.left + (_ ? w.x : -w.x) - (D + 14 - 7);
|
|
12770
12770
|
f.style.left = E / s + "px";
|
|
12771
12771
|
}
|
|
12772
|
-
h.overlap !== !0 && l.push({ left: D, top: x, right: y, bottom: x + v }), c.classList.toggle("cm-tooltip-above",
|
|
12772
|
+
h.overlap !== !0 && l.push({ left: D, top: x, right: y, bottom: x + v }), c.classList.toggle("cm-tooltip-above", O), c.classList.toggle("cm-tooltip-below", !O), h.positioned && h.positioned(n.space);
|
|
12773
12773
|
}
|
|
12774
12774
|
}
|
|
12775
12775
|
maybeMeasure() {
|
|
@@ -14567,12 +14567,12 @@ function Jn(n) {
|
|
|
14567
14567
|
function Ym(n) {
|
|
14568
14568
|
var e;
|
|
14569
14569
|
let { buffer: t, nodeSet: i, maxBufferLength: s = gl, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new Qn(t, t.length) : t, a = i.types, h = 0, c = 0;
|
|
14570
|
-
function d(
|
|
14570
|
+
function d(k, x, y, E, j, z) {
|
|
14571
14571
|
let { id: I, start: M, end: t0, size: J } = r, P = c, $ = h;
|
|
14572
14572
|
for (; J < 0; )
|
|
14573
14573
|
if (r.next(), J == -1) {
|
|
14574
14574
|
let x0 = o[I];
|
|
14575
|
-
y.push(x0), E.push(M -
|
|
14575
|
+
y.push(x0), E.push(M - k);
|
|
14576
14576
|
return;
|
|
14577
14577
|
} else if (J == -3) {
|
|
14578
14578
|
h = I;
|
|
@@ -14582,12 +14582,12 @@ function Ym(n) {
|
|
|
14582
14582
|
return;
|
|
14583
14583
|
} else
|
|
14584
14584
|
throw new RangeError(`Unrecognized record size: ${J}`);
|
|
14585
|
-
let l0 = a[I], r0, z0, j0 = M -
|
|
14585
|
+
let l0 = a[I], r0, z0, j0 = M - k;
|
|
14586
14586
|
if (t0 - M <= s && (z0 = v(r.pos - x, j))) {
|
|
14587
14587
|
let x0 = new Uint16Array(z0.size - z0.skip), g = r.pos - z0.size, H0 = x0.length;
|
|
14588
14588
|
for (; r.pos > g; )
|
|
14589
14589
|
H0 = w(z0.start, x0, H0);
|
|
14590
|
-
r0 = new Me(x0, t0 - z0.start, i), j0 = z0.start -
|
|
14590
|
+
r0 = new Me(x0, t0 - z0.start, i), j0 = z0.start - k;
|
|
14591
14591
|
} else {
|
|
14592
14592
|
let x0 = r.pos - J;
|
|
14593
14593
|
r.next();
|
|
@@ -14602,7 +14602,7 @@ function Ym(n) {
|
|
|
14602
14602
|
}
|
|
14603
14603
|
y.push(r0), E.push(j0);
|
|
14604
14604
|
}
|
|
14605
|
-
function u(
|
|
14605
|
+
function u(k, x, y, E) {
|
|
14606
14606
|
let j = [], z = 0, I = -1;
|
|
14607
14607
|
for (; r.pos > x; ) {
|
|
14608
14608
|
let { id: M, start: t0, end: J, size: P } = r;
|
|
@@ -14618,27 +14618,27 @@ function Ym(n) {
|
|
|
14618
14618
|
let M = new Uint16Array(z * 4), t0 = j[j.length - 2];
|
|
14619
14619
|
for (let J = j.length - 3, P = 0; J >= 0; J -= 3)
|
|
14620
14620
|
M[P++] = j[J], M[P++] = j[J + 1] - t0, M[P++] = j[J + 2] - t0, M[P++] = P;
|
|
14621
|
-
y.push(new Me(M, j[2] - t0, i)), E.push(t0 -
|
|
14621
|
+
y.push(new Me(M, j[2] - t0, i)), E.push(t0 - k);
|
|
14622
14622
|
}
|
|
14623
14623
|
}
|
|
14624
|
-
function f(
|
|
14624
|
+
function f(k, x) {
|
|
14625
14625
|
return (y, E, j) => {
|
|
14626
14626
|
let z = 0, I = y.length - 1, M, t0;
|
|
14627
14627
|
if (I >= 0 && (M = y[I]) instanceof G0) {
|
|
14628
|
-
if (!I && M.type ==
|
|
14628
|
+
if (!I && M.type == k && M.length == j)
|
|
14629
14629
|
return M;
|
|
14630
14630
|
(t0 = M.prop(w0.lookAhead)) && (z = E[I] + M.length + t0);
|
|
14631
14631
|
}
|
|
14632
|
-
return m(
|
|
14632
|
+
return m(k, y, E, j, z, x);
|
|
14633
14633
|
};
|
|
14634
14634
|
}
|
|
14635
|
-
function p(
|
|
14635
|
+
function p(k, x, y, E, j, z, I, M, t0) {
|
|
14636
14636
|
let J = [], P = [];
|
|
14637
|
-
for (;
|
|
14638
|
-
J.push(
|
|
14639
|
-
|
|
14637
|
+
for (; k.length > E; )
|
|
14638
|
+
J.push(k.pop()), P.push(x.pop() + y - j);
|
|
14639
|
+
k.push(m(i.types[I], J, P, z - j, M - z, t0)), x.push(j - y);
|
|
14640
14640
|
}
|
|
14641
|
-
function m(
|
|
14641
|
+
function m(k, x, y, E, j, z, I) {
|
|
14642
14642
|
if (z) {
|
|
14643
14643
|
let M = [w0.contextHash, z];
|
|
14644
14644
|
I = I ? [M].concat(I) : [M];
|
|
@@ -14647,11 +14647,11 @@ function Ym(n) {
|
|
|
14647
14647
|
let M = [w0.lookAhead, j];
|
|
14648
14648
|
I = I ? [M].concat(I) : [M];
|
|
14649
14649
|
}
|
|
14650
|
-
return new G0(
|
|
14650
|
+
return new G0(k, x, y, E, I);
|
|
14651
14651
|
}
|
|
14652
|
-
function v(
|
|
14652
|
+
function v(k, x) {
|
|
14653
14653
|
let y = r.fork(), E = 0, j = 0, z = 0, I = y.end - s, M = { size: 0, start: 0, skip: 0 };
|
|
14654
|
-
e: for (let t0 = y.pos -
|
|
14654
|
+
e: for (let t0 = y.pos - k; y.pos > t0; ) {
|
|
14655
14655
|
let J = y.size;
|
|
14656
14656
|
if (y.id == x && J >= 0) {
|
|
14657
14657
|
M.size = E, M.start = j, M.skip = z, z += 4, E += 4, y.next();
|
|
@@ -14672,26 +14672,26 @@ function Ym(n) {
|
|
|
14672
14672
|
}
|
|
14673
14673
|
j = l0, E += J, z += $;
|
|
14674
14674
|
}
|
|
14675
|
-
return (x < 0 || E ==
|
|
14675
|
+
return (x < 0 || E == k) && (M.size = E, M.start = j, M.skip = z), M.size > 4 ? M : void 0;
|
|
14676
14676
|
}
|
|
14677
|
-
function w(
|
|
14677
|
+
function w(k, x, y) {
|
|
14678
14678
|
let { id: E, start: j, end: z, size: I } = r;
|
|
14679
14679
|
if (r.next(), I >= 0 && E < l) {
|
|
14680
14680
|
let M = y;
|
|
14681
14681
|
if (I > 4) {
|
|
14682
14682
|
let t0 = r.pos - (I - 4);
|
|
14683
14683
|
for (; r.pos > t0; )
|
|
14684
|
-
y = w(
|
|
14684
|
+
y = w(k, x, y);
|
|
14685
14685
|
}
|
|
14686
|
-
x[--y] = M, x[--y] = z -
|
|
14686
|
+
x[--y] = M, x[--y] = z - k, x[--y] = j - k, x[--y] = E;
|
|
14687
14687
|
} else I == -3 ? h = E : I == -4 && (c = E);
|
|
14688
14688
|
return y;
|
|
14689
14689
|
}
|
|
14690
14690
|
let _ = [], D = [];
|
|
14691
14691
|
for (; r.pos > 0; )
|
|
14692
14692
|
d(n.start || 0, n.bufferStart || 0, _, D, -1, 0);
|
|
14693
|
-
let
|
|
14694
|
-
return new G0(a[n.topID], _.reverse(), D.reverse(),
|
|
14693
|
+
let O = (e = n.length) !== null && e !== void 0 ? e : _.length ? D[0] + _[0].length : 0;
|
|
14694
|
+
return new G0(a[n.topID], _.reverse(), D.reverse(), O);
|
|
14695
14695
|
}
|
|
14696
14696
|
const L6 = /* @__PURE__ */ new WeakMap();
|
|
14697
14697
|
function n3(n, e) {
|
|
@@ -14721,25 +14721,25 @@ function Zn(n, e, t, i, s, o, l, r, a) {
|
|
|
14721
14721
|
), d = [], u = [];
|
|
14722
14722
|
function f(p, m, v, w, _) {
|
|
14723
14723
|
for (let D = v; D < w; ) {
|
|
14724
|
-
let
|
|
14724
|
+
let O = D, k = m[D], x = n3(n, p[D]);
|
|
14725
14725
|
for (D++; D < w; D++) {
|
|
14726
14726
|
let y = n3(n, p[D]);
|
|
14727
14727
|
if (x + y >= c)
|
|
14728
14728
|
break;
|
|
14729
14729
|
x += y;
|
|
14730
14730
|
}
|
|
14731
|
-
if (D ==
|
|
14731
|
+
if (D == O + 1) {
|
|
14732
14732
|
if (x > c) {
|
|
14733
|
-
let y = p[
|
|
14734
|
-
f(y.children, y.positions, 0, y.children.length, m[
|
|
14733
|
+
let y = p[O];
|
|
14734
|
+
f(y.children, y.positions, 0, y.children.length, m[O] + _);
|
|
14735
14735
|
continue;
|
|
14736
14736
|
}
|
|
14737
|
-
d.push(p[
|
|
14737
|
+
d.push(p[O]);
|
|
14738
14738
|
} else {
|
|
14739
|
-
let y = m[D - 1] + p[D - 1].length -
|
|
14740
|
-
d.push(Zn(n, p, m,
|
|
14739
|
+
let y = m[D - 1] + p[D - 1].length - k;
|
|
14740
|
+
d.push(Zn(n, p, m, O, D, k, y, null, a));
|
|
14741
14741
|
}
|
|
14742
|
-
u.push(
|
|
14742
|
+
u.push(k + _ - o);
|
|
14743
14743
|
}
|
|
14744
14744
|
}
|
|
14745
14745
|
return f(e, t, i, s, 0), (r || a)(d, u, l);
|
|
@@ -15044,9 +15044,9 @@ class iv {
|
|
|
15044
15044
|
if (u && u.overlay) {
|
|
15045
15045
|
let f = e.node.enter(u.overlay[0].from + r, 1), p = this.highlighters.filter((v) => !v.scope || v.scope(u.tree.type)), m = e.firstChild();
|
|
15046
15046
|
for (let v = 0, w = r; ; v++) {
|
|
15047
|
-
let _ = v < u.overlay.length ? u.overlay[v] : null, D = _ ? _.from + r : a,
|
|
15048
|
-
if (
|
|
15049
|
-
for (; e.from <
|
|
15047
|
+
let _ = v < u.overlay.length ? u.overlay[v] : null, D = _ ? _.from + r : a, O = Math.max(t, w), k = Math.min(i, D);
|
|
15048
|
+
if (O < k && m)
|
|
15049
|
+
for (; e.from < k && (this.highlightRange(e, O, k, s, o), this.startSpan(Math.min(k, e.to), h), !(e.to >= D || !e.nextSibling())); )
|
|
15050
15050
|
;
|
|
15051
15051
|
if (!_ || D > i)
|
|
15052
15052
|
break;
|
|
@@ -18430,12 +18430,12 @@ class Rx {
|
|
|
18430
18430
|
return null;
|
|
18431
18431
|
let { chars: t, folded: i, any: s, precise: o, byWord: l } = this;
|
|
18432
18432
|
if (t.length == 1) {
|
|
18433
|
-
let _ = m2(e, 0), D = J2(_),
|
|
18433
|
+
let _ = m2(e, 0), D = J2(_), O = D == e.length ? 0 : -100;
|
|
18434
18434
|
if (_ != t[0]) if (_ == i[0])
|
|
18435
|
-
|
|
18435
|
+
O += -200;
|
|
18436
18436
|
else
|
|
18437
18437
|
return null;
|
|
18438
|
-
return this.ret(
|
|
18438
|
+
return this.ret(O, [0, D]);
|
|
18439
18439
|
}
|
|
18440
18440
|
let r = e.indexOf(this.pattern);
|
|
18441
18441
|
if (r == 0)
|
|
@@ -18443,18 +18443,18 @@ class Rx {
|
|
|
18443
18443
|
let a = t.length, h = 0;
|
|
18444
18444
|
if (r < 0) {
|
|
18445
18445
|
for (let _ = 0, D = Math.min(e.length, 200); _ < D && h < a; ) {
|
|
18446
|
-
let
|
|
18447
|
-
(
|
|
18446
|
+
let O = m2(e, _);
|
|
18447
|
+
(O == t[h] || O == i[h]) && (s[h++] = _), _ += J2(O);
|
|
18448
18448
|
}
|
|
18449
18449
|
if (h < a)
|
|
18450
18450
|
return null;
|
|
18451
18451
|
}
|
|
18452
18452
|
let c = 0, d = 0, u = !1, f = 0, p = -1, m = -1, v = /[a-z]/.test(e), w = !0;
|
|
18453
|
-
for (let _ = 0, D = Math.min(e.length, 200),
|
|
18454
|
-
let
|
|
18455
|
-
r < 0 && (c < a &&
|
|
18456
|
-
let x, y =
|
|
18457
|
-
(!_ || y == 1 && v ||
|
|
18453
|
+
for (let _ = 0, D = Math.min(e.length, 200), O = 0; _ < D && d < a; ) {
|
|
18454
|
+
let k = m2(e, _);
|
|
18455
|
+
r < 0 && (c < a && k == t[c] && (o[c++] = _), f < a && (k == t[f] || k == i[f] ? (f == 0 && (p = _), m = _ + 1, f++) : f = 0));
|
|
18456
|
+
let x, y = k < 255 ? k >= 48 && k <= 57 || k >= 97 && k <= 122 ? 2 : k >= 65 && k <= 90 ? 1 : 0 : (x = Vn(k)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
|
|
18457
|
+
(!_ || y == 1 && v || O == 0 && y != 0) && (t[d] == k || i[d] == k && (u = !0) ? l[d++] = _ : l.length && (w = !1)), O = y, _ += J2(k);
|
|
18458
18458
|
}
|
|
18459
18459
|
return d == a && l[0] == 0 && w ? this.result(-100 + (u ? -200 : 0), l, e) : f == a && p == 0 ? this.ret(-200 - e.length + (m == e.length ? 0 : -100), [0, m]) : r > -1 ? this.ret(-700 - e.length, [r, r + this.pattern.length]) : f == a ? this.ret(-900 - e.length, [p, m]) : d == a ? this.result(-100 + (u ? -200 : 0) + -700 + (w ? 0 : -1100), l, e) : t.length == 2 ? null : this.result((s[0] ? -700 : 0) + -200 + -1100, s, e);
|
|
18460
18460
|
}
|
|
@@ -21406,10 +21406,10 @@ function f_(n, e) {
|
|
|
21406
21406
|
} else if (u == "tag") {
|
|
21407
21407
|
let m = Di(c, p), v = r[m], w = [], _ = p && p.lastChild;
|
|
21408
21408
|
m && (!_ || _.name != "CloseTag" || o3(c, _) != m) && w.push(v ? v.closeCompletion : { label: "</" + m + ">", type: "type", boost: 2 });
|
|
21409
|
-
let D = w.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((
|
|
21409
|
+
let D = w.concat(((v == null ? void 0 : v.children) || (p ? o : l)).map((O) => O.openCompletion));
|
|
21410
21410
|
if (p && (v != null && v.text.length)) {
|
|
21411
|
-
let
|
|
21412
|
-
|
|
21411
|
+
let O = p.firstChild;
|
|
21412
|
+
O.to > a.pos - 20 && !/\S/.test(a.state.sliceDoc(O.to, a.pos)) && (D = D.concat(v.text));
|
|
21413
21413
|
}
|
|
21414
21414
|
return {
|
|
21415
21415
|
from: f,
|
|
@@ -21652,10 +21652,10 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21652
21652
|
}), m = n0(() => (r == null ? void 0 : r.value) === "ls"), v = n0(() => {
|
|
21653
21653
|
var z, I;
|
|
21654
21654
|
return ((I = (z = i.blobUrl) == null ? void 0 : z.toUpperCase()) == null ? void 0 : I.includes(".URDF")) || (r == null ? void 0 : r.value) === "urdf";
|
|
21655
|
-
}), w = n0(() => v.value), _ = n0(() => (r == null ? void 0 : r.value) === "docx"), D = n0(() => (r == null ? void 0 : r.value) === "csv"),
|
|
21655
|
+
}), w = n0(() => v.value), _ = n0(() => (r == null ? void 0 : r.value) === "docx"), D = n0(() => (r == null ? void 0 : r.value) === "csv"), O = n0(() => (r == null ? void 0 : r.value) === "xlsx"), k = n0(() => (r == null ? void 0 : r.value) === "pdf"), x = n0(() => {
|
|
21656
21656
|
const z = r == null ? void 0 : r.value;
|
|
21657
21657
|
return z === "jpg" || z === "png";
|
|
21658
|
-
}), y = n0(() => (r == null ? void 0 : r.value) === "pptx"), E = n0(() => (r == null ? void 0 : r.value) === "mp4"), j = n0(() => !f && !m && !w && !_ && !
|
|
21658
|
+
}), y = n0(() => (r == null ? void 0 : r.value) === "pptx"), E = n0(() => (r == null ? void 0 : r.value) === "mp4"), j = n0(() => !f && !m && !w && !_ && !O && !k && !x && !y);
|
|
21659
21659
|
return m1(() => {
|
|
21660
21660
|
t("destroy");
|
|
21661
21661
|
}), (z, I) => (b(), B("div", z_, [
|
|
@@ -21673,63 +21673,63 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21673
21673
|
}
|
|
21674
21674
|
}
|
|
21675
21675
|
}, null, 8, ["files", "three-data"])
|
|
21676
|
-
])) :
|
|
21676
|
+
])) : s0("", !0),
|
|
21677
21677
|
_.value ? (b(), B("div", A_, [
|
|
21678
21678
|
e0(Af, {
|
|
21679
21679
|
fileName: o.value,
|
|
21680
21680
|
blobUrl: s.value
|
|
21681
21681
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21682
|
-
])) :
|
|
21682
|
+
])) : s0("", !0),
|
|
21683
21683
|
p.value || v.value ? (b(), B("div", V_, [
|
|
21684
21684
|
(b(), W(ks, {
|
|
21685
21685
|
files: l.value,
|
|
21686
21686
|
key: i == null ? void 0 : i.fullScreen
|
|
21687
21687
|
}, null, 8, ["files"]))
|
|
21688
|
-
])) :
|
|
21689
|
-
|
|
21688
|
+
])) : s0("", !0),
|
|
21689
|
+
O.value ? (b(), B("div", B_, [
|
|
21690
21690
|
e0(Ef, {
|
|
21691
21691
|
fileName: o.value,
|
|
21692
21692
|
blobUrl: s.value
|
|
21693
21693
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21694
|
-
])) :
|
|
21694
|
+
])) : s0("", !0),
|
|
21695
21695
|
D.value ? (b(), B("div", E_, [
|
|
21696
21696
|
e0(Rf, {
|
|
21697
21697
|
fileName: o.value,
|
|
21698
21698
|
blobUrl: s.value
|
|
21699
21699
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21700
|
-
])) :
|
|
21701
|
-
|
|
21700
|
+
])) : s0("", !0),
|
|
21701
|
+
k.value ? (b(), B("div", L_, [
|
|
21702
21702
|
e0(jf, {
|
|
21703
21703
|
fileName: o.value,
|
|
21704
21704
|
blobUrl: s.value
|
|
21705
21705
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21706
|
-
])) :
|
|
21706
|
+
])) : s0("", !0),
|
|
21707
21707
|
x.value ? (b(), B("div", H_, [
|
|
21708
21708
|
e0(y_, {
|
|
21709
21709
|
fileName: o.value,
|
|
21710
21710
|
blobUrl: s.value
|
|
21711
21711
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21712
|
-
])) :
|
|
21712
|
+
])) : s0("", !0),
|
|
21713
21713
|
y.value ? (b(), B("div", I_, [
|
|
21714
21714
|
e0(k_, {
|
|
21715
21715
|
fileName: o.value,
|
|
21716
21716
|
blobUrl: s.value
|
|
21717
21717
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21718
|
-
])) :
|
|
21718
|
+
])) : s0("", !0),
|
|
21719
21719
|
E.value ? (b(), B("div", R_, [
|
|
21720
21720
|
e0(T_, {
|
|
21721
21721
|
fileName: o.value,
|
|
21722
21722
|
blobUrl: s.value
|
|
21723
21723
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21724
|
-
])) : !_.value && !
|
|
21724
|
+
])) : !_.value && !O.value && !k.value && !v.value && !x.value && !y.value && !p.value && !E.value && !a.value && !D.value ? (b(), B("div", N_, [
|
|
21725
21725
|
e0(x_, {
|
|
21726
21726
|
fileName: o.value,
|
|
21727
21727
|
blobUrl: s.value
|
|
21728
21728
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21729
|
-
])) :
|
|
21729
|
+
])) : s0("", !0),
|
|
21730
21730
|
j.value ? (b(), B("div", G_, I[0] || (I[0] = [
|
|
21731
21731
|
d0("div", null, "当前文件格式暂不支持预览", -1)
|
|
21732
|
-
]))) :
|
|
21732
|
+
]))) : s0("", !0)
|
|
21733
21733
|
]));
|
|
21734
21734
|
}
|
|
21735
21735
|
}, Rr = /* @__PURE__ */ V0($_, [["__scopeId", "data-v-ce51405a"]]), j_ = { class: "file-preview-container" }, W_ = { class: "container-right" }, U_ = /* @__PURE__ */ f2({
|
|
@@ -21955,9 +21955,9 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21955
21955
|
url: ((J = (t0 = z == null ? void 0 : z.data) == null ? void 0 : t0.result) == null ? void 0 : J.url) ?? (z == null ? void 0 : z.url)
|
|
21956
21956
|
}), ($ = (P = z == null ? void 0 : z.data) == null ? void 0 : P.result) == null ? void 0 : $.url;
|
|
21957
21957
|
}), I3.success("上传成功"), o.value = E, i("update:modelValue", E), i("change", E), a.value = [], h.value = !1, s.value = !1;
|
|
21958
|
-
},
|
|
21958
|
+
}, O = () => {
|
|
21959
21959
|
h.value = !1, a.value = o.value, u.value = o.value;
|
|
21960
|
-
},
|
|
21960
|
+
}, k = (x) => {
|
|
21961
21961
|
if (!x) return;
|
|
21962
21962
|
const y = new FileReader();
|
|
21963
21963
|
y.onload = (E) => {
|
|
@@ -22011,7 +22011,7 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22011
22011
|
]),
|
|
22012
22012
|
e0(An, {
|
|
22013
22013
|
visible: h.value,
|
|
22014
|
-
onBeforeDestroy:
|
|
22014
|
+
onBeforeDestroy: O,
|
|
22015
22015
|
title: "上传文件"
|
|
22016
22016
|
}, {
|
|
22017
22017
|
default: H(() => [
|
|
@@ -22024,7 +22024,7 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22024
22024
|
action: "",
|
|
22025
22025
|
"auto-upload": !1,
|
|
22026
22026
|
limit: 20,
|
|
22027
|
-
"on-change":
|
|
22027
|
+
"on-change": k,
|
|
22028
22028
|
class: "upload-content"
|
|
22029
22029
|
}, {
|
|
22030
22030
|
tip: H(() => y[1] || (y[1] = [
|
|
@@ -22073,7 +22073,7 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22073
22073
|
footer: H(() => [
|
|
22074
22074
|
d0("div", sy, [
|
|
22075
22075
|
e0(ye, {
|
|
22076
|
-
onClickTrigger:
|
|
22076
|
+
onClickTrigger: O,
|
|
22077
22077
|
id: "themeBorderButton",
|
|
22078
22078
|
disabled: s.value,
|
|
22079
22079
|
modelValue: "取消"
|
|
@@ -22093,8 +22093,8 @@ const g_ = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22093
22093
|
key: 0,
|
|
22094
22094
|
fileDataList: r.value,
|
|
22095
22095
|
onDestroy: v
|
|
22096
|
-
}, null, 8, ["fileDataList"])) :
|
|
22097
|
-
])) :
|
|
22096
|
+
}, null, 8, ["fileDataList"])) : s0("", !0)
|
|
22097
|
+
])) : s0("", !0);
|
|
22098
22098
|
};
|
|
22099
22099
|
}
|
|
22100
22100
|
}, ly = /* @__PURE__ */ V0(oy, [["__scopeId", "data-v-3b8ac7f5"]]), ry = /* @__PURE__ */ f2({
|
|
@@ -22636,10 +22636,10 @@ var py = /* @__PURE__ */ f2({
|
|
|
22636
22636
|
function D() {
|
|
22637
22637
|
return o.value;
|
|
22638
22638
|
}
|
|
22639
|
-
function
|
|
22639
|
+
function O() {
|
|
22640
22640
|
return t.cacheImages = [], t.cacheImages;
|
|
22641
22641
|
}
|
|
22642
|
-
function
|
|
22642
|
+
function k() {
|
|
22643
22643
|
t.signaturePad.clear(), e.emit("input", null);
|
|
22644
22644
|
}
|
|
22645
22645
|
return fe(() => {
|
|
@@ -22670,8 +22670,8 @@ var py = /* @__PURE__ */ f2({
|
|
|
22670
22670
|
openSignaturePad: w,
|
|
22671
22671
|
isEmpty: _,
|
|
22672
22672
|
getPropImagesAndCacheImages: D,
|
|
22673
|
-
clearCacheImages:
|
|
22674
|
-
clearSignature:
|
|
22673
|
+
clearCacheImages: O,
|
|
22674
|
+
clearSignature: k
|
|
22675
22675
|
};
|
|
22676
22676
|
},
|
|
22677
22677
|
render() {
|
|
@@ -22940,10 +22940,10 @@ const my = { class: "signature-wrap" }, vy = { class: "signature-types" }, wy =
|
|
|
22940
22940
|
}
|
|
22941
22941
|
return w;
|
|
22942
22942
|
}, c = (f) => btoa(f.match(/\w{2}/g).map((p) => String.fromCharCode(parseInt(p, 16))).join("")), d = (f, p = "file") => {
|
|
22943
|
-
let m = f.split(","), v = m[0].match(/:(.*?);/)[1], w = v.split("/")[1], _ = atob(m[1]), D = _.length,
|
|
22943
|
+
let m = f.split(","), v = m[0].match(/:(.*?);/)[1], w = v.split("/")[1], _ = atob(m[1]), D = _.length, O = new Uint8Array(D);
|
|
22944
22944
|
for (; D--; )
|
|
22945
|
-
|
|
22946
|
-
return new File([
|
|
22945
|
+
O[D] = _.charCodeAt(D);
|
|
22946
|
+
return new File([O], `${p}.${w}`, {
|
|
22947
22947
|
type: v
|
|
22948
22948
|
});
|
|
22949
22949
|
}, u = async (f, p) => {
|
|
@@ -22962,13 +22962,13 @@ const my = { class: "signature-wrap" }, vy = { class: "signature-types" }, wy =
|
|
|
22962
22962
|
o.value = [];
|
|
22963
22963
|
const m = p.clipboardData.getData("text/rtf");
|
|
22964
22964
|
if (m && m !== "") {
|
|
22965
|
-
const w = h(m).map((
|
|
22966
|
-
for (let
|
|
22965
|
+
const w = h(m).map((k) => c(k.hex));
|
|
22966
|
+
for (let k = 0; k < w.length; k++) {
|
|
22967
22967
|
let x = o.value;
|
|
22968
|
-
x.push(`data:image/png;base64,${w[
|
|
22968
|
+
x.push(`data:image/png;base64,${w[k]}`), o.value = x, await u(`data:image/png;base64,${w[k]}`, w.length);
|
|
22969
22969
|
}
|
|
22970
|
-
s.selection.root.querySelectorAll('img[src*="//:0"]').forEach((
|
|
22971
|
-
o.value[x] ?
|
|
22970
|
+
s.selection.root.querySelectorAll('img[src*="//:0"]').forEach((k, x) => {
|
|
22971
|
+
o.value[x] ? k.src = o.value[x] : k.style.display = "none";
|
|
22972
22972
|
});
|
|
22973
22973
|
}
|
|
22974
22974
|
l("update:modelValue", r.value);
|
|
@@ -23095,7 +23095,7 @@ const My = ["onDblclick"], Ty = {
|
|
|
23095
23095
|
p != null && p.label ? (b(), B("div", {
|
|
23096
23096
|
key: 0,
|
|
23097
23097
|
onDblclick: (w) => r(p)
|
|
23098
|
-
}, U0(p == null ? void 0 : p.label), 41, My)) :
|
|
23098
|
+
}, U0(p == null ? void 0 : p.label), 41, My)) : s0("", !0),
|
|
23099
23099
|
p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (b(), B("div", Ty, [
|
|
23100
23100
|
(b(!0), B(S0, null, k0(p == null ? void 0 : p.contents, (w, _) => (b(), B("div", {
|
|
23101
23101
|
key: _,
|
|
@@ -23106,9 +23106,9 @@ const My = ["onDblclick"], Ty = {
|
|
|
23106
23106
|
modelValue: w.value,
|
|
23107
23107
|
"onUpdate:modelValue": (D) => w.value = D,
|
|
23108
23108
|
content: (w == null ? void 0 : w.contents) ?? []
|
|
23109
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
23109
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "content"])) : s0("", !0)
|
|
23110
23110
|
]))), 128))
|
|
23111
|
-
])) :
|
|
23111
|
+
])) : s0("", !0),
|
|
23112
23112
|
v0(c.$slots, `${(p == null ? void 0 : p.value) ?? ""}_header`, {}, void 0, !0)
|
|
23113
23113
|
];
|
|
23114
23114
|
}),
|
|
@@ -23133,7 +23133,7 @@ const My = ["onDblclick"], Ty = {
|
|
|
23133
23133
|
]),
|
|
23134
23134
|
key: "0"
|
|
23135
23135
|
} : void 0
|
|
23136
|
-
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) :
|
|
23136
|
+
]), 1064, ["modelValue", "onUpdate:modelValue", "content"])) : s0("", !0)
|
|
23137
23137
|
]))), 128))
|
|
23138
23138
|
]),
|
|
23139
23139
|
_: 2
|