ss-component-new 1.3.0 → 1.3.2
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-YR-bfx1D.js → MTLLoader-Dv2EVTWB.js} +1 -1
- package/dist/{MTLLoader-C_XCtjSi.cjs → MTLLoader-xrJPpi4c.cjs} +1 -1
- package/dist/{OrbitControls-BGsXD_A7.js → OrbitControls-B_seM-IP.js} +1 -1
- package/dist/{OrbitControls-CktvE4iE.cjs → OrbitControls-DeFoKJp9.cjs} +1 -1
- package/dist/{URDFLoader-10oVp_KW.cjs → URDFLoader-B6g0hxRm.cjs} +1 -1
- package/dist/{URDFLoader-m1gMdnSQ.js → URDFLoader-BT60rQtD.js} +2 -2
- package/dist/{animationData-CpK8d_Vm.js → animationData-Beth8tFS.js} +1 -1
- package/dist/{animationData-Cr2ra7rm.cjs → animationData-CXbG057x.cjs} +1 -1
- package/dist/{array-wj90F_Fr.js → array-C6jYq2-o.js} +3 -3
- package/dist/{array-DOENfalk.cjs → array-QkdkoOAY.cjs} +1 -1
- package/dist/{iconfont-DsF7kuG5.cjs → iconfont-UNojnhH2.cjs} +1 -1
- package/dist/{iconfont-0yJB130V.js → iconfont-h3lSsHxO.js} +2 -2
- package/dist/{index-Cs-fAEaJ.js → index-4FJEY4G5.js} +1 -1
- package/dist/{index-BovYju8v.js → index-7tMW9vmz.js} +13 -13
- package/dist/{index-D8HD14bz.js → index-B1deFmCB.js} +1 -1
- package/dist/{index-CtBAYZxO.js → index-B3jquljw.js} +4 -4
- package/dist/{index-BXUByyre.js → index-B7RJnzyb.js} +1 -1
- package/dist/{index-NaWMtdUV.js → index-BBo5mPL3.js} +1 -1
- package/dist/{index-7soFeoxA.js → index-BF9Y0y6z.js} +2 -2
- package/dist/{index-BlXHg2Zn.js → index-BJaAtaqN.js} +1 -1
- package/dist/{index-DwUwQvEg.cjs → index-BR5J0fXr.cjs} +6 -6
- package/dist/{index-gfdgTjvQ.js → index-BYdJgNnt.js} +1 -1
- package/dist/{index-DTk0l-mc.js → index-BbdTn4Wu.js} +3 -3
- package/dist/{index-BKCAA3cJ.js → index-BqqRuoo3.js} +3 -3
- package/dist/{index-O_bOptkt.cjs → index-Bv-gTP_t.cjs} +1 -1
- package/dist/{index-DBNHsIgv.cjs → index-C8qPBadE.cjs} +1 -1
- package/dist/{index-BlI2vqNq.cjs → index-CCn_Pa7c.cjs} +1 -1
- package/dist/{index-Dik2xqYP.cjs → index-CDYSTy2C.cjs} +1 -1
- package/dist/{index-BwPR9j1R.js → index-CPk9g8p3.js} +1 -1
- package/dist/{index-Bm7MIr-y.cjs → index-CUtrk2F2.cjs} +1 -1
- package/dist/{index-DhG77gNf.js → index-CVGCFimV.js} +4 -4
- package/dist/{index-CUxJMF0-.cjs → index-CaXg2zO6.cjs} +1 -1
- package/dist/{index-By9jSf82.cjs → index-CgR9iYFA.cjs} +1 -1
- package/dist/{index-DBh5Z73C.js → index-CuKYtSif.js} +1 -1
- package/dist/{index-DtsMcJUQ.cjs → index-DAeGe9R9.cjs} +1 -1
- package/dist/{index-Bn1gUAws.cjs → index-DJFQljsX.cjs} +1 -1
- package/dist/{index-BL5jJOrC.cjs → index-DPNECOKG.cjs} +1 -1
- package/dist/{index-ByC3lvIh.js → index-DRLogw4i.js} +5 -5
- package/dist/{index-CaSYf8vS.js → index-DRybfiC9.js} +1 -1
- package/dist/{index-Dc-P3yk2.js → index-Da5iE_ab.js} +1 -1
- package/dist/{index-D_Yhv_HV.cjs → index-De3Zh_5B.cjs} +1 -1
- package/dist/{index-DMHVamJx.cjs → index-DkzIAhpA.cjs} +1 -1
- package/dist/{index-D3ixok8t.cjs → index-DtkLwSCK.cjs} +1 -1
- package/dist/{index-CVXrjDFh.cjs → index-DzAoltDQ.cjs} +1 -1
- package/dist/{index-CD1qmo0t.js → index-DzadQQ41.js} +471 -468
- package/dist/{index-ixqPwbHw.js → index-NAekmm6C.js} +1 -1
- package/dist/{index-DUo0bPJ5.js → index-SvdMxP5R.js} +9 -9
- package/dist/{index-DaIE9uY1.cjs → index-TxlM0xFu.cjs} +1 -1
- package/dist/{index-JVuYdN4B.cjs → index-VcjIgkLE.cjs} +1 -1
- package/dist/{index-oY7c1aor.cjs → index-hnHfOKW9.cjs} +1 -1
- package/dist/{index-BVMBeTvB.cjs → index-r5JlBAZk.cjs} +1 -1
- package/dist/{index-DS-YTop9.cjs → index-wpbqbw-8.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BYHbVlRN.cjs} +96 -96
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js} +4137 -4142
- package/dist/{index.vue_vue_type_style_index_1_lang-CNh42_ZH.js → index.vue_vue_type_style_index_1_lang-CPOQHkRi.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs → index.vue_vue_type_style_index_1_lang-JNXKF-5g.cjs} +1 -1
- package/dist/{main-g2x6VynI.js → main-ClpfURp9.js} +3 -3
- package/dist/{main-CAAXG9V3.cjs → main-II23mGYX.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-D-4vn8wl.js → threeModel-1StgfJTN.js} +4 -4
- package/dist/{threeModel-CyqzIuKO.cjs → threeModel-Bdx25CW5.cjs} +1 -1
- package/dist/{threePreview-DOD9HOZn.cjs → threePreview-BNAELyED.cjs} +1 -1
- package/dist/{threePreview-CkKl3frr.js → threePreview-Bf5gN_fI.js} +3 -3
- package/dist/{threeSceneView-DlL9pZlj.js → threeSceneView-Boc1QaDR.js} +8 -8
- package/dist/{threeSceneView-DZvOLWv6.cjs → threeSceneView-u0zqKHWX.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CZvKvfDx.cjs → threeSceneViewForCPMPIP-CYkIXtPP.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-DB0Eczbs.js → threeSceneViewForCPMPIP-gnFSbkip.js} +7 -7
- package/dist/{threeTrackPathView-Eb1bvUXJ.js → threeTrackPathView-B1OFwlLh.js} +3 -3
- package/dist/{threeTrackPathView-DgyAEYfV.cjs → threeTrackPathView-CBsHliC3.cjs} +1 -1
- package/dist/{threeViewerHost-Bdzv9iPb.js → threeViewerHost-B9z6zHUh.js} +2 -2
- package/dist/{threeViewerHost-BMU1tg9c.cjs → threeViewerHost-BSxl-4d-.cjs} +1 -1
- package/dist/{urdfTree-CoK2r17Y.cjs → urdfTree-C1KFI7et.cjs} +1 -1
- package/dist/{urdfTree-hLtm0aFY.js → urdfTree-CGZUqrH4.js} +1 -1
- package/dist/{workpieceTreePanel-mWvCQyyw.cjs → workpieceTreePanel-BFsf-BrP.cjs} +1 -1
- package/dist/{workpieceTreePanel-Ne_ACq86.js → workpieceTreePanel-Bb9foDnf.js} +4 -4
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as N, resolveComponent as Q, createBlock as j, openBlock as
|
|
1
|
+
import { ref as N, resolveComponent as Q, createBlock as j, openBlock as S, createCommentVNode as n2, createSlots as R0, withCtx as E, renderSlot as v2, defineComponent as u0, onMounted as ue, createVNode as J, createElementVNode as l2, createElementBlock as B, Fragment as y2, renderList as D2, createTextVNode as N0, toDisplayString as $2, reactive as g1, h as Ge, Transition as lr, withDirectives as rt, vShow as Rt, createApp as rr, toRefs as Ls, nextTick as D0, isRef as ar, watch as s0, computed as t2, normalizeClass as We, withModifiers as $t, onBeforeUnmount as T4, normalizeStyle as t0, resolveDynamicComponent as Qt, normalizeProps as cr, guardReactiveProps as hr, mergeProps as m1, inject as dr, unref as ye, watchEffect as Ce, onUnmounted as v1, resolveDirective as ur } from "vue";
|
|
2
2
|
import { S as mt } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { L as fr, at as Hs, x as Is, an as it, e as pr, u as gr, S as Si, f as Gs, au as mr, av as vr, aw as wr, ax as xr, d as br, ay as Ci, az as ki } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { L as fr, at as Hs, x as Is, an as it, e as pr, u as gr, S as Si, f as Gs, au as mr, av as vr, aw as wr, ax as xr, d as br, ay as Ci, az as ki } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DuyXGUSZ.js";
|
|
4
4
|
import { _ as B2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { j as Ns, k as Rs, ag as _r, ad as c3, B as yr, F as $s, ac as zt, ab as Oi, a2 as js, ap as Sr, E as N3, aq as Ws, ar as Cr, s as Us, as as kr, at as Or, an as Dr, au as Mr, a as Tr } from "./index-B8HqIYd5.js";
|
|
6
6
|
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
7
|
import { N as zr, O as Di, c as d0, a as z4, p as at, s as vt, u as P4 } from "./index-COQpDVsv.js";
|
|
8
|
-
import { s as V4 } from "./index-
|
|
9
|
-
import { T as Mi, a as Pr } from "./threeViewerHost-
|
|
10
|
-
import { A as Vr } from "./index-
|
|
8
|
+
import { s as V4 } from "./index-CuKYtSif.js";
|
|
9
|
+
import { T as Mi, a as Pr } from "./threeViewerHost-B9z6zHUh.js";
|
|
10
|
+
import { A as Vr } from "./index-BBo5mPL3.js";
|
|
11
11
|
var Ar = "[object Date]";
|
|
12
12
|
function Br(n) {
|
|
13
13
|
return Ns(n) && Rs(n) == Ar;
|
|
@@ -45,7 +45,7 @@ const Lr = {
|
|
|
45
45
|
const e = n, t = N(e.value);
|
|
46
46
|
return (i, s) => {
|
|
47
47
|
const o = Q("el-switch");
|
|
48
|
-
return
|
|
48
|
+
return S(), j(o, {
|
|
49
49
|
modelValue: t.value,
|
|
50
50
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
51
51
|
"active-color": "#13ce66",
|
|
@@ -81,7 +81,7 @@ const Lr = {
|
|
|
81
81
|
};
|
|
82
82
|
return (l, r) => {
|
|
83
83
|
const a = Q("el-input");
|
|
84
|
-
return Array.isArray(i.value) ? n2("", !0) : (
|
|
84
|
+
return Array.isArray(i.value) ? n2("", !0) : (S(), j(a, {
|
|
85
85
|
key: 0,
|
|
86
86
|
modelValue: i.value,
|
|
87
87
|
"onUpdate:modelValue": r[0] || (r[0] = (h) => i.value = h),
|
|
@@ -853,7 +853,7 @@ const Af = { class: "icon-popover" }, Bf = ["onClick"], Ef = /* @__PURE__ */ u0(
|
|
|
853
853
|
l.value = Vf();
|
|
854
854
|
}), (c, d) => {
|
|
855
855
|
const u = Q("el-input"), f = Q("el-popover");
|
|
856
|
-
return
|
|
856
|
+
return S(), j(f, {
|
|
857
857
|
width: "400",
|
|
858
858
|
visible: o.value,
|
|
859
859
|
title: "图标",
|
|
@@ -861,7 +861,7 @@ const Af = { class: "icon-popover" }, Bf = ["onClick"], Ef = /* @__PURE__ */ u0(
|
|
|
861
861
|
}, {
|
|
862
862
|
default: E(() => [
|
|
863
863
|
l2("div", Af, [
|
|
864
|
-
(
|
|
864
|
+
(S(!0), B(y2, null, D2(l.value, (p, m) => (S(), B("div", {
|
|
865
865
|
key: m,
|
|
866
866
|
class: "icon-wrap",
|
|
867
867
|
onClick: (v) => h(p)
|
|
@@ -908,7 +908,7 @@ const Af = { class: "icon-popover" }, Bf = ["onClick"], Ef = /* @__PURE__ */ u0(
|
|
|
908
908
|
};
|
|
909
909
|
return (o, l) => {
|
|
910
910
|
const r = Q("el-link");
|
|
911
|
-
return
|
|
911
|
+
return S(), j(r, {
|
|
912
912
|
onClick: s,
|
|
913
913
|
type: "primary",
|
|
914
914
|
target: "_self",
|
|
@@ -1137,8 +1137,8 @@ const $f = {
|
|
|
1137
1137
|
s.value = d;
|
|
1138
1138
|
}, { immediate: !0 }), (d, u) => {
|
|
1139
1139
|
const f = Q("el-tag"), p = Q("el-option"), m = Q("el-select"), v = Q("el-button");
|
|
1140
|
-
return
|
|
1141
|
-
(
|
|
1140
|
+
return S(), B("div", null, [
|
|
1141
|
+
(S(!0), B(y2, null, D2(s.value, (w) => (S(), j(f, {
|
|
1142
1142
|
key: w,
|
|
1143
1143
|
closable: "",
|
|
1144
1144
|
"disable-transitions": !1,
|
|
@@ -1150,7 +1150,7 @@ const $f = {
|
|
|
1150
1150
|
]),
|
|
1151
1151
|
_: 2
|
|
1152
1152
|
}, 1032, ["onClose"]))), 128)),
|
|
1153
|
-
r.value ? (
|
|
1153
|
+
r.value ? (S(), j(m, {
|
|
1154
1154
|
key: 0,
|
|
1155
1155
|
modelValue: o.value,
|
|
1156
1156
|
"onUpdate:modelValue": u[0] || (u[0] = (w) => o.value = w),
|
|
@@ -1160,14 +1160,14 @@ const $f = {
|
|
|
1160
1160
|
placeholder: "请选择"
|
|
1161
1161
|
}, {
|
|
1162
1162
|
default: E(() => [
|
|
1163
|
-
(
|
|
1163
|
+
(S(!0), B(y2, null, D2(l.value, (w, b) => (S(), j(p, {
|
|
1164
1164
|
key: b,
|
|
1165
1165
|
label: w == null ? void 0 : w.label,
|
|
1166
1166
|
value: w == null ? void 0 : w.value
|
|
1167
1167
|
}, null, 8, ["label", "value"]))), 128))
|
|
1168
1168
|
]),
|
|
1169
1169
|
_: 1
|
|
1170
|
-
}, 8, ["modelValue"])) : (
|
|
1170
|
+
}, 8, ["modelValue"])) : (S(), j(v, {
|
|
1171
1171
|
key: 1,
|
|
1172
1172
|
class: "button-new-tag",
|
|
1173
1173
|
size: "small",
|
|
@@ -1199,7 +1199,7 @@ const $f = {
|
|
|
1199
1199
|
const e = n, t = N(e.value);
|
|
1200
1200
|
return (i, s) => {
|
|
1201
1201
|
const o = Q("el-input");
|
|
1202
|
-
return
|
|
1202
|
+
return S(), j(o, {
|
|
1203
1203
|
modelValue: t.value,
|
|
1204
1204
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1205
1205
|
disabled: !(e != null && e.isEdit),
|
|
@@ -1226,7 +1226,7 @@ const $f = {
|
|
|
1226
1226
|
const t = N(n.value);
|
|
1227
1227
|
return (i, s) => {
|
|
1228
1228
|
const o = Q("el-color-picker");
|
|
1229
|
-
return
|
|
1229
|
+
return S(), j(o, {
|
|
1230
1230
|
modelValue: t.value,
|
|
1231
1231
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1232
1232
|
"show-alpha": ""
|
|
@@ -1250,7 +1250,7 @@ const $f = {
|
|
|
1250
1250
|
const t = N(n.value);
|
|
1251
1251
|
return (i, s) => {
|
|
1252
1252
|
const o = Q("el-input");
|
|
1253
|
-
return
|
|
1253
|
+
return S(), j(o, {
|
|
1254
1254
|
modelValue: t.value,
|
|
1255
1255
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
1256
1256
|
style: { height: "100%" },
|
|
@@ -1328,39 +1328,42 @@ const $f = {
|
|
|
1328
1328
|
return b.value && x.push("multiple"), x;
|
|
1329
1329
|
}), f = (x) => {
|
|
1330
1330
|
var I;
|
|
1331
|
-
const { value:
|
|
1332
|
-
return Array.isArray(a.value) || (a.value = []), ((I = a.value) == null ? void 0 : I.find((k) =>
|
|
1331
|
+
const { value: _ } = x;
|
|
1332
|
+
return Array.isArray(a.value) || (a.value = []), ((I = a.value) == null ? void 0 : I.find((k) => _ == k)) && b.value ? "active" : "";
|
|
1333
1333
|
}, p = (x) => {
|
|
1334
|
-
let
|
|
1335
|
-
const
|
|
1334
|
+
let _ = d0(a.value);
|
|
1335
|
+
const P = /* @__PURE__ */ new Set();
|
|
1336
1336
|
for (let I = 0; I < x.length; I++) {
|
|
1337
1337
|
const k = x[I];
|
|
1338
|
-
|
|
1338
|
+
P.add(k);
|
|
1339
1339
|
}
|
|
1340
|
-
|
|
1340
|
+
_ = _.filter((I) => P.has(I)), Hs(a.value, _) || (a.value = _, i("tagChange", _));
|
|
1341
1341
|
}, m = (x) => {
|
|
1342
|
-
const { value:
|
|
1343
|
-
return I >= 0 ?
|
|
1342
|
+
const { value: _ } = x, P = d0(a.value), I = P.findIndex((k) => k === _);
|
|
1343
|
+
return I >= 0 ? P.splice(I, 1) : P.push(_), P;
|
|
1344
1344
|
}, v = (x) => {
|
|
1345
1345
|
if (!b.value)
|
|
1346
1346
|
return;
|
|
1347
|
-
const
|
|
1348
|
-
a.value =
|
|
1347
|
+
const _ = m(x);
|
|
1348
|
+
a.value = _, i("tagChange", _);
|
|
1349
1349
|
}, w = (x) => {
|
|
1350
1350
|
i("blurChange"), b.value && p(x);
|
|
1351
1351
|
}, b = t2(() => {
|
|
1352
|
-
const x = t;
|
|
1352
|
+
const x = t == null ? void 0 : t.optionUrl;
|
|
1353
1353
|
return !!(x != null && x.multiple);
|
|
1354
|
-
}), O = t2(() =>
|
|
1354
|
+
}), O = t2(() => {
|
|
1355
|
+
var x, _, P;
|
|
1356
|
+
return !((x = t == null ? void 0 : t.optionUrl) != null && x.multipleLimit) && ((_ = t == null ? void 0 : t.optionUrl) == null ? void 0 : _.multipleLimit) !== 0 ? 1 : parseInt((P = t == null ? void 0 : t.optionUrl) == null ? void 0 : P.multipleLimit);
|
|
1357
|
+
}), T = t2(() => {
|
|
1355
1358
|
var x;
|
|
1356
1359
|
return (x = r.value) == null ? void 0 : x.filter(
|
|
1357
|
-
(
|
|
1360
|
+
(_, P, I) => P === I.findIndex((k) => k.value === _.value)
|
|
1358
1361
|
);
|
|
1359
1362
|
}), C = async () => {
|
|
1360
|
-
var x,
|
|
1361
|
-
if (((
|
|
1363
|
+
var x, _, P, I, k, G, D, e2, i2, A, W, p2, u2, E2, N2, S2, g;
|
|
1364
|
+
if (((_ = (x = t == null ? void 0 : t.optionUrl) == null ? void 0 : x.allSelectionContents) == null ? void 0 : _.length) > 0) {
|
|
1362
1365
|
let T2 = "", b2 = [];
|
|
1363
|
-
(D = (G = (k = (I = (
|
|
1366
|
+
(D = (G = (k = (I = (P = t == null ? void 0 : t.optionUrl) == null ? void 0 : P.selectFilter) == null ? void 0 : I.replaceAll("(", "")) == null ? void 0 : k.replaceAll(")", "")) == null ? void 0 : G.split("||")) == null || D.forEach((z2) => {
|
|
1364
1367
|
var T0, I0;
|
|
1365
1368
|
let r0 = z2 == null ? void 0 : z2.split("=");
|
|
1366
1369
|
T2 = (I0 = (T0 = r0 == null ? void 0 : r0[0]) == null ? void 0 : T0.replaceAll("{", "")) == null ? void 0 : I0.replaceAll("}", ""), b2 == null || b2.push(r0 == null ? void 0 : r0[1]);
|
|
@@ -1379,19 +1382,19 @@ const $f = {
|
|
|
1379
1382
|
}
|
|
1380
1383
|
i("click");
|
|
1381
1384
|
};
|
|
1382
|
-
return (x,
|
|
1383
|
-
const
|
|
1384
|
-
return l.value ? l.value ? (
|
|
1385
|
+
return (x, _) => {
|
|
1386
|
+
const P = Q("el-option"), I = Q("el-select");
|
|
1387
|
+
return l.value ? l.value ? (S(), j(Jt, {
|
|
1385
1388
|
key: 1,
|
|
1386
1389
|
modelValue: o.value,
|
|
1387
|
-
"onUpdate:modelValue":
|
|
1390
|
+
"onUpdate:modelValue": _[1] || (_[1] = (k) => o.value = k),
|
|
1388
1391
|
onChange: d,
|
|
1389
1392
|
onBlur: c
|
|
1390
|
-
}, null, 8, ["modelValue"])) : n2("", !0) : (
|
|
1393
|
+
}, null, 8, ["modelValue"])) : n2("", !0) : (S(), j(I, {
|
|
1391
1394
|
key: 0,
|
|
1392
1395
|
class: We(["ss-select", u.value]),
|
|
1393
1396
|
modelValue: s.value,
|
|
1394
|
-
"onUpdate:modelValue":
|
|
1397
|
+
"onUpdate:modelValue": _[0] || (_[0] = (k) => s.value = k),
|
|
1395
1398
|
filterable: "",
|
|
1396
1399
|
"allow-create": "true",
|
|
1397
1400
|
"default-first-option": "true",
|
|
@@ -1414,7 +1417,7 @@ const $f = {
|
|
|
1414
1417
|
], 10, Yf)
|
|
1415
1418
|
]),
|
|
1416
1419
|
default: E(() => [
|
|
1417
|
-
(
|
|
1420
|
+
(S(!0), B(y2, null, D2(T.value, (k) => (S(), j(P, {
|
|
1418
1421
|
key: k.value,
|
|
1419
1422
|
label: k.label,
|
|
1420
1423
|
value: k.value
|
|
@@ -1424,7 +1427,7 @@ const $f = {
|
|
|
1424
1427
|
}, 8, ["class", "modelValue", "multiple", "multiple-limit", "clearable", "placeholder", "onBlur"]));
|
|
1425
1428
|
};
|
|
1426
1429
|
}
|
|
1427
|
-
}, h3 = /* @__PURE__ */ B2(Kf, [["__scopeId", "data-v-
|
|
1430
|
+
}, h3 = /* @__PURE__ */ B2(Kf, [["__scopeId", "data-v-ae26f3c8"]]), Xf = {
|
|
1428
1431
|
key: 0,
|
|
1429
1432
|
class: "form-operator-wrap"
|
|
1430
1433
|
}, Qf = { class: "form-content-view" }, Jf = {
|
|
@@ -1508,12 +1511,12 @@ const $f = {
|
|
|
1508
1511
|
r("blurChange", d.value, {
|
|
1509
1512
|
changeProp: A
|
|
1510
1513
|
});
|
|
1511
|
-
},
|
|
1514
|
+
}, _ = (A, W) => {
|
|
1512
1515
|
r("create", {
|
|
1513
1516
|
item: A,
|
|
1514
1517
|
value: W
|
|
1515
1518
|
});
|
|
1516
|
-
},
|
|
1519
|
+
}, P = () => {
|
|
1517
1520
|
D0(() => {
|
|
1518
1521
|
u.value++;
|
|
1519
1522
|
});
|
|
@@ -1541,7 +1544,7 @@ const $f = {
|
|
|
1541
1544
|
const A = {};
|
|
1542
1545
|
(p2 = d0(t == null ? void 0 : t.rowContents)) == null || p2.forEach((u2) => {
|
|
1543
1546
|
A[(u2 == null ? void 0 : u2.prop) ?? (u2 == null ? void 0 : u2.name)] = I(u2 == null ? void 0 : u2.type, u2 == null ? void 0 : u2.value);
|
|
1544
|
-
}), c.value = A, d.value = A,
|
|
1547
|
+
}), c.value = A, d.value = A, P();
|
|
1545
1548
|
},
|
|
1546
1549
|
{ deep: !0, immediate: !0 }
|
|
1547
1550
|
), t2(() => {
|
|
@@ -1597,11 +1600,11 @@ const $f = {
|
|
|
1597
1600
|
), (A, W) => {
|
|
1598
1601
|
var N2;
|
|
1599
1602
|
const p2 = Q("el-form-item"), u2 = Q("el-form"), E2 = Q("el-button");
|
|
1600
|
-
return
|
|
1603
|
+
return S(), B("div", {
|
|
1601
1604
|
class: "form-content",
|
|
1602
1605
|
style: t0({ flexDirection: n.isButtonRow ? "row" : "column" })
|
|
1603
1606
|
}, [
|
|
1604
|
-
m.value ? (
|
|
1607
|
+
m.value ? (S(), B("div", Xf, [
|
|
1605
1608
|
v2(A.$slots, "operateCol", {
|
|
1606
1609
|
renderColumns: n.rowContents,
|
|
1607
1610
|
formDisabled: n.formDisabled,
|
|
@@ -1609,7 +1612,7 @@ const $f = {
|
|
|
1609
1612
|
}, void 0, !0)
|
|
1610
1613
|
])) : n2("", !0),
|
|
1611
1614
|
l2("div", Qf, [
|
|
1612
|
-
t.isEnableWrap ? (
|
|
1615
|
+
t.isEnableWrap ? (S(), j(u2, {
|
|
1613
1616
|
ref_key: "formWrapRef",
|
|
1614
1617
|
ref: a,
|
|
1615
1618
|
model: c.value,
|
|
@@ -1621,7 +1624,7 @@ const $f = {
|
|
|
1621
1624
|
default: E(() => {
|
|
1622
1625
|
var S2;
|
|
1623
1626
|
return [
|
|
1624
|
-
(
|
|
1627
|
+
(S(!0), B(y2, null, D2(t == null ? void 0 : t.rowContents, (g, T2) => rt((S(), j(p2, {
|
|
1625
1628
|
key: T2,
|
|
1626
1629
|
disabled: n.formDisabled || (g == null ? void 0 : g.disabled),
|
|
1627
1630
|
class: "form-item",
|
|
@@ -1631,7 +1634,7 @@ const $f = {
|
|
|
1631
1634
|
default: E(() => {
|
|
1632
1635
|
var b2, R2, e0, z2, r0, T0, I0, Ve, Ae, Be, Ee, pe, Le, se;
|
|
1633
1636
|
return [
|
|
1634
|
-
g != null && g.isFormColHidden ? n2("", !0) : (
|
|
1637
|
+
g != null && g.isFormColHidden ? n2("", !0) : (S(), j(Qt(v((g == null ? void 0 : g.type) ?? "Input")), {
|
|
1635
1638
|
modelValue: d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)],
|
|
1636
1639
|
"onUpdate:modelValue": (a0) => d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)] = a0,
|
|
1637
1640
|
key: g == null ? void 0 : g.type,
|
|
@@ -1646,13 +1649,13 @@ const $f = {
|
|
|
1646
1649
|
onFixChangeValue: w,
|
|
1647
1650
|
originalValue: d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)],
|
|
1648
1651
|
onBlurChange: (a0) => x((g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)),
|
|
1649
|
-
onCreate: (a0) =>
|
|
1652
|
+
onCreate: (a0) => _(g, a0),
|
|
1650
1653
|
config: g == null ? void 0 : g.config,
|
|
1651
1654
|
configModel: (g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name),
|
|
1652
1655
|
onTagChange: C,
|
|
1653
1656
|
selectedTagList: (g == null ? void 0 : g.selectValue) ?? []
|
|
1654
1657
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "content", "isEdit", "disabled", "optionUrl", "originalValue", "onBlurChange", "onCreate", "config", "configModel", "selectedTagList"])),
|
|
1655
|
-
typeof d.value[(g == null ? void 0 : g.prop) ?? g.name] == "string" && ((b2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && b2.includes(".stl") || (R2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && R2.includes(".obj") || (e0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && e0.includes(".urdf") || (z2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && z2.includes(".STL") || (r0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && r0.includes(".ls") || (T0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && T0.includes(".uv") || (I0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && I0.includes(".UV") || (Ve = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ve.includes(".cpt") || (Ae = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ae.includes(".CPT") || (Be = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Be.includes(".cyd") || (Ee = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ee.includes(".CYD") || (pe = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && pe.includes(".nc") || (Le = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Le.includes(".NC") || (se = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && se.includes(".csv")) ? (
|
|
1658
|
+
typeof d.value[(g == null ? void 0 : g.prop) ?? g.name] == "string" && ((b2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && b2.includes(".stl") || (R2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && R2.includes(".obj") || (e0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && e0.includes(".urdf") || (z2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && z2.includes(".STL") || (r0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && r0.includes(".ls") || (T0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && T0.includes(".uv") || (I0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && I0.includes(".UV") || (Ve = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ve.includes(".cpt") || (Ae = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ae.includes(".CPT") || (Be = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Be.includes(".cyd") || (Ee = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ee.includes(".CYD") || (pe = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && pe.includes(".nc") || (Le = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Le.includes(".NC") || (se = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && se.includes(".csv")) ? (S(), j(re, {
|
|
1656
1659
|
key: 1,
|
|
1657
1660
|
class: "calculator-content form-preview",
|
|
1658
1661
|
onClickTrigger: (a0) => O(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
@@ -1665,12 +1668,12 @@ const $f = {
|
|
|
1665
1668
|
!(g != null && g.isFormColHidden) && (g != null && g.label) ? {
|
|
1666
1669
|
name: "label",
|
|
1667
1670
|
fn: E(() => [
|
|
1668
|
-
g != null && g.label ? (
|
|
1671
|
+
g != null && g.label ? (S(), B("div", {
|
|
1669
1672
|
key: 0,
|
|
1670
1673
|
class: "from-item-label",
|
|
1671
1674
|
style: t0({ width: n.isRowFlex ? "72px" : "260px", minWidth: n.isRowFlex ? "72px" : "260px" })
|
|
1672
1675
|
}, [
|
|
1673
|
-
g != null && g.operable ? (
|
|
1676
|
+
g != null && g.operable ? (S(), j(Jt, {
|
|
1674
1677
|
key: 0,
|
|
1675
1678
|
value: g == null ? void 0 : g.label,
|
|
1676
1679
|
appendShow: !0,
|
|
@@ -1687,7 +1690,7 @@ const $f = {
|
|
|
1687
1690
|
}, null, 8, ["value", "content", "onChange"])
|
|
1688
1691
|
]),
|
|
1689
1692
|
_: 2
|
|
1690
|
-
}, 1032, ["value", "onChange"])) : (
|
|
1693
|
+
}, 1032, ["value", "onChange"])) : (S(), B("div", Jf, $2(g == null ? void 0 : g.label), 1))
|
|
1691
1694
|
], 4)) : n2("", !0)
|
|
1692
1695
|
]),
|
|
1693
1696
|
key: "0"
|
|
@@ -1695,16 +1698,16 @@ const $f = {
|
|
|
1695
1698
|
]), 1032, ["disabled", "prop", "style"])), [
|
|
1696
1699
|
[Rt, !(g != null && g.isFormColHidden)]
|
|
1697
1700
|
])), 128)),
|
|
1698
|
-
((S2 = t.buttonValue) == null ? void 0 : S2.length) > 0 && n.isButtonRow ? (
|
|
1701
|
+
((S2 = t.buttonValue) == null ? void 0 : S2.length) > 0 && n.isButtonRow ? (S(), B("div", {
|
|
1699
1702
|
key: 0,
|
|
1700
1703
|
class: "form-button",
|
|
1701
1704
|
style: t0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1702
1705
|
}, [
|
|
1703
|
-
(
|
|
1706
|
+
(S(!0), B(y2, null, D2(t == null ? void 0 : t.buttonValue, (g, T2) => (S(), B("div", {
|
|
1704
1707
|
key: T2,
|
|
1705
1708
|
class: "form-button-content"
|
|
1706
1709
|
}, [
|
|
1707
|
-
g ? (
|
|
1710
|
+
g ? (S(), B("div", {
|
|
1708
1711
|
key: 0,
|
|
1709
1712
|
class: "form-button-item",
|
|
1710
1713
|
style: t0({ background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)" }),
|
|
@@ -1715,7 +1718,7 @@ const $f = {
|
|
|
1715
1718
|
];
|
|
1716
1719
|
}),
|
|
1717
1720
|
_: 1
|
|
1718
|
-
}, 8, ["model", "rules", "disabled", "class"])) : (
|
|
1721
|
+
}, 8, ["model", "rules", "disabled", "class"])) : (S(), j(u2, {
|
|
1719
1722
|
ref_key: "formRef",
|
|
1720
1723
|
ref: h,
|
|
1721
1724
|
model: d.value,
|
|
@@ -1727,7 +1730,7 @@ const $f = {
|
|
|
1727
1730
|
default: E(() => {
|
|
1728
1731
|
var S2;
|
|
1729
1732
|
return [
|
|
1730
|
-
(
|
|
1733
|
+
(S(!0), B(y2, null, D2(t == null ? void 0 : t.rowContents, (g, T2) => (S(), j(p2, {
|
|
1731
1734
|
key: T2,
|
|
1732
1735
|
class: We(["form-item", { "form-row-content": !n.isRowFlex }]),
|
|
1733
1736
|
prop: (g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name),
|
|
@@ -1743,7 +1746,7 @@ const $f = {
|
|
|
1743
1746
|
default: E(() => {
|
|
1744
1747
|
var b2, R2, e0, z2, r0, T0, I0, Ve, Ae, Be, Ee, pe, Le, se;
|
|
1745
1748
|
return [
|
|
1746
|
-
!(g != null && g.isFormColHidden) && (g == null ? void 0 : g.type) !== "Url" ? (
|
|
1749
|
+
!(g != null && g.isFormColHidden) && (g == null ? void 0 : g.type) !== "Url" ? (S(), j(Qt(v((g == null ? void 0 : g.type) ?? "Input")), {
|
|
1747
1750
|
modelValue: d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)],
|
|
1748
1751
|
"onUpdate:modelValue": (a0) => d.value[(g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)] = a0,
|
|
1749
1752
|
isEdit: t == null ? void 0 : t.isEdit,
|
|
@@ -1759,19 +1762,19 @@ const $f = {
|
|
|
1759
1762
|
onChangeVisible: k,
|
|
1760
1763
|
onBlurChange: (a0) => x((g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name)),
|
|
1761
1764
|
onTagChange: (a0) => C(a0, (g == null ? void 0 : g.prop) ?? g.name),
|
|
1762
|
-
onCreate: (a0) =>
|
|
1765
|
+
onCreate: (a0) => _(g, a0),
|
|
1763
1766
|
config: g == null ? void 0 : g.config,
|
|
1764
1767
|
configModel: (g == null ? void 0 : g.prop) ?? (g == null ? void 0 : g.name),
|
|
1765
1768
|
selectedTagList: (g == null ? void 0 : g.selectValue) ?? []
|
|
1766
1769
|
}, null, 40, ["modelValue", "onUpdate:modelValue", "isEdit", "disabled", "content", "originalValue", "optionUrl", "onBlurChange", "onTagChange", "onCreate", "config", "configModel", "selectedTagList"])) : n2("", !0),
|
|
1767
|
-
(g == null ? void 0 : g.type) === "Url" ? (
|
|
1770
|
+
(g == null ? void 0 : g.type) === "Url" ? (S(), B("div", tp, [
|
|
1768
1771
|
J(re, {
|
|
1769
1772
|
class: "calculator-content form-preview",
|
|
1770
1773
|
onClickTrigger: (a0) => p(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
1771
1774
|
modelValue: "详情"
|
|
1772
1775
|
}, null, 8, ["onClickTrigger"])
|
|
1773
1776
|
])) : n2("", !0),
|
|
1774
|
-
typeof d.value[(g == null ? void 0 : g.prop) ?? g.name] == "string" && ((b2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && b2.includes(".stl") || (R2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && R2.includes(".obj") || (e0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && e0.includes(".urdf") || (z2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && z2.includes(".STL") || (r0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && r0.includes(".ls") || (T0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && T0.includes(".uv") || (I0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && I0.includes(".UV") || (Ve = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ve.includes(".cpt") || (Ae = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ae.includes(".CPT") || (Be = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Be.includes(".cyd") || (Ee = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ee.includes(".CYD") || (pe = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && pe.includes(".nc") || (Le = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Le.includes(".NC") || (se = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && se.includes(".csv")) ? (
|
|
1777
|
+
typeof d.value[(g == null ? void 0 : g.prop) ?? g.name] == "string" && ((b2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && b2.includes(".stl") || (R2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && R2.includes(".obj") || (e0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && e0.includes(".urdf") || (z2 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && z2.includes(".STL") || (r0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && r0.includes(".ls") || (T0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && T0.includes(".uv") || (I0 = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && I0.includes(".UV") || (Ve = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ve.includes(".cpt") || (Ae = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ae.includes(".CPT") || (Be = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Be.includes(".cyd") || (Ee = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Ee.includes(".CYD") || (pe = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && pe.includes(".nc") || (Le = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && Le.includes(".NC") || (se = d.value[(g == null ? void 0 : g.prop) ?? g.name]) != null && se.includes(".csv")) ? (S(), j(re, {
|
|
1775
1778
|
key: 2,
|
|
1776
1779
|
class: "calculator-content form-preview",
|
|
1777
1780
|
onClickTrigger: (a0) => O(d.value[(g == null ? void 0 : g.prop) ?? g.name]),
|
|
@@ -1784,12 +1787,12 @@ const $f = {
|
|
|
1784
1787
|
!(g != null && g.isFormColHidden) && (g != null && g.label) ? {
|
|
1785
1788
|
name: "label",
|
|
1786
1789
|
fn: E(() => [
|
|
1787
|
-
g != null && g.label ? (
|
|
1790
|
+
g != null && g.label ? (S(), B("div", {
|
|
1788
1791
|
key: 0,
|
|
1789
1792
|
class: "from-item-label",
|
|
1790
1793
|
style: t0({ width: n.isRowFlex ? "72px" : "auto", minWidth: n.isRowFlex ? "72px" : `calc((100% / ${(g == null ? void 0 : g.width) ?? 1}) - 8px)` })
|
|
1791
1794
|
}, [
|
|
1792
|
-
g != null && g.operable ? (
|
|
1795
|
+
g != null && g.operable ? (S(), j(Jt, {
|
|
1793
1796
|
key: 0,
|
|
1794
1797
|
value: g == null ? void 0 : g.label,
|
|
1795
1798
|
appendShow: !0,
|
|
@@ -1806,22 +1809,22 @@ const $f = {
|
|
|
1806
1809
|
}, null, 8, ["value", "content", "onChange"])
|
|
1807
1810
|
]),
|
|
1808
1811
|
_: 2
|
|
1809
|
-
}, 1032, ["value", "onChange"])) : (
|
|
1812
|
+
}, 1032, ["value", "onChange"])) : (S(), B("div", ep, $2(g == null ? void 0 : g.label), 1))
|
|
1810
1813
|
], 4)) : n2("", !0)
|
|
1811
1814
|
]),
|
|
1812
1815
|
key: "0"
|
|
1813
1816
|
} : void 0
|
|
1814
1817
|
]), 1032, ["prop", "class", "disabled", "style"]))), 128)),
|
|
1815
|
-
((S2 = t.buttonValue) == null ? void 0 : S2.length) > 0 && n.isButtonRow ? (
|
|
1818
|
+
((S2 = t.buttonValue) == null ? void 0 : S2.length) > 0 && n.isButtonRow ? (S(), B("div", {
|
|
1816
1819
|
key: 0,
|
|
1817
1820
|
class: "form-button",
|
|
1818
1821
|
style: t0({ paddingTop: n.isRowFlex ? "0" : "26px", justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1819
1822
|
}, [
|
|
1820
|
-
(
|
|
1823
|
+
(S(!0), B(y2, null, D2(t == null ? void 0 : t.buttonValue, (g, T2) => (S(), B("div", {
|
|
1821
1824
|
key: T2,
|
|
1822
1825
|
class: "form-button-content"
|
|
1823
1826
|
}, [
|
|
1824
|
-
g ? (
|
|
1827
|
+
g ? (S(), B("div", {
|
|
1825
1828
|
key: 0,
|
|
1826
1829
|
class: "form-button-item",
|
|
1827
1830
|
style: t0({ background: (g == null ? void 0 : g.background) ?? "var(--ssComponent-primary-color)" }),
|
|
@@ -1834,12 +1837,12 @@ const $f = {
|
|
|
1834
1837
|
_: 1
|
|
1835
1838
|
}, 8, ["model", "rules", "disabled", "class"]))
|
|
1836
1839
|
]),
|
|
1837
|
-
((N2 = t.buttonValue) == null ? void 0 : N2.length) > 0 && !n.isButtonRow ? (
|
|
1840
|
+
((N2 = t.buttonValue) == null ? void 0 : N2.length) > 0 && !n.isButtonRow ? (S(), B("div", {
|
|
1838
1841
|
key: 1,
|
|
1839
1842
|
class: "form-button",
|
|
1840
1843
|
style: t0({ justifyContent: n.isStartJustify ? "start" : "end" })
|
|
1841
1844
|
}, [
|
|
1842
|
-
(
|
|
1845
|
+
(S(!0), B(y2, null, D2(t == null ? void 0 : t.buttonValue, (S2, g) => (S(), B("div", {
|
|
1843
1846
|
key: g,
|
|
1844
1847
|
class: "form-button-content",
|
|
1845
1848
|
onClick: (T2) => e2(S2 == null ? void 0 : S2.label, t.isEnableWrap ? a.value : h.value)
|
|
@@ -1885,7 +1888,7 @@ const $f = {
|
|
|
1885
1888
|
};
|
|
1886
1889
|
return (l, r) => {
|
|
1887
1890
|
var a, h, c, d, u, f, p, m;
|
|
1888
|
-
return
|
|
1891
|
+
return S(), j(op, {
|
|
1889
1892
|
rowContents: ((a = t == null ? void 0 : t.content) == null ? void 0 : a.rowContents) ?? [],
|
|
1890
1893
|
formRules: (h = t == null ? void 0 : t.content) == null ? void 0 : h.formRules,
|
|
1891
1894
|
buttonValue: ((c = t == null ? void 0 : t.content) == null ? void 0 : c.buttonValue) ?? [],
|
|
@@ -1919,14 +1922,14 @@ const $f = {
|
|
|
1919
1922
|
};
|
|
1920
1923
|
return (l, r) => {
|
|
1921
1924
|
const a = Q("el-radio"), h = Q("el-radio-group");
|
|
1922
|
-
return
|
|
1925
|
+
return S(), j(h, {
|
|
1923
1926
|
modelValue: i.value,
|
|
1924
1927
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
1925
1928
|
style: { height: "100%" },
|
|
1926
1929
|
onChange: r[1] || (r[1] = (c) => o(c))
|
|
1927
1930
|
}, {
|
|
1928
1931
|
default: E(() => [
|
|
1929
|
-
(
|
|
1932
|
+
(S(!0), B(y2, null, D2(t.content, (c, d) => (S(), j(a, {
|
|
1930
1933
|
key: d,
|
|
1931
1934
|
label: c.value,
|
|
1932
1935
|
disabled: c == null ? void 0 : c.disabled
|
|
@@ -1969,7 +1972,7 @@ const $f = {
|
|
|
1969
1972
|
};
|
|
1970
1973
|
return (l, r) => {
|
|
1971
1974
|
const a = Q("el-checkbox"), h = Q("el-checkbox-group");
|
|
1972
|
-
return
|
|
1975
|
+
return S(), j(h, {
|
|
1973
1976
|
modelValue: i.value,
|
|
1974
1977
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => i.value = c),
|
|
1975
1978
|
style: { height: "100%" },
|
|
@@ -1977,7 +1980,7 @@ const $f = {
|
|
|
1977
1980
|
onChange: r[1] || (r[1] = (c) => o(c))
|
|
1978
1981
|
}, {
|
|
1979
1982
|
default: E(() => [
|
|
1980
|
-
(
|
|
1983
|
+
(S(!0), B(y2, null, D2(n.content, (c) => (S(), j(a, {
|
|
1981
1984
|
key: c.label,
|
|
1982
1985
|
label: c.label,
|
|
1983
1986
|
value: c.value,
|
|
@@ -2015,7 +2018,7 @@ const $f = {
|
|
|
2015
2018
|
});
|
|
2016
2019
|
}), (t, i) => {
|
|
2017
2020
|
var s;
|
|
2018
|
-
return
|
|
2021
|
+
return S(), j(q8, {
|
|
2019
2022
|
tabsContents: ((s = e == null ? void 0 : e.content) == null ? void 0 : s.tabsContents) ?? []
|
|
2020
2023
|
}, R0({ _: 2 }, [
|
|
2021
2024
|
D2(t.$slots, (o, l) => ({
|
|
@@ -2030,7 +2033,7 @@ const $f = {
|
|
|
2030
2033
|
}, dp = {};
|
|
2031
2034
|
function up(n, e) {
|
|
2032
2035
|
const t = Q("el-card");
|
|
2033
|
-
return
|
|
2036
|
+
return S(), j(t, null, {
|
|
2034
2037
|
default: E(() => [
|
|
2035
2038
|
v2(n.$slots, "content")
|
|
2036
2039
|
]),
|
|
@@ -2071,7 +2074,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2071
2074
|
s(t.columns);
|
|
2072
2075
|
},
|
|
2073
2076
|
{ deep: !0, immediate: !0 }
|
|
2074
|
-
), (o, l) => (
|
|
2077
|
+
), (o, l) => (S(), B("div", pp, [
|
|
2075
2078
|
v2(o.$slots, "headerButton", {}, void 0, !0)
|
|
2076
2079
|
]));
|
|
2077
2080
|
}
|
|
@@ -2087,7 +2090,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2087
2090
|
return (e, t) => {
|
|
2088
2091
|
var r, a, h, c, d, u, f, p, m, v, w;
|
|
2089
2092
|
const i = Q("svg-icon"), s = Q("el-tooltip"), o = Q("RecurseCol", !0), l = Q("el-table-column");
|
|
2090
|
-
return n.column.isHidden ? n2("", !0) : (
|
|
2093
|
+
return n.column.isHidden ? n2("", !0) : (S(), j(l, {
|
|
2091
2094
|
key: 0,
|
|
2092
2095
|
label: n.column.label,
|
|
2093
2096
|
prop: n.column.prop,
|
|
@@ -2100,10 +2103,10 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2100
2103
|
"class-name": (((w = n.column) == null ? void 0 : w.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
2101
2104
|
}, {
|
|
2102
2105
|
header: E(() => [
|
|
2103
|
-
n.column.prop !== "operate" ? (
|
|
2106
|
+
n.column.prop !== "operate" ? (S(), B("span", {
|
|
2104
2107
|
key: 0,
|
|
2105
2108
|
title: n.column.label
|
|
2106
|
-
}, $2(n.column.label), 9, vp)) : (
|
|
2109
|
+
}, $2(n.column.label), 9, vp)) : (S(), j(s, {
|
|
2107
2110
|
key: 1,
|
|
2108
2111
|
content: "操作",
|
|
2109
2112
|
placement: "left-start",
|
|
@@ -2125,17 +2128,17 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2125
2128
|
$index: b.$index,
|
|
2126
2129
|
scope: b
|
|
2127
2130
|
}),
|
|
2128
|
-
(
|
|
2131
|
+
(S(!0), B(y2, null, D2(n.column.children, (O, T) => (S(), j(o, {
|
|
2129
2132
|
key: T,
|
|
2130
2133
|
column: O
|
|
2131
2134
|
}, R0({ _: 2 }, [
|
|
2132
2135
|
D2(e.$slots, (C, x) => ({
|
|
2133
2136
|
name: x,
|
|
2134
|
-
fn: E(({ row:
|
|
2135
|
-
v2(e.$slots, x, m1({ ref_for: !0 },
|
|
2137
|
+
fn: E(({ row: _, slotData: P, item: I, column: k }) => [
|
|
2138
|
+
v2(e.$slots, x, m1({ ref_for: !0 }, P ?? _, {
|
|
2136
2139
|
item: I ?? O,
|
|
2137
|
-
slotData:
|
|
2138
|
-
row:
|
|
2140
|
+
slotData: P ?? _,
|
|
2141
|
+
row: _,
|
|
2139
2142
|
column: k,
|
|
2140
2143
|
columnProp: O
|
|
2141
2144
|
}))
|
|
@@ -2189,9 +2192,9 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2189
2192
|
})) : !1;
|
|
2190
2193
|
};
|
|
2191
2194
|
return (d, u) => {
|
|
2192
|
-
var m, v, w, b, O, T, C, x,
|
|
2195
|
+
var m, v, w, b, O, T, C, x, _, P, I;
|
|
2193
2196
|
const f = Q("svg-icon"), p = Q("el-table-column");
|
|
2194
|
-
return n.column.isTableColHidden ? n2("", !0) : (
|
|
2197
|
+
return n.column.isTableColHidden ? n2("", !0) : (S(), j(p, {
|
|
2195
2198
|
key: 0,
|
|
2196
2199
|
label: n.column.label,
|
|
2197
2200
|
prop: n.column.prop,
|
|
@@ -2202,12 +2205,12 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2202
2205
|
"filter-method": l,
|
|
2203
2206
|
"show-overflow-tooltip": ((C = n.column) == null ? void 0 : C.showOverflowTooltip) ?? !0,
|
|
2204
2207
|
width: ((x = n.column) == null ? void 0 : x.width) || void 0,
|
|
2205
|
-
"min-width": ((
|
|
2206
|
-
"class-name": ((
|
|
2208
|
+
"min-width": ((_ = n.column) == null ? void 0 : _.prop) === "operate" ? 80 : 120,
|
|
2209
|
+
"class-name": ((P = n.column) == null ? void 0 : P.prop) === "operate" ? "action" : (((I = n.column) == null ? void 0 : I.isNotDrag) ?? !1) === !0 ? "is-not-drag" : "is-drag"
|
|
2207
2210
|
}, {
|
|
2208
2211
|
header: E(() => [
|
|
2209
|
-
n.column.prop !== "operate" ? (
|
|
2210
|
-
n.column.operable && n.isEditViewport ? (
|
|
2212
|
+
n.column.prop !== "operate" ? (S(), B(y2, { key: 0 }, [
|
|
2213
|
+
n.column.operable && n.isEditViewport ? (S(), j(Jt, {
|
|
2211
2214
|
key: 0,
|
|
2212
2215
|
value: s.value.label,
|
|
2213
2216
|
appendShow: !0,
|
|
@@ -2228,7 +2231,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2228
2231
|
];
|
|
2229
2232
|
}),
|
|
2230
2233
|
_: 1
|
|
2231
|
-
}, 8, ["value"])) : (
|
|
2234
|
+
}, 8, ["value"])) : (S(), B("span", {
|
|
2232
2235
|
key: 1,
|
|
2233
2236
|
title: n.column.label
|
|
2234
2237
|
}, $2(n.column.label), 9, xp))
|
|
@@ -2237,11 +2240,11 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2237
2240
|
"filter-icon": E(() => {
|
|
2238
2241
|
var k, G, D, e2;
|
|
2239
2242
|
return [
|
|
2240
|
-
(k = n.column) != null && k.filterable && ((G = n.column) == null ? void 0 : G.prop) !== "operate" ? (
|
|
2243
|
+
(k = n.column) != null && k.filterable && ((G = n.column) == null ? void 0 : G.prop) !== "operate" ? (S(), j(f, {
|
|
2241
2244
|
key: 0,
|
|
2242
2245
|
name: (D = n.column) != null && D.filterable && ((e2 = n.column) == null ? void 0 : e2.prop) !== "operate" ? "colFilter" : "",
|
|
2243
2246
|
class: "custom-filter-icon"
|
|
2244
|
-
}, null, 8, ["name"])) : (
|
|
2247
|
+
}, null, 8, ["name"])) : (S(), j(f, {
|
|
2245
2248
|
key: 1,
|
|
2246
2249
|
onClick: u[2] || (u[2] = $t(() => {
|
|
2247
2250
|
}, ["stop"])),
|
|
@@ -2256,7 +2259,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2256
2259
|
$index: k.$index,
|
|
2257
2260
|
scope: k
|
|
2258
2261
|
}),
|
|
2259
|
-
(
|
|
2262
|
+
(S(!0), B(y2, null, D2(n.column.children, (G, D) => (S(), j(wp, {
|
|
2260
2263
|
key: D,
|
|
2261
2264
|
column: G
|
|
2262
2265
|
}, R0({ _: 2 }, [
|
|
@@ -2292,7 +2295,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2292
2295
|
setup(n) {
|
|
2293
2296
|
return (e, t) => {
|
|
2294
2297
|
const i = Q("el-card");
|
|
2295
|
-
return
|
|
2298
|
+
return S(), B("div", null, [
|
|
2296
2299
|
J(i, null, {
|
|
2297
2300
|
header: E(() => [
|
|
2298
2301
|
v2(e.$slots, "header", {}, void 0, !0)
|
|
@@ -2305,7 +2308,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2305
2308
|
]),
|
|
2306
2309
|
_: 3
|
|
2307
2310
|
}),
|
|
2308
|
-
n.showTag ? (
|
|
2311
|
+
n.showTag ? (S(), B("div", _p, [
|
|
2309
2312
|
v2(e.$slots, "status", {}, void 0, !0)
|
|
2310
2313
|
])) : n2("", !0)
|
|
2311
2314
|
]);
|
|
@@ -2409,15 +2412,15 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2409
2412
|
const t = n;
|
|
2410
2413
|
z4(at);
|
|
2411
2414
|
const i = gr(at), { chooseTitle: s } = vt(i), o = P4(at), { activeMenuPath: l } = vt(o), r = N(!1), a = N(), h = N(), c = t2(() => {
|
|
2412
|
-
var
|
|
2415
|
+
var y, z;
|
|
2413
2416
|
try {
|
|
2414
|
-
return (((z = (
|
|
2417
|
+
return (((z = (y = m.value) == null ? void 0 : y.getSelectionRows) == null ? void 0 : z.call(y)) ?? []).length > 0;
|
|
2415
2418
|
} catch {
|
|
2416
2419
|
return !1;
|
|
2417
2420
|
}
|
|
2418
2421
|
}), d = g1({ x: 0, y: 0 }), u = N([]), f = N([]), p = N(0), m = N(null), v = N(null), w = N(null), b = e, O = dr("contentRef");
|
|
2419
2422
|
ue(() => {
|
|
2420
|
-
var z,
|
|
2423
|
+
var z, V, R, s2, c2;
|
|
2421
2424
|
x = C(), u.value = t == null ? void 0 : t.columns, f.value = (z = t == null ? void 0 : t.tableData) == null ? void 0 : z.map((K) => {
|
|
2422
2425
|
var X, d2, r2;
|
|
2423
2426
|
let F = {};
|
|
@@ -2425,23 +2428,23 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2425
2428
|
Z !== "level" && (F[Z] = Pi(K[Z]) && K[Z] === 0 ? (X = K[Z]) == null ? void 0 : X.toString() : K[Z]), Z !== "id" && ((d2 = Mt.value) == null ? void 0 : d2.prop) !== Z && T(K[Z]) ? F[Z] = K[Z] ? (r2 = it(K[Z])) == null ? void 0 : r2.format("YYYY-MM-DD HH:mm:ss") : K[Z] : F[Z] = K[Z];
|
|
2426
2429
|
return F;
|
|
2427
2430
|
});
|
|
2428
|
-
let
|
|
2429
|
-
if (
|
|
2430
|
-
let K = (s2 = (R = u.value) == null ? void 0 : R[0]) == null ? void 0 : s2.prop, F = (c2 = f.value) == null ? void 0 : c2.find((X) => (X == null ? void 0 : X[K]) === (
|
|
2431
|
+
let y = (V = s.value) == null ? void 0 : V.find((K) => (K == null ? void 0 : K.parentContent) === l.value);
|
|
2432
|
+
if (y) {
|
|
2433
|
+
let K = (s2 = (R = u.value) == null ? void 0 : R[0]) == null ? void 0 : s2.prop, F = (c2 = f.value) == null ? void 0 : c2.find((X) => (X == null ? void 0 : X[K]) === (y == null ? void 0 : y.value));
|
|
2431
2434
|
m.value.setCurrentRow(), m.value && setTimeout(() => {
|
|
2432
2435
|
m.value && m.value.setCurrentRow(F);
|
|
2433
2436
|
}, 100);
|
|
2434
2437
|
}
|
|
2435
2438
|
pe(), se(), document.addEventListener("click", k);
|
|
2436
2439
|
});
|
|
2437
|
-
const T = (
|
|
2438
|
-
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[\+\-]\d{2}:\d{2})?$/.test(
|
|
2440
|
+
const T = (y) => {
|
|
2441
|
+
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?(?:Z|[\+\-]\d{2}:\d{2})?$/.test(y))
|
|
2439
2442
|
return !1;
|
|
2440
|
-
const
|
|
2441
|
-
return !isNaN(
|
|
2443
|
+
const V = new Date(y);
|
|
2444
|
+
return !isNaN(V.getTime());
|
|
2442
2445
|
};
|
|
2443
2446
|
function C() {
|
|
2444
|
-
const
|
|
2447
|
+
const y = /* @__PURE__ */ new WeakSet(), z = new MutationObserver(K), V = /* @__PURE__ */ new WeakMap(), R = [];
|
|
2445
2448
|
function s2(F) {
|
|
2446
2449
|
try {
|
|
2447
2450
|
const X = F.getBoundingClientRect(), d2 = F.clientWidth || X.width || 1, r2 = X.width / d2 || 1, Z = parseFloat(getComputedStyle(F).zoom || "1");
|
|
@@ -2452,8 +2455,8 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2452
2455
|
}
|
|
2453
2456
|
function c2(F) {
|
|
2454
2457
|
var r2;
|
|
2455
|
-
if (!F ||
|
|
2456
|
-
|
|
2458
|
+
if (!F || y.has(F)) return;
|
|
2459
|
+
y.add(F);
|
|
2457
2460
|
const X = F.parentElement, d2 = (r2 = F.closest(".el-scrollbar")) == null ? void 0 : r2.querySelector(".el-scrollbar__wrap");
|
|
2458
2461
|
!X || !d2 || F.addEventListener(
|
|
2459
2462
|
"pointerdown",
|
|
@@ -2486,12 +2489,12 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2486
2489
|
const X = F.querySelector(".el-scrollbar__wrap"), d2 = F.querySelector(".el-scrollbar__bar.is-horizontal");
|
|
2487
2490
|
if (!X || !d2) return;
|
|
2488
2491
|
const r2 = X.querySelector(".el-scrollbar__view") || X.firstElementChild || X, Z = r2.querySelector("table") || r2.querySelector(".el-table__body") || r2, a2 = Z.scrollWidth, M2 = X.clientWidth, f2 = a2 - M2 > 2;
|
|
2489
|
-
if (F.classList.toggle("has-x-scroll", f2), d2.style.display = "", f2 && F.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(c2), !
|
|
2492
|
+
if (F.classList.toggle("has-x-scroll", f2), d2.style.display = "", f2 && F.querySelectorAll(".el-scrollbar__bar.is-horizontal .el-scrollbar__thumb").forEach(c2), !V.has(X)) {
|
|
2490
2493
|
const x2 = new ResizeObserver(() => {
|
|
2491
2494
|
const z0 = Z && Z.scrollWidth || X.scrollWidth, L = X.clientWidth, X2 = z0 - L > 2;
|
|
2492
2495
|
F.classList.toggle("has-x-scroll", X2);
|
|
2493
2496
|
});
|
|
2494
|
-
x2.observe(X), Z && x2.observe(Z),
|
|
2497
|
+
x2.observe(X), Z && x2.observe(Z), V.set(X, x2), R.push(() => x2.disconnect());
|
|
2495
2498
|
}
|
|
2496
2499
|
});
|
|
2497
2500
|
}
|
|
@@ -2508,12 +2511,12 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2508
2511
|
s0(
|
|
2509
2512
|
() => [s.value],
|
|
2510
2513
|
() => {
|
|
2511
|
-
var z,
|
|
2512
|
-
let
|
|
2513
|
-
if (
|
|
2514
|
+
var z, V, R, s2, c2, K, F;
|
|
2515
|
+
let y = (z = s.value) == null ? void 0 : z.find((X) => (X == null ? void 0 : X.parentContent) === l.value);
|
|
2516
|
+
if (y || !((R = (V = s.value) == null ? void 0 : V[0]) != null && R.parentContent)) {
|
|
2514
2517
|
let X = (c2 = (s2 = u.value) == null ? void 0 : s2[0]) == null ? void 0 : c2.prop, d2 = (K = f.value) == null ? void 0 : K.find((r2) => {
|
|
2515
2518
|
var Z, a2;
|
|
2516
|
-
return (r2 == null ? void 0 : r2[X]) === ((
|
|
2519
|
+
return (r2 == null ? void 0 : r2[X]) === ((y == null ? void 0 : y.value) ?? ((a2 = (Z = s.value) == null ? void 0 : Z[0]) == null ? void 0 : a2.value));
|
|
2517
2520
|
});
|
|
2518
2521
|
(F = m.value) == null || F.setCurrentRow(), m.value && d2 && setTimeout(() => {
|
|
2519
2522
|
var r2;
|
|
@@ -2523,159 +2526,159 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2523
2526
|
},
|
|
2524
2527
|
{ deep: !0 }
|
|
2525
2528
|
), T4(() => {
|
|
2526
|
-
x && x(), document.removeEventListener("click", k), f.value = void 0, u.value = void 0,
|
|
2529
|
+
x && x(), document.removeEventListener("click", k), f.value = void 0, u.value = void 0, _.value && clearTimeout(_.value);
|
|
2527
2530
|
});
|
|
2528
|
-
const
|
|
2529
|
-
s0(() => t == null ? void 0 : t.isEditViewport, async (
|
|
2531
|
+
const _ = N(null);
|
|
2532
|
+
s0(() => t == null ? void 0 : t.isEditViewport, async (y) => {
|
|
2530
2533
|
var z;
|
|
2531
|
-
|
|
2532
|
-
const
|
|
2533
|
-
|
|
2534
|
+
y && ((z = t == null ? void 0 : t.tableData) == null ? void 0 : z.length) > 15 && (await D0(), _.value = setTimeout(() => {
|
|
2535
|
+
const V = document.querySelectorAll(".el-table__body tr");
|
|
2536
|
+
V.length > 0 && V[V.length - 1].scrollIntoView({ behavior: "smooth", block: "center" });
|
|
2534
2537
|
}, 10));
|
|
2535
2538
|
}, { immediate: !0 });
|
|
2536
|
-
const
|
|
2537
|
-
b("handleColEditChange",
|
|
2538
|
-
}, I = (
|
|
2539
|
-
b("handleColTypeChange",
|
|
2540
|
-
}, k = (
|
|
2541
|
-
var z,
|
|
2542
|
-
r.value = !1, t.isEditViewport && O.value && !((
|
|
2539
|
+
const P = (y, z) => {
|
|
2540
|
+
b("handleColEditChange", y, z);
|
|
2541
|
+
}, I = (y, z) => {
|
|
2542
|
+
b("handleColTypeChange", y, z);
|
|
2543
|
+
}, k = (y) => {
|
|
2544
|
+
var z, V, R;
|
|
2545
|
+
r.value = !1, t.isEditViewport && O.value && !((V = (z = m.value) == null ? void 0 : z.$el) != null && V.contains(y == null ? void 0 : y.target)) && ((R = O.value) != null && R.contains(y == null ? void 0 : y.target)) && b("submitEditingTable");
|
|
2543
2546
|
}, G = t2(() => {
|
|
2544
|
-
var
|
|
2545
|
-
return (
|
|
2546
|
-
var
|
|
2547
|
-
return !((
|
|
2547
|
+
var y;
|
|
2548
|
+
return (y = t == null ? void 0 : t.extraButton) == null ? void 0 : y.filter((z) => {
|
|
2549
|
+
var V;
|
|
2550
|
+
return !((V = z == null ? void 0 : z.label) != null && V.includes("批量"));
|
|
2548
2551
|
});
|
|
2549
2552
|
}), D = t2(() => {
|
|
2550
|
-
var
|
|
2551
|
-
return (
|
|
2552
|
-
var
|
|
2553
|
-
return (
|
|
2553
|
+
var y;
|
|
2554
|
+
return (y = t == null ? void 0 : t.extraButton) == null ? void 0 : y.filter((z) => {
|
|
2555
|
+
var V;
|
|
2556
|
+
return (V = z == null ? void 0 : z.label) == null ? void 0 : V.includes("批量");
|
|
2554
2557
|
});
|
|
2555
|
-
}), e2 = N(0), i2 = (
|
|
2556
|
-
e2.value =
|
|
2557
|
-
}, A = (
|
|
2558
|
+
}), e2 = N(0), i2 = (y, z, V) => {
|
|
2559
|
+
e2.value = y == null ? void 0 : y.id;
|
|
2560
|
+
}, A = (y, z, V) => {
|
|
2558
2561
|
e2.value = 0;
|
|
2559
|
-
}, W = (
|
|
2560
|
-
b("selectChange",
|
|
2561
|
-
}, p2 = (
|
|
2562
|
-
var
|
|
2562
|
+
}, W = (y) => {
|
|
2563
|
+
b("selectChange", y);
|
|
2564
|
+
}, p2 = (y, z) => {
|
|
2565
|
+
var V, R, s2;
|
|
2563
2566
|
if (typeof t.selectable == "function")
|
|
2564
|
-
return t.selectable(
|
|
2567
|
+
return t.selectable(y, z);
|
|
2565
2568
|
if (t.selectMode === "single") {
|
|
2566
|
-
const c2 = ((R = (
|
|
2567
|
-
return c2.length === 0 || ((s2 = c2 == null ? void 0 : c2[0]) == null ? void 0 : s2.id) === (
|
|
2569
|
+
const c2 = ((R = (V = m.value) == null ? void 0 : V.getSelectionRows) == null ? void 0 : R.call(V)) ?? [];
|
|
2570
|
+
return c2.length === 0 || ((s2 = c2 == null ? void 0 : c2[0]) == null ? void 0 : s2.id) === (y == null ? void 0 : y.id);
|
|
2568
2571
|
}
|
|
2569
2572
|
return !0;
|
|
2570
|
-
}, u2 = (
|
|
2573
|
+
}, u2 = (y, z, V, R) => t2(() => {
|
|
2571
2574
|
var c2, K, F, X, d2, r2, Z, a2, M2, f2;
|
|
2572
|
-
let s2 =
|
|
2575
|
+
let s2 = y != null && y[z == null ? void 0 : z.prop] ? ((K = (c2 = y == null ? void 0 : y[z == null ? void 0 : z.prop]) == null ? void 0 : c2[0]) == null ? void 0 : K.contents) ?? (y == null ? void 0 : y[z == null ? void 0 : z.prop]) : ((X = (F = y == null ? void 0 : y[V == null ? void 0 : V.prop]) == null ? void 0 : F[0]) == null ? void 0 : X.contents) ?? (y == null ? void 0 : y[V == null ? void 0 : V.prop]) ?? ((r2 = (d2 = R == null ? void 0 : R[V == null ? void 0 : V.prop]) == null ? void 0 : d2[0]) == null ? void 0 : r2.contents) ?? (R == null ? void 0 : R[V == null ? void 0 : V.prop]) ?? ((M2 = (a2 = y == null ? void 0 : y[(Z = V == null ? void 0 : V.child) == null ? void 0 : Z.prop]) == null ? void 0 : a2[0]) == null ? void 0 : M2.contents) ?? (y == null ? void 0 : y[(f2 = V == null ? void 0 : V.child) == null ? void 0 : f2.prop]);
|
|
2573
2576
|
return Array.isArray(s2) && !(s2 != null && s2.every((x2) => typeof x2 == "string" || typeof x2 == "number")) ? "查看" : s2;
|
|
2574
|
-
}), E2 = (
|
|
2577
|
+
}), E2 = (y) => {
|
|
2575
2578
|
var R, s2, c2;
|
|
2576
|
-
let z = (s2 = (R = u.value) == null ? void 0 : R[0]) == null ? void 0 : s2.prop,
|
|
2579
|
+
let z = (s2 = (R = u.value) == null ? void 0 : R[0]) == null ? void 0 : s2.prop, V = (c2 = f.value) == null ? void 0 : c2.map((K) => K == null ? void 0 : K[z]);
|
|
2577
2580
|
b("rowClick", {
|
|
2578
|
-
row:
|
|
2581
|
+
row: y,
|
|
2579
2582
|
type: "table",
|
|
2580
2583
|
usingRow: u.value,
|
|
2581
|
-
firstContents:
|
|
2584
|
+
firstContents: V
|
|
2582
2585
|
});
|
|
2583
|
-
}, N2 = (
|
|
2584
|
-
const s2 =
|
|
2585
|
-
d.x = R.clientX, d.y = R.clientY, r.value = !0, c2 && (a.value =
|
|
2586
|
+
}, N2 = (y, z, V, R) => {
|
|
2587
|
+
const s2 = V == null ? void 0 : V.innerText, c2 = kp(s2);
|
|
2588
|
+
d.x = R.clientX, d.y = R.clientY, r.value = !0, c2 && (a.value = V.innerText), h.value = y;
|
|
2586
2589
|
}, S2 = () => {
|
|
2587
2590
|
b("clickButton", "删除", h.value, { extra: { label: "删除" } }), r.value = !1;
|
|
2588
2591
|
}, g = () => {
|
|
2589
2592
|
b("clickButton", "批量删除", null, { extra: { label: "批量删除" } }), r.value = !1;
|
|
2590
|
-
}, T2 = (
|
|
2591
|
-
b("buttonClick",
|
|
2592
|
-
}, b2 = ({ prop:
|
|
2593
|
-
b("sortChange", { prop:
|
|
2593
|
+
}, T2 = (y) => {
|
|
2594
|
+
b("buttonClick", y);
|
|
2595
|
+
}, b2 = ({ prop: y, order: z }) => {
|
|
2596
|
+
b("sortChange", { prop: y, order: z });
|
|
2594
2597
|
};
|
|
2595
2598
|
s0(
|
|
2596
2599
|
() => t == null ? void 0 : t.tableData,
|
|
2597
2600
|
() => {
|
|
2598
|
-
var
|
|
2599
|
-
f.value = (
|
|
2601
|
+
var y;
|
|
2602
|
+
f.value = (y = t == null ? void 0 : t.tableData) == null ? void 0 : y.map((z) => {
|
|
2600
2603
|
var R, s2, c2;
|
|
2601
|
-
let
|
|
2604
|
+
let V = {};
|
|
2602
2605
|
for (let K in z)
|
|
2603
|
-
|
|
2604
|
-
return
|
|
2606
|
+
V[K] = Pi(z[K]) && z[K] === 0 ? (R = z[K]) == null ? void 0 : R.toString() : z[K], K !== "id" && ((s2 = Mt.value) == null ? void 0 : s2.prop) !== K && T(z[K]) && (V[K] = z[K] ? (c2 = it(z[K])) == null ? void 0 : c2.format("YYYY-MM-DD HH:mm:ss") : z[K]);
|
|
2607
|
+
return V;
|
|
2605
2608
|
});
|
|
2606
2609
|
},
|
|
2607
2610
|
{ deep: !0 }
|
|
2608
2611
|
);
|
|
2609
|
-
const R2 = (
|
|
2610
|
-
b("clickButton",
|
|
2611
|
-
}, z2 = (
|
|
2612
|
-
b("doCurrentChange",
|
|
2613
|
-
}, r0 = (
|
|
2614
|
-
b("dbClickRow",
|
|
2615
|
-
}, T0 = (
|
|
2616
|
-
b("doSizeChange",
|
|
2617
|
-
}, I0 = (
|
|
2618
|
-
b("fixRow",
|
|
2619
|
-
}, Ve = (
|
|
2620
|
-
b("deleteRow",
|
|
2621
|
-
}, Ae = (
|
|
2622
|
-
b("clickButton", "删除",
|
|
2623
|
-
}, Be = (
|
|
2612
|
+
const R2 = (y) => mi(y), e0 = (y, z, V) => {
|
|
2613
|
+
b("clickButton", y, z, V);
|
|
2614
|
+
}, z2 = (y) => {
|
|
2615
|
+
b("doCurrentChange", y);
|
|
2616
|
+
}, r0 = (y, z) => {
|
|
2617
|
+
b("dbClickRow", y, z);
|
|
2618
|
+
}, T0 = (y) => {
|
|
2619
|
+
b("doSizeChange", y);
|
|
2620
|
+
}, I0 = (y) => {
|
|
2621
|
+
b("fixRow", y);
|
|
2622
|
+
}, Ve = (y) => {
|
|
2623
|
+
b("deleteRow", y);
|
|
2624
|
+
}, Ae = (y, z) => {
|
|
2625
|
+
b("clickButton", "删除", y, { extra: { label: "删除" }, index: z });
|
|
2626
|
+
}, Be = (y, z) => {
|
|
2624
2627
|
var c2, K, F;
|
|
2625
|
-
const
|
|
2628
|
+
const V = {};
|
|
2626
2629
|
(c2 = u.value) == null || c2.forEach((X) => {
|
|
2627
2630
|
const d2 = X == null ? void 0 : X.prop;
|
|
2628
|
-
!d2 || d2 === "operate" || (
|
|
2629
|
-
}),
|
|
2630
|
-
const R = typeof z == "number" ? z : (K = f.value) == null ? void 0 : K.findIndex((X) => (X == null ? void 0 : X.id) === (
|
|
2631
|
-
b("addNewRow", { newRow:
|
|
2632
|
-
}, Ee = (
|
|
2633
|
-
b("contentClick",
|
|
2631
|
+
!d2 || d2 === "operate" || (V[d2] = "");
|
|
2632
|
+
}), V.id = `${Date.now()}_${Math.random().toString(16).slice(2)}`, V._isTemp = !0, (y == null ? void 0 : y.level) !== void 0 && (V.level = y.level), (y == null ? void 0 : y.tableEditType) !== void 0 && (V.tableEditType = y.tableEditType);
|
|
2633
|
+
const R = typeof z == "number" ? z : (K = f.value) == null ? void 0 : K.findIndex((X) => (X == null ? void 0 : X.id) === (y == null ? void 0 : y.id)), s2 = R >= 0 ? R + 1 : ((F = f.value) == null ? void 0 : F.length) ?? 0;
|
|
2634
|
+
b("addNewRow", { newRow: V, targetIndex: s2 });
|
|
2635
|
+
}, Ee = (y, z, V, R) => {
|
|
2636
|
+
b("contentClick", y, z, V, R);
|
|
2634
2637
|
}, pe = () => {
|
|
2635
2638
|
var z;
|
|
2636
|
-
const
|
|
2637
|
-
!
|
|
2639
|
+
const y = (z = m.value) == null ? void 0 : z.$el.querySelector(".el-table__header-wrapper tr");
|
|
2640
|
+
!y || !t.isMoveColumn || Si.create(y, {
|
|
2638
2641
|
animation: 180,
|
|
2639
2642
|
delay: 0,
|
|
2640
2643
|
handle: ".is-drag .cell",
|
|
2641
2644
|
// 可拖拽区域为单元格
|
|
2642
|
-
onMove: (
|
|
2643
|
-
onEnd: (
|
|
2645
|
+
onMove: (V) => !V.related.classList.contains("is-not-drag"),
|
|
2646
|
+
onEnd: (V) => {
|
|
2644
2647
|
p.value++;
|
|
2645
|
-
const R =
|
|
2648
|
+
const R = V.oldIndex - 3, s2 = V.newIndex - 3, c2 = u.value.splice(R, 1)[0];
|
|
2646
2649
|
u.value.splice(s2, 0, c2), t.isMoveColumn && D0(() => {
|
|
2647
2650
|
pe(), se();
|
|
2648
2651
|
});
|
|
2649
2652
|
}
|
|
2650
2653
|
});
|
|
2651
|
-
}, Le = ({ column:
|
|
2654
|
+
}, Le = ({ column: y }) => y.label && y.label.length > 8 ? "long-header" : "", se = () => {
|
|
2652
2655
|
var z;
|
|
2653
|
-
const
|
|
2654
|
-
|
|
2656
|
+
const y = (z = m.value) == null ? void 0 : z.$el.querySelector(".el-table__body-wrapper tbody");
|
|
2657
|
+
y && new Si(y, {
|
|
2655
2658
|
animation: 150,
|
|
2656
2659
|
handle: ".custom-drag-icon",
|
|
2657
2660
|
ghostClass: "sortable-ghost",
|
|
2658
|
-
onEnd: ({ newIndex:
|
|
2661
|
+
onEnd: ({ newIndex: V, oldIndex: R }) => {
|
|
2659
2662
|
const s2 = [...f.value], [c2] = s2.splice(R, 1);
|
|
2660
2663
|
s2.splice(R, 0, c2), f.value = s2, D0(() => {
|
|
2661
2664
|
se();
|
|
2662
2665
|
});
|
|
2663
2666
|
}
|
|
2664
2667
|
});
|
|
2665
|
-
}, a0 = (
|
|
2666
|
-
const
|
|
2667
|
-
|
|
2668
|
-
}), Y8 = (
|
|
2669
|
-
let
|
|
2668
|
+
}, a0 = (y) => new Promise((z) => {
|
|
2669
|
+
const V = new FileReader();
|
|
2670
|
+
V.onloadend = () => z(V.result), V.readAsDataURL(y);
|
|
2671
|
+
}), Y8 = (y, z = "file") => {
|
|
2672
|
+
let V = y.split(","), R = V[0].match(/:(.*?);/)[1], s2 = R.split("/")[1], c2 = atob(V[1]), K = c2.length, F = new Uint8Array(K);
|
|
2670
2673
|
for (; K--; )
|
|
2671
2674
|
F[K] = c2.charCodeAt(K);
|
|
2672
2675
|
return new File([F], `${z}.${s2}`, {
|
|
2673
2676
|
type: R
|
|
2674
2677
|
});
|
|
2675
|
-
}, K8 = async (
|
|
2676
|
-
const z = await a0(
|
|
2677
|
-
let
|
|
2678
|
-
R.append("file",
|
|
2678
|
+
}, K8 = async (y) => {
|
|
2679
|
+
const z = await a0(y);
|
|
2680
|
+
let V = Y8(z), R = new FormData();
|
|
2681
|
+
R.append("file", V);
|
|
2679
2682
|
let s2;
|
|
2680
2683
|
return await Gs(R).then((c2) => {
|
|
2681
2684
|
var K, F, X, d2, r2, Z, a2;
|
|
@@ -2684,13 +2687,13 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2684
2687
|
name: (a2 = (X = (F = c2.data.result) == null ? void 0 : F.url) == null ? void 0 : X.split("/")) == null ? void 0 : a2[((Z = (r2 = (d2 = c2.data.result) == null ? void 0 : d2.url) == null ? void 0 : r2.split("/")) == null ? void 0 : Z.length) - 1]
|
|
2685
2688
|
};
|
|
2686
2689
|
}), s2;
|
|
2687
|
-
}, X8 = async (
|
|
2690
|
+
}, X8 = async (y) => {
|
|
2688
2691
|
var z;
|
|
2689
2692
|
try {
|
|
2690
|
-
const
|
|
2693
|
+
const V = y.clipboardData || (window == null ? void 0 : window.clipboardData), R = V.getData("text/plain");
|
|
2691
2694
|
if (R === void 0) return;
|
|
2692
2695
|
if (R.includes("<table")) {
|
|
2693
|
-
|
|
2696
|
+
y.preventDefault();
|
|
2694
2697
|
const s2 = Q8(R);
|
|
2695
2698
|
if (!s2.length) return;
|
|
2696
2699
|
const { rowIndex: c2, columnIndex: K } = w.value || { rowIndex: 0, columnIndex: 0 }, F = [];
|
|
@@ -2714,11 +2717,11 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2714
2717
|
}
|
|
2715
2718
|
}
|
|
2716
2719
|
} else {
|
|
2717
|
-
const s2 =
|
|
2720
|
+
const s2 = V.getData("text/html");
|
|
2718
2721
|
if (s2 === void 0) return;
|
|
2719
2722
|
const K = new DOMParser().parseFromString(s2, "text/html"), F = K.querySelectorAll("table");
|
|
2720
2723
|
if ((F == null ? void 0 : F.length) > 0) {
|
|
2721
|
-
|
|
2724
|
+
y.preventDefault();
|
|
2722
2725
|
const d2 = F[0].querySelectorAll("tr"), r2 = [];
|
|
2723
2726
|
for (const M2 of d2) {
|
|
2724
2727
|
const f2 = M2.querySelectorAll("td, th"), x2 = [];
|
|
@@ -2766,41 +2769,41 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2766
2769
|
const X = K.querySelectorAll("span");
|
|
2767
2770
|
let d2 = "";
|
|
2768
2771
|
if (X.length === 0) {
|
|
2769
|
-
const r2 = (z =
|
|
2772
|
+
const r2 = (z = y.clipboardData) == null ? void 0 : z.items;
|
|
2770
2773
|
d2 = [];
|
|
2771
2774
|
for (const Z of r2)
|
|
2772
2775
|
if ((Z == null ? void 0 : Z.type) === "image/png") {
|
|
2773
2776
|
const a2 = await K8(Z == null ? void 0 : Z.getAsFile());
|
|
2774
2777
|
d2.push(a2);
|
|
2775
2778
|
} else
|
|
2776
|
-
d2 =
|
|
2779
|
+
d2 = y.clipboardData.getData("text/plain");
|
|
2777
2780
|
} else
|
|
2778
2781
|
for (const r2 of X)
|
|
2779
2782
|
d2 = d2 + r2.textContent.trim();
|
|
2780
2783
|
if (Array.isArray(d2)) {
|
|
2781
|
-
|
|
2784
|
+
y.preventDefault();
|
|
2782
2785
|
const { rowIndex: r2, columnProp: Z } = w.value || { rowIndex: 0, columnIndex: 0 }, a2 = {}, M2 = f.value;
|
|
2783
2786
|
M2[r2][Z] = d2;
|
|
2784
2787
|
}
|
|
2785
2788
|
}
|
|
2786
2789
|
}
|
|
2787
|
-
} catch (
|
|
2788
|
-
console.error("粘贴失败:",
|
|
2790
|
+
} catch (V) {
|
|
2791
|
+
console.error("粘贴失败:", V);
|
|
2789
2792
|
}
|
|
2790
|
-
}, Q8 = (
|
|
2793
|
+
}, Q8 = (y) => y.trim().split(/\r\n|\n|\r/).map((R) => R.trim() ? R.split(" ").map((s2) => s2.replace(/^"(.*)"$/, "$1")) : [""]), J8 = (y) => {
|
|
2791
2794
|
var z;
|
|
2792
|
-
|
|
2793
|
-
rowIndex:
|
|
2794
|
-
columnIndex:
|
|
2795
|
-
columnProp: (z =
|
|
2795
|
+
y && (w.value = {
|
|
2796
|
+
rowIndex: y == null ? void 0 : y.$index,
|
|
2797
|
+
columnIndex: y == null ? void 0 : y.cellIndex,
|
|
2798
|
+
columnProp: (z = y.column) == null ? void 0 : z.property
|
|
2796
2799
|
});
|
|
2797
|
-
}, Z8 = ({ row:
|
|
2798
|
-
b("cellChange", z,
|
|
2799
|
-
}, tr = (
|
|
2800
|
+
}, Z8 = ({ row: y, rowIndex: z }) => z % 2 === 0 ? "default-row" : "special-row", er = (y, z, V) => {
|
|
2801
|
+
b("cellChange", z, V, y);
|
|
2802
|
+
}, tr = (y) => y == null ? void 0 : y.toLocaleString("zh-CN", {
|
|
2800
2803
|
minimumFractionDigits: 2,
|
|
2801
2804
|
maximumFractionDigits: 2
|
|
2802
|
-
}), ir = (
|
|
2803
|
-
const { columns: z, data:
|
|
2805
|
+
}), ir = (y) => {
|
|
2806
|
+
const { columns: z, data: V } = y, R = [];
|
|
2804
2807
|
return z.forEach((s2, c2) => {
|
|
2805
2808
|
var X, d2;
|
|
2806
2809
|
if (c2 === 0) {
|
|
@@ -2809,7 +2812,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2809
2812
|
}
|
|
2810
2813
|
const K = s2.property, F = (d2 = (X = t.columns) == null ? void 0 : X.filter((r2) => r2 == null ? void 0 : r2.showSummary)) == null ? void 0 : d2.map((r2) => r2.prop);
|
|
2811
2814
|
if (F != null && F.includes(K)) {
|
|
2812
|
-
const r2 =
|
|
2815
|
+
const r2 = V == null ? void 0 : V.map((Z) => Number(Z[K]));
|
|
2813
2816
|
if (r2.every((Z) => isNaN(Z)))
|
|
2814
2817
|
R[c2] = "N/A";
|
|
2815
2818
|
else {
|
|
@@ -2825,28 +2828,28 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2825
2828
|
};
|
|
2826
2829
|
s0(
|
|
2827
2830
|
() => t == null ? void 0 : t.isClearSelection,
|
|
2828
|
-
async (
|
|
2831
|
+
async (y) => {
|
|
2829
2832
|
var z;
|
|
2830
|
-
|
|
2833
|
+
y && (await D0(), (z = m.value) == null || z.clearSelection());
|
|
2831
2834
|
},
|
|
2832
2835
|
{ immediate: !0 }
|
|
2833
2836
|
);
|
|
2834
2837
|
const Mt = t2(() => {
|
|
2835
|
-
var z,
|
|
2836
|
-
const
|
|
2837
|
-
return
|
|
2838
|
+
var z, V;
|
|
2839
|
+
const y = (z = u.value) == null ? void 0 : z.find((R) => R == null ? void 0 : R.isMainKey);
|
|
2840
|
+
return y || ((V = u.value) == null ? void 0 : V[0]);
|
|
2838
2841
|
}), nr = t2(() => {
|
|
2839
|
-
const
|
|
2840
|
-
(
|
|
2841
|
-
R != null && R.children && R.children.length > 0 ? z(R.children) :
|
|
2842
|
+
const y = [], z = (V) => {
|
|
2843
|
+
(V || []).forEach((R) => {
|
|
2844
|
+
R != null && R.children && R.children.length > 0 ? z(R.children) : y.push(R);
|
|
2842
2845
|
});
|
|
2843
2846
|
};
|
|
2844
|
-
return z(u.value),
|
|
2847
|
+
return z(u.value), y;
|
|
2845
2848
|
});
|
|
2846
|
-
return (
|
|
2849
|
+
return (y, z) => {
|
|
2847
2850
|
var F, X, d2, r2, Z;
|
|
2848
|
-
const
|
|
2849
|
-
return
|
|
2851
|
+
const V = Q("el-icon"), R = Q("el-table-column"), s2 = Q("svg-icon"), c2 = Q("el-table"), K = Q("el-pagination");
|
|
2852
|
+
return S(), B("div", {
|
|
2850
2853
|
class: "table-content-show",
|
|
2851
2854
|
ref_key: "tableOuterRef",
|
|
2852
2855
|
ref: v
|
|
@@ -2857,16 +2860,16 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2857
2860
|
columns: u.value
|
|
2858
2861
|
}, {
|
|
2859
2862
|
headerButton: E(() => [
|
|
2860
|
-
v2(
|
|
2863
|
+
v2(y.$slots, "headerButton", {
|
|
2861
2864
|
buttons: G.value,
|
|
2862
2865
|
columns: u.value
|
|
2863
2866
|
}, void 0, !0)
|
|
2864
2867
|
]),
|
|
2865
2868
|
_: 3
|
|
2866
2869
|
}, 8, ["buttons", "columns"]),
|
|
2867
|
-
v2(
|
|
2868
|
-
n.isCardViewport ? (
|
|
2869
|
-
(
|
|
2870
|
+
v2(y.$slots, "viewport", { id: "excludeElementId" }, void 0, !0),
|
|
2871
|
+
n.isCardViewport ? (S(), B("div", Ep, [
|
|
2872
|
+
(S(!0), B(y2, null, D2(f.value, (a2) => (S(), j(Sp, {
|
|
2870
2873
|
key: a2 == null ? void 0 : a2.id,
|
|
2871
2874
|
showTag: !1
|
|
2872
2875
|
}, {
|
|
@@ -2886,10 +2889,10 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2886
2889
|
content: E(() => {
|
|
2887
2890
|
var M2;
|
|
2888
2891
|
return [
|
|
2889
|
-
(
|
|
2892
|
+
(S(!0), B(y2, null, D2((M2 = nr.value) == null ? void 0 : M2.filter((f2) => {
|
|
2890
2893
|
var x2;
|
|
2891
2894
|
return (f2 == null ? void 0 : f2.prop) !== "operate" && (f2 == null ? void 0 : f2.prop) !== ((x2 = Mt.value) == null ? void 0 : x2.prop);
|
|
2892
|
-
}), (f2) => (
|
|
2895
|
+
}), (f2) => (S(), B("div", {
|
|
2893
2896
|
class: "card-content",
|
|
2894
2897
|
key: f2 == null ? void 0 : f2.prop
|
|
2895
2898
|
}, [
|
|
@@ -2909,13 +2912,13 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2909
2912
|
var M2, f2;
|
|
2910
2913
|
return [
|
|
2911
2914
|
l2("div", Np, [
|
|
2912
|
-
(M2 = n.rowButton) != null && M2.find((x2) => (x2 == null ? void 0 : x2.label) === "编辑") ? (
|
|
2915
|
+
(M2 = n.rowButton) != null && M2.find((x2) => (x2 == null ? void 0 : x2.label) === "编辑") ? (S(), j(s2, {
|
|
2913
2916
|
key: 0,
|
|
2914
2917
|
onClick: (x2) => e0("编辑", a2, { extra: { label: "编辑" } }),
|
|
2915
2918
|
name: "card-edit",
|
|
2916
2919
|
style: { width: "15px", height: "15px", color: "var(--ssComponent-theme-color)" }
|
|
2917
2920
|
}, null, 8, ["onClick"])) : n2("", !0),
|
|
2918
|
-
(f2 = n.rowButton) != null && f2.find((x2) => (x2 == null ? void 0 : x2.label) === "删除") ? (
|
|
2921
|
+
(f2 = n.rowButton) != null && f2.find((x2) => (x2 == null ? void 0 : x2.label) === "删除") ? (S(), j(s2, {
|
|
2919
2922
|
key: 1,
|
|
2920
2923
|
onClick: (x2) => e0("删除", a2, { extra: { label: "删除" } }),
|
|
2921
2924
|
name: "card-delete",
|
|
@@ -2926,7 +2929,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2926
2929
|
}),
|
|
2927
2930
|
_: 2
|
|
2928
2931
|
}, 1024))), 128))
|
|
2929
|
-
])) : (
|
|
2932
|
+
])) : (S(), j(c2, {
|
|
2930
2933
|
border: !1,
|
|
2931
2934
|
"highlight-current-row": "",
|
|
2932
2935
|
class: "table-wrap",
|
|
@@ -2973,7 +2976,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2973
2976
|
style: { cursor: "pointer" },
|
|
2974
2977
|
onClick: $t((I2) => Be(L, X2), ["stop"])
|
|
2975
2978
|
}, [
|
|
2976
|
-
J(
|
|
2979
|
+
J(V, { size: 12 }, {
|
|
2977
2980
|
default: E(() => [
|
|
2978
2981
|
J(ye(Ws))
|
|
2979
2982
|
]),
|
|
@@ -2985,7 +2988,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2985
2988
|
style: { cursor: "pointer" },
|
|
2986
2989
|
onClick: $t((I2) => Ae(L, X2), ["stop"])
|
|
2987
2990
|
}, [
|
|
2988
|
-
J(
|
|
2991
|
+
J(V, { size: 12 }, {
|
|
2989
2992
|
default: E(() => [
|
|
2990
2993
|
J(ye(Cr))
|
|
2991
2994
|
]),
|
|
@@ -2998,7 +3001,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
2998
3001
|
]),
|
|
2999
3002
|
_: 1
|
|
3000
3003
|
}),
|
|
3001
|
-
n.allowSelect ? (
|
|
3004
|
+
n.allowSelect ? (S(), j(R, {
|
|
3002
3005
|
key: 0,
|
|
3003
3006
|
type: "selection",
|
|
3004
3007
|
width: (a2 = n.columns) != null && a2.some((L) => L == null ? void 0 : L.showSummary) ? 55 : 38,
|
|
@@ -3022,7 +3025,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3022
3025
|
]),
|
|
3023
3026
|
_: 1
|
|
3024
3027
|
}),
|
|
3025
|
-
n.showIndex && !((M2 = n.tableData) != null && M2.some((L) => L == null ? void 0 : L.children)) && ((f2 = n.columns) == null ? void 0 : f2.length) > 0 ? (
|
|
3028
|
+
n.showIndex && !((M2 = n.tableData) != null && M2.some((L) => L == null ? void 0 : L.children)) && ((f2 = n.columns) == null ? void 0 : f2.length) > 0 ? (S(), j(R, {
|
|
3026
3029
|
key: 1,
|
|
3027
3030
|
type: "index",
|
|
3028
3031
|
label: "序号",
|
|
@@ -3034,7 +3037,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3034
3037
|
fn: E(({ row: L, column: X2, $index: I2 }) => {
|
|
3035
3038
|
var o2, _2;
|
|
3036
3039
|
return [
|
|
3037
|
-
I2 === ((o2 = f.value) == null ? void 0 : o2.length) - 1 && ((_2 = n.cacheExtraButtons) != null && _2.some((q2) => (q2 == null ? void 0 : q2.label) === "新增")) ? v2(
|
|
3040
|
+
I2 === ((o2 = f.value) == null ? void 0 : o2.length) - 1 && ((_2 = n.cacheExtraButtons) != null && _2.some((q2) => (q2 == null ? void 0 : q2.label) === "新增")) ? v2(y.$slots, "rowCreate", {
|
|
3038
3041
|
key: 0,
|
|
3039
3042
|
row: L,
|
|
3040
3043
|
index: I2 + 1
|
|
@@ -3044,7 +3047,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3044
3047
|
key: "0"
|
|
3045
3048
|
} : void 0
|
|
3046
3049
|
]), 1024)) : n2("", !0),
|
|
3047
|
-
(x2 = n.tableData) != null && x2.some((L) => L == null ? void 0 : L.children) && ((z0 = n.columns) == null ? void 0 : z0.length) > 0 ? (
|
|
3050
|
+
(x2 = n.tableData) != null && x2.some((L) => L == null ? void 0 : L.children) && ((z0 = n.columns) == null ? void 0 : z0.length) > 0 ? (S(), j(R, {
|
|
3048
3051
|
key: 2,
|
|
3049
3052
|
type: "index",
|
|
3050
3053
|
label: "序号",
|
|
@@ -3056,7 +3059,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3056
3059
|
fn: E(({ row: L, column: X2, $index: I2 }) => {
|
|
3057
3060
|
var o2, _2;
|
|
3058
3061
|
return [
|
|
3059
|
-
I2 === ((o2 = f.value) == null ? void 0 : o2.length) - 1 && ((_2 = n.cacheExtraButtons) != null && _2.some((q2) => (q2 == null ? void 0 : q2.label) === "新增")) ? v2(
|
|
3062
|
+
I2 === ((o2 = f.value) == null ? void 0 : o2.length) - 1 && ((_2 = n.cacheExtraButtons) != null && _2.some((q2) => (q2 == null ? void 0 : q2.label) === "新增")) ? v2(y.$slots, "rowCreate", {
|
|
3060
3063
|
key: 0,
|
|
3061
3064
|
row: L,
|
|
3062
3065
|
index: I2 + 1
|
|
@@ -3066,24 +3069,24 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3066
3069
|
key: "0"
|
|
3067
3070
|
} : void 0
|
|
3068
3071
|
]), 1024)) : n2("", !0),
|
|
3069
|
-
(
|
|
3072
|
+
(S(!0), B(y2, null, D2(u.value, (L, X2) => {
|
|
3070
3073
|
var I2;
|
|
3071
|
-
return
|
|
3072
|
-
(I2 = n.checkedColumns) != null && I2.includes(L == null ? void 0 : L.label) ? (
|
|
3074
|
+
return S(), B(y2, null, [
|
|
3075
|
+
(I2 = n.checkedColumns) != null && I2.includes(L == null ? void 0 : L.label) ? (S(), j(bp, {
|
|
3073
3076
|
key: 0,
|
|
3074
3077
|
tableData: f.value,
|
|
3075
3078
|
column: L,
|
|
3076
3079
|
isEditViewport: n.isEditViewport,
|
|
3077
|
-
onHandleColEditChange:
|
|
3080
|
+
onHandleColEditChange: P,
|
|
3078
3081
|
onHandleColTypeChange: I
|
|
3079
3082
|
}, {
|
|
3080
3083
|
operateHeader: E(() => [
|
|
3081
|
-
(L == null ? void 0 : L.label) === "操作" ? v2(
|
|
3084
|
+
(L == null ? void 0 : L.label) === "操作" ? v2(y.$slots, "operateCol", { key: 0 }, void 0, !0) : n2("", !0)
|
|
3082
3085
|
]),
|
|
3083
3086
|
content: E(({ row: o2, item: _2, slotData: q2, scope: e6, column: He, columnProp: Tt, $index: sr }) => {
|
|
3084
3087
|
var vi, wi, xi, bi, _i;
|
|
3085
3088
|
return [
|
|
3086
|
-
(o2 == null ? void 0 : o2.tableEditType) !== "edit" ? (
|
|
3089
|
+
(o2 == null ? void 0 : o2.tableEditType) !== "edit" ? (S(), B("span", {
|
|
3087
3090
|
key: 0,
|
|
3088
3091
|
class: "table-content",
|
|
3089
3092
|
style: t0({ cursor: L != null && L.isMainKey ? "pointer" : "default", color: L != null && L.isExistChild && !(L != null && L.directiveColor) ? "var(--vertical-menuitem-active-bg)" : "", textDecoration: L != null && L.isExistChild && !(L != null && L.directiveColor) ? "underline" : "" }),
|
|
@@ -3095,9 +3098,9 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3095
3098
|
});
|
|
3096
3099
|
}
|
|
3097
3100
|
}, [
|
|
3098
|
-
|
|
3099
|
-
((vi = n.columns) == null ? void 0 : vi.findIndex((m2) => (m2 == null ? void 0 : m2.prop) === (L == null ? void 0 : L.prop))) >= ((o2 == null ? void 0 : o2.level) ?? -1) ? (
|
|
3100
|
-
v2(
|
|
3101
|
+
y.$slots.content ? (S(), B(y2, { key: 0 }, [
|
|
3102
|
+
((vi = n.columns) == null ? void 0 : vi.findIndex((m2) => (m2 == null ? void 0 : m2.prop) === (L == null ? void 0 : L.prop))) >= ((o2 == null ? void 0 : o2.level) ?? -1) ? (S(), B("div", Pp, [
|
|
3103
|
+
v2(y.$slots, "content", {
|
|
3101
3104
|
row: o2,
|
|
3102
3105
|
column: Tt ?? L,
|
|
3103
3106
|
colIndex: X2,
|
|
@@ -3105,34 +3108,34 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3105
3108
|
slotData: q2
|
|
3106
3109
|
}, void 0, !0)
|
|
3107
3110
|
])) : n2("", !0)
|
|
3108
|
-
], 64)) : ((wi = n.columns) == null ? void 0 : wi.findIndex((m2) => (m2 == null ? void 0 : m2.prop) === (L == null ? void 0 : L.prop))) >= ((o2 == null ? void 0 : o2.level) ?? -1) ? (
|
|
3111
|
+
], 64)) : ((wi = n.columns) == null ? void 0 : wi.findIndex((m2) => (m2 == null ? void 0 : m2.prop) === (L == null ? void 0 : L.prop))) >= ((o2 == null ? void 0 : o2.level) ?? -1) ? (S(), B(y2, { key: 1 }, [
|
|
3109
3112
|
N0($2(u2(o2, L, _2, q2)), 1)
|
|
3110
3113
|
], 64)) : n2("", !0)
|
|
3111
3114
|
], 12, zp)) : n2("", !0),
|
|
3112
|
-
((L == null ? void 0 : L.type) ?? "text") === "operate" ? (
|
|
3115
|
+
((L == null ? void 0 : L.type) ?? "text") === "operate" ? (S(), B("span", {
|
|
3113
3116
|
key: 1,
|
|
3114
3117
|
class: "table-operate",
|
|
3115
3118
|
style: t0({
|
|
3116
3119
|
justifyContent: n.isShowEdit && n.isShowDelete ? "space-between" : L == null ? void 0 : L.align
|
|
3117
3120
|
})
|
|
3118
3121
|
}, [
|
|
3119
|
-
v2(
|
|
3122
|
+
v2(y.$slots, "actions", {
|
|
3120
3123
|
item: o2,
|
|
3121
3124
|
fIndex: sr
|
|
3122
3125
|
}, void 0, !0),
|
|
3123
|
-
n.isShowEdit ? (
|
|
3126
|
+
n.isShowEdit ? (S(), B("span", {
|
|
3124
3127
|
key: 0,
|
|
3125
3128
|
onClick: (m2) => I0(o2),
|
|
3126
3129
|
class: "blue-table-operate table-operate-content"
|
|
3127
3130
|
}, "编辑", 8, Vp)) : n2("", !0),
|
|
3128
|
-
n.isShowDelete ? (
|
|
3131
|
+
n.isShowDelete ? (S(), B("span", {
|
|
3129
3132
|
key: 1,
|
|
3130
3133
|
onClick: (m2) => Ve(o2),
|
|
3131
3134
|
class: "red-table-operate table-operate-content"
|
|
3132
3135
|
}, "删除", 8, Ap)) : n2("", !0)
|
|
3133
3136
|
], 4)) : n2("", !0),
|
|
3134
|
-
(o2 == null ? void 0 : o2.tableEditType) === "edit" ? (
|
|
3135
|
-
(
|
|
3137
|
+
(o2 == null ? void 0 : o2.tableEditType) === "edit" ? (S(), B("span", Bp, [
|
|
3138
|
+
(S(), j(Qt((() => {
|
|
3136
3139
|
var yi;
|
|
3137
3140
|
const m2 = Tt ?? _2 ?? L, C1 = o2 != null && o2[m2 == null ? void 0 : m2.prop] && Array.isArray(o2[m2.prop]) && ((yi = o2[m2.prop]) != null && yi.every((or) => typeof or == "Object")) ? "Upload" : ((m2 == null ? void 0 : m2.formType) ?? (m2 == null ? void 0 : m2.columnType)) === "" || !((m2 == null ? void 0 : m2.formType) ?? (m2 == null ? void 0 : m2.columnType)) ? "Input" : (m2 == null ? void 0 : m2.formType) ?? (m2 == null ? void 0 : m2.columnType);
|
|
3138
3141
|
return R2(C1);
|
|
@@ -3159,12 +3162,12 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3159
3162
|
_: 3
|
|
3160
3163
|
}, 8, ["data", "show-summary", "sum-text", "default-sort"])),
|
|
3161
3164
|
l2("div", Rp, [
|
|
3162
|
-
n.isCardViewport ? n2("", !0) : v2(
|
|
3165
|
+
n.isCardViewport ? n2("", !0) : v2(y.$slots, "batchButton", {
|
|
3163
3166
|
key: 0,
|
|
3164
3167
|
buttons: D.value,
|
|
3165
3168
|
columns: u.value
|
|
3166
3169
|
}, void 0, !0),
|
|
3167
|
-
t != null && t.isShowPagination && n.tableData.length > 0 ? (
|
|
3170
|
+
t != null && t.isShowPagination && n.tableData.length > 0 ? (S(), j(K, {
|
|
3168
3171
|
key: 1,
|
|
3169
3172
|
onSizeChange: T0,
|
|
3170
3173
|
onCurrentChange: z2,
|
|
@@ -3186,7 +3189,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3186
3189
|
modelValue: "删除本行",
|
|
3187
3190
|
buttonType: ""
|
|
3188
3191
|
}),
|
|
3189
|
-
c.value ? (
|
|
3192
|
+
c.value ? (S(), j(re, {
|
|
3190
3193
|
key: 0,
|
|
3191
3194
|
emptyColor: !0,
|
|
3192
3195
|
onClickTrigger: g,
|
|
@@ -3241,9 +3244,9 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3241
3244
|
};
|
|
3242
3245
|
return (l, r) => {
|
|
3243
3246
|
var a, h, c, d, u, f, p;
|
|
3244
|
-
return
|
|
3247
|
+
return S(), B(y2, null, [
|
|
3245
3248
|
v2(l.$slots, `${(a = t == null ? void 0 : t.content) == null ? void 0 : a.value}_tableHeader`),
|
|
3246
|
-
(
|
|
3249
|
+
(S(), j(Wp, {
|
|
3247
3250
|
columns: ((h = t == null ? void 0 : t.content) == null ? void 0 : h.columns) ?? [],
|
|
3248
3251
|
tableData: i.value ?? [],
|
|
3249
3252
|
currentPage: (c = t == null ? void 0 : t.content) == null ? void 0 : c.currentPage,
|
|
@@ -3290,7 +3293,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3290
3293
|
};
|
|
3291
3294
|
return (a, h) => {
|
|
3292
3295
|
const c = Q("el-cascader");
|
|
3293
|
-
return
|
|
3296
|
+
return S(), j(c, {
|
|
3294
3297
|
modelValue: i.value,
|
|
3295
3298
|
"onUpdate:modelValue": h[0] || (h[0] = (d) => i.value = d),
|
|
3296
3299
|
clearable: "",
|
|
@@ -3320,7 +3323,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3320
3323
|
const e = n, t = N(e.value);
|
|
3321
3324
|
return (i, s) => {
|
|
3322
3325
|
const o = Q("el-option"), l = Q("el-select");
|
|
3323
|
-
return
|
|
3326
|
+
return S(), j(l, {
|
|
3324
3327
|
modelValue: t.value,
|
|
3325
3328
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => t.value = r),
|
|
3326
3329
|
filterable: "",
|
|
@@ -3330,7 +3333,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3330
3333
|
style: { width: "100%" }
|
|
3331
3334
|
}, {
|
|
3332
3335
|
default: E(() => [
|
|
3333
|
-
(
|
|
3336
|
+
(S(!0), B(y2, null, D2(e == null ? void 0 : e.content, (r) => (S(), j(o, {
|
|
3334
3337
|
key: r.value,
|
|
3335
3338
|
label: r.label,
|
|
3336
3339
|
value: r.value
|
|
@@ -3361,8 +3364,8 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3361
3364
|
return ue(() => {
|
|
3362
3365
|
}), (l, r) => {
|
|
3363
3366
|
const a = Q("MenuItem", !0), h = Q("el-sub-menu"), c = Q("el-menu-item");
|
|
3364
|
-
return
|
|
3365
|
-
d.show && d.children && d.children.length > 0 ? (
|
|
3367
|
+
return S(!0), B(y2, null, D2(n.menuList, (d) => (S(), B(y2, null, [
|
|
3368
|
+
d.show && d.children && d.children.length > 0 ? (S(), j(h, {
|
|
3366
3369
|
index: d.path,
|
|
3367
3370
|
key: d.path
|
|
3368
3371
|
}, {
|
|
@@ -3389,7 +3392,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3389
3392
|
]), 1032, ["menuList"])
|
|
3390
3393
|
]),
|
|
3391
3394
|
_: 2
|
|
3392
|
-
}, 1032, ["index"])) : d.show ? (
|
|
3395
|
+
}, 1032, ["index"])) : d.show ? (S(), j(c, {
|
|
3393
3396
|
index: d.path,
|
|
3394
3397
|
key: d.path,
|
|
3395
3398
|
onClick: (u) => i(d)
|
|
@@ -3439,7 +3442,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3439
3442
|
}, p = t2(() => r.value ? (a == null ? void 0 : a.mode) === "vertical" ? r.value : o.value : (a == null ? void 0 : a.mode) === "vertical" ? i.value : o.value), m = t2(() => s.value);
|
|
3440
3443
|
return (v, w) => {
|
|
3441
3444
|
const b = Q("el-sub-menu"), O = Q("el-menu-item"), T = Q("el-menu");
|
|
3442
|
-
return
|
|
3445
|
+
return S(), j(T, {
|
|
3443
3446
|
class: "menu-wrap",
|
|
3444
3447
|
mode: n.mode,
|
|
3445
3448
|
"default-active": p.value,
|
|
@@ -3455,8 +3458,8 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3455
3458
|
onSelect: u
|
|
3456
3459
|
}, {
|
|
3457
3460
|
default: E(() => [
|
|
3458
|
-
(
|
|
3459
|
-
C.show && C.children && C.children.length > 0 ? (
|
|
3461
|
+
(S(!0), B(y2, null, D2(n.menuList, (C) => (S(), B(y2, null, [
|
|
3462
|
+
C.show && C.children && C.children.length > 0 ? (S(), j(b, {
|
|
3460
3463
|
index: C.path,
|
|
3461
3464
|
key: C.path,
|
|
3462
3465
|
style: t0(C.style)
|
|
@@ -3473,16 +3476,16 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3473
3476
|
menuList: C.children,
|
|
3474
3477
|
onClickMenu: c
|
|
3475
3478
|
}, R0({ _: 2 }, [
|
|
3476
|
-
D2(v.$slots, (x,
|
|
3477
|
-
name:
|
|
3478
|
-
fn: E((
|
|
3479
|
-
v2(v.$slots,
|
|
3479
|
+
D2(v.$slots, (x, _) => ({
|
|
3480
|
+
name: _,
|
|
3481
|
+
fn: E((P) => [
|
|
3482
|
+
v2(v.$slots, _, m1({ ref_for: !0 }, P), void 0, !0)
|
|
3480
3483
|
])
|
|
3481
3484
|
}))
|
|
3482
3485
|
]), 1032, ["menuList"])
|
|
3483
3486
|
]),
|
|
3484
3487
|
_: 2
|
|
3485
|
-
}, 1032, ["index", "style"])) : C.show ? (
|
|
3488
|
+
}, 1032, ["index", "style"])) : C.show ? (S(), j(O, {
|
|
3486
3489
|
index: C.path,
|
|
3487
3490
|
key: C.path,
|
|
3488
3491
|
style: t0(C.style),
|
|
@@ -3525,7 +3528,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3525
3528
|
const t = N(n.value);
|
|
3526
3529
|
return (i, s) => {
|
|
3527
3530
|
const o = Q("el-date-picker");
|
|
3528
|
-
return
|
|
3531
|
+
return S(), j(o, {
|
|
3529
3532
|
modelValue: t.value,
|
|
3530
3533
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3531
3534
|
type: "date",
|
|
@@ -3552,7 +3555,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3552
3555
|
const t = N(n.value);
|
|
3553
3556
|
return (i, s) => {
|
|
3554
3557
|
const o = Q("el-date-picker");
|
|
3555
|
-
return
|
|
3558
|
+
return S(), j(o, {
|
|
3556
3559
|
modelValue: t.value,
|
|
3557
3560
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3558
3561
|
type: "datetime",
|
|
@@ -3579,7 +3582,7 @@ const fp = /* @__PURE__ */ B2(dp, [["render", up]]), pp = { class: "extra-button
|
|
|
3579
3582
|
const e = n, t = N(e.value);
|
|
3580
3583
|
return (i, s) => {
|
|
3581
3584
|
const o = Q("el-input");
|
|
3582
|
-
return
|
|
3585
|
+
return S(), j(o, {
|
|
3583
3586
|
modelValue: t.value,
|
|
3584
3587
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
|
|
3585
3588
|
type: "textarea",
|
|
@@ -3641,7 +3644,7 @@ const tg = { class: "docx-renderer" }, ig = {
|
|
|
3641
3644
|
renderComments: !1,
|
|
3642
3645
|
renderAltChunks: !0
|
|
3643
3646
|
});
|
|
3644
|
-
}), (s, o) => (
|
|
3647
|
+
}), (s, o) => (S(), B("div", tg, [
|
|
3645
3648
|
l2("div", {
|
|
3646
3649
|
ref_key: "docxPreview",
|
|
3647
3650
|
ref: i,
|
|
@@ -3665,7 +3668,7 @@ const tg = { class: "docx-renderer" }, ig = {
|
|
|
3665
3668
|
}).catch((l) => {
|
|
3666
3669
|
console.log("预览失败", l);
|
|
3667
3670
|
});
|
|
3668
|
-
}), (s, o) => (
|
|
3671
|
+
}), (s, o) => (S(), B("div", sg, o[0] || (o[0] = [
|
|
3669
3672
|
l2("div", { id: "excel" }, null, -1)
|
|
3670
3673
|
])));
|
|
3671
3674
|
}
|
|
@@ -3704,14 +3707,14 @@ const tg = { class: "docx-renderer" }, ig = {
|
|
|
3704
3707
|
}), (c, d) => {
|
|
3705
3708
|
var m;
|
|
3706
3709
|
const u = Q("el-table-column"), f = Q("el-table"), p = Q("el-pagination");
|
|
3707
|
-
return
|
|
3710
|
+
return S(), B("div", rg, [
|
|
3708
3711
|
J(f, {
|
|
3709
3712
|
class: "csv-table",
|
|
3710
3713
|
data: a.value,
|
|
3711
3714
|
stripe: ""
|
|
3712
3715
|
}, {
|
|
3713
3716
|
default: E(() => [
|
|
3714
|
-
(
|
|
3717
|
+
(S(!0), B(y2, null, D2(l.value, (v) => (S(), j(u, {
|
|
3715
3718
|
key: v,
|
|
3716
3719
|
prop: v,
|
|
3717
3720
|
label: v
|
|
@@ -3746,7 +3749,7 @@ const tg = { class: "docx-renderer" }, ig = {
|
|
|
3746
3749
|
i.value = r;
|
|
3747
3750
|
}), v1(() => {
|
|
3748
3751
|
i.value && URL.revokeObjectURL(i.value);
|
|
3749
|
-
}), (s, o) => (
|
|
3752
|
+
}), (s, o) => (S(), B("div", dg, [
|
|
3750
3753
|
l2("iframe", {
|
|
3751
3754
|
src: i.value,
|
|
3752
3755
|
class: "pdf-iframe"
|
|
@@ -10435,8 +10438,8 @@ class wn {
|
|
|
10435
10438
|
if ((this.contentDOMWidth != b || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = r.width, this.editorHeight = e.scrollDOM.clientHeight, h |= 16), a) {
|
|
10436
10439
|
let T = e.docView.measureVisibleLineHeights(this.viewport);
|
|
10437
10440
|
if (s.mustRefreshForHeights(T) && (l = !0), l || s.lineWrapping && Math.abs(b - this.contentDOMWidth) > s.charWidth) {
|
|
10438
|
-
let { lineHeight: C, charWidth: x, textHeight:
|
|
10439
|
-
l = C > 0 && s.refresh(o, C, x,
|
|
10441
|
+
let { lineHeight: C, charWidth: x, textHeight: _ } = e.docView.measureTextSize();
|
|
10442
|
+
l = C > 0 && s.refresh(o, C, x, _, Math.max(5, b / x), T), l && (e.docView.minWidth = 0, h |= 16);
|
|
10440
10443
|
}
|
|
10441
10444
|
m > 0 && v > 0 ? c = Math.max(m, v) : m < 0 && v < 0 && (c = Math.min(m, v)), mn();
|
|
10442
10445
|
for (let C of this.viewports) {
|
|
@@ -10546,8 +10549,8 @@ class wn {
|
|
|
10546
10549
|
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);
|
|
10547
10550
|
let b = this.pixelViewport.left + w, O = this.pixelViewport.right + w, T, C;
|
|
10548
10551
|
if (u != null) {
|
|
10549
|
-
let x = E1(d, u),
|
|
10550
|
-
T = x -
|
|
10552
|
+
let x = E1(d, u), _ = ((O - b) / 2 + v) / m;
|
|
10553
|
+
T = x - _, C = x + _;
|
|
10551
10554
|
} else
|
|
10552
10555
|
T = (b - v) / m, C = (O + v) / m;
|
|
10553
10556
|
f = B1(d, T), p = B1(d, C);
|
|
@@ -12307,25 +12310,25 @@ function mv(n, e, t) {
|
|
|
12307
12310
|
if (m && (n.lineWrapping || f.widgetLineBreaks) && (m = kn(n, i, 1, m)), v && (n.lineWrapping || p.widgetLineBreaks) && (v = kn(n, s, -1, v)), m && v && m.from == v.from && m.to == v.to)
|
|
12308
12311
|
return b(O(t.from, t.to, m));
|
|
12309
12312
|
{
|
|
12310
|
-
let C = m ? O(t.from, null, m) : T(f, !1), x = v ? O(null, t.to, v) : T(p, !0),
|
|
12311
|
-
return (m || f).to < (v || p).from - (m && v ? 1 : 0) || f.widgetLineBreaks > 1 && C.bottom + n.defaultLineHeight / 2 < x.top ?
|
|
12313
|
+
let C = m ? O(t.from, null, m) : T(f, !1), x = v ? O(null, t.to, v) : T(p, !0), _ = [];
|
|
12314
|
+
return (m || f).to < (v || p).from - (m && v ? 1 : 0) || f.widgetLineBreaks > 1 && C.bottom + n.defaultLineHeight / 2 < x.top ? _.push(w(d, C.bottom, u, x.top)) : C.bottom < x.top && n.elementAtHeight((C.bottom + x.top) / 2).type == g0.Text && (C.bottom = x.top = (C.bottom + x.top) / 2), b(C).concat(_).concat(b(x));
|
|
12312
12315
|
}
|
|
12313
|
-
function w(C, x,
|
|
12314
|
-
return new b1(e, C - a.left, x - a.top,
|
|
12316
|
+
function w(C, x, _, P) {
|
|
12317
|
+
return new b1(e, C - a.left, x - a.top, _ - C, P - x);
|
|
12315
12318
|
}
|
|
12316
|
-
function b({ top: C, bottom: x, horizontal:
|
|
12317
|
-
let
|
|
12318
|
-
for (let I = 0; I <
|
|
12319
|
-
|
|
12320
|
-
return
|
|
12319
|
+
function b({ top: C, bottom: x, horizontal: _ }) {
|
|
12320
|
+
let P = [];
|
|
12321
|
+
for (let I = 0; I < _.length; I += 2)
|
|
12322
|
+
P.push(w(_[I], C, _[I + 1], x));
|
|
12323
|
+
return P;
|
|
12321
12324
|
}
|
|
12322
|
-
function O(C, x,
|
|
12323
|
-
let
|
|
12325
|
+
function O(C, x, _) {
|
|
12326
|
+
let P = 1e9, I = -1e9, k = [];
|
|
12324
12327
|
function G(i2, A, W, p2, u2) {
|
|
12325
|
-
let E2 = n.coordsAtPos(i2, i2 ==
|
|
12326
|
-
!E2 || !N2 || (
|
|
12328
|
+
let E2 = n.coordsAtPos(i2, i2 == _.to ? -2 : 2), N2 = n.coordsAtPos(W, W == _.from ? 2 : -2);
|
|
12329
|
+
!E2 || !N2 || (P = Math.min(E2.top, N2.top, P), I = Math.max(E2.bottom, N2.bottom, I), u2 == H2.LTR ? k.push(o && A ? d : E2.left, o && p2 ? u : N2.right) : k.push(!o && p2 ? d : N2.left, !o && A ? u : E2.right));
|
|
12327
12330
|
}
|
|
12328
|
-
let D = C ??
|
|
12331
|
+
let D = C ?? _.from, e2 = x ?? _.to;
|
|
12329
12332
|
for (let i2 of n.visibleRanges)
|
|
12330
12333
|
if (i2.to > D && i2.from < e2)
|
|
12331
12334
|
for (let A = Math.max(i2.from, D), W = Math.min(i2.to, e2); ; ) {
|
|
@@ -12339,11 +12342,11 @@ function mv(n, e, t) {
|
|
|
12339
12342
|
if (A = p2.to + 1, A >= W)
|
|
12340
12343
|
break;
|
|
12341
12344
|
}
|
|
12342
|
-
return k.length == 0 && G(D, C == null, e2, x == null, n.textDirection), { top:
|
|
12345
|
+
return k.length == 0 && G(D, C == null, e2, x == null, n.textDirection), { top: P, bottom: I, horizontal: k };
|
|
12343
12346
|
}
|
|
12344
12347
|
function T(C, x) {
|
|
12345
|
-
let
|
|
12346
|
-
return { top:
|
|
12348
|
+
let _ = r.top + (x ? C.top : C.bottom);
|
|
12349
|
+
return { top: _, bottom: _, horizontal: [] };
|
|
12347
12350
|
}
|
|
12348
12351
|
}
|
|
12349
12352
|
function vv(n, e) {
|
|
@@ -13008,15 +13011,15 @@ const d6 = /* @__PURE__ */ Y.define({
|
|
|
13008
13011
|
}
|
|
13009
13012
|
zn.set(h, v), c.style.height = (v = C) / o + "px";
|
|
13010
13013
|
} else c.style.height && (c.style.height = "");
|
|
13011
|
-
let x = T ? d.top - v - p - w.y : d.bottom + p + w.y,
|
|
13014
|
+
let x = T ? d.top - v - p - w.y : d.bottom + p + w.y, _ = O + m;
|
|
13012
13015
|
if (h.overlap !== !0)
|
|
13013
|
-
for (let
|
|
13014
|
-
|
|
13016
|
+
for (let P of l)
|
|
13017
|
+
P.left < _ && P.right > O && P.top < x + v && P.bottom > x && (x = T ? P.top - v - 2 - p : P.bottom + p + 2);
|
|
13015
13018
|
if (this.position == "absolute" ? (c.style.top = (x - n.parent.top) / o + "px", Pn(c, (O - n.parent.left) / s)) : (c.style.top = x / o + "px", Pn(c, O / s)), f) {
|
|
13016
|
-
let
|
|
13017
|
-
f.style.left =
|
|
13019
|
+
let P = d.left + (b ? w.x : -w.x) - (O + 14 - 7);
|
|
13020
|
+
f.style.left = P / s + "px";
|
|
13018
13021
|
}
|
|
13019
|
-
h.overlap !== !0 && l.push({ left: O, top: x, right:
|
|
13022
|
+
h.overlap !== !0 && l.push({ left: O, top: x, right: _, bottom: x + v }), c.classList.toggle("cm-tooltip-above", T), c.classList.toggle("cm-tooltip-below", !T), h.positioned && h.positioned(n.space);
|
|
13020
13023
|
}
|
|
13021
13024
|
}
|
|
13022
13025
|
maybeMeasure() {
|
|
@@ -14814,12 +14817,12 @@ function J4(n) {
|
|
|
14814
14817
|
function xw(n) {
|
|
14815
14818
|
var e;
|
|
14816
14819
|
let { buffer: t, nodeSet: i, maxBufferLength: s = bl, reused: o = [], minRepeatType: l = i.types.length } = n, r = Array.isArray(t) ? new Q4(t, t.length) : t, a = i.types, h = 0, c = 0;
|
|
14817
|
-
function d(C, x,
|
|
14820
|
+
function d(C, x, _, P, I, k) {
|
|
14818
14821
|
let { id: G, start: D, end: e2, size: i2 } = r, A = c, W = h;
|
|
14819
14822
|
for (; i2 < 0; )
|
|
14820
14823
|
if (r.next(), i2 == -1) {
|
|
14821
14824
|
let S2 = o[G];
|
|
14822
|
-
|
|
14825
|
+
_.push(S2), P.push(D - C);
|
|
14823
14826
|
return;
|
|
14824
14827
|
} else if (i2 == -3) {
|
|
14825
14828
|
h = G;
|
|
@@ -14847,9 +14850,9 @@ function xw(n) {
|
|
|
14847
14850
|
} else
|
|
14848
14851
|
u2 = m(p2, g, T2, e2 - D, A - e2, W);
|
|
14849
14852
|
}
|
|
14850
|
-
|
|
14853
|
+
_.push(u2), P.push(N2);
|
|
14851
14854
|
}
|
|
14852
|
-
function u(C, x,
|
|
14855
|
+
function u(C, x, _, P) {
|
|
14853
14856
|
let I = [], k = 0, G = -1;
|
|
14854
14857
|
for (; r.pos > x; ) {
|
|
14855
14858
|
let { id: D, start: e2, end: i2, size: A } = r;
|
|
@@ -14865,27 +14868,27 @@ function xw(n) {
|
|
|
14865
14868
|
let D = new Uint16Array(k * 4), e2 = I[I.length - 2];
|
|
14866
14869
|
for (let i2 = I.length - 3, A = 0; i2 >= 0; i2 -= 3)
|
|
14867
14870
|
D[A++] = I[i2], D[A++] = I[i2 + 1] - e2, D[A++] = I[i2 + 2] - e2, D[A++] = A;
|
|
14868
|
-
|
|
14871
|
+
_.push(new Me(D, I[2] - e2, i)), P.push(e2 - C);
|
|
14869
14872
|
}
|
|
14870
14873
|
}
|
|
14871
14874
|
function f(C, x) {
|
|
14872
|
-
return (
|
|
14873
|
-
let k = 0, G =
|
|
14874
|
-
if (G >= 0 && (D =
|
|
14875
|
+
return (_, P, I) => {
|
|
14876
|
+
let k = 0, G = _.length - 1, D, e2;
|
|
14877
|
+
if (G >= 0 && (D = _[G]) instanceof U2) {
|
|
14875
14878
|
if (!G && D.type == C && D.length == I)
|
|
14876
14879
|
return D;
|
|
14877
|
-
(e2 = D.prop(w2.lookAhead)) && (k =
|
|
14880
|
+
(e2 = D.prop(w2.lookAhead)) && (k = P[G] + D.length + e2);
|
|
14878
14881
|
}
|
|
14879
|
-
return m(C,
|
|
14882
|
+
return m(C, _, P, I, k, x);
|
|
14880
14883
|
};
|
|
14881
14884
|
}
|
|
14882
|
-
function p(C, x,
|
|
14885
|
+
function p(C, x, _, P, I, k, G, D, e2) {
|
|
14883
14886
|
let i2 = [], A = [];
|
|
14884
|
-
for (; C.length >
|
|
14885
|
-
i2.push(C.pop()), A.push(x.pop() +
|
|
14886
|
-
C.push(m(i.types[G], i2, A, k - I, D - k, e2)), x.push(I -
|
|
14887
|
+
for (; C.length > P; )
|
|
14888
|
+
i2.push(C.pop()), A.push(x.pop() + _ - I);
|
|
14889
|
+
C.push(m(i.types[G], i2, A, k - I, D - k, e2)), x.push(I - _);
|
|
14887
14890
|
}
|
|
14888
|
-
function m(C, x,
|
|
14891
|
+
function m(C, x, _, P, I, k, G) {
|
|
14889
14892
|
if (k) {
|
|
14890
14893
|
let D = [w2.contextHash, k];
|
|
14891
14894
|
G = G ? [D].concat(G) : [D];
|
|
@@ -14894,45 +14897,45 @@ function xw(n) {
|
|
|
14894
14897
|
let D = [w2.lookAhead, I];
|
|
14895
14898
|
G = G ? [D].concat(G) : [D];
|
|
14896
14899
|
}
|
|
14897
|
-
return new U2(C, x,
|
|
14900
|
+
return new U2(C, x, _, P, G);
|
|
14898
14901
|
}
|
|
14899
14902
|
function v(C, x) {
|
|
14900
|
-
let
|
|
14901
|
-
e: for (let e2 =
|
|
14902
|
-
let i2 =
|
|
14903
|
-
if (
|
|
14904
|
-
D.size =
|
|
14903
|
+
let _ = r.fork(), P = 0, I = 0, k = 0, G = _.end - s, D = { size: 0, start: 0, skip: 0 };
|
|
14904
|
+
e: for (let e2 = _.pos - C; _.pos > e2; ) {
|
|
14905
|
+
let i2 = _.size;
|
|
14906
|
+
if (_.id == x && i2 >= 0) {
|
|
14907
|
+
D.size = P, D.start = I, D.skip = k, k += 4, P += 4, _.next();
|
|
14905
14908
|
continue;
|
|
14906
14909
|
}
|
|
14907
|
-
let A =
|
|
14908
|
-
if (i2 < 0 || A < e2 ||
|
|
14910
|
+
let A = _.pos - i2;
|
|
14911
|
+
if (i2 < 0 || A < e2 || _.start < G)
|
|
14909
14912
|
break;
|
|
14910
|
-
let W =
|
|
14911
|
-
for (
|
|
14912
|
-
if (
|
|
14913
|
-
if (
|
|
14913
|
+
let W = _.id >= l ? 4 : 0, p2 = _.start;
|
|
14914
|
+
for (_.next(); _.pos > A; ) {
|
|
14915
|
+
if (_.size < 0)
|
|
14916
|
+
if (_.size == -3)
|
|
14914
14917
|
W += 4;
|
|
14915
14918
|
else
|
|
14916
14919
|
break e;
|
|
14917
|
-
else
|
|
14918
|
-
|
|
14920
|
+
else _.id >= l && (W += 4);
|
|
14921
|
+
_.next();
|
|
14919
14922
|
}
|
|
14920
|
-
I = p2,
|
|
14923
|
+
I = p2, P += i2, k += W;
|
|
14921
14924
|
}
|
|
14922
|
-
return (x < 0 ||
|
|
14925
|
+
return (x < 0 || P == C) && (D.size = P, D.start = I, D.skip = k), D.size > 4 ? D : void 0;
|
|
14923
14926
|
}
|
|
14924
|
-
function w(C, x,
|
|
14925
|
-
let { id:
|
|
14926
|
-
if (r.next(), G >= 0 &&
|
|
14927
|
-
let D =
|
|
14927
|
+
function w(C, x, _) {
|
|
14928
|
+
let { id: P, start: I, end: k, size: G } = r;
|
|
14929
|
+
if (r.next(), G >= 0 && P < l) {
|
|
14930
|
+
let D = _;
|
|
14928
14931
|
if (G > 4) {
|
|
14929
14932
|
let e2 = r.pos - (G - 4);
|
|
14930
14933
|
for (; r.pos > e2; )
|
|
14931
|
-
|
|
14934
|
+
_ = w(C, x, _);
|
|
14932
14935
|
}
|
|
14933
|
-
x[--
|
|
14934
|
-
} else G == -3 ? h =
|
|
14935
|
-
return
|
|
14936
|
+
x[--_] = D, x[--_] = k - C, x[--_] = I - C, x[--_] = P;
|
|
14937
|
+
} else G == -3 ? h = P : G == -4 && (c = P);
|
|
14938
|
+
return _;
|
|
14936
14939
|
}
|
|
14937
14940
|
let b = [], O = [];
|
|
14938
14941
|
for (; r.pos > 0; )
|
|
@@ -14970,21 +14973,21 @@ function Z4(n, e, t, i, s, o, l, r, a) {
|
|
|
14970
14973
|
for (let O = v; O < w; ) {
|
|
14971
14974
|
let T = O, C = m[O], x = l3(n, p[O]);
|
|
14972
14975
|
for (O++; O < w; O++) {
|
|
14973
|
-
let
|
|
14974
|
-
if (x +
|
|
14976
|
+
let _ = l3(n, p[O]);
|
|
14977
|
+
if (x + _ >= c)
|
|
14975
14978
|
break;
|
|
14976
|
-
x +=
|
|
14979
|
+
x += _;
|
|
14977
14980
|
}
|
|
14978
14981
|
if (O == T + 1) {
|
|
14979
14982
|
if (x > c) {
|
|
14980
|
-
let
|
|
14981
|
-
f(
|
|
14983
|
+
let _ = p[T];
|
|
14984
|
+
f(_.children, _.positions, 0, _.children.length, m[T] + b);
|
|
14982
14985
|
continue;
|
|
14983
14986
|
}
|
|
14984
14987
|
d.push(p[T]);
|
|
14985
14988
|
} else {
|
|
14986
|
-
let
|
|
14987
|
-
d.push(Z4(n, p, m, T, O, C,
|
|
14989
|
+
let _ = m[O - 1] + p[O - 1].length - C;
|
|
14990
|
+
d.push(Z4(n, p, m, T, O, C, _, null, a));
|
|
14988
14991
|
}
|
|
14989
14992
|
u.push(C + b - o);
|
|
14990
14993
|
}
|
|
@@ -18700,8 +18703,8 @@ class h_ {
|
|
|
18700
18703
|
for (let b = 0, O = Math.min(e.length, 200), T = 0; b < O && d < a; ) {
|
|
18701
18704
|
let C = w0(e, b);
|
|
18702
18705
|
r < 0 && (c < a && C == t[c] && (o[c++] = b), f < a && (C == t[f] || C == i[f] ? (f == 0 && (p = b), m = b + 1, f++) : f = 0));
|
|
18703
|
-
let x,
|
|
18704
|
-
(!b ||
|
|
18706
|
+
let x, _ = C < 255 ? C >= 48 && C <= 57 || C >= 97 && C <= 122 ? 2 : C >= 65 && C <= 90 ? 1 : 0 : (x = A4(C)) != x.toLowerCase() ? 1 : x != x.toUpperCase() ? 2 : 0;
|
|
18707
|
+
(!b || _ == 1 && v || T == 0 && _ != 0) && (t[d] == C || i[d] == C && (u = !0) ? l[d++] = b : l.length && (w = !1)), T = _, b += X0(C);
|
|
18705
18708
|
}
|
|
18706
18709
|
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);
|
|
18707
18710
|
}
|
|
@@ -21762,7 +21765,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21762
21765
|
parent: document.querySelector("#xml-editor")
|
|
21763
21766
|
});
|
|
21764
21767
|
s.dom.style.width = "100%";
|
|
21765
|
-
}), (s, o) => (
|
|
21768
|
+
}), (s, o) => (S(), B("div", Ry, [
|
|
21766
21769
|
l2("div", $y, null, 512)
|
|
21767
21770
|
]));
|
|
21768
21771
|
}
|
|
@@ -21776,7 +21779,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21776
21779
|
const e = n, t = t2(() => e.blobUrl), i = t2(() => [e.blobUrl]);
|
|
21777
21780
|
return (s, o) => {
|
|
21778
21781
|
const l = Q("el-image");
|
|
21779
|
-
return
|
|
21782
|
+
return S(), B("div", Uy, [
|
|
21780
21783
|
J(l, {
|
|
21781
21784
|
class: "render-img",
|
|
21782
21785
|
src: t.value,
|
|
@@ -21806,7 +21809,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21806
21809
|
height: h
|
|
21807
21810
|
}).preview(l);
|
|
21808
21811
|
});
|
|
21809
|
-
}), (s, o) => (
|
|
21812
|
+
}), (s, o) => (S(), B("div", Yy, [
|
|
21810
21813
|
l2("div", {
|
|
21811
21814
|
ref_key: "pptxPreview",
|
|
21812
21815
|
ref: i,
|
|
@@ -21827,7 +21830,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21827
21830
|
i.value = l;
|
|
21828
21831
|
}), v1(() => {
|
|
21829
21832
|
i.value && URL.revokeObjectURL(i.value);
|
|
21830
|
-
}), (s, o) => (
|
|
21833
|
+
}), (s, o) => (S(), B("div", Qy, [
|
|
21831
21834
|
l2("video", {
|
|
21832
21835
|
src: i.value,
|
|
21833
21836
|
class: "video-tag",
|
|
@@ -21902,11 +21905,11 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21902
21905
|
}), w = t2(() => v.value), b = t2(() => (r == null ? void 0 : r.value) === "docx"), O = t2(() => (r == null ? void 0 : r.value) === "csv"), T = t2(() => (r == null ? void 0 : r.value) === "xlsx"), C = t2(() => (r == null ? void 0 : r.value) === "pdf"), x = t2(() => {
|
|
21903
21906
|
const k = r == null ? void 0 : r.value;
|
|
21904
21907
|
return k === "jpg" || k === "jpeg" || k === "png" || k === "gif" || k === "webp" || k === "bmp";
|
|
21905
|
-
}),
|
|
21908
|
+
}), _ = t2(() => (r == null ? void 0 : r.value) === "pptx"), P = t2(() => (r == null ? void 0 : r.value) === "mp4"), I = t2(() => !f && !m && !w && !b && !T && !C && !x && !_);
|
|
21906
21909
|
return v1(() => {
|
|
21907
21910
|
t("destroy");
|
|
21908
|
-
}), (k, G) => (
|
|
21909
|
-
a.value ? (
|
|
21911
|
+
}), (k, G) => (S(), B("div", tS, [
|
|
21912
|
+
a.value ? (S(), B("div", iS, [
|
|
21910
21913
|
J(Mi, {
|
|
21911
21914
|
files: l.value,
|
|
21912
21915
|
"three-data": {
|
|
@@ -21921,60 +21924,60 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
21921
21924
|
}
|
|
21922
21925
|
}, null, 8, ["files", "three-data"])
|
|
21923
21926
|
])) : n2("", !0),
|
|
21924
|
-
b.value ? (
|
|
21927
|
+
b.value ? (S(), B("div", nS, [
|
|
21925
21928
|
J(ng, {
|
|
21926
21929
|
fileName: o.value,
|
|
21927
21930
|
blobUrl: s.value
|
|
21928
21931
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21929
21932
|
])) : n2("", !0),
|
|
21930
|
-
p.value || v.value ? (
|
|
21931
|
-
(
|
|
21933
|
+
p.value || v.value ? (S(), B("div", sS, [
|
|
21934
|
+
(S(), j(Mi, {
|
|
21932
21935
|
files: l.value,
|
|
21933
21936
|
key: i == null ? void 0 : i.fullScreen
|
|
21934
21937
|
}, null, 8, ["files"]))
|
|
21935
21938
|
])) : n2("", !0),
|
|
21936
|
-
T.value ? (
|
|
21939
|
+
T.value ? (S(), B("div", oS, [
|
|
21937
21940
|
J(lg, {
|
|
21938
21941
|
fileName: o.value,
|
|
21939
21942
|
blobUrl: s.value
|
|
21940
21943
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21941
21944
|
])) : n2("", !0),
|
|
21942
|
-
O.value ? (
|
|
21945
|
+
O.value ? (S(), B("div", lS, [
|
|
21943
21946
|
J(hg, {
|
|
21944
21947
|
fileName: o.value,
|
|
21945
21948
|
blobUrl: s.value
|
|
21946
21949
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21947
21950
|
])) : n2("", !0),
|
|
21948
|
-
C.value ? (
|
|
21951
|
+
C.value ? (S(), B("div", rS, [
|
|
21949
21952
|
J(pg, {
|
|
21950
21953
|
fileName: o.value,
|
|
21951
21954
|
blobUrl: s.value
|
|
21952
21955
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21953
21956
|
])) : n2("", !0),
|
|
21954
|
-
x.value ? (
|
|
21957
|
+
x.value ? (S(), B("div", aS, [
|
|
21955
21958
|
J(qy, {
|
|
21956
21959
|
fileName: o.value,
|
|
21957
21960
|
blobUrl: s.value
|
|
21958
21961
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21959
21962
|
])) : n2("", !0),
|
|
21960
|
-
|
|
21963
|
+
_.value ? (S(), B("div", cS, [
|
|
21961
21964
|
J(Xy, {
|
|
21962
21965
|
fileName: o.value,
|
|
21963
21966
|
blobUrl: s.value
|
|
21964
21967
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21965
21968
|
])) : n2("", !0),
|
|
21966
|
-
|
|
21969
|
+
P.value ? (S(), B("div", hS, [
|
|
21967
21970
|
J(eS, {
|
|
21968
21971
|
fileName: o.value,
|
|
21969
21972
|
blobUrl: s.value
|
|
21970
21973
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21971
|
-
])) : !b.value && !T.value && !C.value && !v.value && !x.value && !
|
|
21974
|
+
])) : !b.value && !T.value && !C.value && !v.value && !x.value && !_.value && !p.value && !P.value && !a.value && !O.value ? (S(), B("div", dS, [
|
|
21972
21975
|
J(Wy, {
|
|
21973
21976
|
fileName: o.value,
|
|
21974
21977
|
blobUrl: s.value
|
|
21975
21978
|
}, null, 8, ["fileName", "blobUrl"])
|
|
21976
21979
|
])) : n2("", !0),
|
|
21977
|
-
I.value ? (
|
|
21980
|
+
I.value ? (S(), B("div", uS, G[0] || (G[0] = [
|
|
21978
21981
|
l2("div", null, "当前文件格式暂不支持预览", -1)
|
|
21979
21982
|
]))) : n2("", !0)
|
|
21980
21983
|
]));
|
|
@@ -22015,9 +22018,9 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22015
22018
|
t("destroy");
|
|
22016
22019
|
}), (c, d) => {
|
|
22017
22020
|
var u;
|
|
22018
|
-
return
|
|
22019
|
-
(((u = s.value) == null ? void 0 : u.length) || 0) > 1 ? (
|
|
22020
|
-
(
|
|
22021
|
+
return S(), B("div", pS, [
|
|
22022
|
+
(((u = s.value) == null ? void 0 : u.length) || 0) > 1 ? (S(), B("div", gS, [
|
|
22023
|
+
(S(!0), B(y2, null, D2(s.value, (f, p) => (S(), B("div", {
|
|
22021
22024
|
key: p,
|
|
22022
22025
|
class: We(["left-item", {
|
|
22023
22026
|
"active-item": p == o.value
|
|
@@ -22076,7 +22079,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22076
22079
|
}));
|
|
22077
22080
|
}), (p, m) => {
|
|
22078
22081
|
const v = Q("el-icon");
|
|
22079
|
-
return
|
|
22082
|
+
return S(), j(V4, {
|
|
22080
22083
|
class: "file-preview-dialog",
|
|
22081
22084
|
visible: s.value,
|
|
22082
22085
|
onBeforeDestroy: f,
|
|
@@ -22116,7 +22119,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22116
22119
|
return [
|
|
22117
22120
|
l2("div", yS, [
|
|
22118
22121
|
m[0] || (m[0] = l2("div", { class: "file-preview-header" }, null, -1)),
|
|
22119
|
-
(
|
|
22122
|
+
(S(), j(U8, {
|
|
22120
22123
|
class: "file-preview-content",
|
|
22121
22124
|
fileDataList: o.value,
|
|
22122
22125
|
key: (w = o.value) == null ? void 0 : w.length,
|
|
@@ -22156,29 +22159,29 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22156
22159
|
const a = N(Array.isArray(t.modelValue) ? t.modelValue : []), h = N(!1), c = N(""), d = N(""), u = N(Array.isArray(t.modelValue) ? t.modelValue : []), f = () => {
|
|
22157
22160
|
h.value = !0, u.value = o.value, a.value = o.value;
|
|
22158
22161
|
}, p = async (x) => {
|
|
22159
|
-
var
|
|
22160
|
-
let
|
|
22161
|
-
if ((
|
|
22162
|
+
var P, I;
|
|
22163
|
+
let _;
|
|
22164
|
+
if ((P = x == null ? void 0 : x.url) != null && P.includes("http") ? _ = await Tr.get(x.url, {
|
|
22162
22165
|
responseType: "blob",
|
|
22163
22166
|
headers: {
|
|
22164
22167
|
"Content-Type": "application/json"
|
|
22165
22168
|
}
|
|
22166
|
-
}) :
|
|
22169
|
+
}) : _ = await br({
|
|
22167
22170
|
url: (I = d0(x)) == null ? void 0 : I.url
|
|
22168
22171
|
}), !x.url.toUpperCase().includes(".OBJ") && !x.url.toUpperCase().includes(".STL") && !x.url.toUpperCase().includes(".MTL") && !x.url.toUpperCase().includes(".URDF")) {
|
|
22169
|
-
let k = URL.createObjectURL(
|
|
22172
|
+
let k = URL.createObjectURL(_.data);
|
|
22170
22173
|
d.value = k;
|
|
22171
22174
|
} else
|
|
22172
22175
|
d.value = x == null ? void 0 : x.url;
|
|
22173
22176
|
}, m = async (x) => {
|
|
22174
|
-
var
|
|
22177
|
+
var P, I, k, G, D, e2, i2, A, W;
|
|
22175
22178
|
if ((x == null ? void 0 : x.oldUrl) || (x == null ? void 0 : x.url)) {
|
|
22176
22179
|
const p2 = $f.service({
|
|
22177
22180
|
lock: !0,
|
|
22178
22181
|
text: "Loading",
|
|
22179
22182
|
background: "rgba(0, 0, 0, 0.7)"
|
|
22180
22183
|
});
|
|
22181
|
-
c.value = x != null && x.oldUrl ? (k = x == null ? void 0 : x.oldUrl) == null ? void 0 : k.split("/")[((I = (
|
|
22184
|
+
c.value = x != null && x.oldUrl ? (k = x == null ? void 0 : x.oldUrl) == null ? void 0 : k.split("/")[((I = (P = x == null ? void 0 : x.oldUrl) == null ? void 0 : P.split("/")) == null ? void 0 : I.length) - 1] : (x == null ? void 0 : x.name) + "." + ((W = (D = (G = d0(x)) == null ? void 0 : G.url) == null ? void 0 : D.split(".")) == null ? void 0 : W[((A = (i2 = (e2 = d0(x)) == null ? void 0 : e2.url) == null ? void 0 : i2.split(".")) == null ? void 0 : A.length) - 1]), await p(x).finally(() => {
|
|
22182
22185
|
p2.close();
|
|
22183
22186
|
});
|
|
22184
22187
|
} else {
|
|
@@ -22193,16 +22196,16 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22193
22196
|
}, v = () => {
|
|
22194
22197
|
l.value = !1;
|
|
22195
22198
|
}, w = (x) => {
|
|
22196
|
-
var
|
|
22197
|
-
u.value = (
|
|
22199
|
+
var _;
|
|
22200
|
+
u.value = (_ = d0(u.value)) == null ? void 0 : _.filter((P, I) => I !== x), a.value = u.value;
|
|
22198
22201
|
}, b = (x) => {
|
|
22199
22202
|
var D;
|
|
22200
|
-
const
|
|
22203
|
+
const _ = x.split(","), P = (D = _ == null ? void 0 : _[0]) == null ? void 0 : D.match(/:(.*?);/)[1], I = atob(_[1]);
|
|
22201
22204
|
let k = I.length;
|
|
22202
22205
|
const G = new Uint8Array(k);
|
|
22203
22206
|
for (; k--; )
|
|
22204
22207
|
G[k] = I.charCodeAt(k);
|
|
22205
|
-
return new Blob([G], { type:
|
|
22208
|
+
return new Blob([G], { type: P });
|
|
22206
22209
|
}, O = async () => {
|
|
22207
22210
|
var I;
|
|
22208
22211
|
s.value = !0;
|
|
@@ -22215,40 +22218,40 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22215
22218
|
return G.append("file", k == null ? void 0 : k.raw, k == null ? void 0 : k.name), await P6(G);
|
|
22216
22219
|
} else
|
|
22217
22220
|
return k;
|
|
22218
|
-
}),
|
|
22219
|
-
let
|
|
22220
|
-
|
|
22221
|
+
}), _ = await Promise.all(x);
|
|
22222
|
+
let P = [];
|
|
22223
|
+
_ == null || _.map((k) => {
|
|
22221
22224
|
var G, D, e2, i2, A, W;
|
|
22222
|
-
return
|
|
22225
|
+
return P.push({
|
|
22223
22226
|
name: ((D = (G = k == null ? void 0 : k.data) == null ? void 0 : G.result) == null ? void 0 : D.fileName) ?? (k == null ? void 0 : k.name),
|
|
22224
22227
|
url: ((i2 = (e2 = k == null ? void 0 : k.data) == null ? void 0 : e2.result) == null ? void 0 : i2.url) ?? (k == null ? void 0 : k.url)
|
|
22225
22228
|
}), (W = (A = k == null ? void 0 : k.data) == null ? void 0 : A.result) == null ? void 0 : W.url;
|
|
22226
|
-
}), N3.success("上传成功"), o.value =
|
|
22229
|
+
}), N3.success("上传成功"), o.value = P, i("update:modelValue", P), i("change", P), a.value = [], h.value = !1, s.value = !1;
|
|
22227
22230
|
}, T = () => {
|
|
22228
22231
|
h.value = !1, a.value = o.value, u.value = o.value;
|
|
22229
22232
|
}, C = (x) => {
|
|
22230
22233
|
if (!x) return;
|
|
22231
|
-
const
|
|
22232
|
-
|
|
22234
|
+
const _ = new FileReader();
|
|
22235
|
+
_.onload = (P) => {
|
|
22233
22236
|
const I = a.value === "" ? [] : a.value;
|
|
22234
22237
|
I.push({
|
|
22235
22238
|
name: x.name,
|
|
22236
22239
|
size: x.size,
|
|
22237
22240
|
type: x.type,
|
|
22238
|
-
base64:
|
|
22241
|
+
base64: P.target.result
|
|
22239
22242
|
}), a.value = I;
|
|
22240
|
-
},
|
|
22241
|
-
console.error("文件读取错误:",
|
|
22243
|
+
}, _.onerror = (P) => {
|
|
22244
|
+
console.error("文件读取错误:", P), fileData.value = {
|
|
22242
22245
|
name: "",
|
|
22243
22246
|
size: 0,
|
|
22244
22247
|
type: "",
|
|
22245
22248
|
base64: ""
|
|
22246
22249
|
};
|
|
22247
|
-
},
|
|
22250
|
+
}, _.readAsDataURL(x.raw);
|
|
22248
22251
|
};
|
|
22249
|
-
return (x,
|
|
22250
|
-
const
|
|
22251
|
-
return t != null && t.isEdit ? (
|
|
22252
|
+
return (x, _) => {
|
|
22253
|
+
const P = Q("svg-icon"), I = Q("el-icon"), k = Q("el-upload"), G = ur("loading");
|
|
22254
|
+
return t != null && t.isEdit ? (S(), B("div", CS, [
|
|
22252
22255
|
J(re, {
|
|
22253
22256
|
type: "primary",
|
|
22254
22257
|
onClickTrigger: f,
|
|
@@ -22256,9 +22259,9 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22256
22259
|
modelValue: "上传"
|
|
22257
22260
|
}),
|
|
22258
22261
|
l2("div", kS, [
|
|
22259
|
-
(
|
|
22262
|
+
(S(!0), B(y2, null, D2(o.value, (D) => {
|
|
22260
22263
|
var e2, i2, A, W;
|
|
22261
|
-
return
|
|
22264
|
+
return S(), B("div", {
|
|
22262
22265
|
class: "upload-content-title",
|
|
22263
22266
|
key: D,
|
|
22264
22267
|
style: { display: "flex", "justify-content": "space-between", width: "100%", position: "relative" }
|
|
@@ -22268,7 +22271,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22268
22271
|
title: D == null ? void 0 : D.name
|
|
22269
22272
|
}, $2((i2 = (e2 = D == null ? void 0 : D.url) == null ? void 0 : e2.split(".")) != null && i2[1] ? (D == null ? void 0 : D.name) + "." + ((W = (A = D == null ? void 0 : D.url) == null ? void 0 : A.split(".")) == null ? void 0 : W[1]) : D == null ? void 0 : D.name), 9, OS),
|
|
22270
22273
|
l2("div", DS, [
|
|
22271
|
-
J(
|
|
22274
|
+
J(P, {
|
|
22272
22275
|
class: "icon-blue",
|
|
22273
22276
|
name: "EyeFill",
|
|
22274
22277
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
@@ -22284,10 +22287,10 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22284
22287
|
title: "上传文件"
|
|
22285
22288
|
}, {
|
|
22286
22289
|
default: E(() => [
|
|
22287
|
-
rt((
|
|
22290
|
+
rt((S(), B("div", null, [
|
|
22288
22291
|
J(k, {
|
|
22289
22292
|
"file-list": u.value,
|
|
22290
|
-
"onUpdate:fileList":
|
|
22293
|
+
"onUpdate:fileList": _[0] || (_[0] = (D) => u.value = D),
|
|
22291
22294
|
multiple: "",
|
|
22292
22295
|
drag: "",
|
|
22293
22296
|
action: "",
|
|
@@ -22296,7 +22299,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22296
22299
|
"on-change": C,
|
|
22297
22300
|
class: "upload-content"
|
|
22298
22301
|
}, {
|
|
22299
|
-
tip: E(() =>
|
|
22302
|
+
tip: E(() => _[1] || (_[1] = [
|
|
22300
22303
|
l2("div", { class: "el-upload__tip tip-content" }, " 请上传大小不超过10MB的文件 ", -1)
|
|
22301
22304
|
])),
|
|
22302
22305
|
default: E(() => [
|
|
@@ -22306,7 +22309,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22306
22309
|
]),
|
|
22307
22310
|
_: 1
|
|
22308
22311
|
}),
|
|
22309
|
-
|
|
22312
|
+
_[2] || (_[2] = l2("div", { class: "el-upload__text" }, [
|
|
22310
22313
|
N0(" 将文件拖到此处或"),
|
|
22311
22314
|
l2("em", null, "点击上传")
|
|
22312
22315
|
], -1))
|
|
@@ -22317,13 +22320,13 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22317
22320
|
l2("div", MS, [
|
|
22318
22321
|
l2("div", TS, $2((A = (i2 = D == null ? void 0 : D.url) == null ? void 0 : i2.split(".")) != null && A[1] ? (D == null ? void 0 : D.name) + "." + ((p2 = (W = D == null ? void 0 : D.url) == null ? void 0 : W.split(".")) == null ? void 0 : p2[1]) : D == null ? void 0 : D.name), 1),
|
|
22319
22322
|
l2("div", zS, [
|
|
22320
|
-
J(
|
|
22323
|
+
J(P, {
|
|
22321
22324
|
class: "icon-blue",
|
|
22322
22325
|
name: "EyeFill",
|
|
22323
22326
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
22324
22327
|
onClick: (u2) => m(D)
|
|
22325
22328
|
}, null, 8, ["onClick"]),
|
|
22326
|
-
J(
|
|
22329
|
+
J(P, {
|
|
22327
22330
|
class: "icon-blue",
|
|
22328
22331
|
name: "Cancel",
|
|
22329
22332
|
style: { width: "20px", height: "20px", cursor: "pointer" },
|
|
@@ -22358,7 +22361,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22358
22361
|
]),
|
|
22359
22362
|
_: 1
|
|
22360
22363
|
}, 8, ["visible"]),
|
|
22361
|
-
l.value ? (
|
|
22364
|
+
l.value ? (S(), j(F8, {
|
|
22362
22365
|
key: 0,
|
|
22363
22366
|
fileDataList: r.value,
|
|
22364
22367
|
onDestroy: v
|
|
@@ -22406,7 +22409,7 @@ const Ny = /* @__PURE__ */ q.inputHandler.of((n, e, t, i, s) => {
|
|
|
22406
22409
|
};
|
|
22407
22410
|
return (h, c) => {
|
|
22408
22411
|
const d = Q("el-icon"), u = Q("el-upload");
|
|
22409
|
-
return
|
|
22412
|
+
return S(), j(u, {
|
|
22410
22413
|
class: "upload-demo",
|
|
22411
22414
|
drag: "",
|
|
22412
22415
|
action: "#",
|
|
@@ -22821,21 +22824,21 @@ var RS = /* @__PURE__ */ u0({
|
|
|
22821
22824
|
throw new Error('No canvas could be found with this "ref" in the template');
|
|
22822
22825
|
return i.value;
|
|
22823
22826
|
}), o = t2(() => {
|
|
22824
|
-
const x = Array.from(Bs(n.images)),
|
|
22825
|
-
return [...x, ...
|
|
22827
|
+
const x = Array.from(Bs(n.images)), _ = Array.from(Bs(t.cacheImages));
|
|
22828
|
+
return [...x, ..._];
|
|
22826
22829
|
});
|
|
22827
22830
|
s0(() => n.options, (x) => {
|
|
22828
|
-
Object.keys(x).forEach((
|
|
22829
|
-
Object.prototype.hasOwnProperty.call(t.signaturePad,
|
|
22831
|
+
Object.keys(x).forEach((_) => {
|
|
22832
|
+
Object.prototype.hasOwnProperty.call(t.signaturePad, _) && (t.signaturePad[_] = x[_]);
|
|
22830
22833
|
});
|
|
22831
22834
|
});
|
|
22832
22835
|
function l() {
|
|
22833
|
-
const x = s.value,
|
|
22834
|
-
x.width = x.offsetWidth *
|
|
22836
|
+
const x = s.value, _ = t.signaturePad.toData(), P = Math.max(window.devicePixelRatio || 1, 1);
|
|
22837
|
+
x.width = x.offsetWidth * P, x.height = x.offsetHeight * P;
|
|
22835
22838
|
const I = x.getContext("2d");
|
|
22836
|
-
I && I.scale(
|
|
22839
|
+
I && I.scale(P, P), t.signaturePad.clear(), t.signatureData = Es, t.signaturePad.fromData(_);
|
|
22837
22840
|
}
|
|
22838
|
-
function r(x = n.saveType,
|
|
22841
|
+
function r(x = n.saveType, _) {
|
|
22839
22842
|
if (t.signaturePad.isEmpty()) {
|
|
22840
22843
|
if (n.saveOutput === v0.FILE)
|
|
22841
22844
|
return {
|
|
@@ -22851,17 +22854,17 @@ var RS = /* @__PURE__ */ u0({
|
|
|
22851
22854
|
};
|
|
22852
22855
|
throw new Error(`This saveOutput ${n.saveOutput} is not supported`);
|
|
22853
22856
|
}
|
|
22854
|
-
const
|
|
22855
|
-
if (t.signatureData.src =
|
|
22857
|
+
const P = t.signaturePad.toDataURL(x, _);
|
|
22858
|
+
if (t.signatureData.src = P, n.saveOutput === v0.FILE)
|
|
22856
22859
|
return {
|
|
22857
22860
|
isEmpty: !1,
|
|
22858
|
-
file: GS(
|
|
22861
|
+
file: GS(P, "signature"),
|
|
22859
22862
|
output: v0.FILE
|
|
22860
22863
|
};
|
|
22861
22864
|
if (n.saveOutput === v0.DATA_URL)
|
|
22862
22865
|
return {
|
|
22863
22866
|
isEmpty: !1,
|
|
22864
|
-
data:
|
|
22867
|
+
data: P,
|
|
22865
22868
|
output: v0.DATA_URL
|
|
22866
22869
|
};
|
|
22867
22870
|
throw new Error(`This saveOutput ${n.saveOutput} is not supported`);
|
|
@@ -22872,8 +22875,8 @@ var RS = /* @__PURE__ */ u0({
|
|
|
22872
22875
|
}
|
|
22873
22876
|
function h() {
|
|
22874
22877
|
const x = r();
|
|
22875
|
-
let
|
|
22876
|
-
x.output === v0.FILE ?
|
|
22878
|
+
let _ = null;
|
|
22879
|
+
x.output === v0.FILE ? _ = x.file : x.output === v0.DATA_URL && (_ = x.data), e.emit("input", _);
|
|
22877
22880
|
}
|
|
22878
22881
|
function c(x) {
|
|
22879
22882
|
return t.signatureData = x, As([...n.images, ...t.cacheImages, t.signatureData]);
|
|
@@ -22881,14 +22884,14 @@ var RS = /* @__PURE__ */ u0({
|
|
|
22881
22884
|
function d(x = []) {
|
|
22882
22885
|
return t.cacheImages = [...t.cacheImages, ...x], As([...n.images, ...t.cacheImages, t.signatureData]);
|
|
22883
22886
|
}
|
|
22884
|
-
function u(x,
|
|
22885
|
-
t.signaturePad.fromDataURL(x,
|
|
22887
|
+
function u(x, _ = {}, P) {
|
|
22888
|
+
t.signaturePad.fromDataURL(x, _, P);
|
|
22886
22889
|
}
|
|
22887
22890
|
function f(x) {
|
|
22888
22891
|
t.signaturePad.fromData(x);
|
|
22889
22892
|
}
|
|
22890
|
-
function p(x = Xt.PNG,
|
|
22891
|
-
return t.signaturePad.toDataURL(x,
|
|
22893
|
+
function p(x = Xt.PNG, _) {
|
|
22894
|
+
return t.signaturePad.toDataURL(x, _);
|
|
22892
22895
|
}
|
|
22893
22896
|
function m() {
|
|
22894
22897
|
return t.signaturePad.toData();
|
|
@@ -22912,11 +22915,11 @@ var RS = /* @__PURE__ */ u0({
|
|
|
22912
22915
|
t.signaturePad.clear(), e.emit("input", null);
|
|
22913
22916
|
}
|
|
22914
22917
|
return ue(() => {
|
|
22915
|
-
const x = s.value,
|
|
22918
|
+
const x = s.value, _ = new G3(x, {
|
|
22916
22919
|
onEnd: h,
|
|
22917
22920
|
...n.options
|
|
22918
22921
|
});
|
|
22919
|
-
t.signaturePad =
|
|
22922
|
+
t.signaturePad = _, t.onResizeHandler = l, window.addEventListener("resize", t.onResizeHandler, !1), l();
|
|
22920
22923
|
}), T4(() => {
|
|
22921
22924
|
t.onResizeHandler && window.removeEventListener("resize", t.onResizeHandler, !1);
|
|
22922
22925
|
}), {
|
|
@@ -23021,7 +23024,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23021
23024
|
return (h, c) => {
|
|
23022
23025
|
var p, m, v;
|
|
23023
23026
|
const d = Q("el-input-number"), u = Q("el-color-picker"), f = Q("el-button");
|
|
23024
|
-
return
|
|
23027
|
+
return S(), B(y2, null, [
|
|
23025
23028
|
l2("div", jS, [
|
|
23026
23029
|
v2(h.$slots, "signatureRender", {}, void 0, !0),
|
|
23027
23030
|
l2("div", WS, [
|
|
@@ -23099,7 +23102,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23099
23102
|
};
|
|
23100
23103
|
return (i, s) => {
|
|
23101
23104
|
const o = Q("el-dropdown-menu"), l = Q("el-dropdown");
|
|
23102
|
-
return
|
|
23105
|
+
return S(), j(l, { onVisibleChange: t }, {
|
|
23103
23106
|
dropdown: E(() => [
|
|
23104
23107
|
J(o, null, {
|
|
23105
23108
|
default: E(() => [
|
|
@@ -23244,7 +23247,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23244
23247
|
}), f.on("text-change", function() {
|
|
23245
23248
|
r.value = f.root.innerHTML, l("update:modelValue", r.value);
|
|
23246
23249
|
});
|
|
23247
|
-
}), (f, p) => (
|
|
23250
|
+
}), (f, p) => (S(), B("div", XS, [
|
|
23248
23251
|
l2("div", {
|
|
23249
23252
|
ref_key: "quillEditorRef",
|
|
23250
23253
|
ref: i,
|
|
@@ -23269,7 +23272,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23269
23272
|
const e = n;
|
|
23270
23273
|
return (t, i) => {
|
|
23271
23274
|
const s = Q("el-image");
|
|
23272
|
-
return
|
|
23275
|
+
return S(), j(s, {
|
|
23273
23276
|
style: { width: "100px", height: "100px" },
|
|
23274
23277
|
src: e == null ? void 0 : e.modelValue,
|
|
23275
23278
|
fit: "contain",
|
|
@@ -23315,7 +23318,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23315
23318
|
};
|
|
23316
23319
|
return (d, u) => {
|
|
23317
23320
|
const f = Q("el-option"), p = Q("el-select");
|
|
23318
|
-
return
|
|
23321
|
+
return S(), j(p, {
|
|
23319
23322
|
class: "multiple-checkbox",
|
|
23320
23323
|
modelValue: s.value,
|
|
23321
23324
|
"onUpdate:modelValue": u[0] || (u[0] = (m) => s.value = m),
|
|
@@ -23335,7 +23338,7 @@ const jS = { class: "signature-wrap" }, WS = { class: "signature-types" }, US =
|
|
|
23335
23338
|
], 10, eC)
|
|
23336
23339
|
]),
|
|
23337
23340
|
default: E(() => [
|
|
23338
|
-
(
|
|
23341
|
+
(S(!0), B(y2, null, D2(d.options, (m) => (S(), j(f, {
|
|
23339
23342
|
key: m.value,
|
|
23340
23343
|
label: m.label,
|
|
23341
23344
|
value: m.value
|
|
@@ -23416,30 +23419,30 @@ const sC = ["onDblclick"], oC = {
|
|
|
23416
23419
|
{ deep: !0, immediate: !0 }
|
|
23417
23420
|
), (c, d) => {
|
|
23418
23421
|
const u = Q("el-tab-pane"), f = Q("el-tabs");
|
|
23419
|
-
return
|
|
23422
|
+
return S(), j(f, {
|
|
23420
23423
|
type: "card",
|
|
23421
23424
|
modelValue: o.value,
|
|
23422
23425
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => o.value = p),
|
|
23423
23426
|
"tab-position": t == null ? void 0 : t.tabPosition
|
|
23424
23427
|
}, {
|
|
23425
23428
|
default: E(() => [
|
|
23426
|
-
(
|
|
23429
|
+
(S(!0), B(y2, null, D2(s.value, (p, m) => (S(), j(u, {
|
|
23427
23430
|
key: m,
|
|
23428
23431
|
name: p == null ? void 0 : p.value
|
|
23429
23432
|
}, {
|
|
23430
23433
|
label: E(() => {
|
|
23431
23434
|
var v;
|
|
23432
23435
|
return [
|
|
23433
|
-
p != null && p.label ? (
|
|
23436
|
+
p != null && p.label ? (S(), B("div", {
|
|
23434
23437
|
key: 0,
|
|
23435
23438
|
onDblclick: (w) => r(p)
|
|
23436
23439
|
}, $2(p == null ? void 0 : p.label), 41, sC)) : n2("", !0),
|
|
23437
|
-
p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (
|
|
23438
|
-
(
|
|
23440
|
+
p != null && p.contents && ((v = p == null ? void 0 : p.contents) == null ? void 0 : v.length) > 0 ? (S(), B("div", oC, [
|
|
23441
|
+
(S(!0), B(y2, null, D2(p == null ? void 0 : p.contents, (w, b) => (S(), B("div", {
|
|
23439
23442
|
key: b,
|
|
23440
23443
|
class: "tabs-children"
|
|
23441
23444
|
}, [
|
|
23442
|
-
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (
|
|
23445
|
+
w != null && w.value || (w == null ? void 0 : w.value) === "" ? (S(), j(Qt(l(w == null ? void 0 : w.type)), {
|
|
23443
23446
|
key: 0,
|
|
23444
23447
|
modelValue: w.value,
|
|
23445
23448
|
"onUpdate:modelValue": (O) => w.value = O,
|
|
@@ -23451,12 +23454,12 @@ const sC = ["onDblclick"], oC = {
|
|
|
23451
23454
|
];
|
|
23452
23455
|
}),
|
|
23453
23456
|
default: E(() => [
|
|
23454
|
-
(
|
|
23457
|
+
(S(!0), B(y2, null, D2(p == null ? void 0 : p.children, (v, w) => (S(), B("div", {
|
|
23455
23458
|
key: w,
|
|
23456
23459
|
class: "tabs-contents"
|
|
23457
23460
|
}, [
|
|
23458
23461
|
v2(c.$slots, `${(v == null ? void 0 : v.value) ?? ""}_operateButtons`, {}, void 0, !0),
|
|
23459
|
-
v != null && v.value || (v == null ? void 0 : v.value) === "" ? (
|
|
23462
|
+
v != null && v.value || (v == null ? void 0 : v.value) === "" ? (S(), j(Qt(l(v == null ? void 0 : v.type)), {
|
|
23460
23463
|
key: 0,
|
|
23461
23464
|
modelValue: v.value,
|
|
23462
23465
|
"onUpdate:modelValue": (b) => v.value = b,
|