@shaonq/vue 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +240 -240
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import $o from "vxe-table";
|
|
2
2
|
import "vxe-table/lib/style.css";
|
|
3
|
-
import { ref as K, inject as wt, defineComponent as q, computed as U, shallowRef as ot, watch as ee, onUnmounted as Ct, resolveComponent as b, openBlock as c, createElementBlock as O, createBlock as B, withCtx as p, renderSlot as H, createElementVNode as k, toDisplayString as Z, createVNode as s, createTextVNode as N, unref as _, createCommentVNode as W, Fragment as Y, renderList as pe, createSlots as At, isVNode as Pt, resolveDynamicComponent as ye, normalizeStyle as le, reactive as Jt, provide as Et, toRefs as ke, nextTick as Qt, normalizeProps as
|
|
3
|
+
import { ref as K, inject as wt, defineComponent as q, computed as U, shallowRef as ot, watch as ee, onUnmounted as Ct, resolveComponent as b, openBlock as c, createElementBlock as O, createBlock as B, withCtx as p, renderSlot as H, createElementVNode as k, toDisplayString as Z, createVNode as s, createTextVNode as N, unref as _, createCommentVNode as W, Fragment as Y, renderList as pe, createSlots as At, isVNode as Pt, resolveDynamicComponent as ye, normalizeStyle as le, reactive as Jt, provide as Et, toRefs as ke, nextTick as Qt, normalizeProps as xe, guardReactiveProps as nt, mergeProps as M, isRef as xt, normalizeClass as se, withModifiers as Pe, toRef as tt, Transition as Xt, onMounted as qe, useAttrs as So, Teleport as Yt, markRaw as Oo, withDirectives as Do, vShow as zo } from "vue";
|
|
4
4
|
import it from "xe-utils";
|
|
5
5
|
import Ne from "vuedraggable";
|
|
6
6
|
import { Modal as Zt, Message as eo, Button as Po, useFormItem as Vo, Icon as Ro } from "@arco-design/web-vue";
|
|
@@ -162,7 +162,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
162
162
|
}, tn = {
|
|
163
163
|
key: 1,
|
|
164
164
|
class: "orc-table__pagination"
|
|
165
|
-
}, on = { class: "u-flex u-flex--start" }, nn = { class: "u-flex__item" }, ln = { style: { width: "500px" } },
|
|
165
|
+
}, on = { class: "u-flex u-flex--start" }, nn = { class: "u-flex__item" }, ln = { style: { width: "500px" } }, Ft = /* @__PURE__ */ q({
|
|
166
166
|
__name: "table",
|
|
167
167
|
props: {
|
|
168
168
|
title: String,
|
|
@@ -207,7 +207,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
207
207
|
}), f = U(() => {
|
|
208
208
|
var $, P;
|
|
209
209
|
return (P = ($ = n.option) == null ? void 0 : $.pageSizeOptions) != null ? P : [10, 20, 50, 100, 200];
|
|
210
|
-
}), m = K({ page: 1, size: r.value }), { disabledList: C, selectChangeEvent: v, radioChangeEvent: w } = Io(n, i), { $grid:
|
|
210
|
+
}), m = K({ page: 1, size: r.value }), { disabledList: C, selectChangeEvent: v, radioChangeEvent: w } = Io(n, i), { $grid: F, $gridTwo: A } = to(n.option);
|
|
211
211
|
function y($, P, Q) {
|
|
212
212
|
var fe, we;
|
|
213
213
|
const I = (fe = $[P]) != null ? fe : {}, te = (we = $[P - 1]) != null ? we : {};
|
|
@@ -230,7 +230,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
230
230
|
return I.show = (te = I.show) != null ? te : !0, I.tooltip && (I.ellipsis = !0), I;
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const x = U(() => {
|
|
234
234
|
const $ = D(), P = Object.assign([], E.value);
|
|
235
235
|
return [
|
|
236
236
|
...new Set(
|
|
@@ -310,7 +310,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
310
310
|
L();
|
|
311
311
|
const Le = ($ = !1) => {
|
|
312
312
|
var P, Q;
|
|
313
|
-
!Ae.value || ($ ? (P = Ae.value) == null || P.togglePanel() : (Q = Ae.value) == null || Q.showPanel(), me.value.columns = Object.assign([], [...
|
|
313
|
+
!Ae.value || ($ ? (P = Ae.value) == null || P.togglePanel() : (Q = Ae.value) == null || Q.showPanel(), me.value.columns = Object.assign([], [...x.value]).map((I) => {
|
|
314
314
|
const te = me.value.tempWidth[I.dataIndex];
|
|
315
315
|
return te && (I.width = te), I;
|
|
316
316
|
}));
|
|
@@ -329,7 +329,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
329
329
|
}
|
|
330
330
|
const Je = () => {
|
|
331
331
|
var $;
|
|
332
|
-
!Ae.value || (E.value = me.value.columns, i("confirm",
|
|
332
|
+
!Ae.value || (E.value = me.value.columns, i("confirm", x.value), typeof (($ = n.hook) == null ? void 0 : $.setColumn) == "function" && n.hook.setColumn(x.value), me.value.tempWidth = /* @__PURE__ */ Object.create({}), Se());
|
|
333
333
|
};
|
|
334
334
|
return n.option.firstLoad !== !1 && ue(), ee(
|
|
335
335
|
() => n.option.firstLoad,
|
|
@@ -345,12 +345,12 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
345
345
|
return $ !== !1 && (m.value.page = 1), S.value = [], A.clearSelection(), ue();
|
|
346
346
|
},
|
|
347
347
|
loadData($) {
|
|
348
|
-
|
|
348
|
+
F.value && (F.value.reloadData($), G.value = $);
|
|
349
349
|
},
|
|
350
350
|
...A
|
|
351
351
|
}), ($, P) => {
|
|
352
352
|
var zt;
|
|
353
|
-
const Q = b("a-switch"), I = b("a-tooltip"), te = b("icon-refresh"), fe = b("a-button"), we = b("icon-settings"), Be = b("icon-drag-dot-vertical"), ge = b("a-checkbox"), Qe = b("a-input-number"), wo = b("a-divider"), Ot = b("vxe-button"), Co = b("vxe-pulldown"), Dt = b("a-space"), Ao = b("vxe-toolbar"), Xe = b("vxe-column"), Eo = b("a-empty"),
|
|
353
|
+
const Q = b("a-switch"), I = b("a-tooltip"), te = b("icon-refresh"), fe = b("a-button"), we = b("icon-settings"), Be = b("icon-drag-dot-vertical"), ge = b("a-checkbox"), Qe = b("a-input-number"), wo = b("a-divider"), Ot = b("vxe-button"), Co = b("vxe-pulldown"), Dt = b("a-space"), Ao = b("vxe-toolbar"), Xe = b("vxe-column"), Eo = b("a-empty"), xo = b("a-spin"), Fo = b("vxe-table"), ko = b("a-pagination");
|
|
354
354
|
return c(), O("div", qo, [
|
|
355
355
|
n.hideToolbar ? W("", !0) : (c(), B(Ao, {
|
|
356
356
|
key: 0,
|
|
@@ -543,7 +543,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
543
543
|
]),
|
|
544
544
|
_: 3
|
|
545
545
|
})),
|
|
546
|
-
s(
|
|
546
|
+
s(Fo, {
|
|
547
547
|
ref: n.option.ref,
|
|
548
548
|
data: G.value,
|
|
549
549
|
height: n.height,
|
|
@@ -582,7 +582,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
582
582
|
s(Eo)
|
|
583
583
|
]),
|
|
584
584
|
loading: p(() => [
|
|
585
|
-
s(
|
|
585
|
+
s(xo)
|
|
586
586
|
]),
|
|
587
587
|
default: p(() => [
|
|
588
588
|
H($.$slots, "columns", {}, () => {
|
|
@@ -601,7 +601,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
601
601
|
fixed: "left",
|
|
602
602
|
align: n.option.selectedAlign
|
|
603
603
|
}, null, 8, ["align"])) : W("", !0),
|
|
604
|
-
(c(!0), O(Y, null, pe(
|
|
604
|
+
(c(!0), O(Y, null, pe(x.value.filter((V) => V.show), (V, Bo) => (c(), O(Y, { key: Bo }, [
|
|
605
605
|
["index"].includes(V.dataIndex) ? (c(), B(Xe, {
|
|
606
606
|
key: 0,
|
|
607
607
|
type: "seq",
|
|
@@ -746,7 +746,7 @@ const qo = { class: "orc-table" }, No = { class: "arco-card-header-title" }, Uo
|
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
|
-
const
|
|
749
|
+
const ei = {
|
|
750
750
|
tf: (e, o) => {
|
|
751
751
|
if (typeof e != "number")
|
|
752
752
|
return e;
|
|
@@ -770,8 +770,8 @@ const Yu = {
|
|
|
770
770
|
if (t.selectedType === "checkbox") {
|
|
771
771
|
const C = l.value, { fullData: v } = C.getTableData();
|
|
772
772
|
if (e.checkboxKey) {
|
|
773
|
-
const w = e.checkboxKey,
|
|
774
|
-
|
|
773
|
+
const w = e.checkboxKey, F = v.filter((A) => A[w] && A[w] === r[w]);
|
|
774
|
+
F.length && C.setCheckboxRow(F, !0);
|
|
775
775
|
} else
|
|
776
776
|
l.value.setCheckboxRow(r, !0);
|
|
777
777
|
m && (u.value = ((f = l.value.getCheckboxRecords()) != null ? f : []).map((w) => w[m]));
|
|
@@ -840,7 +840,7 @@ function lo(e, o, u) {
|
|
|
840
840
|
function rn(e, o, u) {
|
|
841
841
|
return typeof e != "object" ? e : (no(o).reduce((t, l, n, a) => n === a.length - 1 ? (t[l] = u, null) : (l in t || (t[l] = /^[0-9]{1,}$/.test(a[n + 1]) ? [] : {}), t[l]), e), gt(e));
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function Fe(e, o, u = "children") {
|
|
844
844
|
const t = e ? `${e}.` : "", l = o !== void 0 ? `[${o}]` : "";
|
|
845
845
|
return `${t}${u}${l}`;
|
|
846
846
|
}
|
|
@@ -919,52 +919,52 @@ function de() {
|
|
|
919
919
|
return w || null;
|
|
920
920
|
}
|
|
921
921
|
function d(v) {
|
|
922
|
-
const { options: w = {}, optionsConfig:
|
|
922
|
+
const { options: w = {}, optionsConfig: F = {} } = v != null ? v : {};
|
|
923
923
|
if (Object.keys(w).length === 0)
|
|
924
924
|
return null;
|
|
925
|
-
const A = { ...
|
|
925
|
+
const A = { ...F };
|
|
926
926
|
return Object.keys(A).forEach((y) => {
|
|
927
927
|
A[y] = typeof A[y] != "object" ? { type: A[y], model: y } : A[y];
|
|
928
928
|
}), Object.keys(w).forEach((y) => {
|
|
929
|
-
var D,
|
|
929
|
+
var D, x;
|
|
930
930
|
let g = { type: "string", model: y }, E = A[y] || cn[y] || typeof w[y];
|
|
931
931
|
(!E || E === "undefined") && (E = "string"), typeof E == "object" ? g = { ...g, ...E } : g.type = E, A[y] = {
|
|
932
932
|
...g,
|
|
933
933
|
show: g.show !== !1,
|
|
934
934
|
tooltip: (D = w.tooltip) != null ? D : g.tooltip,
|
|
935
|
-
options: (
|
|
935
|
+
options: (x = w.options) != null ? x : g.options
|
|
936
936
|
};
|
|
937
937
|
}), A;
|
|
938
938
|
}
|
|
939
939
|
function r(v) {
|
|
940
940
|
const w = { len: 0, isDelete: !0, isCopy: !0, isHidden: !1 };
|
|
941
941
|
if (v) {
|
|
942
|
-
const [
|
|
942
|
+
const [F] = st(v), A = i(F);
|
|
943
943
|
Array.isArray(A) && (w.len = A.length);
|
|
944
944
|
}
|
|
945
945
|
return w;
|
|
946
946
|
}
|
|
947
947
|
return { updateRootPathValue: a, getWidget: i, getWidgetProperty: r, getWidgetPanelProperty: d, useField: (v) => {
|
|
948
|
-
const w = ot(),
|
|
948
|
+
const w = ot(), F = (E) => {
|
|
949
949
|
w.value = E;
|
|
950
950
|
}, A = U(() => i(v.value)), y = () => {
|
|
951
|
-
var D,
|
|
951
|
+
var D, x, z;
|
|
952
952
|
const E = A.value;
|
|
953
|
-
E && E.model ?
|
|
953
|
+
E && E.model ? F((z = (x = o.value[E.model]) != null ? x : (D = E.options) == null ? void 0 : D.defaultValue) != null ? z : void 0) : F(void 0);
|
|
954
954
|
}, g = () => {
|
|
955
955
|
const E = A.value;
|
|
956
956
|
E && E.model && (o.value[E.model] = w.value);
|
|
957
957
|
};
|
|
958
|
-
return ee(v, y, { immediate: !0 }), ee(() => A.value && A.value.model && o.value[A.value.model],
|
|
958
|
+
return ee(v, y, { immediate: !0 }), ee(() => A.value && A.value.model && o.value[A.value.model], F), ee(w, (E) => {
|
|
959
959
|
const D = A.value;
|
|
960
960
|
(D == null ? void 0 : D.model) && D.options && (D.options.defaultValue = E), g();
|
|
961
961
|
}), [w];
|
|
962
962
|
}, useWidgetOperation: () => {
|
|
963
|
-
const v = (D,
|
|
964
|
-
u.value[D] =
|
|
963
|
+
const v = (D, x) => {
|
|
964
|
+
u.value[D] = x;
|
|
965
965
|
}, w = (D) => {
|
|
966
966
|
l.value = D;
|
|
967
|
-
},
|
|
967
|
+
}, F = (D) => l.value === D, A = () => {
|
|
968
968
|
e.value = [], l.value = null;
|
|
969
969
|
}, y = () => ({
|
|
970
970
|
config: { ...u.value },
|
|
@@ -975,46 +975,46 @@ function de() {
|
|
|
975
975
|
function g(D) {
|
|
976
976
|
if (!D)
|
|
977
977
|
return;
|
|
978
|
-
const [
|
|
979
|
-
j && Array.isArray(j) && (j.splice(z, 1), a(
|
|
978
|
+
const [x, z = 0] = st(D), j = i(x);
|
|
979
|
+
j && Array.isArray(j) && (j.splice(z, 1), a(x, j), j.length > 0 && w(`${x}[${Math.min(z, j.length - 1)}]`));
|
|
980
980
|
}
|
|
981
981
|
function E(D) {
|
|
982
982
|
if (!D)
|
|
983
983
|
return;
|
|
984
|
-
const
|
|
985
|
-
if (
|
|
986
|
-
const oe = Tt(
|
|
984
|
+
const x = i(D), [z, j = 0] = st(D), T = i(z);
|
|
985
|
+
if (x && T && Array.isArray(T)) {
|
|
986
|
+
const oe = Tt(x, {});
|
|
987
987
|
T.splice(j, 0, oe), a(z, T), w(`${z}[${j + 1}]`);
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
|
-
return { setConfig: v, onSelected: w, hasSelected:
|
|
990
|
+
return { setConfig: v, onSelected: w, hasSelected: F, onReset: A, toJson: y, onDelete: g, onCopy: E };
|
|
991
991
|
}, useDraggableOperation: (v) => {
|
|
992
992
|
function w(g) {
|
|
993
993
|
if (!(v != null && v.value))
|
|
994
994
|
return {};
|
|
995
|
-
const { originalEvent: E } = g, { clientX: D, clientY:
|
|
996
|
-
return { left: `${D - j}px`, top: `${
|
|
995
|
+
const { originalEvent: E } = g, { clientX: D, clientY: x } = E, { top: z, left: j } = v.value.getBoundingClientRect();
|
|
996
|
+
return { left: `${D - j}px`, top: `${x - z}px` };
|
|
997
997
|
}
|
|
998
|
-
const
|
|
998
|
+
const F = (g, E) => {
|
|
999
999
|
a(g, E), l.value = g;
|
|
1000
1000
|
};
|
|
1001
1001
|
function A(g, E = null) {
|
|
1002
1002
|
var j, T;
|
|
1003
1003
|
if (!g)
|
|
1004
1004
|
return;
|
|
1005
|
-
const D = g.newIndex,
|
|
1006
|
-
|
|
1007
|
-
const z =
|
|
1008
|
-
|
|
1005
|
+
const D = g.newIndex, x = gt(E ? (T = (j = i(E)) == null ? void 0 : j.children) != null ? T : [] : e.value);
|
|
1006
|
+
x[D] = Tt(x[D], { options: w(g) }), x[D].children && (x[D] = { ...x[D], children: [...x[D].children] });
|
|
1007
|
+
const z = Fe(E, D);
|
|
1008
|
+
F(`${z}`, x[D]);
|
|
1009
1009
|
}
|
|
1010
1010
|
function y(g, E = null) {
|
|
1011
1011
|
var j, T;
|
|
1012
1012
|
if (!g)
|
|
1013
1013
|
return;
|
|
1014
|
-
const D = g.newIndex,
|
|
1015
|
-
|
|
1016
|
-
const z =
|
|
1017
|
-
|
|
1014
|
+
const D = g.newIndex, x = gt(E ? (T = (j = i(E)) == null ? void 0 : j.children) != null ? T : [] : e.value);
|
|
1015
|
+
x[D].options = { ...x[D].options, ...w(g) };
|
|
1016
|
+
const z = Fe(E, D);
|
|
1017
|
+
F(`${z}`, x[D]);
|
|
1018
1018
|
}
|
|
1019
1019
|
return {
|
|
1020
1020
|
onAddWidget: A,
|
|
@@ -1022,7 +1022,7 @@ function de() {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
} };
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1025
|
+
function ti(...e) {
|
|
1026
1026
|
e.forEach((o, u) => console.log(`%c#${u + 1}: %o`, "color: #1672f6 ;", o));
|
|
1027
1027
|
}
|
|
1028
1028
|
function Ve(e) {
|
|
@@ -1037,16 +1037,16 @@ function It(e) {
|
|
|
1037
1037
|
function fn(e) {
|
|
1038
1038
|
return Ve(e) === "Number" && String(e) !== "NaN";
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function oi(e) {
|
|
1041
1041
|
return Ve(e) === "Object" && Object.keys(e).length === 0;
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function ni(e) {
|
|
1044
1044
|
return Ve(e) === "Array" && e.length === 0;
|
|
1045
1045
|
}
|
|
1046
1046
|
function vt(e) {
|
|
1047
1047
|
return Array.isArray(e) ? e : [e];
|
|
1048
1048
|
}
|
|
1049
|
-
const
|
|
1049
|
+
const li = (e) => {
|
|
1050
1050
|
try {
|
|
1051
1051
|
let o = [];
|
|
1052
1052
|
const u = JSON.stringify(e, (t, l) => {
|
|
@@ -1076,17 +1076,17 @@ function ao(e, o = []) {
|
|
|
1076
1076
|
o.includes(t) && (u[t] = e[t]);
|
|
1077
1077
|
}), u;
|
|
1078
1078
|
}
|
|
1079
|
-
const
|
|
1079
|
+
const ui = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
|
|
1080
1080
|
function so(e) {
|
|
1081
1081
|
return Array.isArray(e) ? e : e.replace(/\[/g, ".").replace(/\]/g, "").split(".");
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function ii(e, o, u) {
|
|
1084
1084
|
return typeof e != "object" ? u : so(o).reduce((t, l) => (t || {})[l], e) || u;
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function ai(e, o, u) {
|
|
1087
1087
|
return typeof e != "object" || so(o).reduce((t, l, n, a) => n === a.length - 1 ? (t[l] = u, null) : (l in t || (t[l] = /^[0-9]{1,}$/.test(a[n + 1]) ? [] : {}), t[l]), e), e;
|
|
1088
1088
|
}
|
|
1089
|
-
const
|
|
1089
|
+
const si = (e, o = "") => {
|
|
1090
1090
|
if (/(chrome|safari|firefox)/g.test(navigator.userAgent.toLowerCase())) {
|
|
1091
1091
|
const u = document.createElement("a");
|
|
1092
1092
|
if (u.href = e, u.download !== void 0 && (o = o || e.substring(e.lastIndexOf("/") + 1, e.length), u.download = o), console.log(`download: ${o}`), document.createEvent) {
|
|
@@ -1103,7 +1103,7 @@ function Ie(e, o) {
|
|
|
1103
1103
|
u.value = { ...e, ...l != null ? l : {} }, (n = o == null ? void 0 : o.value) != null && n.resetFields && o.value.resetFields();
|
|
1104
1104
|
}];
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function ri(e, o, u = "warning") {
|
|
1107
1107
|
const t = o != null ? o : { okButtonProps: { status: "danger" }, okText: "\u5220\u9664" };
|
|
1108
1108
|
Zt[u]({
|
|
1109
1109
|
title: "\u5220\u9664\u63D0\u793A",
|
|
@@ -1141,7 +1141,7 @@ function ro(e, o, u) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
return t;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function di(e, o, u = !0) {
|
|
1145
1145
|
if (typeof e == "function" || typeof o == "function")
|
|
1146
1146
|
throw new Error("Cannot merge config in form of callback");
|
|
1147
1147
|
return ro(e, o);
|
|
@@ -1177,13 +1177,13 @@ async function mn(e, o, u) {
|
|
|
1177
1177
|
if (C.length || (C = [o]), console.log(`Create a ${C.length}-page file named ${n}`), typeof (u == null ? void 0 : u.success) == "function")
|
|
1178
1178
|
u.success(f, C);
|
|
1179
1179
|
else {
|
|
1180
|
-
let v, w = new Date().getTime(),
|
|
1180
|
+
let v, w = new Date().getTime(), F = 0, A = 0;
|
|
1181
1181
|
C.forEach((y, g) => {
|
|
1182
1182
|
f = f.from(y).toContainer().toCanvas().toPdf().get("pdf").then((E) => {
|
|
1183
1183
|
if (C.length > 1) {
|
|
1184
|
-
const D = new Date().getTime(),
|
|
1185
|
-
|
|
1186
|
-
const z =
|
|
1184
|
+
const D = new Date().getTime(), x = D - w;
|
|
1185
|
+
F += x, A += 1;
|
|
1186
|
+
const z = F / A, j = C.length - (g + 1), T = (j * z / 1e3).toFixed(2);
|
|
1187
1187
|
w = D, j === 0 ? v && v.close() : A % 5 === 0 && (v = eo.loading({
|
|
1188
1188
|
id: "MessageLoadingDownloadPdf",
|
|
1189
1189
|
content: `\u521B\u5EFA${n},\u7EA6\u5269 ${T}s`,
|
|
@@ -1251,7 +1251,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1251
1251
|
}, Symbol.toStringTag, { value: "Module" })), yn = {
|
|
1252
1252
|
__name: "barcode",
|
|
1253
1253
|
setup(e) {
|
|
1254
|
-
return (o, u) => (c(), B(co,
|
|
1254
|
+
return (o, u) => (c(), B(co, xe(nt(o.$props)), null, 16));
|
|
1255
1255
|
}
|
|
1256
1256
|
}, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1257
1257
|
__proto__: null,
|
|
@@ -1284,7 +1284,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1284
1284
|
index: f
|
|
1285
1285
|
}, () => [
|
|
1286
1286
|
s(Ke, {
|
|
1287
|
-
path: _(
|
|
1287
|
+
path: _(Fe)(o.path, f),
|
|
1288
1288
|
"is-edit": o.isEdit
|
|
1289
1289
|
}, null, 8, ["path", "is-edit"])
|
|
1290
1290
|
])
|
|
@@ -1351,7 +1351,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1351
1351
|
}, {
|
|
1352
1352
|
item: p(({ index: i }) => [
|
|
1353
1353
|
s(Ke, {
|
|
1354
|
-
path: _(
|
|
1354
|
+
path: _(Fe)(o.path, i),
|
|
1355
1355
|
"is-edit": o.isEdit,
|
|
1356
1356
|
class: "arco-col arco-col-12"
|
|
1357
1357
|
}, null, 8, ["path", "is-edit"])
|
|
@@ -1366,7 +1366,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1366
1366
|
}), En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1367
1367
|
__proto__: null,
|
|
1368
1368
|
default: An
|
|
1369
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1369
|
+
}, Symbol.toStringTag, { value: "Module" })), xn = /* @__PURE__ */ q({
|
|
1370
1370
|
__name: "grid",
|
|
1371
1371
|
props: {
|
|
1372
1372
|
path: {},
|
|
@@ -1387,7 +1387,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1387
1387
|
}, {
|
|
1388
1388
|
default: p(() => [
|
|
1389
1389
|
s(Ke, {
|
|
1390
|
-
path: _(
|
|
1390
|
+
path: _(Fe)(o.path, r),
|
|
1391
1391
|
"is-edit": o.isEdit
|
|
1392
1392
|
}, null, 8, ["path", "is-edit"])
|
|
1393
1393
|
]),
|
|
@@ -1398,9 +1398,9 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1398
1398
|
})) : W("", !0);
|
|
1399
1399
|
};
|
|
1400
1400
|
}
|
|
1401
|
-
}),
|
|
1401
|
+
}), Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1402
1402
|
__proto__: null,
|
|
1403
|
-
default:
|
|
1403
|
+
default: xn
|
|
1404
1404
|
}, Symbol.toStringTag, { value: "Module" })), kn = /* @__PURE__ */ q({
|
|
1405
1405
|
__name: "hline",
|
|
1406
1406
|
props: {
|
|
@@ -1486,7 +1486,7 @@ const _n = ["src", "onerror"], Wt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1486
1486
|
}), {
|
|
1487
1487
|
item: p(({ index: m }) => [
|
|
1488
1488
|
s(Ke, {
|
|
1489
|
-
path: _(
|
|
1489
|
+
path: _(Fe)(o.path, m),
|
|
1490
1490
|
"is-edit": o.isEdit
|
|
1491
1491
|
}, null, 8, ["path", "is-edit"])
|
|
1492
1492
|
]),
|
|
@@ -1570,13 +1570,13 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1570
1570
|
},
|
|
1571
1571
|
setup(e) {
|
|
1572
1572
|
const o = e, { path: u } = ke(o), { config: t } = Ue(), { useField: l, getWidget: n } = de(), a = U(() => n(u.value)), [i] = l(u), d = U(() => {
|
|
1573
|
-
var m, C, v, w,
|
|
1573
|
+
var m, C, v, w, F;
|
|
1574
1574
|
return ((m = a.value) == null ? void 0 : m.options) ? {
|
|
1575
1575
|
field: a.value.model,
|
|
1576
1576
|
label: a.value.name,
|
|
1577
1577
|
rules: a.value.rules || ((C = a.value.options) != null && C.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${a.value.name}` }] : []),
|
|
1578
1578
|
tooltip: (v = a.value.options) == null ? void 0 : v.tooltip,
|
|
1579
|
-
labelColFlex: (
|
|
1579
|
+
labelColFlex: (F = (w = a.value.options) == null ? void 0 : w.labelWidth) != null ? F : t.value.labelWidth
|
|
1580
1580
|
} : {};
|
|
1581
1581
|
}), r = U(() => {
|
|
1582
1582
|
var m;
|
|
@@ -1591,11 +1591,11 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1591
1591
|
});
|
|
1592
1592
|
return (f, m) => {
|
|
1593
1593
|
const C = b("AFormItem");
|
|
1594
|
-
return a.value ? (c(), B(C,
|
|
1594
|
+
return a.value ? (c(), B(C, xe(M({ key: 0 }, d.value)), {
|
|
1595
1595
|
default: p(() => [
|
|
1596
1596
|
(c(), B(ye(a.value.type), M({
|
|
1597
1597
|
modelValue: _(i),
|
|
1598
|
-
"onUpdate:modelValue": m[0] || (m[0] = (v) =>
|
|
1598
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => xt(i) ? i.value = v : null),
|
|
1599
1599
|
size: "small"
|
|
1600
1600
|
}, r.value), null, 16, ["modelValue"]))
|
|
1601
1601
|
]),
|
|
@@ -1606,7 +1606,7 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1606
1606
|
}), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1607
1607
|
__proto__: null,
|
|
1608
1608
|
default: po
|
|
1609
|
-
}, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Object.assign({ "./barcode.vue": bn, "./card.vue": Cn, "./form.vue": En, "./grid.vue":
|
|
1609
|
+
}, Symbol.toStringTag, { value: "Module" })), rt = /* @__PURE__ */ Object.assign({ "./barcode.vue": bn, "./card.vue": Cn, "./form.vue": En, "./grid.vue": Fn, "./hline.vue": Bn, "./image.vue": On, "./qrcode.vue": vn, "./subform.vue": Vn, "./table.vue": jn, "./text.vue": Tn, "./unknown.vue": In, "./view.vue": hn });
|
|
1610
1610
|
function Nt(e) {
|
|
1611
1611
|
const o = Object.keys(rt).find((u) => u.indexOf(`${e}.vue`) !== -1);
|
|
1612
1612
|
return o && rt[o] ? rt[o].default : po;
|
|
@@ -1645,16 +1645,16 @@ const Wn = {
|
|
|
1645
1645
|
function w(y = !1) {
|
|
1646
1646
|
return { "fe--widget-view": !0, "is-selected": m(), "fe--widget-view-fixed": y };
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function F(y = !1) {
|
|
1649
1649
|
return o.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed": y } : {};
|
|
1650
1650
|
}
|
|
1651
1651
|
function A() {
|
|
1652
1652
|
return o.isEdit ? {} : v();
|
|
1653
1653
|
}
|
|
1654
1654
|
return (y, g) => {
|
|
1655
|
-
const E = b("icon-drag-dot-vertical"), D = b("icon-copy"),
|
|
1655
|
+
const E = b("icon-drag-dot-vertical"), D = b("icon-copy"), x = b("icon-delete");
|
|
1656
1656
|
return r.value ? (c(), O("div", M({ key: 0 }, C(r.value), {
|
|
1657
|
-
class:
|
|
1657
|
+
class: F(r.value.fixed),
|
|
1658
1658
|
style: A()
|
|
1659
1659
|
}), [
|
|
1660
1660
|
o.isEdit ? (c(), O("div", {
|
|
@@ -1688,12 +1688,12 @@ const Wn = {
|
|
|
1688
1688
|
class: "fe--widget-tool-btn",
|
|
1689
1689
|
onClick: g[1] || (g[1] = (z) => _(t)(o.path))
|
|
1690
1690
|
}, [
|
|
1691
|
-
s(
|
|
1691
|
+
s(x)
|
|
1692
1692
|
])) : W("", !0)
|
|
1693
1693
|
]))
|
|
1694
1694
|
])) : W("", !0),
|
|
1695
|
-
(c(), B(ye(_(Nt)(r.value.type)),
|
|
1696
|
-
], 6)) : (c(), B(ye(_(Nt)(r.value.type)),
|
|
1695
|
+
(c(), B(ye(_(Nt)(r.value.type)), xe(nt(o)), null, 16))
|
|
1696
|
+
], 6)) : (c(), B(ye(_(Nt)(r.value.type)), xe(M({ key: 1 }, o)), null, 16))
|
|
1697
1697
|
], 16)) : W("", !0);
|
|
1698
1698
|
};
|
|
1699
1699
|
}
|
|
@@ -1723,7 +1723,7 @@ const Wn = {
|
|
|
1723
1723
|
}, [
|
|
1724
1724
|
s(_(Ne), M({
|
|
1725
1725
|
modelValue: _(a),
|
|
1726
|
-
"onUpdate:modelValue": f[0] || (f[0] = (C) =>
|
|
1726
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => xt(a) ? a.value = C : null),
|
|
1727
1727
|
class: { "fe--widget-content": !0, "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
|
|
1728
1728
|
disabled: !o.isEdit,
|
|
1729
1729
|
group: { name: "orchisky", put: !0 }
|
|
@@ -1734,7 +1734,7 @@ const Wn = {
|
|
|
1734
1734
|
item: p(({ element: C, index: v }) => [
|
|
1735
1735
|
C && C.key ? (c(), B(Ke, {
|
|
1736
1736
|
key: 0,
|
|
1737
|
-
path: _(
|
|
1737
|
+
path: _(Fe)(null, v),
|
|
1738
1738
|
"is-edit": o.isEdit
|
|
1739
1739
|
}, null, 8, ["path", "is-edit"])) : W("", !0)
|
|
1740
1740
|
]),
|
|
@@ -1762,7 +1762,7 @@ function fo() {
|
|
|
1762
1762
|
const i = [], d = (r, f) => {
|
|
1763
1763
|
r.forEach((m, C) => {
|
|
1764
1764
|
var w;
|
|
1765
|
-
const v =
|
|
1765
|
+
const v = Fe(f != null ? f : null, C);
|
|
1766
1766
|
m.model && i.push({ ...m, key: v, title: l(m) }), (w = m.children) != null && w.length && d(m.children, v);
|
|
1767
1767
|
});
|
|
1768
1768
|
};
|
|
@@ -1787,8 +1787,8 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1787
1787
|
emits: ["save"],
|
|
1788
1788
|
setup(e, { emit: o }) {
|
|
1789
1789
|
const { useWidgetOperation: u } = de(), { selectedArrayWidget: t } = fo(), { setConfig: l, toJson: n, onSelected: a, onReset: i } = u(), d = K(!1);
|
|
1790
|
-
function r([w,
|
|
1791
|
-
l("width", w), l("height",
|
|
1790
|
+
function r([w, F]) {
|
|
1791
|
+
l("width", w), l("height", F);
|
|
1792
1792
|
}
|
|
1793
1793
|
function f(w) {
|
|
1794
1794
|
w === "A4" && r(["210mm", "297mm"]), w === "PC" && r(["1920px", "1080px"]), w === "Auto" && r(["100%", "100%"]), w === "Mobile" && r(["375px", "100%"]);
|
|
@@ -1811,19 +1811,19 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1811
1811
|
}
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
|
-
return (w,
|
|
1815
|
-
const A = b("icon-desktop"), y = b("a-button"), g = b("icon-computer"), E = b("icon-drive-file"), D = b("icon-mobile"),
|
|
1814
|
+
return (w, F) => {
|
|
1815
|
+
const A = b("icon-desktop"), y = b("a-button"), g = b("icon-computer"), E = b("icon-drive-file"), D = b("icon-mobile"), x = b("a-space"), z = b("icon-save"), j = b("icon-eye"), T = b("icon-eraser"), oe = b("icon-right"), ce = b("a-link"), G = b("a-breadcrumb-item"), re = b("a-breadcrumb"), h = b("a-drawer");
|
|
1816
1816
|
return c(), O("div", Nn, [
|
|
1817
1817
|
k("div", Un, [
|
|
1818
1818
|
k("div", Kn, [
|
|
1819
1819
|
k("div", Ln, [
|
|
1820
1820
|
H(w.$slots, "setWidthHeight", { setWidthHeight: r }, () => [
|
|
1821
|
-
s(
|
|
1821
|
+
s(x, { size: "mini" }, {
|
|
1822
1822
|
default: p(() => [
|
|
1823
1823
|
s(y, {
|
|
1824
1824
|
size: "mini",
|
|
1825
1825
|
title: "\u81EA\u52A8",
|
|
1826
|
-
onClick:
|
|
1826
|
+
onClick: F[0] || (F[0] = (S) => f("Auto"))
|
|
1827
1827
|
}, {
|
|
1828
1828
|
icon: p(() => [
|
|
1829
1829
|
s(A, { size: 14 })
|
|
@@ -1833,7 +1833,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1833
1833
|
s(y, {
|
|
1834
1834
|
size: "mini",
|
|
1835
1835
|
title: " \u62A5\u8868",
|
|
1836
|
-
onClick:
|
|
1836
|
+
onClick: F[1] || (F[1] = (S) => f("PC"))
|
|
1837
1837
|
}, {
|
|
1838
1838
|
icon: p(() => [
|
|
1839
1839
|
s(g, { size: 14 })
|
|
@@ -1843,7 +1843,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1843
1843
|
s(y, {
|
|
1844
1844
|
title: "A4",
|
|
1845
1845
|
size: "mini",
|
|
1846
|
-
onClick:
|
|
1846
|
+
onClick: F[2] || (F[2] = (S) => f("A4"))
|
|
1847
1847
|
}, {
|
|
1848
1848
|
icon: p(() => [
|
|
1849
1849
|
s(E, { size: 14 })
|
|
@@ -1853,7 +1853,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1853
1853
|
s(y, {
|
|
1854
1854
|
size: "mini",
|
|
1855
1855
|
title: "\u624B\u673A",
|
|
1856
|
-
onClick:
|
|
1856
|
+
onClick: F[3] || (F[3] = (S) => f("Mobile"))
|
|
1857
1857
|
}, {
|
|
1858
1858
|
icon: p(() => [
|
|
1859
1859
|
s(D, { size: 14 })
|
|
@@ -1866,12 +1866,12 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1866
1866
|
])
|
|
1867
1867
|
]),
|
|
1868
1868
|
k("div", null, [
|
|
1869
|
-
s(
|
|
1869
|
+
s(x, { size: "mini" }, {
|
|
1870
1870
|
default: p(() => [
|
|
1871
1871
|
s(y, {
|
|
1872
1872
|
size: "mini",
|
|
1873
1873
|
title: "\u4FDD\u5B58",
|
|
1874
|
-
onClick:
|
|
1874
|
+
onClick: F[4] || (F[4] = (S) => C())
|
|
1875
1875
|
}, {
|
|
1876
1876
|
icon: p(() => [
|
|
1877
1877
|
s(z, { size: 14 })
|
|
@@ -1881,7 +1881,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1881
1881
|
s(y, {
|
|
1882
1882
|
size: "mini",
|
|
1883
1883
|
title: "\u9884\u89C8",
|
|
1884
|
-
onClick:
|
|
1884
|
+
onClick: F[5] || (F[5] = (S) => d.value = !0)
|
|
1885
1885
|
}, {
|
|
1886
1886
|
icon: p(() => [
|
|
1887
1887
|
s(j, { size: 14 })
|
|
@@ -1891,7 +1891,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1891
1891
|
s(y, {
|
|
1892
1892
|
size: "mini",
|
|
1893
1893
|
title: "\u6E05\u7A7A",
|
|
1894
|
-
onClick:
|
|
1894
|
+
onClick: F[6] || (F[6] = (S) => v())
|
|
1895
1895
|
}, {
|
|
1896
1896
|
icon: p(() => [
|
|
1897
1897
|
s(T, { size: 14 })
|
|
@@ -1910,7 +1910,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1910
1910
|
k("div", Gn, [
|
|
1911
1911
|
k("div", Jn, [
|
|
1912
1912
|
s(re, {
|
|
1913
|
-
onClick:
|
|
1913
|
+
onClick: F[7] || (F[7] = Pe(() => {
|
|
1914
1914
|
}, ["stop"]))
|
|
1915
1915
|
}, {
|
|
1916
1916
|
separator: p(() => [
|
|
@@ -1922,7 +1922,7 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1922
1922
|
s(G, null, {
|
|
1923
1923
|
default: p(() => [
|
|
1924
1924
|
s(ce, null, {
|
|
1925
|
-
default: p(() =>
|
|
1925
|
+
default: p(() => F[9] || (F[9] = [
|
|
1926
1926
|
N("\u7ED3\u6784\u5BFC\u822A")
|
|
1927
1927
|
])),
|
|
1928
1928
|
_: 1
|
|
@@ -1952,14 +1952,14 @@ const Nn = { class: "u-h u-card" }, Un = { class: "u-card__hd u-aside__hd" }, Kn
|
|
|
1952
1952
|
]),
|
|
1953
1953
|
s(h, {
|
|
1954
1954
|
visible: d.value,
|
|
1955
|
-
"onUpdate:visible":
|
|
1955
|
+
"onUpdate:visible": F[8] || (F[8] = (S) => d.value = S),
|
|
1956
1956
|
placement: "bottom",
|
|
1957
1957
|
height: "80%",
|
|
1958
1958
|
footer: !1,
|
|
1959
1959
|
class: "fe--drawer",
|
|
1960
1960
|
"unmount-on-close": ""
|
|
1961
1961
|
}, {
|
|
1962
|
-
title: p(() =>
|
|
1962
|
+
title: p(() => F[10] || (F[10] = [
|
|
1963
1963
|
N("\u9884\u89C8")
|
|
1964
1964
|
])),
|
|
1965
1965
|
default: p(() => [
|
|
@@ -2386,24 +2386,24 @@ const pl = { key: 1 }, fl = {
|
|
|
2386
2386
|
"module-config": u.moduleConfig
|
|
2387
2387
|
}, null, 8, ["module-config"])) : w === 1 ? (c(), O("div", pl, [
|
|
2388
2388
|
_(o).length ? (c(), O("div", fl, [
|
|
2389
|
-
(c(!0), O(Y, null, pe(_(o), (
|
|
2389
|
+
(c(!0), O(Y, null, pe(_(o), (F, A) => (c(), O("div", {
|
|
2390
2390
|
key: A,
|
|
2391
2391
|
class: se(["arco-tree-node arco-tree-node-is-leaf", {
|
|
2392
|
-
"arco-tree-node-selected": _(a)(
|
|
2392
|
+
"arco-tree-node-selected": _(a)(F.key)
|
|
2393
2393
|
}]),
|
|
2394
|
-
onClick: Pe((y) => _(n)(
|
|
2394
|
+
onClick: Pe((y) => _(n)(F.key), ["stop"])
|
|
2395
2395
|
}, [
|
|
2396
2396
|
k("div", gl, [
|
|
2397
2397
|
k("div", _l, [
|
|
2398
|
-
(c(), B(ye(
|
|
2398
|
+
(c(), B(ye(F.icon), null, {
|
|
2399
2399
|
default: p(() => [
|
|
2400
2400
|
s(r)
|
|
2401
2401
|
]),
|
|
2402
2402
|
_: 2
|
|
2403
2403
|
}, 1024))
|
|
2404
2404
|
]),
|
|
2405
|
-
k("div", vl, Z(
|
|
2406
|
-
k("code", yl, Z(
|
|
2405
|
+
k("div", vl, Z(F.title) + Z(F.title) + Z(F.title), 1),
|
|
2406
|
+
k("code", yl, Z(F.model), 1)
|
|
2407
2407
|
])
|
|
2408
2408
|
], 10, ml))), 128))
|
|
2409
2409
|
])) : (c(), B(f, { key: 1 }))
|
|
@@ -2695,7 +2695,7 @@ const pl = { key: 1 }, fl = {
|
|
|
2695
2695
|
options: i.value
|
|
2696
2696
|
})) != null ? A : {};
|
|
2697
2697
|
}
|
|
2698
|
-
),
|
|
2698
|
+
), F = U(() => {
|
|
2699
2699
|
const A = o(m.value);
|
|
2700
2700
|
if (A) {
|
|
2701
2701
|
const y = [
|
|
@@ -2729,15 +2729,15 @@ const pl = { key: 1 }, fl = {
|
|
|
2729
2729
|
return Object.keys(A).forEach((g) => {
|
|
2730
2730
|
let E = !1;
|
|
2731
2731
|
const D = A[g];
|
|
2732
|
-
y.forEach((
|
|
2733
|
-
!E &&
|
|
2732
|
+
y.forEach((x) => {
|
|
2733
|
+
!E && x.filterFunc(g, D) && (x.list.push(D), E = !0);
|
|
2734
2734
|
});
|
|
2735
2735
|
}), [...y].filter((g) => typeof g.showFunc != "function" || g.showFunc()).sort((g, E) => g.sort - E.sort).map((g) => (delete g.filterFunc, delete g.showFunc, g));
|
|
2736
2736
|
}
|
|
2737
2737
|
return null;
|
|
2738
2738
|
});
|
|
2739
2739
|
return ee(d, f), (A, y) => {
|
|
2740
|
-
const g = b("AForm"), E = b("a-checkbox"), D = b("a-space"),
|
|
2740
|
+
const g = b("AForm"), E = b("a-checkbox"), D = b("a-space"), x = b("a-empty"), z = b("icon-right"), j = b("icon-left"), T = b("a-button");
|
|
2741
2741
|
return c(), O("div", {
|
|
2742
2742
|
class: "u-page__panel fe--panels",
|
|
2743
2743
|
style: le({ width: n.value ? "0px" : "219px" })
|
|
@@ -2784,7 +2784,7 @@ const pl = { key: 1 }, fl = {
|
|
|
2784
2784
|
layout: "vertical"
|
|
2785
2785
|
}, {
|
|
2786
2786
|
default: p(() => [
|
|
2787
|
-
(c(!0), O(Y, null, pe(
|
|
2787
|
+
(c(!0), O(Y, null, pe(F.value, (G, re) => (c(), O(Y, { key: re }, [
|
|
2788
2788
|
G.list.length || G.type === "base" ? (c(), O(Y, { key: 0 }, [
|
|
2789
2789
|
G.type === "boolean" ? (c(), B(Ye, {
|
|
2790
2790
|
key: 0,
|
|
@@ -2853,7 +2853,7 @@ const pl = { key: 1 }, fl = {
|
|
|
2853
2853
|
], 64))), 128))
|
|
2854
2854
|
]),
|
|
2855
2855
|
_: 1
|
|
2856
|
-
}, 8, ["model"])) : (c(), B(
|
|
2856
|
+
}, 8, ["model"])) : (c(), B(x, { key: 1 }))
|
|
2857
2857
|
], 64))
|
|
2858
2858
|
];
|
|
2859
2859
|
}),
|
|
@@ -2876,10 +2876,10 @@ const pl = { key: 1 }, fl = {
|
|
|
2876
2876
|
};
|
|
2877
2877
|
}
|
|
2878
2878
|
});
|
|
2879
|
-
const
|
|
2879
|
+
const xl = {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: "u-aside"
|
|
2882
|
-
},
|
|
2882
|
+
}, Fl = { class: "u-page u-page--row" }, kl = {
|
|
2883
2883
|
class: "u-main",
|
|
2884
2884
|
style: { padding: "0" }
|
|
2885
2885
|
}, Bl = /* @__PURE__ */ q({
|
|
@@ -2913,8 +2913,8 @@ const Fl = {
|
|
|
2913
2913
|
function l(n) {
|
|
2914
2914
|
t.readonly || u("save", n);
|
|
2915
2915
|
}
|
|
2916
|
-
return (n, a) => t.readonly ? (c(), B(yt, { key: 1 })) : (c(), O("div",
|
|
2917
|
-
k("div",
|
|
2916
|
+
return (n, a) => t.readonly ? (c(), B(yt, { key: 1 })) : (c(), O("div", xl, [
|
|
2917
|
+
k("div", Fl, [
|
|
2918
2918
|
s(bl, {
|
|
2919
2919
|
"module-config": t.moduleConfig
|
|
2920
2920
|
}, null, 8, ["module-config"]),
|
|
@@ -3138,7 +3138,7 @@ Object.keys(Lt).forEach((e) => {
|
|
|
3138
3138
|
o && St.push(o);
|
|
3139
3139
|
});
|
|
3140
3140
|
St.sort((e, o) => e.order - o.order);
|
|
3141
|
-
const
|
|
3141
|
+
const ci = /* @__PURE__ */ q({
|
|
3142
3142
|
__name: "index",
|
|
3143
3143
|
setup(e, { expose: o }) {
|
|
3144
3144
|
const u = K();
|
|
@@ -3166,7 +3166,7 @@ const lt = (e, o) => {
|
|
|
3166
3166
|
function Rl(e, o) {
|
|
3167
3167
|
const u = b("a-date-picker"), t = b("a-range-picker");
|
|
3168
3168
|
return c(), O("div", null, [
|
|
3169
|
-
e.$attrs.multiple !== !0 ? (c(), B(u,
|
|
3169
|
+
e.$attrs.multiple !== !0 ? (c(), B(u, xe(M({ key: 0 }, e.$attrs)), null, 16)) : (c(), B(t, xe(M({ key: 1 }, e.$attrs)), null, 16))
|
|
3170
3170
|
]);
|
|
3171
3171
|
}
|
|
3172
3172
|
const jl = /* @__PURE__ */ lt(Vl, [["render", Rl]]), Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3175,7 +3175,7 @@ const jl = /* @__PURE__ */ lt(Vl, [["render", Rl]]), Ml = /* @__PURE__ */ Object
|
|
|
3175
3175
|
}, Symbol.toStringTag, { value: "Module" })), Tl = {};
|
|
3176
3176
|
function Il(e, o) {
|
|
3177
3177
|
const u = b("a-input");
|
|
3178
|
-
return c(), B(u,
|
|
3178
|
+
return c(), B(u, xe(nt(e.$attrs)), null, 16);
|
|
3179
3179
|
}
|
|
3180
3180
|
const bt = /* @__PURE__ */ lt(Tl, [["render", Il]]), Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3181
3181
|
__proto__: null,
|
|
@@ -3277,13 +3277,13 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3277
3277
|
return Object.assign([], t.options).map(Ze);
|
|
3278
3278
|
}
|
|
3279
3279
|
function a() {
|
|
3280
|
-
return n().filter((
|
|
3280
|
+
return n().filter((x) => x.show !== !1);
|
|
3281
3281
|
}
|
|
3282
3282
|
function i() {
|
|
3283
|
-
const
|
|
3283
|
+
const x = {};
|
|
3284
3284
|
return a().forEach((z) => {
|
|
3285
|
-
|
|
3286
|
-
}),
|
|
3285
|
+
x[z.name] = Ze(z).defaultValue;
|
|
3286
|
+
}), x;
|
|
3287
3287
|
}
|
|
3288
3288
|
const d = U(() => t.size), r = K({ ...i(), ...t.modelValue });
|
|
3289
3289
|
function f() {
|
|
@@ -3296,26 +3296,26 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3296
3296
|
function v() {
|
|
3297
3297
|
m.value.push({ type: "input", name: "", label: "" });
|
|
3298
3298
|
}
|
|
3299
|
-
function w(
|
|
3300
|
-
m.value.splice(
|
|
3299
|
+
function w(x, z) {
|
|
3300
|
+
m.value.splice(x, 1), delete r.value[z];
|
|
3301
3301
|
}
|
|
3302
|
-
const
|
|
3302
|
+
const F = K(!1);
|
|
3303
3303
|
function A() {
|
|
3304
3304
|
l.value && l.value.clearValidate();
|
|
3305
3305
|
}
|
|
3306
3306
|
function y() {
|
|
3307
|
-
|
|
3308
|
-
A(),
|
|
3307
|
+
F.value = !0, m.value = a(), r.value = { ...i(), ...t.modelValue }, setTimeout(() => {
|
|
3308
|
+
A(), F.value = !1;
|
|
3309
3309
|
}, 200);
|
|
3310
3310
|
}
|
|
3311
|
-
const g = U(() => n().map((
|
|
3312
|
-
label:
|
|
3313
|
-
value:
|
|
3314
|
-
disabled: C().some((z) => z.name ===
|
|
3311
|
+
const g = U(() => n().map((x) => ({
|
|
3312
|
+
label: x.label,
|
|
3313
|
+
value: x.name,
|
|
3314
|
+
disabled: C().some((z) => z.name === x.name)
|
|
3315
3315
|
})));
|
|
3316
|
-
function E(
|
|
3316
|
+
function E(x, z) {
|
|
3317
3317
|
const j = n().find((T) => T.name === z);
|
|
3318
|
-
j && (m.value[
|
|
3318
|
+
j && (m.value[x] = Ze(j), r.value[j.name] = m.value[x].defaultValue), r.value = ao(
|
|
3319
3319
|
r.value,
|
|
3320
3320
|
C().map((T) => T.name)
|
|
3321
3321
|
), A();
|
|
@@ -3336,12 +3336,12 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3336
3336
|
}, {})
|
|
3337
3337
|
);
|
|
3338
3338
|
}
|
|
3339
|
-
return (
|
|
3339
|
+
return (x, z) => {
|
|
3340
3340
|
const j = b("icon-refresh"), T = b("a-button"), oe = b("a-select"), ce = b("a-form-item"), G = b("icon-plus-circle"), re = b("icon-delete"), h = b("a-space"), S = b("a-input-group"), R = b("icon-search"), ue = b("a-form");
|
|
3341
3341
|
return c(), O("div", {
|
|
3342
3342
|
class: se(f())
|
|
3343
3343
|
}, [
|
|
3344
|
-
H(
|
|
3344
|
+
H(x.$slots, "head"),
|
|
3345
3345
|
k("div", Ql, [
|
|
3346
3346
|
k("div", Xl, [
|
|
3347
3347
|
s(h, {
|
|
@@ -3355,7 +3355,7 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3355
3355
|
class: "arco-btn-light",
|
|
3356
3356
|
size: d.value,
|
|
3357
3357
|
title: "\u91CD\u7F6E\u641C\u7D22\u6761\u4EF6",
|
|
3358
|
-
loading:
|
|
3358
|
+
loading: F.value,
|
|
3359
3359
|
onClick: z[0] || (z[0] = (ie) => y())
|
|
3360
3360
|
}, {
|
|
3361
3361
|
icon: p(() => [
|
|
@@ -3451,7 +3451,7 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3451
3451
|
]),
|
|
3452
3452
|
_: 2
|
|
3453
3453
|
}, 1032, ["size"]))), 128)),
|
|
3454
|
-
H(
|
|
3454
|
+
H(x.$slots, "default"),
|
|
3455
3455
|
s(h, { size: d.value }, {
|
|
3456
3456
|
default: p(() => [
|
|
3457
3457
|
s(T, {
|
|
@@ -3487,7 +3487,7 @@ const Ql = { class: "u-flex u-flex--start" }, Xl = { class: "u-flex__item" }, Yl
|
|
|
3487
3487
|
};
|
|
3488
3488
|
}
|
|
3489
3489
|
});
|
|
3490
|
-
function
|
|
3490
|
+
function pi(e) {
|
|
3491
3491
|
const o = {};
|
|
3492
3492
|
return e.forEach((u) => {
|
|
3493
3493
|
u.show !== !1 && (o[u.name] = Ze(u).defaultValue);
|
|
@@ -3520,7 +3520,7 @@ const Zl = {
|
|
|
3520
3520
|
["link", "video", "image"],
|
|
3521
3521
|
["clean"]
|
|
3522
3522
|
]
|
|
3523
|
-
},
|
|
3523
|
+
}, fi = /* @__PURE__ */ q({
|
|
3524
3524
|
__name: "index",
|
|
3525
3525
|
props: {
|
|
3526
3526
|
modelValue: { type: String, default: "" },
|
|
@@ -3560,7 +3560,7 @@ const Zl = {
|
|
|
3560
3560
|
}, null, 512));
|
|
3561
3561
|
}
|
|
3562
3562
|
});
|
|
3563
|
-
const
|
|
3563
|
+
const mi = /* @__PURE__ */ q({
|
|
3564
3564
|
__name: "index",
|
|
3565
3565
|
props: {
|
|
3566
3566
|
useErrData: {}
|
|
@@ -3621,7 +3621,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
3621
3621
|
return (R = (S = h == null ? void 0 : h.options) == null ? void 0 : S.options) != null ? R : [];
|
|
3622
3622
|
})
|
|
3623
3623
|
), [C] = Ie(r((h) => (h == null ? void 0 : h.show) !== !1)), [v, w] = Ie(l({ ...r(), ...t.modelValue }), i);
|
|
3624
|
-
function
|
|
3624
|
+
function F(h) {
|
|
3625
3625
|
return h.model ? C.value[h.model] : h.show !== !1;
|
|
3626
3626
|
}
|
|
3627
3627
|
function A() {
|
|
@@ -3655,7 +3655,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
3655
3655
|
C.value[ue] = S;
|
|
3656
3656
|
});
|
|
3657
3657
|
}
|
|
3658
|
-
}, E = (h) => ({ ...g, model: h.model, ...h.events }), D = ({ options: h }) => t.disabled || !!(h != null && h.disabled),
|
|
3658
|
+
}, E = (h) => ({ ...g, model: h.model, ...h.events }), D = ({ options: h }) => t.disabled || !!(h != null && h.disabled), x = (h) => {
|
|
3659
3659
|
const { options: S, rules: R, name: ue } = h;
|
|
3660
3660
|
return typeof R == "function" ? R({ ...h }, E(h)) : R || (S != null && S.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${ue}` }] : []);
|
|
3661
3661
|
}, { setModel: z, setModelOption: j } = g;
|
|
@@ -3738,7 +3738,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
3738
3738
|
(c(!0), O(Y, null, pe(t.config, (L, Le) => {
|
|
3739
3739
|
var Se, He;
|
|
3740
3740
|
return c(), O(Y, { key: Le }, [
|
|
3741
|
-
|
|
3741
|
+
F(L) ? (c(), B(ue, M({
|
|
3742
3742
|
key: 0,
|
|
3743
3743
|
ref_for: !0
|
|
3744
3744
|
}, t.grid, {
|
|
@@ -3753,7 +3753,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
3753
3753
|
"row-class": y(L),
|
|
3754
3754
|
label: L.name,
|
|
3755
3755
|
"validate-trigger": L.validateTrigger,
|
|
3756
|
-
rules:
|
|
3756
|
+
rules: x(L),
|
|
3757
3757
|
disabled: D(L),
|
|
3758
3758
|
help: (Ge = L.options) == null ? void 0 : Ge.help,
|
|
3759
3759
|
tooltip: (Je = L.options) == null ? void 0 : Je.tooltip,
|
|
@@ -3874,8 +3874,8 @@ const _o = /* @__PURE__ */ q({
|
|
|
3874
3874
|
});
|
|
3875
3875
|
}
|
|
3876
3876
|
return (C, v) => {
|
|
3877
|
-
const w = b("a-button"),
|
|
3878
|
-
return c(), B(ye(t.isView ? "div" : _(Po)),
|
|
3877
|
+
const w = b("a-button"), F = b("a-modal");
|
|
3878
|
+
return c(), B(ye(t.isView ? "div" : _(Po)), xe(nt(r())), At({
|
|
3879
3879
|
default: p(() => [
|
|
3880
3880
|
H(C.$slots, "default", {
|
|
3881
3881
|
onSubmit: m,
|
|
@@ -3884,7 +3884,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
3884
3884
|
N(Z(t.title), 1)
|
|
3885
3885
|
]),
|
|
3886
3886
|
(c(), B(Yt, { to: "body" }, [
|
|
3887
|
-
s(
|
|
3887
|
+
s(F, M({
|
|
3888
3888
|
visible: _(n).visible,
|
|
3889
3889
|
title: t.title,
|
|
3890
3890
|
"title-align": "start",
|
|
@@ -3975,15 +3975,15 @@ const _o = /* @__PURE__ */ q({
|
|
|
3975
3975
|
setup(e, { emit: o }) {
|
|
3976
3976
|
var C;
|
|
3977
3977
|
function u(v, w) {
|
|
3978
|
-
const
|
|
3979
|
-
return Object.keys(
|
|
3980
|
-
const y =
|
|
3978
|
+
const F = { ...v.componentAttr };
|
|
3979
|
+
return Object.keys(F).forEach((A) => {
|
|
3980
|
+
const y = F[A];
|
|
3981
3981
|
if (typeof y == "function")
|
|
3982
3982
|
try {
|
|
3983
|
-
|
|
3983
|
+
F[A] = y(v, w);
|
|
3984
3984
|
} catch {
|
|
3985
3985
|
}
|
|
3986
|
-
}),
|
|
3986
|
+
}), F;
|
|
3987
3987
|
}
|
|
3988
3988
|
const t = e, l = o, n = ot((C = t.selectedKeys) != null ? C : []);
|
|
3989
3989
|
function a() {
|
|
@@ -4001,18 +4001,18 @@ const _o = /* @__PURE__ */ q({
|
|
|
4001
4001
|
var w;
|
|
4002
4002
|
return t.disabled || !!((w = v == null ? void 0 : v.options) != null && w.disabled);
|
|
4003
4003
|
}, f = () => {
|
|
4004
|
-
const v = a().reduce((
|
|
4004
|
+
const v = a().reduce((F, A) => {
|
|
4005
4005
|
var y;
|
|
4006
|
-
return A.model && (
|
|
4006
|
+
return A.model && (F[A.model] = (y = A.defaultValue) != null ? y : null), F;
|
|
4007
4007
|
}, {}), w = i();
|
|
4008
4008
|
w.push(v), d(w);
|
|
4009
4009
|
}, m = () => {
|
|
4010
4010
|
const v = "_X_ROW_KEY", w = i();
|
|
4011
|
-
d([...w].filter((
|
|
4011
|
+
d([...w].filter((F) => !n.value.includes(F[v]))), n.value = [], l("update:selectedKeys", n.value);
|
|
4012
4012
|
};
|
|
4013
4013
|
return (v, w) => {
|
|
4014
|
-
const
|
|
4015
|
-
return c(), B(_(
|
|
4014
|
+
const F = b("a-link"), A = b("ASpace"), y = b("vxe-column");
|
|
4015
|
+
return c(), B(_(Ft), {
|
|
4016
4016
|
ref: "tableRef",
|
|
4017
4017
|
"selected-keys": n.value,
|
|
4018
4018
|
"onUpdate:selectedKeys": [
|
|
@@ -4062,24 +4062,24 @@ const _o = /* @__PURE__ */ q({
|
|
|
4062
4062
|
}, At({ _: 2 }, [
|
|
4063
4063
|
g.div !== !1 ? {
|
|
4064
4064
|
name: "default",
|
|
4065
|
-
fn: p((
|
|
4065
|
+
fn: p((x) => [
|
|
4066
4066
|
H(v.$slots, g.model, {
|
|
4067
|
-
row:
|
|
4067
|
+
row: x.row,
|
|
4068
4068
|
model: g.model
|
|
4069
4069
|
}, () => [
|
|
4070
4070
|
!g.type && g.model ? (c(), O("span", M({
|
|
4071
4071
|
key: 0,
|
|
4072
4072
|
ref_for: !0
|
|
4073
|
-
}, u(g,
|
|
4073
|
+
}, u(g, x)), Z(typeof g.format == "function" ? g.format(x.row[g.model], x.row) : x.row[g.model]), 17)) : (c(), B(ye(g.type), M({
|
|
4074
4074
|
key: 1,
|
|
4075
4075
|
size: "mini",
|
|
4076
4076
|
ref_for: !0
|
|
4077
4077
|
}, {
|
|
4078
|
-
...g.model ? { "model-value":
|
|
4079
|
-
...u(g,
|
|
4078
|
+
...g.model ? { "model-value": x.row[g.model] } : {},
|
|
4079
|
+
...u(g, x)
|
|
4080
4080
|
}, {
|
|
4081
4081
|
disabled: r(g),
|
|
4082
|
-
"onUpdate:modelValue": (z) =>
|
|
4082
|
+
"onUpdate:modelValue": (z) => x.row[`${g.model}`] = z
|
|
4083
4083
|
}), null, 16, ["disabled", "onUpdate:modelValue"]))
|
|
4084
4084
|
])
|
|
4085
4085
|
]),
|
|
@@ -4097,7 +4097,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
4097
4097
|
s(A, { size: "mini" }, {
|
|
4098
4098
|
default: p(() => [
|
|
4099
4099
|
t.hideTools !== !0 ? H(v.$slots, "default", { key: 0 }, () => [
|
|
4100
|
-
s(
|
|
4100
|
+
s(F, {
|
|
4101
4101
|
disabled: r(),
|
|
4102
4102
|
onClick: w[0] || (w[0] = (g) => f())
|
|
4103
4103
|
}, {
|
|
@@ -4106,7 +4106,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
4106
4106
|
])),
|
|
4107
4107
|
_: 1
|
|
4108
4108
|
}, 8, ["disabled"]),
|
|
4109
|
-
s(
|
|
4109
|
+
s(F, {
|
|
4110
4110
|
status: "danger",
|
|
4111
4111
|
disabled: r() || !n.value.length,
|
|
4112
4112
|
onClick: w[1] || (w[1] = (g) => m())
|
|
@@ -4156,23 +4156,23 @@ const _o = /* @__PURE__ */ q({
|
|
|
4156
4156
|
const E = { [u.keyword]: i.value.keyword, page: g };
|
|
4157
4157
|
return typeof (v == null ? void 0 : v.resolvePage) == "function" && v.resolvePage(E) ? v.resolvePage(E) : E;
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function F() {
|
|
4160
4160
|
var g;
|
|
4161
4161
|
(g = m.value) == null || g.dataInit();
|
|
4162
4162
|
}
|
|
4163
4163
|
function A(g) {
|
|
4164
|
-
var
|
|
4164
|
+
var x, z;
|
|
4165
4165
|
const E = Object.assign([], g), D = [...E].map((j) => {
|
|
4166
4166
|
var T;
|
|
4167
4167
|
return j[(T = u.nameKey) != null ? T : "name"];
|
|
4168
4168
|
});
|
|
4169
|
-
a("update:modelValue", ht(D)), a("change", { name: ht(D), data: E }), (z = (
|
|
4169
|
+
a("update:modelValue", ht(D)), a("change", { name: ht(D), data: E }), (z = (x = l.value) == null ? void 0 : x.onChange) == null || z.call(x), r();
|
|
4170
4170
|
}
|
|
4171
4171
|
function y({ row: g }) {
|
|
4172
4172
|
u.options.selectedType === "radio" && A([g]);
|
|
4173
4173
|
}
|
|
4174
4174
|
return (g, E) => {
|
|
4175
|
-
const D = b("a-input-search"),
|
|
4175
|
+
const D = b("a-input-search"), x = b("a-button"), z = b("AModal");
|
|
4176
4176
|
return c(), B(tu, null, {
|
|
4177
4177
|
default: p(() => [
|
|
4178
4178
|
H(g.$slots, "default", {
|
|
@@ -4203,7 +4203,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
4203
4203
|
onClose: r
|
|
4204
4204
|
}, {
|
|
4205
4205
|
footer: p(() => [
|
|
4206
|
-
s(
|
|
4206
|
+
s(x, {
|
|
4207
4207
|
size: u.size,
|
|
4208
4208
|
onClick: E[4] || (E[4] = (j) => r())
|
|
4209
4209
|
}, {
|
|
@@ -4212,7 +4212,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
4212
4212
|
])),
|
|
4213
4213
|
_: 1
|
|
4214
4214
|
}, 8, ["size"]),
|
|
4215
|
-
s(
|
|
4215
|
+
s(x, {
|
|
4216
4216
|
type: "primary",
|
|
4217
4217
|
size: u.size,
|
|
4218
4218
|
disabled: !_(C).length,
|
|
@@ -4227,11 +4227,11 @@ const _o = /* @__PURE__ */ q({
|
|
|
4227
4227
|
default: p(() => {
|
|
4228
4228
|
var j;
|
|
4229
4229
|
return [
|
|
4230
|
-
s(_(
|
|
4230
|
+
s(_(Ft), {
|
|
4231
4231
|
ref_key: "tableRef",
|
|
4232
4232
|
ref: m,
|
|
4233
4233
|
"selected-keys": _(C),
|
|
4234
|
-
"onUpdate:selectedKeys": E[3] || (E[3] = (T) =>
|
|
4234
|
+
"onUpdate:selectedKeys": E[3] || (E[3] = (T) => xt(C) ? C.value = T : null),
|
|
4235
4235
|
data: (j = u.tableData) != null ? j : [],
|
|
4236
4236
|
"hide-setting": "",
|
|
4237
4237
|
option: { ..._(v), resolvePage: w },
|
|
@@ -4248,8 +4248,8 @@ const _o = /* @__PURE__ */ q({
|
|
|
4248
4248
|
placeholder: "\u6A21\u7CCA\u641C\u7D22",
|
|
4249
4249
|
"allow-clear": "",
|
|
4250
4250
|
size: u.size,
|
|
4251
|
-
onPressEnter: E[1] || (E[1] = (T) =>
|
|
4252
|
-
onSearch: E[2] || (E[2] = (T) =>
|
|
4251
|
+
onPressEnter: E[1] || (E[1] = (T) => F()),
|
|
4252
|
+
onSearch: E[2] || (E[2] = (T) => F())
|
|
4253
4253
|
}, null, 8, ["modelValue", "size"])) : W("", !0)
|
|
4254
4254
|
]),
|
|
4255
4255
|
_: 1
|
|
@@ -4268,7 +4268,7 @@ const _o = /* @__PURE__ */ q({
|
|
|
4268
4268
|
function vo(e) {
|
|
4269
4269
|
return Oo(e);
|
|
4270
4270
|
}
|
|
4271
|
-
const
|
|
4271
|
+
const gi = vo(ou), _i = vo(nu), vi = /* @__PURE__ */ q({
|
|
4272
4272
|
__name: "index",
|
|
4273
4273
|
props: {
|
|
4274
4274
|
isShow: { type: Boolean },
|
|
@@ -4602,7 +4602,7 @@ function fu(e, o) {
|
|
|
4602
4602
|
const mu = {
|
|
4603
4603
|
class: "comp-hiprint-toolbar u-flex",
|
|
4604
4604
|
style: { width: "100%" }
|
|
4605
|
-
}, gu = { class: "u-
|
|
4605
|
+
}, gu = { class: "u-flex" }, _u = { class: "u-flex__item" }, vu = { class: "u-flex" }, yu = /* @__PURE__ */ q({
|
|
4606
4606
|
__name: "toolbar",
|
|
4607
4607
|
props: {
|
|
4608
4608
|
tpl: { default: void 0 },
|
|
@@ -4616,10 +4616,10 @@ const mu = {
|
|
|
4616
4616
|
return (n, a) => {
|
|
4617
4617
|
const i = b("AButton"), d = b("AButtonGroup"), r = b("ADivider"), f = b("ASpace");
|
|
4618
4618
|
return c(), O("div", mu, [
|
|
4619
|
-
k("div",
|
|
4619
|
+
k("div", gu, [
|
|
4620
4620
|
H(n.$slots, "left", { tools: t.value })
|
|
4621
4621
|
]),
|
|
4622
|
-
k("div",
|
|
4622
|
+
k("div", _u, [
|
|
4623
4623
|
s(f, { size: "mini" }, {
|
|
4624
4624
|
default: p(() => [
|
|
4625
4625
|
s(d, { size: "mini" }, {
|
|
@@ -4752,7 +4752,7 @@ const mu = {
|
|
|
4752
4752
|
_: 1
|
|
4753
4753
|
})
|
|
4754
4754
|
]),
|
|
4755
|
-
k("div",
|
|
4755
|
+
k("div", vu, [
|
|
4756
4756
|
H(n.$slots, "right", { tools: t.value })
|
|
4757
4757
|
])
|
|
4758
4758
|
]);
|
|
@@ -4811,12 +4811,12 @@ function yo(e) {
|
|
|
4811
4811
|
{ tid: `${e}.oval`, title: "\u692D\u5706", type: "oval" }
|
|
4812
4812
|
];
|
|
4813
4813
|
}
|
|
4814
|
-
const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule",
|
|
4814
|
+
const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", bu = () => {
|
|
4815
4815
|
const e = yo(We);
|
|
4816
4816
|
return { list: e, addElementTypes: (u) => {
|
|
4817
4817
|
u.removePrintElementTypes(We), u.addPrintElementTypes(We, [new ze.PrintElementTypeGroup(bo, e)]);
|
|
4818
4818
|
} };
|
|
4819
|
-
}, ho = "\u6570\u636E\u63A7\u4EF6", et = "dataModule",
|
|
4819
|
+
}, ho = "\u6570\u636E\u63A7\u4EF6", et = "dataModule", hu = (e) => {
|
|
4820
4820
|
const o = yo(et), u = Ht(e).map((l) => {
|
|
4821
4821
|
const { field: n } = l, a = o.find((f) => f.type === l.type) || o[0], { type: i, options: d } = a, r = {
|
|
4822
4822
|
...a,
|
|
@@ -4836,41 +4836,41 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
4836
4836
|
l.removePrintElementTypes(et), l.addPrintElementTypes(et, [new ze.PrintElementTypeGroup(ho, u)]);
|
|
4837
4837
|
}
|
|
4838
4838
|
};
|
|
4839
|
-
},
|
|
4839
|
+
}, wu = (e) => [
|
|
4840
4840
|
{
|
|
4841
4841
|
name: bo,
|
|
4842
4842
|
type: 1,
|
|
4843
4843
|
value: We,
|
|
4844
|
-
...
|
|
4844
|
+
...bu()
|
|
4845
4845
|
},
|
|
4846
4846
|
{
|
|
4847
4847
|
name: ho,
|
|
4848
4848
|
type: 2,
|
|
4849
4849
|
value: et,
|
|
4850
|
-
...
|
|
4850
|
+
...hu(e)
|
|
4851
4851
|
}
|
|
4852
|
-
],
|
|
4852
|
+
], Cu = { class: "u-aside comp-hiprint-design" }, Au = { class: "u-page u-page--row" }, Eu = {
|
|
4853
4853
|
class: "u-page__side",
|
|
4854
4854
|
style: { width: "219px" }
|
|
4855
|
-
},
|
|
4855
|
+
}, xu = { class: "u-card u-h" }, Fu = {
|
|
4856
4856
|
class: "u-card__bd u-aside__bd",
|
|
4857
4857
|
style: { "min-height": "100%", padding: "0", "overflow-y": "auto" }
|
|
4858
|
-
},
|
|
4858
|
+
}, ku = { id: "HI_sideContainer" }, Bu = ["tid"], $u = {
|
|
4859
4859
|
class: "u-main",
|
|
4860
4860
|
style: { padding: "0" }
|
|
4861
|
-
},
|
|
4861
|
+
}, Su = { class: "u-card u-h" }, Ou = { class: "u-card__hd u-aside__hd" }, Du = {
|
|
4862
4862
|
class: "u-main u-aside__bd",
|
|
4863
4863
|
style: { padding: "0" }
|
|
4864
|
-
},
|
|
4864
|
+
}, zu = {
|
|
4865
4865
|
id: "bodyContainer",
|
|
4866
4866
|
style: { position: "relative", display: "flex", "flex-direction": "column", "align-items": "center", "min-width": "1000px", "min-height": "1000px", "padding-top": "30px", "padding-left": "30px" }
|
|
4867
|
-
},
|
|
4867
|
+
}, Pu = {
|
|
4868
4868
|
class: "u-page__panel u-card",
|
|
4869
4869
|
style: { width: "219px" }
|
|
4870
|
-
},
|
|
4870
|
+
}, Vu = {
|
|
4871
4871
|
class: "u-card__bd u-aside__bd",
|
|
4872
4872
|
style: { "overflow-x": "hidden", "overflow-y": "auto" }
|
|
4873
|
-
},
|
|
4873
|
+
}, Ru = { id: "HI_panelContainer" }, ve = "arco-btn arco-btn-secondary arco-btn-shape-square arco-btn-size-mini arco-btn-status-normal", yi = /* @__PURE__ */ q({
|
|
4874
4874
|
__name: "index",
|
|
4875
4875
|
props: {
|
|
4876
4876
|
template: { default: void 0 },
|
|
@@ -4890,7 +4890,7 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
4890
4890
|
await Qt(), ze.PrintElementTypeManager.buildByHtml(Te(".ep-draggable-item"));
|
|
4891
4891
|
}
|
|
4892
4892
|
function d() {
|
|
4893
|
-
const A =
|
|
4893
|
+
const A = wu(t.fields);
|
|
4894
4894
|
return ze.init({ providers: A }), i(), ze.setConfig(), Te(a.mainContainer).empty(), n = new ze.PrintTemplate({
|
|
4895
4895
|
template: t.template,
|
|
4896
4896
|
fields: t.fields,
|
|
@@ -4934,20 +4934,20 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
4934
4934
|
function w() {
|
|
4935
4935
|
f.value && r.value.show(f.value, t.printData);
|
|
4936
4936
|
}
|
|
4937
|
-
function
|
|
4937
|
+
function F() {
|
|
4938
4938
|
f.value && l("onSave", f.value.getJson());
|
|
4939
4939
|
}
|
|
4940
4940
|
return qe(v), o({ hiprintTemplate: f, selectedOptions: C }), (A, y) => {
|
|
4941
4941
|
const g = b("AEmpty"), E = b("AButton"), D = b("AButtonGroup");
|
|
4942
|
-
return c(), O("div",
|
|
4943
|
-
k("div",
|
|
4944
|
-
k("div",
|
|
4945
|
-
k("div",
|
|
4942
|
+
return c(), O("div", Cu, [
|
|
4943
|
+
k("div", Au, [
|
|
4944
|
+
k("div", Eu, [
|
|
4945
|
+
k("div", xu, [
|
|
4946
4946
|
y[12] || (y[12] = k("div", { class: "u-card__hd u-aside__hd" }, [
|
|
4947
4947
|
k("strong", { style: { "font-size": "14px" } }, " \u7EC4\u4EF6\u5E93 ")
|
|
4948
4948
|
], -1)),
|
|
4949
|
-
k("div",
|
|
4950
|
-
k("div",
|
|
4949
|
+
k("div", Fu, [
|
|
4950
|
+
k("div", ku, [
|
|
4951
4951
|
s(ft, { title: "\u57FA\u7840" }, {
|
|
4952
4952
|
default: p(() => [
|
|
4953
4953
|
k("a", {
|
|
@@ -5059,7 +5059,7 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5059
5059
|
}),
|
|
5060
5060
|
s(ft, { title: "\u4E1A\u52A1\u7EC4\u4EF6" }, {
|
|
5061
5061
|
default: p(() => {
|
|
5062
|
-
var
|
|
5062
|
+
var x;
|
|
5063
5063
|
return [
|
|
5064
5064
|
(c(!0), O(Y, null, pe(m.value, (z) => (c(), O("a", {
|
|
5065
5065
|
key: z.tid,
|
|
@@ -5070,8 +5070,8 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5070
5070
|
type: _(_e)(z.type)
|
|
5071
5071
|
}, null, 8, ["type"]),
|
|
5072
5072
|
N(" " + Z(z.title), 1)
|
|
5073
|
-
], 10,
|
|
5074
|
-
(
|
|
5073
|
+
], 10, Bu))), 128)),
|
|
5074
|
+
(x = m.value) != null && x.length ? W("", !0) : (c(), B(g, { key: 0 }, {
|
|
5075
5075
|
default: p(() => y[11] || (y[11] = [
|
|
5076
5076
|
k("div", { style: { "font-size": "12px" } }, "\u6682\u65E0\u6570\u636E", -1)
|
|
5077
5077
|
])),
|
|
@@ -5085,18 +5085,18 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5085
5085
|
])
|
|
5086
5086
|
])
|
|
5087
5087
|
]),
|
|
5088
|
-
k("div",
|
|
5089
|
-
k("div",
|
|
5090
|
-
k("div",
|
|
5091
|
-
s(
|
|
5088
|
+
k("div", $u, [
|
|
5089
|
+
k("div", Su, [
|
|
5090
|
+
k("div", Ou, [
|
|
5091
|
+
s(yu, {
|
|
5092
5092
|
tpl: f.value,
|
|
5093
5093
|
"element-options": C.value
|
|
5094
5094
|
}, {
|
|
5095
|
-
left: p(({ tools:
|
|
5096
|
-
H(A.$slots, "toolbar-left", { tools:
|
|
5095
|
+
left: p(({ tools: x }) => [
|
|
5096
|
+
H(A.$slots, "toolbar-left", { tools: x })
|
|
5097
5097
|
]),
|
|
5098
|
-
right: p(({ tools:
|
|
5099
|
-
H(A.$slots, "toolbar-right", { tools:
|
|
5098
|
+
right: p(({ tools: x }) => [
|
|
5099
|
+
H(A.$slots, "toolbar-right", { tools: x }),
|
|
5100
5100
|
s(D, { size: "small" }, {
|
|
5101
5101
|
default: p(() => [
|
|
5102
5102
|
s(E, {
|
|
@@ -5112,7 +5112,7 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5112
5112
|
s(E, {
|
|
5113
5113
|
shape: "square",
|
|
5114
5114
|
title: "\u4FDD\u5B58",
|
|
5115
|
-
onClick:
|
|
5115
|
+
onClick: F
|
|
5116
5116
|
}, {
|
|
5117
5117
|
icon: p(() => [
|
|
5118
5118
|
s(_(J), { type: "icon-24gl-floppyDisk" })
|
|
@@ -5126,8 +5126,8 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5126
5126
|
_: 3
|
|
5127
5127
|
}, 8, ["tpl", "element-options"])
|
|
5128
5128
|
]),
|
|
5129
|
-
k("div",
|
|
5130
|
-
k("div",
|
|
5129
|
+
k("div", Du, [
|
|
5130
|
+
k("div", zu, [
|
|
5131
5131
|
y[13] || (y[13] = k("div", {
|
|
5132
5132
|
id: "HI_mainContainer",
|
|
5133
5133
|
class: "hiprint-printTemplate",
|
|
@@ -5141,12 +5141,12 @@ const bo = "\u901A\u7528\u63A7\u4EF6", We = "defaultModule", vu = () => {
|
|
|
5141
5141
|
])
|
|
5142
5142
|
])
|
|
5143
5143
|
]),
|
|
5144
|
-
k("div",
|
|
5144
|
+
k("div", Pu, [
|
|
5145
5145
|
y[14] || (y[14] = k("div", { class: "u-card__hd u-aside__hd" }, [
|
|
5146
5146
|
k("strong", { style: { "font-size": "14px" } }, " \u5C5E\u6027\u914D\u7F6E ")
|
|
5147
5147
|
], -1)),
|
|
5148
|
-
k("div",
|
|
5149
|
-
k("div",
|
|
5148
|
+
k("div", Vu, [
|
|
5149
|
+
k("div", Ru, [
|
|
5150
5150
|
s(g)
|
|
5151
5151
|
])
|
|
5152
5152
|
])
|
|
@@ -5350,48 +5350,48 @@ const Gt = {
|
|
|
5350
5350
|
customClass: "\u81EA\u5B9A\u4E49Class"
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
|
5353
|
-
},
|
|
5353
|
+
}, bi = { enUS: Gt, zhCN: Gt }, hi = {
|
|
5354
5354
|
install(e) {
|
|
5355
|
-
e.use($o), e.component("OrcTable",
|
|
5355
|
+
e.use($o), e.component("OrcTable", Ft), e.component("OrcSearch", Yl), e.component("OrcForm", _o), e.component("OrcFormButton", eu);
|
|
5356
5356
|
}
|
|
5357
5357
|
};
|
|
5358
5358
|
export {
|
|
5359
5359
|
Bl as OrcDesign,
|
|
5360
|
-
|
|
5360
|
+
ci as OrcDesignPrint,
|
|
5361
5361
|
_o as OrcForm,
|
|
5362
5362
|
eu as OrcFormButton,
|
|
5363
|
-
|
|
5363
|
+
_i as OrcFormLayer,
|
|
5364
5364
|
tu as OrcFormSpace,
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5365
|
+
gi as OrcFormTable,
|
|
5366
|
+
yi as OrcHiPrint,
|
|
5367
|
+
vi as OrcHiddenView,
|
|
5368
|
+
mi as OrcProvider,
|
|
5369
|
+
fi as OrcQuill,
|
|
5370
5370
|
Yl as OrcSearch,
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5371
|
+
Ft as OrcTable,
|
|
5372
|
+
li as deepClone,
|
|
5373
|
+
hi as default,
|
|
5374
5374
|
mn as downLoadPdf,
|
|
5375
|
-
|
|
5375
|
+
si as download,
|
|
5376
5376
|
ao as findObject,
|
|
5377
|
-
|
|
5377
|
+
ei as formatTable,
|
|
5378
5378
|
gn as generateQRcodeBase64,
|
|
5379
|
-
|
|
5380
|
-
|
|
5379
|
+
ii as getData,
|
|
5380
|
+
ui as getUniqueId,
|
|
5381
5381
|
pn as isArray,
|
|
5382
|
-
|
|
5383
|
-
|
|
5382
|
+
ni as isEmptyArray,
|
|
5383
|
+
oi as isEmptyObject,
|
|
5384
5384
|
fn as isNumber,
|
|
5385
5385
|
It as isObject,
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5386
|
+
bi as locale,
|
|
5387
|
+
ti as log,
|
|
5388
|
+
di as mergeConfig,
|
|
5389
5389
|
kt as omitObject,
|
|
5390
|
-
|
|
5391
|
-
|
|
5390
|
+
ri as onConfirm,
|
|
5391
|
+
ai as setData,
|
|
5392
5392
|
vt as toArray,
|
|
5393
5393
|
Ve as typeName,
|
|
5394
|
-
|
|
5394
|
+
pi as useOrcSearch,
|
|
5395
5395
|
un as useOrcTable,
|
|
5396
5396
|
Ie as useState
|
|
5397
5397
|
};
|