@shaonq/vue 1.1.9 → 1.1.11
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.d.ts +323 -64
- package/lib/index.js +1802 -1427
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,90 +1,91 @@
|
|
|
1
|
-
import
|
|
1
|
+
import uo from "vxe-table";
|
|
2
2
|
import "vxe-table/lib/style.css";
|
|
3
|
-
import { ref as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { Message as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useI18n as
|
|
10
|
-
import
|
|
3
|
+
import { ref as q, inject as St, defineComponent as U, computed as M, shallowRef as rt, watch as ne, onUnmounted as Dt, resolveComponent as g, openBlock as r, createElementBlock as B, createBlock as y, withCtx as p, renderSlot as le, createElementVNode as R, toDisplayString as J, createVNode as f, createTextVNode as te, unref as b, createCommentVNode as N, mergeProps as I, Fragment as Q, renderList as de, createSlots as ao, isVNode as yt, resolveDynamicComponent as be, normalizeStyle as oe, reactive as zt, provide as Pt, toRefs as Ce, nextTick as io, normalizeProps as xe, guardReactiveProps as ct, isRef as Vt, normalizeClass as Be, withModifiers as Ke, toRef as ot, Transition as so, onMounted as dt, Teleport as ro } from "vue";
|
|
4
|
+
import Qe from "xe-utils";
|
|
5
|
+
import ze from "vuedraggable";
|
|
6
|
+
import { Message as jt, Modal as co } from "@arco-design/web-vue";
|
|
7
|
+
import ht from "html2pdf.js";
|
|
8
|
+
import po from "bwip-js";
|
|
9
|
+
import { useI18n as fo } from "vue-i18n";
|
|
10
|
+
import mo from "quill";
|
|
11
11
|
import "quill/dist/quill.core.css";
|
|
12
12
|
import "quill/dist/quill.snow.css";
|
|
13
|
-
|
|
13
|
+
import "@arco-design/web-vue/es/form/context";
|
|
14
|
+
function ve(e) {
|
|
14
15
|
return typeof e == "function";
|
|
15
16
|
}
|
|
16
|
-
function
|
|
17
|
+
function ke(e, o) {
|
|
17
18
|
var n;
|
|
18
|
-
const
|
|
19
|
-
return o.format &&
|
|
19
|
+
const a = (n = e[o.dataIndex]) != null ? n : "";
|
|
20
|
+
return o.format && ve(o.format) ? o.format(a, e) : a;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
22
|
+
function Je(e, o) {
|
|
23
|
+
return ve(o.style) ? o.style(e) : { ...o.style };
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
+
function nt(e) {
|
|
25
26
|
return (e == null ? void 0 : e.rowKey) || "_X_ROW_KEY";
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
return { disabledList:
|
|
28
|
+
function go(e, o) {
|
|
29
|
+
return { disabledList: q({
|
|
29
30
|
highlight: !0,
|
|
30
31
|
reserve: e.option.reserve,
|
|
31
32
|
checkMethod: ({ row: t }) => !t.disabled
|
|
32
|
-
}), selectChangeEvent: ({ $table: t, checked:
|
|
33
|
-
const { option:
|
|
34
|
-
if (
|
|
35
|
-
const C =
|
|
36
|
-
|
|
33
|
+
}), selectChangeEvent: ({ $table: t, checked: s, row: u }) => {
|
|
34
|
+
const { option: d } = e, { fullData: i } = t.getTableData();
|
|
35
|
+
if (u && d.checkboxKey) {
|
|
36
|
+
const C = d.checkboxKey, v = i.filter((h) => h[C] && h[C] === u[C]);
|
|
37
|
+
v.length && t.setCheckboxRow(v, s);
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
+
const c = t.getCheckboxRecords().concat(t.getCheckboxReserveRecords()), m = nt(e.option);
|
|
39
40
|
m && o(
|
|
40
41
|
"update:selectedKeys",
|
|
41
|
-
|
|
42
|
+
c.map((C) => C[m])
|
|
42
43
|
);
|
|
43
44
|
}, radioChangeEvent: ({ row: t }) => {
|
|
44
|
-
const
|
|
45
|
-
|
|
45
|
+
const s = [t], u = nt(e.option);
|
|
46
|
+
u && o(
|
|
46
47
|
"update:selectedKeys",
|
|
47
|
-
|
|
48
|
+
s.map((d) => d[u])
|
|
48
49
|
);
|
|
49
50
|
} };
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
-
function
|
|
52
|
+
const H = q(/* @__PURE__ */ Object.create({}));
|
|
53
|
+
function Rt(e) {
|
|
53
54
|
const o = {
|
|
54
55
|
...e,
|
|
55
56
|
ref: (n) => {
|
|
56
|
-
n && (
|
|
57
|
+
n && (H.value = n);
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
60
|
return {
|
|
60
61
|
tableOption: o,
|
|
61
|
-
$grid:
|
|
62
|
+
$grid: H,
|
|
62
63
|
$gridTwo: {
|
|
63
64
|
getRowKey() {
|
|
64
|
-
return
|
|
65
|
+
return nt(e);
|
|
65
66
|
},
|
|
66
67
|
getRowIndex(n) {
|
|
67
|
-
return
|
|
68
|
+
return H.value.getRowIndex(n);
|
|
68
69
|
},
|
|
69
70
|
getRowSeq(n) {
|
|
70
|
-
return
|
|
71
|
+
return H.value.getRowSeq(n);
|
|
71
72
|
},
|
|
72
73
|
getTableData() {
|
|
73
74
|
var n, l;
|
|
74
|
-
return
|
|
75
|
+
return H.value ? (l = (n = H.value) == null ? void 0 : n.getTableData().fullData) != null ? l : [] : [];
|
|
75
76
|
},
|
|
76
77
|
getSelection() {
|
|
77
|
-
return
|
|
78
|
+
return H.value ? o.selectedType === "checkbox" ? H.value.getCheckboxRecords() : o.selectedType === "radio" ? [H.value.getRadioRecord()] : [] : [];
|
|
78
79
|
},
|
|
79
80
|
getReserveSelection() {
|
|
80
|
-
if (
|
|
81
|
+
if (H.value) {
|
|
81
82
|
if (o.selectedType === "checkbox") {
|
|
82
|
-
const n =
|
|
83
|
-
return e.reserve ? n.concat(
|
|
83
|
+
const n = H.value.getCheckboxRecords();
|
|
84
|
+
return e.reserve ? n.concat(H.value.getCheckboxReserveRecords()) : n;
|
|
84
85
|
}
|
|
85
86
|
if (o.selectedType === "radio") {
|
|
86
|
-
let n =
|
|
87
|
-
return e.reserve && !n && (n =
|
|
87
|
+
let n = H.value.getRadioRecord();
|
|
88
|
+
return e.reserve && !n && (n = H.value.getRadioReserveRecord()), n ? [n] : [];
|
|
88
89
|
}
|
|
89
90
|
return [];
|
|
90
91
|
}
|
|
@@ -92,37 +93,37 @@ function Ot(e) {
|
|
|
92
93
|
},
|
|
93
94
|
getCheckboxKeySelection(n) {
|
|
94
95
|
const l = e.checkboxKey;
|
|
95
|
-
return n || (n = this.getSelection().map((
|
|
96
|
+
return n || (n = this.getSelection().map((s) => s[l])), this.getTableData().filter((s) => n && n.includes(s[l]));
|
|
96
97
|
},
|
|
97
98
|
clearSelection() {
|
|
98
|
-
|
|
99
|
+
H.value && (o.selectedType === "checkbox" && (e.reserve && H.value.clearCheckboxReserve(), H.value.clearCheckboxRow()), o.selectedType === "radio" && (e.reserve && H.value.clearRadioReserve(), H.value.clearRadioRow()));
|
|
99
100
|
},
|
|
100
101
|
insertRow(n, l, t = !0) {
|
|
101
|
-
var
|
|
102
|
-
const
|
|
102
|
+
var d;
|
|
103
|
+
const s = this.getRowKey();
|
|
103
104
|
if (l && typeof l == "object" && t) {
|
|
104
|
-
const
|
|
105
|
-
|
|
105
|
+
const i = H.value.getRowIndex(l);
|
|
106
|
+
i >= 0 && (l = (d = this.getTableData()[i + 1]) != null ? d : -1);
|
|
106
107
|
}
|
|
107
|
-
return n[
|
|
108
|
+
return n[s] && delete n[s], H.value.insertAt(n, l);
|
|
108
109
|
},
|
|
109
110
|
removeRows() {
|
|
110
|
-
|
|
111
|
+
H.value && (o.selectedType === "checkbox" && H.value.removeCheckboxRow(), o.selectedType === "radio" && H.value.removeRadioRow());
|
|
111
112
|
},
|
|
112
113
|
removerRowIndex(n) {
|
|
113
|
-
if (
|
|
114
|
+
if (H.value) {
|
|
114
115
|
const l = this.getTableData();
|
|
115
|
-
l.splice(n, 1),
|
|
116
|
+
l.splice(n, 1), H.value.reloadData(l);
|
|
116
117
|
}
|
|
117
118
|
},
|
|
118
119
|
async checkRows(n = void 0) {
|
|
119
120
|
n = n != null ? n : this.getSelection();
|
|
120
121
|
let l = "";
|
|
121
|
-
const t = await
|
|
122
|
-
return t && Object.values(t).forEach((
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
l = `\u5E8F\u53F7${
|
|
122
|
+
const t = await H.value.validate(n);
|
|
123
|
+
return t && Object.values(t).forEach((s) => {
|
|
124
|
+
s.forEach(({ rowIndex: u, column: d, rules: i }) => {
|
|
125
|
+
i.forEach((c) => {
|
|
126
|
+
l = `\u5E8F\u53F7${u + 1} ${d.title} ${c.message}`;
|
|
126
127
|
});
|
|
127
128
|
});
|
|
128
129
|
}), [l, n];
|
|
@@ -130,34 +131,34 @@ function Ot(e) {
|
|
|
130
131
|
}
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
const Tt = Symbol("OrcConfigProvider");
|
|
135
|
+
function _o() {
|
|
136
|
+
return St(Tt, {
|
|
136
137
|
useErrData: void 0
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
|
-
const
|
|
140
|
+
const vo = { class: "orc-table" }, bo = { style: { color: "var(--color-text-1)", "font-weight": "500" } }, yo = { class: "u-card orc-table__setting" }, ho = {
|
|
140
141
|
class: "u-card__hd",
|
|
141
142
|
style: { height: "auto", padding: "4px 12px", "line-height": "28px" }
|
|
142
|
-
},
|
|
143
|
+
}, wo = /* @__PURE__ */ R("span", { style: { "font-size": "14px" } }, "\u8BBE\u7F6E", -1), Co = {
|
|
143
144
|
class: "u-card__floor",
|
|
144
145
|
style: { padding: "0" }
|
|
145
|
-
},
|
|
146
|
+
}, Ao = { class: "orc-table__draggable" }, Eo = { class: "orc-table__draggable-item" }, xo = {
|
|
146
147
|
key: 0,
|
|
147
148
|
class: "u-flex"
|
|
148
|
-
},
|
|
149
|
+
}, Fo = ["title"], ko = { style: { padding: "0 0.75em" } }, Bo = {
|
|
149
150
|
key: 1,
|
|
150
151
|
class: "orc-table__draggable-moving"
|
|
151
|
-
},
|
|
152
|
+
}, $o = {
|
|
152
153
|
class: "u-card__floor u-flex",
|
|
153
154
|
style: { padding: "6px 12px" }
|
|
154
|
-
},
|
|
155
|
+
}, Oo = {
|
|
155
156
|
key: 0,
|
|
156
157
|
class: "orc-table__light-text"
|
|
157
|
-
},
|
|
158
|
+
}, So = {
|
|
158
159
|
key: 1,
|
|
159
160
|
class: "orc-table__pagination"
|
|
160
|
-
},
|
|
161
|
+
}, Do = { class: "u-flex u-flex--start" }, zo = { class: "u-flex__item" }, Po = { style: { width: "500px" } }, Vo = /* @__PURE__ */ U({
|
|
161
162
|
__name: "table",
|
|
162
163
|
props: {
|
|
163
164
|
title: String,
|
|
@@ -177,234 +178,234 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
177
178
|
hook: Object
|
|
178
179
|
},
|
|
179
180
|
emits: ["update:selectedKeys", "cellClick", "onReset", "change", "confirm"],
|
|
180
|
-
setup(e, { expose: o, emit:
|
|
181
|
-
var
|
|
182
|
-
const n =
|
|
183
|
-
function
|
|
184
|
-
return (
|
|
185
|
-
typeof
|
|
186
|
-
|
|
187
|
-
}) :
|
|
181
|
+
setup(e, { expose: o, emit: a }) {
|
|
182
|
+
var $e;
|
|
183
|
+
const n = _o(), l = M(() => n.useErrData), t = e, s = a;
|
|
184
|
+
function u(x, D) {
|
|
185
|
+
return (K) => {
|
|
186
|
+
typeof K == "object" ? Object.keys(K).forEach((W) => {
|
|
187
|
+
x[W] = K[W];
|
|
188
|
+
}) : x[D] = K;
|
|
188
189
|
};
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
-
var
|
|
192
|
-
return (
|
|
193
|
-
}),
|
|
194
|
-
var
|
|
195
|
-
return (
|
|
196
|
-
}),
|
|
197
|
-
function
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
function
|
|
201
|
-
var
|
|
202
|
-
const
|
|
203
|
-
return ["string", "number"].includes(typeof
|
|
204
|
-
}
|
|
205
|
-
function
|
|
206
|
-
let
|
|
191
|
+
const d = M(() => {
|
|
192
|
+
var x, D;
|
|
193
|
+
return (D = (x = t.option) == null ? void 0 : x.pageSize) != null ? D : 50;
|
|
194
|
+
}), i = M(() => {
|
|
195
|
+
var x, D;
|
|
196
|
+
return (D = (x = t.option) == null ? void 0 : x.pageSizeOptions) != null ? D : [10, 20, 50, 100, 200];
|
|
197
|
+
}), c = q({ page: 1, size: d.value }), { disabledList: m, selectChangeEvent: C, radioChangeEvent: v } = go(t, s), { $grid: h, $gridTwo: F } = Rt(t.option);
|
|
198
|
+
function O(x) {
|
|
199
|
+
s("cellClick", x);
|
|
200
|
+
}
|
|
201
|
+
function w(x, D, K) {
|
|
202
|
+
var ce, _e;
|
|
203
|
+
const W = (ce = x[D]) != null ? ce : {}, Z = (_e = x[D - 1]) != null ? _e : {};
|
|
204
|
+
return ["string", "number"].includes(typeof W[K]) ? t.option.skinRow && typeof t.option.skinRow == "string" ? W[t.option.skinRow] === Z[t.option.skinRow] && W[K] === Z[K] : W[K] === Z[K] : !1;
|
|
205
|
+
}
|
|
206
|
+
function A(x, D, K) {
|
|
207
|
+
let W = {};
|
|
207
208
|
try {
|
|
208
|
-
|
|
209
|
+
W = D > 0 && !w(x, D, K) && t.option.skinRow && x[D][String(t.option.skinRow)] === x[D - 1][String(t.option.skinRow)] ? t.option.skinRowStyle : {};
|
|
209
210
|
} catch {
|
|
210
211
|
}
|
|
211
|
-
return
|
|
212
|
-
}
|
|
213
|
-
const
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
return Object.assign([],
|
|
217
|
-
var
|
|
218
|
-
return
|
|
212
|
+
return W;
|
|
213
|
+
}
|
|
214
|
+
const S = q([]);
|
|
215
|
+
function $() {
|
|
216
|
+
const x = [...t.option.columns], D = t.option.resolveColumns && ve(t.option.resolveColumns) ? t.option.resolveColumns(x) : x;
|
|
217
|
+
return Object.assign([], D).filter((W) => Boolean(W)).map((W) => {
|
|
218
|
+
var Z;
|
|
219
|
+
return W.show = (Z = W.show) != null ? Z : !0, W.tooltip && (W.ellipsis = !0), W;
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
|
-
const
|
|
222
|
-
const
|
|
222
|
+
const k = M(() => {
|
|
223
|
+
const x = $(), D = Object.assign([], S.value);
|
|
223
224
|
return [
|
|
224
225
|
...new Set(
|
|
225
|
-
[...
|
|
226
|
+
[...D].map((W) => W.dataIndex).filter((W) => x.find((Z) => Z.dataIndex === W)).concat([...x].map((W) => W.dataIndex)).filter((W) => !!W)
|
|
226
227
|
)
|
|
227
|
-
].map((
|
|
228
|
-
var
|
|
229
|
-
const
|
|
230
|
-
return { ...
|
|
228
|
+
].map((W) => {
|
|
229
|
+
var _e;
|
|
230
|
+
const Z = x.find((Ae) => Ae.dataIndex === W), ce = (_e = D.find((Ae) => Ae.dataIndex === W)) != null ? _e : /* @__PURE__ */ Object.create({});
|
|
231
|
+
return { ...Z, ...ce };
|
|
231
232
|
});
|
|
232
|
-
}),
|
|
233
|
-
function
|
|
234
|
-
var
|
|
235
|
-
const
|
|
236
|
-
if (typeof
|
|
233
|
+
}), P = M(() => t.option.resolvePage && ve(t.option.resolvePage) ? t.option.resolvePage(c.value) : t.option.resolvePage), j = M(() => Boolean(t.option.url)), T = q(!1), Y = q(!1), ie = q(0), L = rt(($e = t.data) != null ? $e : []), ue = new AbortController();
|
|
234
|
+
function _() {
|
|
235
|
+
var Z, ce;
|
|
236
|
+
const x = (Z = t.option.useErrData) != null ? Z : l.value;
|
|
237
|
+
if (typeof x != "function")
|
|
237
238
|
return console.error("useErrData not declared"), [!0, { rows: [] }];
|
|
238
|
-
let
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
[String(t.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...
|
|
242
|
-
},
|
|
243
|
-
return t.option.timeout && (
|
|
244
|
-
}
|
|
245
|
-
const
|
|
239
|
+
let D = /* @__PURE__ */ Object.create({});
|
|
240
|
+
P.value ? ve(t.option.resolvePage) ? D = { ...P.value } : D = { page: c.value } : D = {};
|
|
241
|
+
const K = {
|
|
242
|
+
[String(t.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...D, ...t.option.data }
|
|
243
|
+
}, W = { url: t.option.url, method: (ce = t.option.method) != null ? ce : "GET", ...K, signal: ue.signal };
|
|
244
|
+
return t.option.timeout && (W.timeout = t.option.timeout), x(W);
|
|
245
|
+
}
|
|
246
|
+
const E = M({
|
|
246
247
|
get: () => t.selectedKeys,
|
|
247
|
-
set: (
|
|
248
|
-
|
|
248
|
+
set: (x) => {
|
|
249
|
+
s("update:selectedKeys", x);
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
|
-
function
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
const
|
|
255
|
-
var
|
|
256
|
-
if (
|
|
257
|
-
|
|
258
|
-
const [
|
|
259
|
-
if (
|
|
260
|
-
|
|
252
|
+
function V(x = !0) {
|
|
253
|
+
T.value = x;
|
|
254
|
+
}
|
|
255
|
+
const re = async () => {
|
|
256
|
+
var x, D, K, W, Z, ce, _e;
|
|
257
|
+
if (j.value) {
|
|
258
|
+
V(!0);
|
|
259
|
+
const [Ae, fe] = await _();
|
|
260
|
+
if (V(!1), Ae)
|
|
261
|
+
ve(t.option.error) && ((_e = (ce = t.option).error) == null || _e.call(ce, fe));
|
|
261
262
|
else {
|
|
262
|
-
const
|
|
263
|
-
Object.prototype.toString.call(
|
|
263
|
+
const Ie = t.option.resolveData && ve(t.option.resolveData) ? t.option.resolveData(fe, { ...c.value }) : (D = (x = fe == null ? void 0 : fe.rows) != null ? x : fe) != null ? D : [];
|
|
264
|
+
Object.prototype.toString.call(Ie).slice(8, -1) !== "Array" && console.warn(new Error("[orc-table] :Not in Array format data ")), L.value = Object.assign([], Ie), ie.value = t.option.resolveTotal && ve(t.option.resolveTotal) ? t.option.resolveTotal(fe) : (K = fe == null ? void 0 : fe.total) != null ? K : 0, ve(t.option.success) && ((Z = (W = t.option).success) == null || Z.call(W, fe));
|
|
264
265
|
}
|
|
265
266
|
}
|
|
266
267
|
};
|
|
267
|
-
async function
|
|
268
|
-
|
|
268
|
+
async function X() {
|
|
269
|
+
T.value || (s("onReset"), await re());
|
|
269
270
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
271
|
+
function me(x, D = !1) {
|
|
272
|
+
x && (c.value.page = x), (!t.option.reserve || D) && (E.value = [], F.clearSelection()), re();
|
|
272
273
|
}
|
|
273
|
-
async function ge(
|
|
274
|
-
|
|
274
|
+
async function ge(x) {
|
|
275
|
+
c.value.size = x, me(1, !0);
|
|
275
276
|
}
|
|
276
|
-
const
|
|
277
|
+
const ye = q(/* @__PURE__ */ Object.create({})), pe = q({
|
|
277
278
|
loading: !1,
|
|
278
279
|
columns: [],
|
|
279
280
|
tempWidth: /* @__PURE__ */ Object.create({})
|
|
280
281
|
});
|
|
281
|
-
async function
|
|
282
|
-
var
|
|
283
|
-
if (typeof ((
|
|
284
|
-
const [
|
|
285
|
-
!
|
|
282
|
+
async function G() {
|
|
283
|
+
var x;
|
|
284
|
+
if (typeof ((x = t.hook) == null ? void 0 : x.getColumn) == "function") {
|
|
285
|
+
const [D, K] = await t.hook.getColumn();
|
|
286
|
+
!D && K && (S.value = K);
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
-
!
|
|
291
|
-
const
|
|
292
|
-
return
|
|
289
|
+
G();
|
|
290
|
+
const je = (x = !1) => {
|
|
291
|
+
!ye.value || (x ? ye.value.togglePanel() : ye.value.showPanel(), pe.value.columns = Object.assign([], [...k.value]).map((D) => {
|
|
292
|
+
const K = pe.value.tempWidth[D.dataIndex];
|
|
293
|
+
return K && (D.width = K), D;
|
|
293
294
|
}));
|
|
294
|
-
},
|
|
295
|
-
!
|
|
295
|
+
}, Fe = () => {
|
|
296
|
+
!ye.value || ye.value.hidePanel();
|
|
296
297
|
};
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
function Re() {
|
|
299
|
+
pe.value.loading = !0, S.value = [], pe.value.tempWidth = /* @__PURE__ */ Object.create({}), pe.value.columns = $(), je(), setTimeout(() => {
|
|
300
|
+
pe.value.loading = !1;
|
|
300
301
|
}, 500);
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
-
let
|
|
304
|
-
!
|
|
303
|
+
function Te(x) {
|
|
304
|
+
let D = x.column.property;
|
|
305
|
+
!D && x.column.type === "seq" && (D = "index"), D && x.column.resizeWidth > 0 && (pe.value.tempWidth[D] = x.column.resizeWidth, Fe());
|
|
305
306
|
}
|
|
306
|
-
const
|
|
307
|
-
var
|
|
308
|
-
!
|
|
307
|
+
const We = () => {
|
|
308
|
+
var x;
|
|
309
|
+
!ye.value || (S.value = pe.value.columns, s("confirm", k.value), typeof ((x = t.hook) == null ? void 0 : x.setColumn) == "function" && t.hook.setColumn(k.value), pe.value.tempWidth = /* @__PURE__ */ Object.create({}), Fe());
|
|
309
310
|
};
|
|
310
|
-
return t.option.firstLoad !== !1 &&
|
|
311
|
+
return t.option.firstLoad !== !1 && re(), ne(
|
|
311
312
|
() => t.option.firstLoad,
|
|
312
|
-
(
|
|
313
|
-
|
|
313
|
+
(x) => {
|
|
314
|
+
x === !0 && re();
|
|
314
315
|
}
|
|
315
|
-
),
|
|
316
|
-
|
|
316
|
+
), Dt(() => {
|
|
317
|
+
ue.abort();
|
|
317
318
|
}), o({
|
|
318
|
-
loading:
|
|
319
|
-
setLoading:
|
|
320
|
-
dataInit(
|
|
321
|
-
return
|
|
319
|
+
loading: T,
|
|
320
|
+
setLoading: V,
|
|
321
|
+
dataInit(x) {
|
|
322
|
+
return x !== !1 && (c.value.page = 1), E.value = [], F.clearSelection(), re();
|
|
322
323
|
},
|
|
323
|
-
loadData(
|
|
324
|
-
|
|
324
|
+
loadData(x) {
|
|
325
|
+
h.value && (h.value.reloadData(x), L.value = x);
|
|
325
326
|
},
|
|
326
|
-
...
|
|
327
|
-
}), (
|
|
328
|
-
var
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
const
|
|
332
|
-
return
|
|
333
|
-
t.hideToolbar ?
|
|
327
|
+
...F
|
|
328
|
+
}), (x, D) => {
|
|
329
|
+
var bt;
|
|
330
|
+
const K = g("a-switch"), W = g("a-tooltip"), Z = g("icon-refresh"), ce = g("a-button"), _e = g("icon-settings"), Ae = g("icon-drag-dot-vertical"), fe = g("a-checkbox");
|
|
331
|
+
g("a-input-number");
|
|
332
|
+
const Ie = g("a-divider"), _t = g("vxe-button"), Yt = g("vxe-pulldown"), vt = g("a-space"), Zt = g("vxe-toolbar"), Me = g("vxe-column"), eo = g("a-empty"), to = g("a-spin"), oo = g("vxe-table"), no = g("a-pagination");
|
|
333
|
+
return r(), B("div", vo, [
|
|
334
|
+
t.hideToolbar ? N("", !0) : (r(), y(Zt, {
|
|
334
335
|
key: 0,
|
|
335
336
|
size: "mini",
|
|
336
337
|
"class-name": "orc-table__toolbar"
|
|
337
338
|
}, {
|
|
338
339
|
buttons: p(() => [
|
|
339
|
-
|
|
340
|
-
|
|
340
|
+
le(x.$slots, "default", {}, () => [
|
|
341
|
+
R("div", bo, J(t.title), 1)
|
|
341
342
|
])
|
|
342
343
|
]),
|
|
343
344
|
tools: p(() => [
|
|
344
|
-
f(
|
|
345
|
+
f(vt, { size: "small" }, {
|
|
345
346
|
default: p(() => [
|
|
346
|
-
|
|
347
|
-
f(
|
|
347
|
+
le(x.$slots, "tools"),
|
|
348
|
+
f(W, {
|
|
348
349
|
content: "\u8868\u683C\u6591\u9A6C\u7EB9",
|
|
349
350
|
mini: ""
|
|
350
351
|
}, {
|
|
351
352
|
default: p(() => [
|
|
352
|
-
f(
|
|
353
|
+
f(K, {
|
|
353
354
|
modelValue: Y.value,
|
|
354
|
-
"onUpdate:modelValue":
|
|
355
|
+
"onUpdate:modelValue": D[0] || (D[0] = (se) => Y.value = se),
|
|
355
356
|
size: "small"
|
|
356
357
|
}, {
|
|
357
358
|
checked: p(() => [
|
|
358
|
-
|
|
359
|
+
te(" \u5F00 ")
|
|
359
360
|
]),
|
|
360
361
|
unchecked: p(() => [
|
|
361
|
-
|
|
362
|
+
te(" \u5173 ")
|
|
362
363
|
]),
|
|
363
364
|
_: 1
|
|
364
365
|
}, 8, ["modelValue"])
|
|
365
366
|
]),
|
|
366
367
|
_: 1
|
|
367
368
|
}),
|
|
368
|
-
f(
|
|
369
|
+
f(W, {
|
|
369
370
|
content: "\u5237\u65B0",
|
|
370
371
|
mini: ""
|
|
371
372
|
}, {
|
|
372
373
|
default: p(() => [
|
|
373
|
-
f(
|
|
374
|
-
loading:
|
|
374
|
+
f(ce, {
|
|
375
|
+
loading: T.value,
|
|
375
376
|
size: "small",
|
|
376
377
|
class: "arco-btn-light",
|
|
377
378
|
style: { border: "0" },
|
|
378
|
-
onClick:
|
|
379
|
+
onClick: D[1] || (D[1] = (se) => X())
|
|
379
380
|
}, {
|
|
380
381
|
icon: p(() => [
|
|
381
|
-
f(
|
|
382
|
+
f(Z, { size: 16 })
|
|
382
383
|
]),
|
|
383
384
|
_: 1
|
|
384
385
|
}, 8, ["loading"])
|
|
385
386
|
]),
|
|
386
387
|
_: 1
|
|
387
388
|
}),
|
|
388
|
-
f(
|
|
389
|
+
f(Yt, {
|
|
389
390
|
ref_key: "settingRef",
|
|
390
|
-
ref:
|
|
391
|
+
ref: ye,
|
|
391
392
|
transfer: ""
|
|
392
393
|
}, {
|
|
393
394
|
default: p(() => [
|
|
394
|
-
f(
|
|
395
|
+
f(W, {
|
|
395
396
|
content: "\u8BBE\u7F6E",
|
|
396
397
|
mini: ""
|
|
397
398
|
}, {
|
|
398
399
|
default: p(() => [
|
|
399
|
-
f(
|
|
400
|
+
f(ce, {
|
|
400
401
|
size: "small",
|
|
401
402
|
class: "arco-btn-light",
|
|
402
403
|
style: { border: "0" }
|
|
403
404
|
}, {
|
|
404
405
|
icon: p(() => [
|
|
405
|
-
f(
|
|
406
|
+
f(_e, {
|
|
406
407
|
size: 16,
|
|
407
|
-
onClick:
|
|
408
|
+
onClick: D[2] || (D[2] = (se) => je(!0))
|
|
408
409
|
})
|
|
409
410
|
]),
|
|
410
411
|
_: 1
|
|
@@ -414,23 +415,23 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
414
415
|
})
|
|
415
416
|
]),
|
|
416
417
|
dropdown: p(() => [
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
f(
|
|
418
|
+
R("div", yo, [
|
|
419
|
+
R("div", ho, [
|
|
420
|
+
wo,
|
|
421
|
+
f(W, {
|
|
421
422
|
content: "\u91CD\u7F6E",
|
|
422
423
|
mini: ""
|
|
423
424
|
}, {
|
|
424
425
|
default: p(() => [
|
|
425
|
-
f(
|
|
426
|
+
f(ce, {
|
|
426
427
|
size: "small",
|
|
427
428
|
class: "arco-btn-light",
|
|
428
429
|
style: { border: "0" },
|
|
429
|
-
loading:
|
|
430
|
-
onClick:
|
|
430
|
+
loading: pe.value.loading,
|
|
431
|
+
onClick: D[3] || (D[3] = (se) => Re())
|
|
431
432
|
}, {
|
|
432
433
|
icon: p(() => [
|
|
433
|
-
f(
|
|
434
|
+
f(Z)
|
|
434
435
|
]),
|
|
435
436
|
_: 1
|
|
436
437
|
}, 8, ["loading"])
|
|
@@ -438,10 +439,10 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
438
439
|
_: 1
|
|
439
440
|
})
|
|
440
441
|
]),
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
f(
|
|
444
|
-
list:
|
|
442
|
+
R("div", Co, [
|
|
443
|
+
R("div", Ao, [
|
|
444
|
+
f(b(ze), {
|
|
445
|
+
list: pe.value.columns,
|
|
445
446
|
style: { "user-select": "none" },
|
|
446
447
|
class: "orc-table__draggable-list",
|
|
447
448
|
group: "toolsGroup",
|
|
@@ -452,23 +453,23 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
452
453
|
"item-key": "id",
|
|
453
454
|
handle: ".orc-table__draggable-moving"
|
|
454
455
|
}, {
|
|
455
|
-
item: p(({ element:
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
f(
|
|
459
|
-
f(
|
|
460
|
-
modelValue:
|
|
461
|
-
"onUpdate:modelValue": (
|
|
456
|
+
item: p(({ element: se }) => [
|
|
457
|
+
R("div", Eo, [
|
|
458
|
+
se.title ? (r(), B("div", xo, [
|
|
459
|
+
f(Ae, { class: "orc-table__draggable-moving" }),
|
|
460
|
+
f(fe, {
|
|
461
|
+
modelValue: se.show,
|
|
462
|
+
"onUpdate:modelValue": (Ne) => se.show = Ne
|
|
462
463
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
463
|
-
|
|
464
|
+
R("label", {
|
|
464
465
|
class: "u-flex__item u-clamp",
|
|
465
|
-
title:
|
|
466
|
+
title: se.title
|
|
466
467
|
}, [
|
|
467
|
-
|
|
468
|
-
], 8,
|
|
469
|
-
|
|
470
|
-
])) : (
|
|
471
|
-
f(
|
|
468
|
+
R("span", ko, J(se.title), 1)
|
|
469
|
+
], 8, Fo),
|
|
470
|
+
N("", !0)
|
|
471
|
+
])) : (r(), B("div", Bo, [
|
|
472
|
+
f(Ie, {
|
|
472
473
|
margin: 6,
|
|
473
474
|
type: "dashed"
|
|
474
475
|
})
|
|
@@ -479,28 +480,28 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
479
480
|
}, 8, ["list"])
|
|
480
481
|
])
|
|
481
482
|
]),
|
|
482
|
-
|
|
483
|
-
f(
|
|
483
|
+
R("div", $o, [
|
|
484
|
+
f(_t, {
|
|
484
485
|
size: "mini",
|
|
485
486
|
class: "u-flex__item",
|
|
486
487
|
type: "text",
|
|
487
488
|
status: "info",
|
|
488
|
-
onClick:
|
|
489
|
+
onClick: D[4] || (D[4] = (se) => Fe())
|
|
489
490
|
}, {
|
|
490
491
|
default: p(() => [
|
|
491
|
-
|
|
492
|
+
te("\u53D6\u6D88")
|
|
492
493
|
]),
|
|
493
494
|
_: 1
|
|
494
495
|
}),
|
|
495
|
-
f(
|
|
496
|
+
f(_t, {
|
|
496
497
|
size: "mini",
|
|
497
498
|
class: "u-flex__item",
|
|
498
499
|
type: "text",
|
|
499
500
|
status: "primary",
|
|
500
|
-
onClick:
|
|
501
|
+
onClick: D[5] || (D[5] = (se) => We())
|
|
501
502
|
}, {
|
|
502
503
|
default: p(() => [
|
|
503
|
-
|
|
504
|
+
te("\u786E\u8BA4")
|
|
504
505
|
]),
|
|
505
506
|
_: 1
|
|
506
507
|
})
|
|
@@ -515,9 +516,9 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
515
516
|
]),
|
|
516
517
|
_: 3
|
|
517
518
|
})),
|
|
518
|
-
f(
|
|
519
|
+
f(oo, I({
|
|
519
520
|
ref: t.option.ref,
|
|
520
|
-
data:
|
|
521
|
+
data: L.value,
|
|
521
522
|
height: t.height,
|
|
522
523
|
stripe: Y.value,
|
|
523
524
|
"keep-source": !1,
|
|
@@ -527,134 +528,134 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
527
528
|
"show-overflow": t.option.tooltip || "tooltip",
|
|
528
529
|
"show-header-overflow": t.option.tooltip || "tooltip",
|
|
529
530
|
size: t.size,
|
|
530
|
-
loading:
|
|
531
|
-
"radio-config":
|
|
532
|
-
"checkbox-config": { ...
|
|
531
|
+
loading: T.value,
|
|
532
|
+
"radio-config": b(m),
|
|
533
|
+
"checkbox-config": { ...b(m), checkField: t.option.checkKey },
|
|
533
534
|
"header-cell-style": t.option.headerStyle,
|
|
534
|
-
"show-footer":
|
|
535
|
+
"show-footer": b(ve)(t.option.footerMethod),
|
|
535
536
|
"footer-method": t.option.footerMethod,
|
|
536
537
|
"footer-cell-style": t.option.footerStyle,
|
|
537
538
|
"merge-footer-items": t.option.mergeFooter,
|
|
538
|
-
"show-footer-overflow": (
|
|
539
|
+
"show-footer-overflow": (bt = t.option) == null ? void 0 : bt.footerTooltip,
|
|
539
540
|
"edit-rules": t.option.rules,
|
|
540
541
|
"scroll-y": t.option.scrollY,
|
|
541
542
|
"scroll-x": t.option.scrollX
|
|
542
543
|
}, t.option.tableProps, {
|
|
543
|
-
onCheckboxChange:
|
|
544
|
-
onCheckboxAll:
|
|
545
|
-
onRadioChange:
|
|
546
|
-
onResizableChange:
|
|
547
|
-
onCellClick:
|
|
544
|
+
onCheckboxChange: b(C),
|
|
545
|
+
onCheckboxAll: b(C),
|
|
546
|
+
onRadioChange: b(v),
|
|
547
|
+
onResizableChange: Te,
|
|
548
|
+
onCellClick: O
|
|
548
549
|
}), {
|
|
549
550
|
empty: p(() => [
|
|
550
|
-
f(
|
|
551
|
+
f(eo)
|
|
551
552
|
]),
|
|
552
553
|
loading: p(() => [
|
|
553
|
-
f(
|
|
554
|
+
f(to)
|
|
554
555
|
]),
|
|
555
556
|
default: p(() => {
|
|
556
|
-
var
|
|
557
|
+
var se, Ne;
|
|
557
558
|
return [
|
|
558
|
-
["checkbox"].includes((
|
|
559
|
+
["checkbox"].includes((se = t.option.selectedType) != null ? se : "") ? (r(), y(Me, I({
|
|
559
560
|
key: 0,
|
|
560
561
|
type: "checkbox",
|
|
561
562
|
width: "30",
|
|
562
563
|
fixed: "left"
|
|
563
|
-
}, t.option.selectedProps), null, 16)) : ["radio"].includes((
|
|
564
|
+
}, t.option.selectedProps), null, 16)) : ["radio"].includes((Ne = t.option.selectedType) != null ? Ne : "") ? (r(), y(Me, I({
|
|
564
565
|
key: 1,
|
|
565
566
|
type: "radio",
|
|
566
567
|
width: "30",
|
|
567
568
|
fixed: "left"
|
|
568
|
-
}, t.option.selectedProps), null, 16)) :
|
|
569
|
-
(
|
|
570
|
-
["index"].includes(
|
|
569
|
+
}, t.option.selectedProps), null, 16)) : N("", !0),
|
|
570
|
+
(r(!0), B(Q, null, de(k.value.filter((z) => z.show), (z, lo) => (r(), B(Q, { key: lo }, [
|
|
571
|
+
["index"].includes(z.dataIndex) ? (r(), y(Me, I({
|
|
571
572
|
key: 0,
|
|
572
573
|
type: "seq",
|
|
573
|
-
field:
|
|
574
|
-
width:
|
|
575
|
-
title:
|
|
576
|
-
sortable:
|
|
577
|
-
"header-align":
|
|
578
|
-
"footer-align":
|
|
579
|
-
align:
|
|
580
|
-
"show-header-overflow":
|
|
581
|
-
"show-overflow":
|
|
582
|
-
fixed:
|
|
583
|
-
"title-prefix":
|
|
574
|
+
field: z.dataIndex,
|
|
575
|
+
width: z.width,
|
|
576
|
+
title: z.title,
|
|
577
|
+
sortable: z.sort,
|
|
578
|
+
"header-align": z.headerAlign,
|
|
579
|
+
"footer-align": z.footerAlign,
|
|
580
|
+
align: z.align,
|
|
581
|
+
"show-header-overflow": z.tooltip,
|
|
582
|
+
"show-overflow": z.tooltip,
|
|
583
|
+
fixed: z.fixed,
|
|
584
|
+
"title-prefix": z.help,
|
|
584
585
|
ref_for: !0
|
|
585
|
-
},
|
|
586
|
+
}, z.columnProps), null, 16, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix"])) : (r(), y(Me, I({
|
|
586
587
|
key: 1,
|
|
587
|
-
field:
|
|
588
|
-
width:
|
|
589
|
-
title:
|
|
590
|
-
sortable:
|
|
591
|
-
"header-align":
|
|
592
|
-
"footer-align":
|
|
593
|
-
align:
|
|
594
|
-
"show-header-overflow":
|
|
595
|
-
"show-overflow":
|
|
596
|
-
fixed:
|
|
597
|
-
"title-prefix":
|
|
598
|
-
"edit-render": { enabled: Boolean(
|
|
588
|
+
field: z.dataIndex,
|
|
589
|
+
width: z.width,
|
|
590
|
+
title: z.title,
|
|
591
|
+
sortable: z.sort,
|
|
592
|
+
"header-align": z.headerAlign,
|
|
593
|
+
"footer-align": z.footerAlign,
|
|
594
|
+
align: z.align,
|
|
595
|
+
"show-header-overflow": z.tooltip,
|
|
596
|
+
"show-overflow": z.tooltip,
|
|
597
|
+
fixed: z.fixed,
|
|
598
|
+
"title-prefix": z.help,
|
|
599
|
+
"edit-render": { enabled: Boolean(z.cell), placeholder: z.placeholder },
|
|
599
600
|
ref_for: !0
|
|
600
|
-
},
|
|
601
|
-
|
|
601
|
+
}, z.columnProps), ao({ _: 2 }, [
|
|
602
|
+
z.cell ? {
|
|
602
603
|
name: "edit",
|
|
603
|
-
fn: p(({ row:
|
|
604
|
-
|
|
605
|
-
record:
|
|
606
|
-
dataIndex:
|
|
607
|
-
rowIndex:
|
|
608
|
-
columnIndex:
|
|
609
|
-
value:
|
|
610
|
-
updateValue:
|
|
611
|
-
formatValue:
|
|
604
|
+
fn: p(({ row: ee, rowIndex: Ee, columnIndex: Ge }) => [
|
|
605
|
+
le(x.$slots, "cell", {
|
|
606
|
+
record: ee,
|
|
607
|
+
dataIndex: z.dataIndex,
|
|
608
|
+
rowIndex: Ee,
|
|
609
|
+
columnIndex: Ge,
|
|
610
|
+
value: ee[z.dataIndex],
|
|
611
|
+
updateValue: u(ee, z.dataIndex),
|
|
612
|
+
formatValue: b(ke)(ee, z)
|
|
612
613
|
}, () => [
|
|
613
|
-
|
|
614
|
+
yt(z.cell) ? (r(), y(be(z.cell), {
|
|
614
615
|
key: 0,
|
|
615
|
-
record:
|
|
616
|
-
}, null, 8, ["record"])) : (
|
|
616
|
+
record: ee
|
|
617
|
+
}, null, 8, ["record"])) : (r(), B("span", {
|
|
617
618
|
key: 1,
|
|
618
|
-
style:
|
|
619
|
-
},
|
|
619
|
+
style: oe(b(Je)(ee, z))
|
|
620
|
+
}, J(b(ke)(ee, z)), 5))
|
|
620
621
|
])
|
|
621
622
|
]),
|
|
622
623
|
key: "0"
|
|
623
624
|
} : void 0,
|
|
624
|
-
|
|
625
|
+
z.cell && z.div ? {
|
|
625
626
|
name: "default",
|
|
626
|
-
fn: p(({ row:
|
|
627
|
-
|
|
628
|
-
record:
|
|
629
|
-
dataIndex:
|
|
630
|
-
rowIndex:
|
|
631
|
-
columnIndex:
|
|
632
|
-
value:
|
|
633
|
-
updateValue:
|
|
634
|
-
formatValue:
|
|
627
|
+
fn: p(({ row: ee, rowIndex: Ee, columnIndex: Ge }) => [
|
|
628
|
+
le(x.$slots, "cell", {
|
|
629
|
+
record: ee,
|
|
630
|
+
dataIndex: z.dataIndex,
|
|
631
|
+
rowIndex: Ee,
|
|
632
|
+
columnIndex: Ge,
|
|
633
|
+
value: ee[z.dataIndex],
|
|
634
|
+
updateValue: u(ee, z.dataIndex),
|
|
635
|
+
formatValue: b(ke)(ee, z)
|
|
635
636
|
}, () => [
|
|
636
|
-
|
|
637
|
+
yt(z.cell) ? (r(), y(be(z.cell), {
|
|
637
638
|
key: 0,
|
|
638
|
-
record:
|
|
639
|
-
}, null, 8, ["record"])) : (
|
|
639
|
+
record: ee
|
|
640
|
+
}, null, 8, ["record"])) : (r(), B("span", {
|
|
640
641
|
key: 1,
|
|
641
|
-
style:
|
|
642
|
-
},
|
|
642
|
+
style: oe(b(Je)(ee, z))
|
|
643
|
+
}, J(b(ke)(ee, z)), 5))
|
|
643
644
|
])
|
|
644
645
|
]),
|
|
645
646
|
key: "1"
|
|
646
647
|
} : {
|
|
647
648
|
name: "default",
|
|
648
|
-
fn: p(({ row:
|
|
649
|
-
t.option.skinRow && !
|
|
650
|
-
|
|
649
|
+
fn: p(({ row: ee, rowIndex: Ee }) => [
|
|
650
|
+
t.option.skinRow && !z.cell ? (r(), B(Q, { key: 0 }, [
|
|
651
|
+
Ee > 0 && w(L.value, Ee, z.dataIndex) && z.width ? (r(), B("span", Oo, J(t.option.skinRowText), 1)) : (r(), B("span", {
|
|
651
652
|
key: 1,
|
|
652
|
-
style:
|
|
653
|
-
},
|
|
654
|
-
], 64)) : (
|
|
653
|
+
style: oe(A(L.value, Ee, z.dataIndex))
|
|
654
|
+
}, J(b(ke)(ee, z)), 5))
|
|
655
|
+
], 64)) : (r(), B("span", {
|
|
655
656
|
key: 1,
|
|
656
|
-
style:
|
|
657
|
-
},
|
|
657
|
+
style: oe(b(Je)(ee, z))
|
|
658
|
+
}, J(b(ke)(ee, z)), 5))
|
|
658
659
|
]),
|
|
659
660
|
key: "2"
|
|
660
661
|
}
|
|
@@ -664,35 +665,35 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
664
665
|
}),
|
|
665
666
|
_: 3
|
|
666
667
|
}, 16, ["data", "height", "stripe", "row-config", "show-overflow", "show-header-overflow", "size", "loading", "radio-config", "checkbox-config", "header-cell-style", "show-footer", "footer-method", "footer-cell-style", "merge-footer-items", "show-footer-overflow", "edit-rules", "scroll-y", "scroll-x", "onCheckboxChange", "onCheckboxAll", "onRadioChange"]),
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
668
|
+
j.value && !t.hidePagination ? (r(), B("div", So, [
|
|
669
|
+
R("div", Do, [
|
|
670
|
+
R("div", zo, [
|
|
671
|
+
le(x.$slots, "footer")
|
|
671
672
|
]),
|
|
672
|
-
|
|
673
|
-
f(
|
|
673
|
+
R("div", Po, [
|
|
674
|
+
f(vt, {
|
|
674
675
|
fill: "",
|
|
675
676
|
direction: "vertical",
|
|
676
677
|
align: "end"
|
|
677
678
|
}, {
|
|
678
679
|
default: p(() => [
|
|
679
|
-
f(
|
|
680
|
-
current:
|
|
681
|
-
"default-page-size":
|
|
682
|
-
total:
|
|
680
|
+
f(no, {
|
|
681
|
+
current: c.value.page,
|
|
682
|
+
"default-page-size": c.value.size,
|
|
683
|
+
total: ie.value,
|
|
683
684
|
"auto-adjust": !1,
|
|
684
685
|
size: t.size,
|
|
685
686
|
"show-total": "",
|
|
686
687
|
"show-page-size": "",
|
|
687
|
-
"page-size-options":
|
|
688
|
+
"page-size-options": i.value,
|
|
688
689
|
onPageSizeChange: ge,
|
|
689
|
-
onChange:
|
|
690
|
+
onChange: me
|
|
690
691
|
}, {
|
|
691
692
|
total: p(() => [
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
], 64)) :
|
|
695
|
-
|
|
693
|
+
E.value.length ? (r(), B(Q, { key: 0 }, [
|
|
694
|
+
te(" \u9009 " + J(E.value.length), 1)
|
|
695
|
+
], 64)) : N("", !0),
|
|
696
|
+
te(" \u5171 " + J(ie.value) + " \u6761 ", 1)
|
|
696
697
|
]),
|
|
697
698
|
_: 1
|
|
698
699
|
}, 8, ["current", "default-page-size", "total", "size", "page-size-options"])
|
|
@@ -701,53 +702,53 @@ const co = { class: "orc-table" }, po = { class: "u-card orc-table__setting" },
|
|
|
701
702
|
})
|
|
702
703
|
])
|
|
703
704
|
])
|
|
704
|
-
])) :
|
|
705
|
+
])) : N("", !0)
|
|
705
706
|
]);
|
|
706
707
|
};
|
|
707
708
|
}
|
|
708
709
|
});
|
|
709
|
-
const
|
|
710
|
+
const jo = {
|
|
710
711
|
tf: (e, o) => {
|
|
711
712
|
if (typeof e != "number")
|
|
712
713
|
return e;
|
|
713
714
|
if (typeof o != "number") {
|
|
714
|
-
const
|
|
715
|
-
|
|
715
|
+
const a = String(e).split(".");
|
|
716
|
+
a.length === 2 && (o = a[1].length);
|
|
716
717
|
}
|
|
717
|
-
return
|
|
718
|
+
return Qe.commafy(e, { digits: o });
|
|
718
719
|
},
|
|
719
|
-
t: (e) =>
|
|
720
|
-
time: (e, o = "yyyy-MM-dd HH:mm:ss") =>
|
|
721
|
-
p: (e, o,
|
|
722
|
-
},
|
|
723
|
-
const o =
|
|
720
|
+
t: (e) => Qe.toDateString(e, "yyyy-MM-dd"),
|
|
721
|
+
time: (e, o = "yyyy-MM-dd HH:mm:ss") => Qe.toDateString(e, o),
|
|
722
|
+
p: (e, o, a = "%") => typeof e != "number" ? e : (typeof o != "number" && (o = 2), (e * 100).toFixed(o) + a)
|
|
723
|
+
}, Jl = (e) => {
|
|
724
|
+
const o = q(/* @__PURE__ */ Object.create({})), a = q([]), { tableOption: n, $grid: l, $gridTwo: t } = Rt(e), s = {
|
|
724
725
|
rowKey: t.getRowKey(),
|
|
725
|
-
addKey(
|
|
726
|
-
var
|
|
727
|
-
const
|
|
728
|
-
if (!
|
|
726
|
+
addKey(u) {
|
|
727
|
+
var c;
|
|
728
|
+
const i = t.getTableData()[u];
|
|
729
|
+
if (!i.disabled && l.value) {
|
|
729
730
|
const m = t.getRowKey();
|
|
730
731
|
if (n.selectedType === "checkbox") {
|
|
731
|
-
const C = l.value, { fullData:
|
|
732
|
+
const C = l.value, { fullData: v } = C.getTableData();
|
|
732
733
|
if (e.checkboxKey) {
|
|
733
|
-
const
|
|
734
|
-
|
|
734
|
+
const h = e.checkboxKey, F = v.filter((O) => O[h] && O[h] === i[h]);
|
|
735
|
+
F.length && C.setCheckboxRow(F, !0);
|
|
735
736
|
} else
|
|
736
|
-
l.value.setCheckboxRow(
|
|
737
|
-
m && (
|
|
737
|
+
l.value.setCheckboxRow(i, !0);
|
|
738
|
+
m && (a.value = ((c = l.value.getCheckboxRecords()) != null ? c : []).map((h) => h[m]));
|
|
738
739
|
}
|
|
739
|
-
n.selectedType === "radio" && (l.value.setRadioRow(
|
|
740
|
+
n.selectedType === "radio" && (l.value.setRadioRow(i), l.value.getRadioRecord() && m && (a.value = [l.value.getRadioRecord()].map((C) => C[m])));
|
|
740
741
|
}
|
|
741
742
|
},
|
|
742
|
-
setTableData(
|
|
743
|
-
l.value && l.value.reloadData(
|
|
743
|
+
setTableData(u) {
|
|
744
|
+
l.value && l.value.reloadData(u);
|
|
744
745
|
},
|
|
745
|
-
setTableRow(
|
|
746
|
+
setTableRow(u, d, i) {
|
|
746
747
|
if (l.value) {
|
|
747
|
-
const
|
|
748
|
-
typeof
|
|
749
|
-
|
|
750
|
-
}),
|
|
748
|
+
const c = t.getTableData();
|
|
749
|
+
typeof d == "string" ? c[u][d] = i : Object.keys({ ...d }).forEach((m) => {
|
|
750
|
+
c[u][m] = d[m];
|
|
751
|
+
}), s.addKey(u), typeof e.footerMethod == "function" && l.value.updateFooter();
|
|
751
752
|
}
|
|
752
753
|
}
|
|
753
754
|
};
|
|
@@ -755,15 +756,15 @@ const jl = {
|
|
|
755
756
|
tableRef: o,
|
|
756
757
|
tableOptions: n,
|
|
757
758
|
tableUtils: {
|
|
758
|
-
...
|
|
759
|
+
...s,
|
|
759
760
|
...t
|
|
760
761
|
},
|
|
761
762
|
$grid: l,
|
|
762
|
-
selectedKeys:
|
|
763
|
+
selectedKeys: a
|
|
763
764
|
};
|
|
764
|
-
},
|
|
765
|
+
}, lt = (e) => {
|
|
765
766
|
let o = [];
|
|
766
|
-
const
|
|
767
|
+
const a = JSON.stringify(e, (n, l) => {
|
|
767
768
|
if (typeof l == "object" && l !== null) {
|
|
768
769
|
if (o.indexOf(l) !== -1)
|
|
769
770
|
return null;
|
|
@@ -771,48 +772,48 @@ const jl = {
|
|
|
771
772
|
}
|
|
772
773
|
return l;
|
|
773
774
|
});
|
|
774
|
-
return o = null, JSON.parse(
|
|
775
|
+
return o = null, JSON.parse(a);
|
|
775
776
|
};
|
|
776
|
-
function
|
|
777
|
+
function ut(e) {
|
|
777
778
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
778
779
|
}
|
|
779
|
-
function
|
|
780
|
+
function wt(e) {
|
|
780
781
|
return Array.isArray(e) ? e : [e];
|
|
781
782
|
}
|
|
782
|
-
const
|
|
783
|
-
function
|
|
784
|
-
const o =
|
|
783
|
+
const Ro = () => (Number(new Date()) + Number(String(Math.random()).slice(2, 15))).toString(32);
|
|
784
|
+
function To(e) {
|
|
785
|
+
const o = Ro();
|
|
785
786
|
return { key: o, model: `${String(e).slice(0, 8)}_${o}` };
|
|
786
787
|
}
|
|
787
|
-
function
|
|
788
|
+
function Ct(e, o) {
|
|
788
789
|
if (!(e != null && e.type))
|
|
789
790
|
throw new Error(`widget ${e == null ? void 0 : e.key} error`);
|
|
790
|
-
o = { ...o, ...
|
|
791
|
-
const
|
|
792
|
-
return
|
|
791
|
+
o = { ...o, ...To(e.type) };
|
|
792
|
+
const a = Object.assign({}, { ...e, ...o, options: { ...e.options, ...o.options } });
|
|
793
|
+
return a.category !== "basic" && delete a.model, a;
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
+
function Wt(e) {
|
|
795
796
|
return Array.isArray(e) ? e : e.replace(/\[/g, ".").replace(/\]/g, "").split(".");
|
|
796
797
|
}
|
|
797
|
-
function
|
|
798
|
-
return typeof e != "object" ?
|
|
798
|
+
function It(e, o, a) {
|
|
799
|
+
return typeof e != "object" ? a : Wt(o).reduce((n, l) => (n || {})[l], { ...e }) || a;
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
-
return typeof e != "object" ? e : (
|
|
801
|
+
function Wo(e, o, a) {
|
|
802
|
+
return typeof e != "object" ? e : (Wt(o).reduce((n, l, t, s) => t === s.length - 1 ? (n[l] = a, null) : (l in n || (n[l] = /^[0-9]{1,}$/.test(s[t + 1]) ? [] : {}), n[l]), e), lt(e));
|
|
802
803
|
}
|
|
803
|
-
function
|
|
804
|
+
function we(e, o, a = "children") {
|
|
804
805
|
const n = e ? `${e}.` : "", l = o !== void 0 ? `[${o}]` : "";
|
|
805
|
-
return `${n}${
|
|
806
|
+
return `${n}${a}${l}`;
|
|
806
807
|
}
|
|
807
|
-
function
|
|
808
|
+
function Xe(e) {
|
|
808
809
|
const o = /(.*)\[(.*)$/.exec(e);
|
|
809
810
|
if (o) {
|
|
810
|
-
const [,
|
|
811
|
-
return [
|
|
811
|
+
const [, a, n] = o, l = Number(n.slice(0, -1));
|
|
812
|
+
return [a, Number.isNaN(l) ? void 0 : l];
|
|
812
813
|
}
|
|
813
814
|
return ["", void 0];
|
|
814
815
|
}
|
|
815
|
-
function
|
|
816
|
+
function Mt(e, o, a) {
|
|
816
817
|
if (typeof e == "function" || typeof o == "function")
|
|
817
818
|
throw new Error("Cannot merge config in form of callback");
|
|
818
819
|
const n = { ...e };
|
|
@@ -820,190 +821,190 @@ function Pt(e, o, u) {
|
|
|
820
821
|
const t = o[l];
|
|
821
822
|
if (t == null)
|
|
822
823
|
return;
|
|
823
|
-
const
|
|
824
|
-
if (
|
|
824
|
+
const s = n[l];
|
|
825
|
+
if (s == null)
|
|
825
826
|
n[l] = t;
|
|
826
|
-
else if (Array.isArray(
|
|
827
|
-
n[l] = [...
|
|
828
|
-
else if (
|
|
827
|
+
else if (Array.isArray(s) || Array.isArray(t))
|
|
828
|
+
n[l] = [...wt(s), ...wt(t)];
|
|
829
|
+
else if (ut(s) && ut(t))
|
|
829
830
|
try {
|
|
830
|
-
n[l] =
|
|
831
|
+
n[l] = Mt(s, t, a ? `${a}.${l}` : l);
|
|
831
832
|
} catch {
|
|
832
|
-
console.error(`${
|
|
833
|
+
console.error(`${a} Error: `, t);
|
|
833
834
|
}
|
|
834
835
|
else
|
|
835
836
|
n[l] = t;
|
|
836
837
|
}), n;
|
|
837
838
|
}
|
|
838
|
-
const
|
|
839
|
+
const Se = zt({
|
|
839
840
|
children: [],
|
|
840
841
|
models: {},
|
|
841
842
|
remoteFuncs: {},
|
|
842
843
|
config: { width: "210mm", height: "297mm", labelWidth: "100px", labelAlign: "right" },
|
|
843
844
|
readonly: !0,
|
|
844
845
|
selectPath: null
|
|
845
|
-
}),
|
|
846
|
-
function
|
|
846
|
+
}), Nt = Symbol("SymbolWidgetState");
|
|
847
|
+
function Io(e = {}) {
|
|
847
848
|
Object.keys(e).forEach((o) => {
|
|
848
|
-
|
|
849
|
-
}),
|
|
849
|
+
ut(e[o]) ? Se[o] = Mt(e[o], Se[o]) : Se[o] = e[o];
|
|
850
|
+
}), Pt(Nt, Se);
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
-
return
|
|
852
|
+
function Pe() {
|
|
853
|
+
return Ce(St(Nt, Se));
|
|
853
854
|
}
|
|
854
|
-
const
|
|
855
|
+
const he = {
|
|
855
856
|
animation: 300,
|
|
856
857
|
dragClass: "fe-drag",
|
|
857
858
|
ghostClass: "fe-ghost",
|
|
858
859
|
chosenClass: "fe-chosen",
|
|
859
860
|
itemKey: "key",
|
|
860
861
|
handle: ".fe-moving"
|
|
861
|
-
},
|
|
862
|
+
}, Mo = {
|
|
862
863
|
left: "px",
|
|
863
864
|
top: "px",
|
|
864
865
|
options: "select"
|
|
865
866
|
};
|
|
866
|
-
function
|
|
867
|
-
const { children: e, models: o, config:
|
|
868
|
-
function
|
|
869
|
-
if (
|
|
870
|
-
if (!/^children/.test(
|
|
867
|
+
function ae() {
|
|
868
|
+
const { children: e, models: o, config: a, remoteFuncs: n, selectPath: l } = Pe(), t = () => ({ children: e.value });
|
|
869
|
+
function s(v, h) {
|
|
870
|
+
if (v) {
|
|
871
|
+
if (!/^children/.test(v))
|
|
871
872
|
throw new Error("Illegal operation attribute");
|
|
872
|
-
|
|
873
|
+
Wo(t(), v, h);
|
|
873
874
|
}
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
-
if (!
|
|
876
|
+
function u(v) {
|
|
877
|
+
if (!v)
|
|
877
878
|
return null;
|
|
878
|
-
const
|
|
879
|
-
return
|
|
879
|
+
const h = It(t(), v);
|
|
880
|
+
return h || null;
|
|
880
881
|
}
|
|
881
|
-
function
|
|
882
|
-
const { options:
|
|
883
|
-
if (Object.keys(
|
|
882
|
+
function d(v) {
|
|
883
|
+
const { options: h = {}, optionsConfig: F = {} } = v != null ? v : {};
|
|
884
|
+
if (Object.keys(h).length === 0)
|
|
884
885
|
return null;
|
|
885
|
-
const
|
|
886
|
-
return Object.keys(
|
|
887
|
-
|
|
888
|
-
}), Object.keys(
|
|
889
|
-
var
|
|
890
|
-
let
|
|
891
|
-
(
|
|
892
|
-
...
|
|
893
|
-
show:
|
|
894
|
-
tooltip: (
|
|
895
|
-
options: (
|
|
886
|
+
const O = { ...F };
|
|
887
|
+
return Object.keys(O).forEach((w) => {
|
|
888
|
+
O[w] = typeof O[w] != "object" ? { type: O[w], model: w } : O[w];
|
|
889
|
+
}), Object.keys(h).forEach((w) => {
|
|
890
|
+
var $, k;
|
|
891
|
+
let A = { type: "string", model: w }, S = O[w] || Mo[w] || typeof h[w];
|
|
892
|
+
(!S || S === "undefined") && (S = "string"), typeof S == "object" ? A = { ...A, ...S } : A.type = S, O[w] = {
|
|
893
|
+
...A,
|
|
894
|
+
show: A.show !== !1,
|
|
895
|
+
tooltip: ($ = h.tooltip) != null ? $ : A.tooltip,
|
|
896
|
+
options: (k = h.options) != null ? k : A.options
|
|
896
897
|
};
|
|
897
|
-
}),
|
|
898
|
+
}), O;
|
|
898
899
|
}
|
|
899
|
-
function
|
|
900
|
-
const
|
|
901
|
-
if (
|
|
902
|
-
const [
|
|
903
|
-
Array.isArray(
|
|
900
|
+
function i(v) {
|
|
901
|
+
const h = { len: 0, isDelete: !0, isCopy: !0, isHidden: !1 };
|
|
902
|
+
if (v) {
|
|
903
|
+
const [F] = Xe(v), O = u(F);
|
|
904
|
+
Array.isArray(O) && (h.len = O.length);
|
|
904
905
|
}
|
|
905
|
-
return
|
|
906
|
+
return h;
|
|
906
907
|
}
|
|
907
|
-
return { updateRootPathValue:
|
|
908
|
-
const
|
|
909
|
-
|
|
910
|
-
},
|
|
911
|
-
var
|
|
912
|
-
const
|
|
913
|
-
|
|
914
|
-
},
|
|
915
|
-
const
|
|
916
|
-
|
|
908
|
+
return { updateRootPathValue: s, getWidget: u, getWidgetProperty: i, getWidgetPanelProperty: d, useField: (v) => {
|
|
909
|
+
const h = rt(), F = (S) => {
|
|
910
|
+
h.value = S;
|
|
911
|
+
}, O = M(() => u(v.value)), w = () => {
|
|
912
|
+
var $, k, P;
|
|
913
|
+
const S = O.value;
|
|
914
|
+
S && S.model ? F((P = (k = o.value[S.model]) != null ? k : ($ = S.options) == null ? void 0 : $.defaultValue) != null ? P : void 0) : F(void 0);
|
|
915
|
+
}, A = () => {
|
|
916
|
+
const S = O.value;
|
|
917
|
+
S && S.model && (o.value[S.model] = h.value);
|
|
917
918
|
};
|
|
918
|
-
return
|
|
919
|
-
const
|
|
920
|
-
(
|
|
921
|
-
}), [
|
|
919
|
+
return ne(v, w, { immediate: !0 }), ne(() => O.value && O.value.model && o.value[O.value.model], F), ne(h, (S) => {
|
|
920
|
+
const $ = O.value;
|
|
921
|
+
($ == null ? void 0 : $.model) && $.options && ($.options.defaultValue = S), A();
|
|
922
|
+
}), [h];
|
|
922
923
|
}, useWidgetOperation: () => {
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
},
|
|
926
|
-
l.value =
|
|
927
|
-
},
|
|
924
|
+
const v = ($, k) => {
|
|
925
|
+
a.value[$] = k;
|
|
926
|
+
}, h = ($) => {
|
|
927
|
+
l.value = $;
|
|
928
|
+
}, F = ($) => l.value === $, O = () => {
|
|
928
929
|
e.value = [], l.value = null;
|
|
929
|
-
},
|
|
930
|
-
config: { ...
|
|
930
|
+
}, w = () => ({
|
|
931
|
+
config: { ...a.value },
|
|
931
932
|
children: [...e.value],
|
|
932
933
|
models: { ...o.value },
|
|
933
934
|
remoteFuncs: { ...n.value }
|
|
934
935
|
});
|
|
935
|
-
function
|
|
936
|
-
if (
|
|
936
|
+
function A($) {
|
|
937
|
+
if (!$)
|
|
937
938
|
return;
|
|
938
|
-
const [
|
|
939
|
-
|
|
939
|
+
const [k, P = 0] = Xe($), j = u(k);
|
|
940
|
+
j && Array.isArray(j) && (j.splice(P, 1), s(k, j), j.length > 0 && h(`${k}[${Math.min(P, j.length - 1)}]`));
|
|
940
941
|
}
|
|
941
|
-
function $
|
|
942
|
-
|
|
942
|
+
function S($) {
|
|
943
|
+
if (!$)
|
|
944
|
+
return;
|
|
945
|
+
const k = u($), [P, j = 0] = Xe($), T = u(P);
|
|
946
|
+
if (k && T && Array.isArray(T)) {
|
|
947
|
+
const Y = Ct(k, {});
|
|
948
|
+
T.splice(j, 0, Y), s(P, T), h(`${P}[${j + 1}]`);
|
|
949
|
+
}
|
|
943
950
|
}
|
|
944
|
-
return { setConfig:
|
|
945
|
-
}, useDraggableOperation: (
|
|
946
|
-
function
|
|
947
|
-
if (!(
|
|
951
|
+
return { setConfig: v, onSelected: h, hasSelected: F, onReset: O, toJson: w, onDelete: A, onCopy: S };
|
|
952
|
+
}, useDraggableOperation: (v) => {
|
|
953
|
+
function h(A) {
|
|
954
|
+
if (!(v != null && v.value))
|
|
948
955
|
return {};
|
|
949
|
-
const { originalEvent:
|
|
950
|
-
return { left: `${
|
|
956
|
+
const { originalEvent: S } = A, { clientX: $, clientY: k } = S, { top: P, left: j } = v.value.getBoundingClientRect();
|
|
957
|
+
return { left: `${$ - j}px`, top: `${k - P}px` };
|
|
951
958
|
}
|
|
952
|
-
const
|
|
953
|
-
|
|
959
|
+
const F = (A, S) => {
|
|
960
|
+
s(A, S), l.value = A;
|
|
954
961
|
};
|
|
955
|
-
function
|
|
956
|
-
var
|
|
957
|
-
if (!
|
|
962
|
+
function O(A, S = null) {
|
|
963
|
+
var j, T;
|
|
964
|
+
if (!A)
|
|
958
965
|
return;
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
}
|
|
964
|
-
function
|
|
965
|
-
var
|
|
966
|
-
if (!
|
|
966
|
+
const $ = A.newIndex, k = lt(S ? (T = (j = u(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
|
|
967
|
+
k[$] = Ct(k[$], { options: h(A) }), k[$].children && (k[$] = { ...k[$], children: [...k[$].children] });
|
|
968
|
+
const P = we(S, $);
|
|
969
|
+
F(`${P}`, k[$]);
|
|
970
|
+
}
|
|
971
|
+
function w(A, S = null) {
|
|
972
|
+
var j, T;
|
|
973
|
+
if (!A)
|
|
967
974
|
return;
|
|
968
|
-
const
|
|
969
|
-
|
|
970
|
-
const
|
|
971
|
-
|
|
975
|
+
const $ = A.newIndex, k = lt(S ? (T = (j = u(S)) == null ? void 0 : j.children) != null ? T : [] : e.value);
|
|
976
|
+
k[$].options = { ...k[$].options, ...h(A) };
|
|
977
|
+
const P = we(S, $);
|
|
978
|
+
F(`${P}`, k[$]);
|
|
972
979
|
}
|
|
973
980
|
return {
|
|
974
|
-
onAddWidget:
|
|
975
|
-
onUpdateWidget:
|
|
981
|
+
onAddWidget: O,
|
|
982
|
+
onUpdateWidget: w
|
|
976
983
|
};
|
|
977
984
|
} };
|
|
978
985
|
}
|
|
979
|
-
function
|
|
980
|
-
e.forEach((o,
|
|
986
|
+
function No(...e) {
|
|
987
|
+
e.forEach((o, a) => console.log(`%c#${a + 1}: %o`, "color: #1672f6 ;", o));
|
|
981
988
|
}
|
|
982
|
-
function
|
|
989
|
+
function Le(e) {
|
|
983
990
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
984
991
|
}
|
|
985
|
-
function
|
|
992
|
+
function Uo(e) {
|
|
986
993
|
return Array.isArray(e);
|
|
987
994
|
}
|
|
988
|
-
function
|
|
989
|
-
return
|
|
995
|
+
function At(e) {
|
|
996
|
+
return Le(e) === "Object";
|
|
990
997
|
}
|
|
991
|
-
function
|
|
992
|
-
return
|
|
998
|
+
function qo(e) {
|
|
999
|
+
return Le(e) === "Number" && String(e) !== "NaN";
|
|
993
1000
|
}
|
|
994
|
-
function
|
|
995
|
-
return ke(e) === "Object" && Object.keys(e).length === 0;
|
|
996
|
-
}
|
|
997
|
-
function Ml(e) {
|
|
998
|
-
return ke(e) === "Array" && e.length === 0;
|
|
999
|
-
}
|
|
1000
|
-
function Xe(e) {
|
|
1001
|
+
function at(e) {
|
|
1001
1002
|
return Array.isArray(e) ? e : [e];
|
|
1002
1003
|
}
|
|
1003
|
-
const
|
|
1004
|
+
const Ko = (e) => {
|
|
1004
1005
|
try {
|
|
1005
1006
|
let o = [];
|
|
1006
|
-
const
|
|
1007
|
+
const a = JSON.stringify(e, (n, l) => {
|
|
1007
1008
|
if (typeof l == "object" && l !== null) {
|
|
1008
1009
|
if (o.indexOf(l) !== -1)
|
|
1009
1010
|
return null;
|
|
@@ -1011,76 +1012,73 @@ const Nl = (e) => {
|
|
|
1011
1012
|
}
|
|
1012
1013
|
return l;
|
|
1013
1014
|
});
|
|
1014
|
-
return o = null, JSON.parse(
|
|
1015
|
+
return o = null, JSON.parse(a);
|
|
1015
1016
|
} catch {
|
|
1016
|
-
return console.log("deepClone error, please use omitObject to remove non data type keys", e),
|
|
1017
|
+
return console.log("deepClone error, please use omitObject to remove non data type keys", e), Le(e) !== "Array" ? {} : [];
|
|
1017
1018
|
}
|
|
1018
1019
|
};
|
|
1019
|
-
function
|
|
1020
|
+
function He(e, o = []) {
|
|
1020
1021
|
typeof o == "string" && (o = [o]);
|
|
1021
|
-
const
|
|
1022
|
+
const a = /* @__PURE__ */ Object.create({});
|
|
1022
1023
|
return Object.keys(e).forEach((n) => {
|
|
1023
|
-
o.includes(n) || (
|
|
1024
|
-
}),
|
|
1024
|
+
o.includes(n) || (a[n] = e[n]);
|
|
1025
|
+
}), a;
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
+
function Ut(e, o = []) {
|
|
1027
1028
|
typeof o == "string" && (o = [o]);
|
|
1028
|
-
const
|
|
1029
|
+
const a = /* @__PURE__ */ Object.create({});
|
|
1029
1030
|
return Object.keys(e).forEach((n) => {
|
|
1030
|
-
o.includes(n) && (
|
|
1031
|
-
}),
|
|
1031
|
+
o.includes(n) && (a[n] = e[n]);
|
|
1032
|
+
}), a;
|
|
1032
1033
|
}
|
|
1033
|
-
const
|
|
1034
|
-
function jt(e) {
|
|
1035
|
-
return Array.isArray(e) ? e : e.replace(/\[/g, ".").replace(/\]/g, "").split(".");
|
|
1036
|
-
}
|
|
1037
|
-
function ql(e, o, u) {
|
|
1038
|
-
return typeof e != "object" ? u : jt(o).reduce((n, l) => (n || {})[l], e) || u;
|
|
1039
|
-
}
|
|
1040
|
-
function Kl(e, o, u) {
|
|
1041
|
-
return typeof e != "object" || jt(o).reduce((n, l, t, i) => t === i.length - 1 ? (n[l] = u, null) : (l in n || (n[l] = /^[0-9]{1,}$/.test(i[t + 1]) ? [] : {}), n[l]), e), e;
|
|
1042
|
-
}
|
|
1043
|
-
const Ll = (e, o = "") => {
|
|
1034
|
+
const Lo = (e, o = "") => {
|
|
1044
1035
|
if (/(chrome|safari|firefox)/g.test(navigator.userAgent.toLowerCase())) {
|
|
1045
|
-
const
|
|
1046
|
-
if (
|
|
1036
|
+
const a = document.createElement("a");
|
|
1037
|
+
if (a.href = e, a.download !== void 0 && (o = o || e.substring(e.lastIndexOf("/") + 1, e.length), a.download = o), console.log(`download: ${o}`), document.createEvent) {
|
|
1047
1038
|
const n = document.createEvent("MouseEvents");
|
|
1048
|
-
return n.initEvent("click", !0, !0),
|
|
1039
|
+
return n.initEvent("click", !0, !0), a.dispatchEvent(n), !0;
|
|
1049
1040
|
}
|
|
1050
1041
|
}
|
|
1051
1042
|
return ~e.indexOf("?") || (e += "?download"), window.open(e, "_self"), !0;
|
|
1052
1043
|
};
|
|
1053
|
-
function
|
|
1044
|
+
function De(e, o) {
|
|
1045
|
+
const a = q(e);
|
|
1046
|
+
return [a, (l) => {
|
|
1047
|
+
var t;
|
|
1048
|
+
a.value = { ...e, ...l != null ? l : {} }, o && ((t = o.value) == null ? void 0 : t.resetFields) && o.value.resetFields();
|
|
1049
|
+
}];
|
|
1050
|
+
}
|
|
1051
|
+
function qt(e, o, a) {
|
|
1054
1052
|
const n = { ...e };
|
|
1055
1053
|
for (const l in o) {
|
|
1056
1054
|
const t = o[l];
|
|
1057
1055
|
if (t == null)
|
|
1058
1056
|
continue;
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1057
|
+
const s = n[l];
|
|
1058
|
+
if (s == null) {
|
|
1061
1059
|
n[l] = t;
|
|
1062
1060
|
continue;
|
|
1063
1061
|
}
|
|
1064
|
-
if (Array.isArray(
|
|
1065
|
-
n[l] = [...
|
|
1062
|
+
if (Array.isArray(s) || Array.isArray(t)) {
|
|
1063
|
+
n[l] = [...at(s), ...at(t)];
|
|
1066
1064
|
continue;
|
|
1067
1065
|
}
|
|
1068
|
-
if (
|
|
1069
|
-
n[l] =
|
|
1066
|
+
if (At(s) && At(t)) {
|
|
1067
|
+
n[l] = qt(s, t);
|
|
1070
1068
|
continue;
|
|
1071
1069
|
}
|
|
1072
1070
|
n[l] = t;
|
|
1073
1071
|
}
|
|
1074
1072
|
return n;
|
|
1075
1073
|
}
|
|
1076
|
-
function
|
|
1074
|
+
function Ho(e, o, a = !0) {
|
|
1077
1075
|
if (typeof e == "function" || typeof o == "function")
|
|
1078
1076
|
throw new Error("Cannot merge config in form of callback");
|
|
1079
|
-
return
|
|
1077
|
+
return qt(e, o);
|
|
1080
1078
|
}
|
|
1081
|
-
async function
|
|
1082
|
-
var
|
|
1083
|
-
const n = { letterRendering: "portrait", html2canvas: {}, jsPDF: {}, className: null, ...
|
|
1079
|
+
async function Go(e, o, a) {
|
|
1080
|
+
var u;
|
|
1081
|
+
const n = { letterRendering: "portrait", html2canvas: {}, jsPDF: {}, className: null, ...a }, l = (u = n.scale) != null ? u : 1.5, t = `${e}.pdf`, s = {
|
|
1084
1082
|
margin: [0, 0, -0.5, -0.5],
|
|
1085
1083
|
filename: t,
|
|
1086
1084
|
image: { type: "jpeg", quality: 0.95 },
|
|
@@ -1099,93 +1097,96 @@ async function Gl(e, o, u) {
|
|
|
1099
1097
|
...n.jsPDF
|
|
1100
1098
|
},
|
|
1101
1099
|
pagebreak: { mode: ["avoid-all", "css", "legacy"] },
|
|
1102
|
-
...
|
|
1100
|
+
...He(n, ["html2canvas", "jsPDF", "letterRendering", "className", "success"])
|
|
1103
1101
|
};
|
|
1104
|
-
return await
|
|
1105
|
-
if (
|
|
1106
|
-
let
|
|
1107
|
-
const m =
|
|
1102
|
+
return await io(), new Promise((d, i) => {
|
|
1103
|
+
if (ht && o) {
|
|
1104
|
+
let c = ht().set(s);
|
|
1105
|
+
const m = a != null && a.className ? o.querySelectorAll(a.className) : null;
|
|
1108
1106
|
let C = m ? [].slice.call(m) : [o];
|
|
1109
|
-
if (C.length || (C = [o]), console.log(`Create a ${C.length}-page file named ${t}`), typeof (
|
|
1110
|
-
|
|
1107
|
+
if (C.length || (C = [o]), console.log(`Create a ${C.length}-page file named ${t}`), typeof (a == null ? void 0 : a.success) == "function")
|
|
1108
|
+
a.success(c, C);
|
|
1111
1109
|
else {
|
|
1112
|
-
let
|
|
1113
|
-
C.forEach((
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1110
|
+
let v, h = new Date().getTime(), F = 0, O = 0;
|
|
1111
|
+
C.forEach((w, A) => {
|
|
1112
|
+
c = c.from(w).toContainer().toCanvas().toPdf().get("pdf").then((S) => {
|
|
1113
|
+
if (C.length > 1) {
|
|
1114
|
+
const $ = new Date().getTime(), k = $ - h;
|
|
1115
|
+
F += k, O += 1;
|
|
1116
|
+
const P = F / O, j = C.length - (A + 1), T = (j * P / 1e3).toFixed(2);
|
|
1117
|
+
h = $, j === 0 ? v && v.close() : O % 5 === 0 && (v = jt.loading({
|
|
1118
|
+
id: "MessageLoadingDownloadPdf",
|
|
1119
|
+
content: `\u521B\u5EFA${t},\u7EA6\u5269 ${T}s`,
|
|
1120
|
+
duration: 0
|
|
1121
|
+
}));
|
|
1122
|
+
}
|
|
1123
|
+
C && A < C.length - 1 && S.addPage();
|
|
1123
1124
|
});
|
|
1124
|
-
}),
|
|
1125
|
+
}), c.save();
|
|
1125
1126
|
}
|
|
1126
|
-
|
|
1127
|
+
d();
|
|
1127
1128
|
} else
|
|
1128
|
-
|
|
1129
|
+
i();
|
|
1129
1130
|
});
|
|
1130
1131
|
}
|
|
1131
|
-
function
|
|
1132
|
-
var
|
|
1132
|
+
function Kt(e) {
|
|
1133
|
+
var a, n, l, t, s, u;
|
|
1133
1134
|
if (!e.bcid)
|
|
1134
1135
|
return "";
|
|
1135
1136
|
const o = document.createElement("canvas");
|
|
1136
|
-
return o.height = 1, o.width = 1,
|
|
1137
|
+
return o.height = 1, o.width = 1, po.toCanvas(o, {
|
|
1137
1138
|
bcid: e.bcid,
|
|
1138
|
-
text: (
|
|
1139
|
+
text: (a = e.defaultValue) != null ? a : "Unknown",
|
|
1139
1140
|
height: e.height,
|
|
1140
1141
|
scaleX: (l = (n = e.scaleX) != null ? n : e.scale) != null ? l : 2,
|
|
1141
|
-
scaleY: (
|
|
1142
|
+
scaleY: (s = (t = e.scaleY) != null ? t : e.scale) != null ? s : 2,
|
|
1142
1143
|
width: e.width,
|
|
1143
|
-
padding: (
|
|
1144
|
+
padding: (u = e.padding) != null ? u : 0,
|
|
1144
1145
|
...e.bcid === "qrcode" ? { eclevel: "H" } : {}
|
|
1145
1146
|
}), o.toDataURL();
|
|
1146
1147
|
}
|
|
1147
|
-
const
|
|
1148
|
+
const Qo = ["src", "onerror"], Et = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", Lt = /* @__PURE__ */ U({
|
|
1148
1149
|
__name: "qrcode",
|
|
1149
1150
|
props: {
|
|
1150
1151
|
path: {},
|
|
1151
1152
|
isEdit: { type: Boolean }
|
|
1152
1153
|
},
|
|
1153
1154
|
setup(e) {
|
|
1154
|
-
const o = e, { path:
|
|
1155
|
-
var
|
|
1156
|
-
return (
|
|
1155
|
+
const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a), u = M(() => {
|
|
1156
|
+
var i;
|
|
1157
|
+
return (i = t == null ? void 0 : t.value) == null ? void 0 : i.options;
|
|
1157
1158
|
});
|
|
1158
|
-
function
|
|
1159
|
-
var
|
|
1160
|
-
const
|
|
1161
|
-
if (!(
|
|
1159
|
+
function d() {
|
|
1160
|
+
var c;
|
|
1161
|
+
const i = (c = u.value) != null ? c : {};
|
|
1162
|
+
if (!(i != null && i.bcid))
|
|
1162
1163
|
return "";
|
|
1163
1164
|
try {
|
|
1164
|
-
return
|
|
1165
|
+
return Kt({ ...i, defaultValue: s == null ? void 0 : s.value });
|
|
1165
1166
|
} catch (m) {
|
|
1166
|
-
return console.error(String(m)),
|
|
1167
|
+
return console.error(String(m)), Et;
|
|
1167
1168
|
}
|
|
1168
1169
|
}
|
|
1169
|
-
return (
|
|
1170
|
+
return (i, c) => u.value ? (r(), B("img", {
|
|
1170
1171
|
key: 0,
|
|
1171
|
-
src:
|
|
1172
|
-
style:
|
|
1172
|
+
src: d(),
|
|
1173
|
+
style: oe({ display: "block", background: "#fff", width: u.value.width + "px", height: u.value.height + "px" }),
|
|
1173
1174
|
draggable: "false",
|
|
1174
|
-
onerror: `this.src='${
|
|
1175
|
-
}, null, 12,
|
|
1175
|
+
onerror: `this.src='${Et}'`
|
|
1176
|
+
}, null, 12, Qo)) : N("", !0);
|
|
1176
1177
|
}
|
|
1177
|
-
}),
|
|
1178
|
+
}), Jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1178
1179
|
__proto__: null,
|
|
1179
|
-
default:
|
|
1180
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1180
|
+
default: Lt
|
|
1181
|
+
}, Symbol.toStringTag, { value: "Module" })), Xo = {
|
|
1181
1182
|
__name: "barcode",
|
|
1182
1183
|
setup(e) {
|
|
1183
|
-
return (o,
|
|
1184
|
+
return (o, a) => (r(), y(Lt, xe(ct(o.$props)), null, 16));
|
|
1184
1185
|
}
|
|
1185
|
-
},
|
|
1186
|
+
}, Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1186
1187
|
__proto__: null,
|
|
1187
|
-
default:
|
|
1188
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1188
|
+
default: Xo
|
|
1189
|
+
}, Symbol.toStringTag, { value: "Module" })), pt = /* @__PURE__ */ U({
|
|
1189
1190
|
__name: "view",
|
|
1190
1191
|
props: {
|
|
1191
1192
|
path: {},
|
|
@@ -1193,94 +1194,94 @@ const Wo = ["src", "onerror"], gt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1193
1194
|
isView: { type: Boolean }
|
|
1194
1195
|
},
|
|
1195
1196
|
setup(e) {
|
|
1196
|
-
const o = e, { getWidget:
|
|
1197
|
-
var
|
|
1198
|
-
return o.isView ? !0 : ((
|
|
1197
|
+
const o = e, { getWidget: a, useDraggableOperation: n } = ae(), l = M(() => a(o.path)), { onAddWidget: t } = n(), s = (u, d, i) => {
|
|
1198
|
+
var c;
|
|
1199
|
+
return o.isView ? !0 : ((c = i == null ? void 0 : i.dataset) == null ? void 0 : c.category) === "basic";
|
|
1199
1200
|
};
|
|
1200
|
-
return (
|
|
1201
|
+
return (u, d) => l.value && l.value.children ? (r(), y(b(ze), I({
|
|
1201
1202
|
key: 0,
|
|
1202
1203
|
list: l.value.children,
|
|
1203
1204
|
class: { "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
|
|
1204
1205
|
style: { paddingBottom: "0px", minHeight: "50px" },
|
|
1205
1206
|
disabled: !o.isEdit,
|
|
1206
|
-
group: { name: "orchisky", put:
|
|
1207
|
-
},
|
|
1208
|
-
onAdd:
|
|
1207
|
+
group: { name: "orchisky", put: s }
|
|
1208
|
+
}, b(he), {
|
|
1209
|
+
onAdd: d[0] || (d[0] = (i) => b(t)(i, o.path))
|
|
1209
1210
|
}), {
|
|
1210
|
-
item: p(({ element:
|
|
1211
|
-
|
|
1212
|
-
element:
|
|
1213
|
-
index:
|
|
1211
|
+
item: p(({ element: i, index: c }) => [
|
|
1212
|
+
le(u.$slots, "default", {
|
|
1213
|
+
element: i,
|
|
1214
|
+
index: c
|
|
1214
1215
|
}, () => [
|
|
1215
|
-
f(
|
|
1216
|
-
path:
|
|
1216
|
+
f(Ve, {
|
|
1217
|
+
path: b(we)(o.path, c),
|
|
1217
1218
|
"is-edit": o.isEdit
|
|
1218
1219
|
}, null, 8, ["path", "is-edit"])
|
|
1219
1220
|
])
|
|
1220
1221
|
]),
|
|
1221
1222
|
footer: p(() => []),
|
|
1222
1223
|
_: 3
|
|
1223
|
-
}, 16, ["list", "class", "disabled", "group"])) :
|
|
1224
|
+
}, 16, ["list", "class", "disabled", "group"])) : N("", !0);
|
|
1224
1225
|
}
|
|
1225
|
-
}),
|
|
1226
|
+
}), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1226
1227
|
__proto__: null,
|
|
1227
|
-
default:
|
|
1228
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1228
|
+
default: pt
|
|
1229
|
+
}, Symbol.toStringTag, { value: "Module" })), en = /* @__PURE__ */ U({
|
|
1229
1230
|
__name: "card",
|
|
1230
1231
|
props: {
|
|
1231
1232
|
path: {},
|
|
1232
1233
|
isEdit: { type: Boolean }
|
|
1233
1234
|
},
|
|
1234
1235
|
setup(e) {
|
|
1235
|
-
const o = e, { getWidget:
|
|
1236
|
+
const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
|
|
1236
1237
|
return (l, t) => {
|
|
1237
|
-
const
|
|
1238
|
-
return n.value && n.value.children ? (
|
|
1238
|
+
const s = g("ACard");
|
|
1239
|
+
return n.value && n.value.children ? (r(), y(s, {
|
|
1239
1240
|
key: 0,
|
|
1240
1241
|
title: n.value.name,
|
|
1241
1242
|
size: "small",
|
|
1242
1243
|
style: { "margin-bottom": "8px" }
|
|
1243
1244
|
}, {
|
|
1244
1245
|
default: p(() => [
|
|
1245
|
-
f(
|
|
1246
|
+
f(pt, {
|
|
1246
1247
|
path: o.path,
|
|
1247
1248
|
"is-edit": o.isEdit,
|
|
1248
1249
|
"is-view": ""
|
|
1249
1250
|
}, null, 8, ["path", "is-edit"])
|
|
1250
1251
|
]),
|
|
1251
1252
|
_: 1
|
|
1252
|
-
}, 8, ["title"])) :
|
|
1253
|
+
}, 8, ["title"])) : N("", !0);
|
|
1253
1254
|
};
|
|
1254
1255
|
}
|
|
1255
|
-
}),
|
|
1256
|
+
}), tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1256
1257
|
__proto__: null,
|
|
1257
|
-
default:
|
|
1258
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1258
|
+
default: en
|
|
1259
|
+
}, Symbol.toStringTag, { value: "Module" })), on = /* @__PURE__ */ U({
|
|
1259
1260
|
__name: "form",
|
|
1260
1261
|
props: {
|
|
1261
1262
|
path: {},
|
|
1262
1263
|
isEdit: { type: Boolean }
|
|
1263
1264
|
},
|
|
1264
1265
|
setup(e) {
|
|
1265
|
-
const o = e, { getWidget:
|
|
1266
|
+
const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
|
|
1266
1267
|
return (l, t) => {
|
|
1267
|
-
const
|
|
1268
|
-
return n.value && n.value.children ? (
|
|
1268
|
+
const s = g("ACard");
|
|
1269
|
+
return n.value && n.value.children ? (r(), y(s, {
|
|
1269
1270
|
key: 0,
|
|
1270
1271
|
title: n.value.name,
|
|
1271
1272
|
size: "small",
|
|
1272
1273
|
style: { "margin-bottom": "8px" }
|
|
1273
1274
|
}, {
|
|
1274
1275
|
default: p(() => [
|
|
1275
|
-
f(
|
|
1276
|
+
f(pt, {
|
|
1276
1277
|
path: o.path,
|
|
1277
1278
|
"is-edit": o.isEdit,
|
|
1278
1279
|
"is-view": "",
|
|
1279
1280
|
class: "arco-row"
|
|
1280
1281
|
}, {
|
|
1281
|
-
item: p(({ index:
|
|
1282
|
-
f(
|
|
1283
|
-
path:
|
|
1282
|
+
item: p(({ index: u }) => [
|
|
1283
|
+
f(Ve, {
|
|
1284
|
+
path: b(we)(o.path, u),
|
|
1284
1285
|
"is-edit": o.isEdit,
|
|
1285
1286
|
class: "arco-col arco-col-12"
|
|
1286
1287
|
}, null, 8, ["path", "is-edit"])
|
|
@@ -1289,34 +1290,34 @@ const Wo = ["src", "onerror"], gt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1289
1290
|
}, 8, ["path", "is-edit"])
|
|
1290
1291
|
]),
|
|
1291
1292
|
_: 1
|
|
1292
|
-
}, 8, ["title"])) :
|
|
1293
|
+
}, 8, ["title"])) : N("", !0);
|
|
1293
1294
|
};
|
|
1294
1295
|
}
|
|
1295
|
-
}),
|
|
1296
|
+
}), nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1296
1297
|
__proto__: null,
|
|
1297
|
-
default:
|
|
1298
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1298
|
+
default: on
|
|
1299
|
+
}, Symbol.toStringTag, { value: "Module" })), ln = /* @__PURE__ */ U({
|
|
1299
1300
|
__name: "grid",
|
|
1300
1301
|
props: {
|
|
1301
1302
|
path: {},
|
|
1302
1303
|
isEdit: { type: Boolean }
|
|
1303
1304
|
},
|
|
1304
1305
|
setup(e) {
|
|
1305
|
-
const o = e, { getWidget:
|
|
1306
|
+
const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
|
|
1306
1307
|
return (l, t) => {
|
|
1307
|
-
const
|
|
1308
|
-
return n.value && n.value.key && n.value.children ? (
|
|
1308
|
+
const s = g("a-col"), u = g("a-row");
|
|
1309
|
+
return n.value && n.value.key && n.value.children ? (r(), y(u, {
|
|
1309
1310
|
key: 0,
|
|
1310
1311
|
gutter: 8
|
|
1311
1312
|
}, {
|
|
1312
1313
|
default: p(() => [
|
|
1313
|
-
(
|
|
1314
|
-
key:
|
|
1314
|
+
(r(!0), B(Q, null, de(n.value.children, (d, i) => (r(), y(s, {
|
|
1315
|
+
key: i,
|
|
1315
1316
|
span: 12
|
|
1316
1317
|
}, {
|
|
1317
1318
|
default: p(() => [
|
|
1318
|
-
f(
|
|
1319
|
-
path:
|
|
1319
|
+
f(Ve, {
|
|
1320
|
+
path: b(we)(o.path, i),
|
|
1320
1321
|
"is-edit": o.isEdit
|
|
1321
1322
|
}, null, 8, ["path", "is-edit"])
|
|
1322
1323
|
]),
|
|
@@ -1324,98 +1325,98 @@ const Wo = ["src", "onerror"], gt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1324
1325
|
}, 1024))), 128))
|
|
1325
1326
|
]),
|
|
1326
1327
|
_: 1
|
|
1327
|
-
})) :
|
|
1328
|
+
})) : N("", !0);
|
|
1328
1329
|
};
|
|
1329
1330
|
}
|
|
1330
|
-
}),
|
|
1331
|
+
}), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1331
1332
|
__proto__: null,
|
|
1332
|
-
default:
|
|
1333
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1333
|
+
default: ln
|
|
1334
|
+
}, Symbol.toStringTag, { value: "Module" })), an = /* @__PURE__ */ U({
|
|
1334
1335
|
__name: "hline",
|
|
1335
1336
|
props: {
|
|
1336
1337
|
path: {},
|
|
1337
1338
|
isEdit: { type: Boolean }
|
|
1338
1339
|
},
|
|
1339
1340
|
setup(e) {
|
|
1340
|
-
const o = e, { getWidget:
|
|
1341
|
-
return (l, t) => n.value && n.value.options ? (
|
|
1341
|
+
const o = e, { getWidget: a } = ae(), n = M(() => a(o.path));
|
|
1342
|
+
return (l, t) => n.value && n.value.options ? (r(), B("div", {
|
|
1342
1343
|
key: 0,
|
|
1343
|
-
style:
|
|
1344
|
-
}, null, 4)) :
|
|
1344
|
+
style: oe(n.value.options)
|
|
1345
|
+
}, null, 4)) : N("", !0);
|
|
1345
1346
|
}
|
|
1346
|
-
}),
|
|
1347
|
+
}), sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1347
1348
|
__proto__: null,
|
|
1348
|
-
default:
|
|
1349
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1349
|
+
default: an
|
|
1350
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = ["src", "alt", "onerror"], xt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", cn = /* @__PURE__ */ U({
|
|
1350
1351
|
__name: "image",
|
|
1351
1352
|
props: {
|
|
1352
1353
|
path: {},
|
|
1353
1354
|
isEdit: { type: Boolean }
|
|
1354
1355
|
},
|
|
1355
1356
|
setup(e) {
|
|
1356
|
-
const o = e, { path:
|
|
1357
|
-
return (
|
|
1358
|
-
var
|
|
1359
|
-
return t.value && t.value.options && t.value.model ? (
|
|
1357
|
+
const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a);
|
|
1358
|
+
return (u, d) => {
|
|
1359
|
+
var i;
|
|
1360
|
+
return t.value && t.value.options && t.value.model ? (r(), B("img", {
|
|
1360
1361
|
key: 0,
|
|
1361
|
-
src: (
|
|
1362
|
-
style:
|
|
1362
|
+
src: (i = b(s)) != null ? i : xt,
|
|
1363
|
+
style: oe({ width: t.value.options.width, height: t.value.options.height }),
|
|
1363
1364
|
alt: t.value.name,
|
|
1364
1365
|
draggable: "false",
|
|
1365
|
-
onerror: `this.src='${
|
|
1366
|
-
}, null, 12,
|
|
1366
|
+
onerror: `this.src='${xt}'`
|
|
1367
|
+
}, null, 12, rn)) : N("", !0);
|
|
1367
1368
|
};
|
|
1368
1369
|
}
|
|
1369
|
-
}),
|
|
1370
|
+
}), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1370
1371
|
__proto__: null,
|
|
1371
|
-
default:
|
|
1372
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1372
|
+
default: cn
|
|
1373
|
+
}, Symbol.toStringTag, { value: "Module" })), pn = {
|
|
1373
1374
|
key: 0,
|
|
1374
1375
|
class: "fe--widget-subform"
|
|
1375
|
-
},
|
|
1376
|
+
}, fn = { class: "u-vxe-table" }, mn = /* @__PURE__ */ U({
|
|
1376
1377
|
__name: "subform",
|
|
1377
1378
|
props: {
|
|
1378
1379
|
path: {},
|
|
1379
1380
|
isEdit: { type: Boolean }
|
|
1380
1381
|
},
|
|
1381
1382
|
setup(e) {
|
|
1382
|
-
const o = e, { getWidget:
|
|
1383
|
-
var
|
|
1384
|
-
return ((
|
|
1383
|
+
const o = e, { getWidget: a, useDraggableOperation: n } = ae(), l = M(() => a(o.path)), { onAddWidget: t } = n(), s = (u, d, i) => {
|
|
1384
|
+
var c;
|
|
1385
|
+
return ((c = i == null ? void 0 : i.dataset) == null ? void 0 : c.category) === "basic";
|
|
1385
1386
|
};
|
|
1386
|
-
return (
|
|
1387
|
-
const
|
|
1388
|
-
return l.value && l.value.children ? (
|
|
1389
|
-
f(
|
|
1387
|
+
return (u, d) => {
|
|
1388
|
+
const i = g("a-link"), c = g("a-space");
|
|
1389
|
+
return l.value && l.value.children ? (r(), B("div", pn, [
|
|
1390
|
+
f(c, null, {
|
|
1390
1391
|
default: p(() => [
|
|
1391
|
-
f(
|
|
1392
|
+
f(i, null, {
|
|
1392
1393
|
default: p(() => [
|
|
1393
|
-
|
|
1394
|
+
te("\u6DFB\u52A0")
|
|
1394
1395
|
]),
|
|
1395
1396
|
_: 1
|
|
1396
1397
|
}),
|
|
1397
|
-
f(
|
|
1398
|
+
f(i, null, {
|
|
1398
1399
|
default: p(() => [
|
|
1399
|
-
|
|
1400
|
+
te("\u5220\u9664")
|
|
1400
1401
|
]),
|
|
1401
1402
|
_: 1
|
|
1402
1403
|
})
|
|
1403
1404
|
]),
|
|
1404
1405
|
_: 1
|
|
1405
1406
|
}),
|
|
1406
|
-
|
|
1407
|
-
f(
|
|
1407
|
+
R("div", fn, [
|
|
1408
|
+
f(b(ze), I({
|
|
1408
1409
|
list: l.value.children,
|
|
1409
1410
|
class: { "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
|
|
1410
1411
|
style: { paddingBottom: "0px", minHeight: "50px" },
|
|
1411
1412
|
disabled: !o.isEdit,
|
|
1412
|
-
group: { name: "orchisky", put:
|
|
1413
|
-
},
|
|
1414
|
-
onAdd:
|
|
1413
|
+
group: { name: "orchisky", put: s }
|
|
1414
|
+
}, b(he), {
|
|
1415
|
+
onAdd: d[0] || (d[0] = (m) => b(t)(m, o.path))
|
|
1415
1416
|
}), {
|
|
1416
1417
|
item: p(({ index: m }) => [
|
|
1417
|
-
f(
|
|
1418
|
-
path:
|
|
1418
|
+
f(Ve, {
|
|
1419
|
+
path: b(we)(o.path, m),
|
|
1419
1420
|
"is-edit": o.isEdit
|
|
1420
1421
|
}, null, 8, ["path", "is-edit"])
|
|
1421
1422
|
]),
|
|
@@ -1423,252 +1424,252 @@ const Wo = ["src", "onerror"], gt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1423
1424
|
_: 1
|
|
1424
1425
|
}, 16, ["list", "class", "disabled", "group"])
|
|
1425
1426
|
])
|
|
1426
|
-
])) :
|
|
1427
|
+
])) : N("", !0);
|
|
1427
1428
|
};
|
|
1428
1429
|
}
|
|
1429
1430
|
});
|
|
1430
|
-
const
|
|
1431
|
+
const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
1432
|
__proto__: null,
|
|
1432
|
-
default:
|
|
1433
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1433
|
+
default: mn
|
|
1434
|
+
}, Symbol.toStringTag, { value: "Module" })), _n = /* @__PURE__ */ U({
|
|
1434
1435
|
__name: "table",
|
|
1435
1436
|
props: {
|
|
1436
1437
|
path: {},
|
|
1437
1438
|
isEdit: { type: Boolean }
|
|
1438
1439
|
},
|
|
1439
1440
|
setup(e) {
|
|
1440
|
-
const o = e, { path:
|
|
1441
|
-
var
|
|
1442
|
-
return (
|
|
1443
|
-
}),
|
|
1444
|
-
var
|
|
1445
|
-
const
|
|
1441
|
+
const o = e, { path: a } = Ce(o), { getWidget: n } = ae(), l = M(() => n(a.value)), t = M(() => {
|
|
1442
|
+
var u, d;
|
|
1443
|
+
return (d = (u = l == null ? void 0 : l.value) == null ? void 0 : u.options) != null ? d : {};
|
|
1444
|
+
}), s = M(() => {
|
|
1445
|
+
var d;
|
|
1446
|
+
const u = (d = t.value) != null ? d : {};
|
|
1446
1447
|
return {
|
|
1447
|
-
textAlign:
|
|
1448
|
-
fontSize:
|
|
1449
|
-
fontFamily:
|
|
1448
|
+
textAlign: u.textAlign,
|
|
1449
|
+
fontSize: u.fontSize,
|
|
1450
|
+
fontFamily: u.fontFamily
|
|
1450
1451
|
};
|
|
1451
1452
|
});
|
|
1452
|
-
return (
|
|
1453
|
+
return (u, d) => l.value && t.value ? (r(), B("table", {
|
|
1453
1454
|
key: 0,
|
|
1454
|
-
style:
|
|
1455
|
+
style: oe([s.value, { width: "100%", height: "100%", "table-layout": "fixed", "border-collapse": "collapse" }])
|
|
1455
1456
|
}, [
|
|
1456
|
-
(
|
|
1457
|
-
(
|
|
1458
|
-
key:
|
|
1457
|
+
(r(!0), B(Q, null, de(t.value.rowspan, (i) => (r(), B("tr", { key: i }, [
|
|
1458
|
+
(r(!0), B(Q, null, de(t.value.colspan, (c) => (r(), B("td", {
|
|
1459
|
+
key: c,
|
|
1459
1460
|
style: { border: "1px solid #000" }
|
|
1460
1461
|
}))), 128))
|
|
1461
1462
|
]))), 128))
|
|
1462
|
-
], 4)) :
|
|
1463
|
+
], 4)) : N("", !0);
|
|
1463
1464
|
}
|
|
1464
|
-
}),
|
|
1465
|
+
}), vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1465
1466
|
__proto__: null,
|
|
1466
|
-
default:
|
|
1467
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1467
|
+
default: _n
|
|
1468
|
+
}, Symbol.toStringTag, { value: "Module" })), bn = /* @__PURE__ */ U({
|
|
1468
1469
|
__name: "text",
|
|
1469
1470
|
props: {
|
|
1470
1471
|
path: {},
|
|
1471
1472
|
isEdit: { type: Boolean }
|
|
1472
1473
|
},
|
|
1473
1474
|
setup(e) {
|
|
1474
|
-
const o = e, { path:
|
|
1475
|
+
const o = e, { path: a } = Ce(o), { useField: n, getWidget: l } = ae(), t = M(() => l(a.value)), [s] = n(a), u = M(() => {
|
|
1476
|
+
var i;
|
|
1477
|
+
return (i = t == null ? void 0 : t.value) == null ? void 0 : i.options;
|
|
1478
|
+
}), d = M(() => {
|
|
1475
1479
|
var c;
|
|
1476
|
-
|
|
1477
|
-
}), r = R(() => {
|
|
1478
|
-
var d;
|
|
1479
|
-
const c = (d = a.value) != null ? d : {};
|
|
1480
|
+
const i = (c = u.value) != null ? c : {};
|
|
1480
1481
|
return {
|
|
1481
|
-
textAlign:
|
|
1482
|
-
fontSize:
|
|
1483
|
-
fontFamily:
|
|
1482
|
+
textAlign: i.textAlign,
|
|
1483
|
+
fontSize: i.fontSize,
|
|
1484
|
+
fontFamily: i.fontFamily
|
|
1484
1485
|
};
|
|
1485
1486
|
});
|
|
1486
|
-
return (
|
|
1487
|
+
return (i, c) => t.value ? (r(), B("div", {
|
|
1487
1488
|
key: 0,
|
|
1488
|
-
style:
|
|
1489
|
-
},
|
|
1489
|
+
style: oe(d.value)
|
|
1490
|
+
}, J(t.value.name) + " " + J(b(s)), 5)) : N("", !0);
|
|
1490
1491
|
}
|
|
1491
|
-
}),
|
|
1492
|
+
}), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1492
1493
|
__proto__: null,
|
|
1493
|
-
default:
|
|
1494
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1494
|
+
default: bn
|
|
1495
|
+
}, Symbol.toStringTag, { value: "Module" })), Ht = /* @__PURE__ */ U({
|
|
1495
1496
|
__name: "unknown",
|
|
1496
1497
|
props: {
|
|
1497
1498
|
path: {},
|
|
1498
1499
|
isEdit: { type: Boolean }
|
|
1499
1500
|
},
|
|
1500
1501
|
setup(e) {
|
|
1501
|
-
const o = e, { path:
|
|
1502
|
-
var m, C,
|
|
1503
|
-
return ((m =
|
|
1504
|
-
field:
|
|
1505
|
-
label:
|
|
1506
|
-
rules:
|
|
1507
|
-
tooltip: (
|
|
1508
|
-
labelColFlex: (
|
|
1502
|
+
const o = e, { path: a } = Ce(o), { config: n } = Pe(), { useField: l, getWidget: t } = ae(), s = M(() => t(a.value)), [u] = l(a), d = M(() => {
|
|
1503
|
+
var m, C, v, h, F;
|
|
1504
|
+
return ((m = s.value) == null ? void 0 : m.options) ? {
|
|
1505
|
+
field: s.value.model,
|
|
1506
|
+
label: s.value.name,
|
|
1507
|
+
rules: s.value.rules || ((C = s.value.options) != null && C.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${s.value.name}` }] : []),
|
|
1508
|
+
tooltip: (v = s.value.options) == null ? void 0 : v.tooltip,
|
|
1509
|
+
labelColFlex: (F = (h = s.value.options) == null ? void 0 : h.labelWidth) != null ? F : n.value.labelWidth
|
|
1509
1510
|
} : {};
|
|
1510
|
-
}),
|
|
1511
|
+
}), i = M(() => {
|
|
1511
1512
|
var m;
|
|
1512
|
-
const
|
|
1513
|
-
return
|
|
1513
|
+
const c = (m = s.value) == null ? void 0 : m.options;
|
|
1514
|
+
return c ? {
|
|
1514
1515
|
size: "small",
|
|
1515
|
-
placeholder:
|
|
1516
|
-
disabled:
|
|
1517
|
-
options:
|
|
1516
|
+
placeholder: c.placeholder,
|
|
1517
|
+
disabled: c == null ? void 0 : c.disabled,
|
|
1518
|
+
options: c == null ? void 0 : c.options,
|
|
1518
1519
|
style: { width: "100%" }
|
|
1519
1520
|
} : {};
|
|
1520
1521
|
});
|
|
1521
|
-
return (
|
|
1522
|
-
const C =
|
|
1523
|
-
return
|
|
1522
|
+
return (c, m) => {
|
|
1523
|
+
const C = g("AFormItem");
|
|
1524
|
+
return s.value ? (r(), y(C, xe(I({ key: 0 }, d.value)), {
|
|
1524
1525
|
default: p(() => [
|
|
1525
|
-
(
|
|
1526
|
-
modelValue:
|
|
1527
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
1526
|
+
(r(), y(be(s.value.type), I({
|
|
1527
|
+
modelValue: b(u),
|
|
1528
|
+
"onUpdate:modelValue": m[0] || (m[0] = (v) => Vt(u) ? u.value = v : null),
|
|
1528
1529
|
size: "small"
|
|
1529
|
-
},
|
|
1530
|
+
}, i.value), null, 16, ["modelValue"]))
|
|
1530
1531
|
]),
|
|
1531
1532
|
_: 1
|
|
1532
|
-
}, 16)) :
|
|
1533
|
+
}, 16)) : N("", !0);
|
|
1533
1534
|
};
|
|
1534
1535
|
}
|
|
1535
|
-
}),
|
|
1536
|
+
}), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1536
1537
|
__proto__: null,
|
|
1537
|
-
default:
|
|
1538
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1539
|
-
function
|
|
1540
|
-
const o = Object.keys(
|
|
1541
|
-
return o &&
|
|
1538
|
+
default: Ht
|
|
1539
|
+
}, Symbol.toStringTag, { value: "Module" })), Ye = /* @__PURE__ */ Object.assign({ "./barcode.vue": Yo, "./card.vue": tn, "./form.vue": nn, "./grid.vue": un, "./hline.vue": sn, "./image.vue": dn, "./qrcode.vue": Jo, "./subform.vue": gn, "./table.vue": vn, "./text.vue": yn, "./unknown.vue": hn, "./view.vue": Zo });
|
|
1540
|
+
function Ft(e) {
|
|
1541
|
+
const o = Object.keys(Ye).find((a) => a.indexOf(`${e}.vue`) !== -1);
|
|
1542
|
+
return o && Ye[o] ? Ye[o].default : Ht;
|
|
1542
1543
|
}
|
|
1543
|
-
const
|
|
1544
|
+
const wn = {
|
|
1544
1545
|
key: 0,
|
|
1545
1546
|
class: "fe--widget-tool-btn"
|
|
1546
|
-
},
|
|
1547
|
+
}, Cn = {
|
|
1547
1548
|
key: 0,
|
|
1548
1549
|
class: "fe--widget-tool-rb"
|
|
1549
|
-
},
|
|
1550
|
+
}, Ve = /* @__PURE__ */ U({
|
|
1550
1551
|
__name: "widget-item",
|
|
1551
1552
|
props: {
|
|
1552
1553
|
path: {},
|
|
1553
1554
|
isEdit: { type: Boolean }
|
|
1554
1555
|
},
|
|
1555
1556
|
setup(e) {
|
|
1556
|
-
const o = e, { useWidgetOperation:
|
|
1557
|
-
var
|
|
1558
|
-
return ((
|
|
1557
|
+
const o = e, { useWidgetOperation: a } = ae(), { onDelete: n, onSelected: l, hasSelected: t, onCopy: s } = a(), { getWidget: u, getWidgetProperty: d } = ae(), i = M(() => u(o.path)), c = () => {
|
|
1558
|
+
var w;
|
|
1559
|
+
return ((w = i.value) == null ? void 0 : w.category) === "only";
|
|
1559
1560
|
}, m = () => t(o.path);
|
|
1560
|
-
function C(
|
|
1561
|
-
return { "data-type":
|
|
1561
|
+
function C(w) {
|
|
1562
|
+
return { "data-type": w.type, "data-category": w.category };
|
|
1562
1563
|
}
|
|
1563
|
-
function
|
|
1564
|
-
const
|
|
1565
|
-
return !(
|
|
1564
|
+
function v() {
|
|
1565
|
+
const w = i.value;
|
|
1566
|
+
return !(w != null && w.options) || !w.fixed ? {} : {
|
|
1566
1567
|
position: "absolute",
|
|
1567
|
-
width:
|
|
1568
|
-
height:
|
|
1569
|
-
left:
|
|
1570
|
-
top:
|
|
1568
|
+
width: w.options.width,
|
|
1569
|
+
height: w.options.height,
|
|
1570
|
+
left: w.options.left,
|
|
1571
|
+
top: w.options.top,
|
|
1571
1572
|
zIndex: m() ? "9" : "2"
|
|
1572
1573
|
};
|
|
1573
1574
|
}
|
|
1574
|
-
function
|
|
1575
|
-
return { "fe--widget-view": !0, "is-selected": m(), "fe--widget-view-fixed":
|
|
1575
|
+
function h(w = !1) {
|
|
1576
|
+
return { "fe--widget-view": !0, "is-selected": m(), "fe--widget-view-fixed": w };
|
|
1576
1577
|
}
|
|
1577
|
-
function
|
|
1578
|
-
return o.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed":
|
|
1578
|
+
function F(w = !1) {
|
|
1579
|
+
return o.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed": w } : {};
|
|
1579
1580
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return o.isEdit ? {} :
|
|
1581
|
+
function O() {
|
|
1582
|
+
return o.isEdit ? {} : v();
|
|
1582
1583
|
}
|
|
1583
|
-
return (
|
|
1584
|
-
const
|
|
1585
|
-
return
|
|
1586
|
-
class:
|
|
1587
|
-
style:
|
|
1584
|
+
return (w, A) => {
|
|
1585
|
+
const S = g("icon-drag-dot-vertical"), $ = g("icon-copy"), k = g("icon-delete");
|
|
1586
|
+
return i.value ? (r(), B("div", I({ key: 0 }, C(i.value), {
|
|
1587
|
+
class: F(i.value.fixed),
|
|
1588
|
+
style: O()
|
|
1588
1589
|
}), [
|
|
1589
|
-
o.isEdit ? (
|
|
1590
|
+
o.isEdit ? (r(), B("div", {
|
|
1590
1591
|
key: 0,
|
|
1591
|
-
style:
|
|
1592
|
-
class:
|
|
1593
|
-
onClick:
|
|
1592
|
+
style: oe(v()),
|
|
1593
|
+
class: Be(h(i.value.fixed)),
|
|
1594
|
+
onClick: A[3] || (A[3] = Ke((P) => b(l)(o.path), ["stop"]))
|
|
1594
1595
|
}, [
|
|
1595
|
-
m() ? (
|
|
1596
|
+
m() ? (r(), B("div", {
|
|
1596
1597
|
key: 0,
|
|
1597
1598
|
class: "fe--widget-tool",
|
|
1598
|
-
onClick:
|
|
1599
|
+
onClick: A[2] || (A[2] = Ke(() => {
|
|
1599
1600
|
}, ["stop"]))
|
|
1600
1601
|
}, [
|
|
1601
|
-
|
|
1602
|
-
class:
|
|
1602
|
+
R("div", {
|
|
1603
|
+
class: Be(["fe--widget-tool-lt", { "fe-moving": !c() }])
|
|
1603
1604
|
}, [
|
|
1604
|
-
|
|
1605
|
-
f(
|
|
1605
|
+
c() ? N("", !0) : (r(), B("span", wn, [
|
|
1606
|
+
f(S)
|
|
1606
1607
|
]))
|
|
1607
1608
|
], 2),
|
|
1608
|
-
|
|
1609
|
-
|
|
1609
|
+
c() ? N("", !0) : (r(), B("div", Cn, [
|
|
1610
|
+
R("span", {
|
|
1610
1611
|
class: "fe--widget-tool-btn",
|
|
1611
|
-
onClick:
|
|
1612
|
+
onClick: A[0] || (A[0] = (P) => b(s)(o.path))
|
|
1612
1613
|
}, [
|
|
1613
|
-
f(
|
|
1614
|
+
f($)
|
|
1614
1615
|
]),
|
|
1615
|
-
|
|
1616
|
+
b(d)(o.path).isDelete ? (r(), B("span", {
|
|
1616
1617
|
key: 0,
|
|
1617
1618
|
class: "fe--widget-tool-btn",
|
|
1618
|
-
onClick:
|
|
1619
|
+
onClick: A[1] || (A[1] = (P) => b(n)(o.path))
|
|
1619
1620
|
}, [
|
|
1620
|
-
f(
|
|
1621
|
-
])) :
|
|
1621
|
+
f(k)
|
|
1622
|
+
])) : N("", !0)
|
|
1622
1623
|
]))
|
|
1623
|
-
])) :
|
|
1624
|
-
(
|
|
1625
|
-
], 6)) : (
|
|
1626
|
-
], 16)) :
|
|
1624
|
+
])) : N("", !0),
|
|
1625
|
+
(r(), y(be(b(Ft)(i.value.type)), xe(ct(o)), null, 16))
|
|
1626
|
+
], 6)) : (r(), y(be(b(Ft)(i.value.type)), xe(I({ key: 1 }, o)), null, 16))
|
|
1627
|
+
], 16)) : N("", !0);
|
|
1627
1628
|
};
|
|
1628
1629
|
}
|
|
1629
|
-
}),
|
|
1630
|
+
}), it = /* @__PURE__ */ U({
|
|
1630
1631
|
__name: "preview",
|
|
1631
1632
|
props: {
|
|
1632
1633
|
isEdit: { type: Boolean, default: !1 }
|
|
1633
1634
|
},
|
|
1634
1635
|
setup(e) {
|
|
1635
|
-
const o = e, { useDraggableOperation:
|
|
1636
|
-
return (
|
|
1637
|
-
const m =
|
|
1638
|
-
return
|
|
1636
|
+
const o = e, { useDraggableOperation: a } = ae(), n = q(), { onAddWidget: l, onUpdateWidget: t } = a(n), { children: s, config: u, models: d } = Pe();
|
|
1637
|
+
return (i, c) => {
|
|
1638
|
+
const m = g("AForm");
|
|
1639
|
+
return r(), y(m, {
|
|
1639
1640
|
class: "fe--widget-form",
|
|
1640
|
-
model:
|
|
1641
|
-
"label-col-props": { flex:
|
|
1641
|
+
model: b(d),
|
|
1642
|
+
"label-col-props": { flex: b(u).labelWidth },
|
|
1642
1643
|
"label-col-style": { paddingRight: "8px" },
|
|
1643
|
-
"label-align":
|
|
1644
|
+
"label-align": b(u).labelAlign,
|
|
1644
1645
|
size: "small",
|
|
1645
1646
|
style: { width: "100%", height: "100%" }
|
|
1646
1647
|
}, {
|
|
1647
1648
|
default: p(() => [
|
|
1648
|
-
|
|
1649
|
+
R("div", {
|
|
1649
1650
|
ref_key: "form$",
|
|
1650
1651
|
ref: n,
|
|
1651
|
-
style:
|
|
1652
|
+
style: oe([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${b(u).width}`, height: `${b(u).height}`, margin: "0 auto" }])
|
|
1652
1653
|
}, [
|
|
1653
|
-
f(
|
|
1654
|
-
modelValue:
|
|
1655
|
-
"onUpdate:modelValue":
|
|
1654
|
+
f(b(ze), I({
|
|
1655
|
+
modelValue: b(s),
|
|
1656
|
+
"onUpdate:modelValue": c[0] || (c[0] = (C) => Vt(s) ? s.value = C : null),
|
|
1656
1657
|
class: { "fe--widget-content": !0, "fe--widget-list": !0, "fe--widget-list--border": o.isEdit },
|
|
1657
1658
|
disabled: !o.isEdit,
|
|
1658
1659
|
group: { name: "orchisky", put: !0 }
|
|
1659
|
-
},
|
|
1660
|
-
onAdd:
|
|
1661
|
-
onEnd:
|
|
1660
|
+
}, b(he), {
|
|
1661
|
+
onAdd: c[1] || (c[1] = (C) => b(l)(C)),
|
|
1662
|
+
onEnd: c[2] || (c[2] = (C) => b(t)(C))
|
|
1662
1663
|
}), {
|
|
1663
|
-
item: p(({ element: C, index:
|
|
1664
|
-
C && C.key ? (
|
|
1664
|
+
item: p(({ element: C, index: v }) => [
|
|
1665
|
+
C && C.key ? (r(), y(Ve, {
|
|
1665
1666
|
key: 0,
|
|
1666
|
-
path:
|
|
1667
|
+
path: b(we)(null, v),
|
|
1667
1668
|
"is-edit": o.isEdit
|
|
1668
|
-
}, null, 8, ["path", "is-edit"])) :
|
|
1669
|
+
}, null, 8, ["path", "is-edit"])) : N("", !0)
|
|
1669
1670
|
]),
|
|
1670
1671
|
footer: p(() => [
|
|
1671
|
-
|
|
1672
|
+
le(i.$slots, "default")
|
|
1672
1673
|
]),
|
|
1673
1674
|
_: 3
|
|
1674
1675
|
}, 16, ["modelValue", "class", "disabled"])
|
|
@@ -1679,55 +1680,55 @@ const dn = {
|
|
|
1679
1680
|
};
|
|
1680
1681
|
}
|
|
1681
1682
|
});
|
|
1682
|
-
function
|
|
1683
|
-
const { children: e, selectPath: o } =
|
|
1684
|
-
function n(
|
|
1685
|
-
if (!
|
|
1683
|
+
function Gt() {
|
|
1684
|
+
const { children: e, selectPath: o } = Pe(), a = () => ({ children: e.value });
|
|
1685
|
+
function n(u) {
|
|
1686
|
+
if (!u)
|
|
1686
1687
|
return null;
|
|
1687
|
-
const
|
|
1688
|
-
return
|
|
1688
|
+
const d = It(a(), u);
|
|
1689
|
+
return d || null;
|
|
1689
1690
|
}
|
|
1690
|
-
const l = (
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1693
|
-
var
|
|
1694
|
-
const
|
|
1695
|
-
m.model &&
|
|
1691
|
+
const l = (u) => u.name || "[\u672A\u547D\u540D]", t = M(() => {
|
|
1692
|
+
const u = [], d = (i, c) => {
|
|
1693
|
+
i.forEach((m, C) => {
|
|
1694
|
+
var h;
|
|
1695
|
+
const v = we(c != null ? c : null, C);
|
|
1696
|
+
m.model && u.push({ ...m, key: v, title: l(m) }), (h = m.children) != null && h.length && d(m.children, v);
|
|
1696
1697
|
});
|
|
1697
1698
|
};
|
|
1698
|
-
return
|
|
1699
|
-
}),
|
|
1699
|
+
return d(a().children), u;
|
|
1700
|
+
}), s = M(() => {
|
|
1700
1701
|
if (o.value) {
|
|
1701
|
-
const
|
|
1702
|
-
return
|
|
1703
|
-
const C = [...
|
|
1704
|
-
return
|
|
1705
|
-
},
|
|
1702
|
+
const u = String(o.value).split("."), d = [];
|
|
1703
|
+
return u.reduce((i, c, m) => {
|
|
1704
|
+
const C = [...u].slice(-m).join("."), v = n(C);
|
|
1705
|
+
return v && i.push({ ...v, path: C, name: l(v) }), i;
|
|
1706
|
+
}, d).reverse();
|
|
1706
1707
|
}
|
|
1707
1708
|
return [];
|
|
1708
1709
|
});
|
|
1709
|
-
return { widgetArray: t, selectedArrayWidget:
|
|
1710
|
+
return { widgetArray: t, selectedArrayWidget: s };
|
|
1710
1711
|
}
|
|
1711
|
-
const
|
|
1712
|
+
const An = { class: "u-h u-card" }, En = { class: "u-card__hd u-aside__hd" }, xn = {
|
|
1712
1713
|
class: "u-flex",
|
|
1713
1714
|
style: { width: "100%", padding: "0 8px" }
|
|
1714
|
-
},
|
|
1715
|
+
}, Fn = { class: "u-flex__item" }, kn = { class: "u-main u-aside__bdf" }, Bn = { class: "u-aside__ft" }, $n = { class: "u-aside__ft-content" }, On = { class: "u-main u-h" }, Sn = /* @__PURE__ */ U({
|
|
1715
1716
|
__name: "main",
|
|
1716
1717
|
emits: ["save"],
|
|
1717
1718
|
setup(e, { emit: o }) {
|
|
1718
|
-
const { useWidgetOperation:
|
|
1719
|
-
function
|
|
1720
|
-
l("width",
|
|
1719
|
+
const { useWidgetOperation: a } = ae(), { selectedArrayWidget: n } = Gt(), { setConfig: l, toJson: t, onSelected: s, onReset: u } = a(), d = q(!1);
|
|
1720
|
+
function i([h, F]) {
|
|
1721
|
+
l("width", h), l("height", F);
|
|
1721
1722
|
}
|
|
1722
|
-
function
|
|
1723
|
-
|
|
1723
|
+
function c(h) {
|
|
1724
|
+
h === "A4" && i(["210mm", "297mm"]), h === "PC" && i(["1920px", "1080px"]), h === "Auto" && i(["100%", "100%"]), h === "Mobile" && i(["375px", "100%"]);
|
|
1724
1725
|
}
|
|
1725
1726
|
const m = o;
|
|
1726
1727
|
function C() {
|
|
1727
1728
|
m("save", t());
|
|
1728
1729
|
}
|
|
1729
|
-
function
|
|
1730
|
-
|
|
1730
|
+
function v() {
|
|
1731
|
+
co.warning({
|
|
1731
1732
|
title: "\u6E05\u7A7A\u63D0\u793A",
|
|
1732
1733
|
simple: !1,
|
|
1733
1734
|
width: 360,
|
|
@@ -1736,56 +1737,56 @@ const fn = { class: "u-h u-card" }, mn = { class: "u-card__hd u-aside__hd" }, _n
|
|
|
1736
1737
|
hideCancel: !1,
|
|
1737
1738
|
okButtonProps: { status: "warning" },
|
|
1738
1739
|
onOk() {
|
|
1739
|
-
|
|
1740
|
+
u();
|
|
1740
1741
|
}
|
|
1741
1742
|
});
|
|
1742
1743
|
}
|
|
1743
|
-
return (
|
|
1744
|
-
const
|
|
1745
|
-
return
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
f(
|
|
1744
|
+
return (h, F) => {
|
|
1745
|
+
const O = g("icon-desktop"), w = g("a-button"), A = g("icon-computer"), S = g("icon-drive-file"), $ = g("icon-mobile"), k = g("a-space"), P = g("icon-save"), j = g("icon-eye"), T = g("icon-eraser"), Y = g("icon-right"), ie = g("a-link"), L = g("a-breadcrumb-item"), ue = g("a-breadcrumb"), _ = g("a-drawer");
|
|
1746
|
+
return r(), B("div", An, [
|
|
1747
|
+
R("div", En, [
|
|
1748
|
+
R("div", xn, [
|
|
1749
|
+
R("div", Fn, [
|
|
1750
|
+
le(h.$slots, "setWidthHeight", { setWidthHeight: i }, () => [
|
|
1751
|
+
f(k, { size: "mini" }, {
|
|
1751
1752
|
default: p(() => [
|
|
1752
|
-
f(
|
|
1753
|
+
f(w, {
|
|
1753
1754
|
size: "mini",
|
|
1754
1755
|
title: "\u81EA\u52A8",
|
|
1755
|
-
onClick:
|
|
1756
|
+
onClick: F[0] || (F[0] = (E) => c("Auto"))
|
|
1756
1757
|
}, {
|
|
1757
1758
|
icon: p(() => [
|
|
1758
|
-
f(
|
|
1759
|
+
f(O, { size: 14 })
|
|
1759
1760
|
]),
|
|
1760
1761
|
_: 1
|
|
1761
1762
|
}),
|
|
1762
|
-
f(
|
|
1763
|
+
f(w, {
|
|
1763
1764
|
size: "mini",
|
|
1764
1765
|
title: " \u62A5\u8868",
|
|
1765
|
-
onClick:
|
|
1766
|
+
onClick: F[1] || (F[1] = (E) => c("PC"))
|
|
1766
1767
|
}, {
|
|
1767
1768
|
icon: p(() => [
|
|
1768
|
-
f(
|
|
1769
|
+
f(A, { size: 14 })
|
|
1769
1770
|
]),
|
|
1770
1771
|
_: 1
|
|
1771
1772
|
}),
|
|
1772
|
-
f(
|
|
1773
|
+
f(w, {
|
|
1773
1774
|
title: "A4",
|
|
1774
1775
|
size: "mini",
|
|
1775
|
-
onClick:
|
|
1776
|
+
onClick: F[2] || (F[2] = (E) => c("A4"))
|
|
1776
1777
|
}, {
|
|
1777
1778
|
icon: p(() => [
|
|
1778
|
-
f(
|
|
1779
|
+
f(S, { size: 14 })
|
|
1779
1780
|
]),
|
|
1780
1781
|
_: 1
|
|
1781
1782
|
}),
|
|
1782
|
-
f(
|
|
1783
|
+
f(w, {
|
|
1783
1784
|
size: "mini",
|
|
1784
1785
|
title: "\u624B\u673A",
|
|
1785
|
-
onClick:
|
|
1786
|
+
onClick: F[3] || (F[3] = (E) => c("Mobile"))
|
|
1786
1787
|
}, {
|
|
1787
1788
|
icon: p(() => [
|
|
1788
|
-
f(
|
|
1789
|
+
f($, { size: 14 })
|
|
1789
1790
|
]),
|
|
1790
1791
|
_: 1
|
|
1791
1792
|
})
|
|
@@ -1794,36 +1795,36 @@ const fn = { class: "u-h u-card" }, mn = { class: "u-card__hd u-aside__hd" }, _n
|
|
|
1794
1795
|
})
|
|
1795
1796
|
])
|
|
1796
1797
|
]),
|
|
1797
|
-
|
|
1798
|
-
f(
|
|
1798
|
+
R("div", null, [
|
|
1799
|
+
f(k, { size: "mini" }, {
|
|
1799
1800
|
default: p(() => [
|
|
1800
|
-
f(
|
|
1801
|
+
f(w, {
|
|
1801
1802
|
size: "mini",
|
|
1802
1803
|
title: "\u4FDD\u5B58",
|
|
1803
|
-
onClick:
|
|
1804
|
+
onClick: F[4] || (F[4] = (E) => C())
|
|
1804
1805
|
}, {
|
|
1805
1806
|
icon: p(() => [
|
|
1806
|
-
f(
|
|
1807
|
+
f(P, { size: 14 })
|
|
1807
1808
|
]),
|
|
1808
1809
|
_: 1
|
|
1809
1810
|
}),
|
|
1810
|
-
f(
|
|
1811
|
+
f(w, {
|
|
1811
1812
|
size: "mini",
|
|
1812
1813
|
title: "\u9884\u89C8",
|
|
1813
|
-
onClick:
|
|
1814
|
+
onClick: F[5] || (F[5] = (E) => d.value = !0)
|
|
1814
1815
|
}, {
|
|
1815
1816
|
icon: p(() => [
|
|
1816
|
-
f(
|
|
1817
|
+
f(j, { size: 14 })
|
|
1817
1818
|
]),
|
|
1818
1819
|
_: 1
|
|
1819
1820
|
}),
|
|
1820
|
-
f(
|
|
1821
|
+
f(w, {
|
|
1821
1822
|
size: "mini",
|
|
1822
1823
|
title: "\u6E05\u7A7A",
|
|
1823
|
-
onClick:
|
|
1824
|
+
onClick: F[6] || (F[6] = (E) => v())
|
|
1824
1825
|
}, {
|
|
1825
1826
|
icon: p(() => [
|
|
1826
|
-
f(
|
|
1827
|
+
f(T, { size: 14 })
|
|
1827
1828
|
]),
|
|
1828
1829
|
_: 1
|
|
1829
1830
|
})
|
|
@@ -1833,55 +1834,55 @@ const fn = { class: "u-h u-card" }, mn = { class: "u-card__hd u-aside__hd" }, _n
|
|
|
1833
1834
|
])
|
|
1834
1835
|
])
|
|
1835
1836
|
]),
|
|
1836
|
-
|
|
1837
|
-
f(
|
|
1837
|
+
R("div", kn, [
|
|
1838
|
+
f(it, { "is-edit": !0 })
|
|
1838
1839
|
]),
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
f(
|
|
1842
|
-
onClick:
|
|
1840
|
+
R("div", Bn, [
|
|
1841
|
+
R("div", $n, [
|
|
1842
|
+
f(ue, {
|
|
1843
|
+
onClick: F[7] || (F[7] = Ke(() => {
|
|
1843
1844
|
}, ["stop"]))
|
|
1844
1845
|
}, {
|
|
1845
1846
|
separator: p(() => [
|
|
1846
1847
|
f(Y)
|
|
1847
1848
|
]),
|
|
1848
1849
|
default: p(() => {
|
|
1849
|
-
var
|
|
1850
|
+
var E;
|
|
1850
1851
|
return [
|
|
1851
|
-
f(
|
|
1852
|
+
f(L, null, {
|
|
1852
1853
|
default: p(() => [
|
|
1853
|
-
f(
|
|
1854
|
+
f(ie, null, {
|
|
1854
1855
|
default: p(() => [
|
|
1855
|
-
|
|
1856
|
+
te("\u7ED3\u6784\u5BFC\u822A")
|
|
1856
1857
|
]),
|
|
1857
1858
|
_: 1
|
|
1858
1859
|
})
|
|
1859
1860
|
]),
|
|
1860
1861
|
_: 1
|
|
1861
1862
|
}),
|
|
1862
|
-
(
|
|
1863
|
+
(E = b(n)) != null && E.length ? (r(!0), B(Q, { key: 0 }, de(b(n), (V, re) => (r(), y(L, { key: re }, {
|
|
1863
1864
|
default: p(() => [
|
|
1864
|
-
|
|
1865
|
+
V ? (r(), y(ie, {
|
|
1865
1866
|
key: 0,
|
|
1866
|
-
onClick: (
|
|
1867
|
+
onClick: (X) => b(s)(V.path)
|
|
1867
1868
|
}, {
|
|
1868
1869
|
default: p(() => [
|
|
1869
|
-
|
|
1870
|
+
te(J(V.name), 1)
|
|
1870
1871
|
]),
|
|
1871
1872
|
_: 2
|
|
1872
|
-
}, 1032, ["onClick"])) :
|
|
1873
|
+
}, 1032, ["onClick"])) : N("", !0)
|
|
1873
1874
|
]),
|
|
1874
1875
|
_: 2
|
|
1875
|
-
}, 1024))), 128)) :
|
|
1876
|
+
}, 1024))), 128)) : N("", !0)
|
|
1876
1877
|
];
|
|
1877
1878
|
}),
|
|
1878
1879
|
_: 1
|
|
1879
1880
|
})
|
|
1880
1881
|
])
|
|
1881
1882
|
]),
|
|
1882
|
-
f(
|
|
1883
|
-
visible:
|
|
1884
|
-
"onUpdate:visible":
|
|
1883
|
+
f(_, {
|
|
1884
|
+
visible: d.value,
|
|
1885
|
+
"onUpdate:visible": F[8] || (F[8] = (E) => d.value = E),
|
|
1885
1886
|
placement: "bottom",
|
|
1886
1887
|
height: "80%",
|
|
1887
1888
|
footer: !1,
|
|
@@ -1889,11 +1890,11 @@ const fn = { class: "u-h u-card" }, mn = { class: "u-card__hd u-aside__hd" }, _n
|
|
|
1889
1890
|
"unmount-on-close": ""
|
|
1890
1891
|
}, {
|
|
1891
1892
|
title: p(() => [
|
|
1892
|
-
|
|
1893
|
+
te("\u9884\u89C8")
|
|
1893
1894
|
]),
|
|
1894
1895
|
default: p(() => [
|
|
1895
|
-
|
|
1896
|
-
f(
|
|
1896
|
+
R("div", On, [
|
|
1897
|
+
f(it)
|
|
1897
1898
|
])
|
|
1898
1899
|
]),
|
|
1899
1900
|
_: 1
|
|
@@ -1902,16 +1903,16 @@ const fn = { class: "u-h u-card" }, mn = { class: "u-card__hd u-aside__hd" }, _n
|
|
|
1902
1903
|
};
|
|
1903
1904
|
}
|
|
1904
1905
|
});
|
|
1905
|
-
const
|
|
1906
|
+
const Dn = { class: "u-card u-h" }, zn = {
|
|
1906
1907
|
class: "u-card__hd u-aside__hd",
|
|
1907
1908
|
style: { "padding-left": "0" }
|
|
1908
|
-
},
|
|
1909
|
+
}, Pn = {
|
|
1909
1910
|
class: "u-tabs u-tabs--small",
|
|
1910
1911
|
style: { border: "0" }
|
|
1911
|
-
},
|
|
1912
|
+
}, Vn = ["onClick"], jn = {
|
|
1912
1913
|
class: "u-card__bd fe-cl u-aside__bd",
|
|
1913
1914
|
style: { padding: "0" }
|
|
1914
|
-
},
|
|
1915
|
+
}, Qt = /* @__PURE__ */ U({
|
|
1915
1916
|
__name: "tabs",
|
|
1916
1917
|
props: {
|
|
1917
1918
|
list: Array,
|
|
@@ -1922,38 +1923,38 @@ const Cn = { class: "u-card u-h" }, An = {
|
|
|
1922
1923
|
},
|
|
1923
1924
|
emits: ["update:tab-index"],
|
|
1924
1925
|
setup(e, { emit: o }) {
|
|
1925
|
-
const
|
|
1926
|
-
function t(
|
|
1927
|
-
return { "is-active":
|
|
1926
|
+
const a = o, n = e, l = q(n.tabIndex);
|
|
1927
|
+
function t(u) {
|
|
1928
|
+
return { "is-active": u === l.value };
|
|
1928
1929
|
}
|
|
1929
|
-
function
|
|
1930
|
-
l.value =
|
|
1930
|
+
function s(u) {
|
|
1931
|
+
l.value = u, a("update:tab-index", l.value);
|
|
1931
1932
|
}
|
|
1932
|
-
return
|
|
1933
|
+
return ne(
|
|
1933
1934
|
() => n.tabIndex,
|
|
1934
|
-
(
|
|
1935
|
-
l.value =
|
|
1935
|
+
(u) => {
|
|
1936
|
+
l.value = u;
|
|
1936
1937
|
}
|
|
1937
|
-
), (
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
(
|
|
1941
|
-
key:
|
|
1938
|
+
), (u, d) => (r(), B("div", Dn, [
|
|
1939
|
+
R("div", zn, [
|
|
1940
|
+
R("div", Pn, [
|
|
1941
|
+
(r(!0), B(Q, null, de(n.list, (i, c) => (r(), B("div", {
|
|
1942
|
+
key: c,
|
|
1942
1943
|
class: "u-tabs__item",
|
|
1943
|
-
onClick: (m) =>
|
|
1944
|
+
onClick: (m) => s(c)
|
|
1944
1945
|
}, [
|
|
1945
|
-
|
|
1946
|
-
class:
|
|
1947
|
-
},
|
|
1948
|
-
], 8,
|
|
1946
|
+
R("div", {
|
|
1947
|
+
class: Be(["u-tabs__link", t(c)])
|
|
1948
|
+
}, J(i), 3)
|
|
1949
|
+
], 8, Vn))), 128))
|
|
1949
1950
|
])
|
|
1950
1951
|
]),
|
|
1951
|
-
|
|
1952
|
-
|
|
1952
|
+
R("div", jn, [
|
|
1953
|
+
le(u.$slots, "default", { index: l.value })
|
|
1953
1954
|
])
|
|
1954
1955
|
]));
|
|
1955
1956
|
}
|
|
1956
|
-
}),
|
|
1957
|
+
}), Rn = {
|
|
1957
1958
|
title: "\u57FA\u7840\u63A7\u4EF6",
|
|
1958
1959
|
order: 1,
|
|
1959
1960
|
children: [
|
|
@@ -2044,10 +2045,10 @@ const Cn = { class: "u-card u-h" }, An = {
|
|
|
2044
2045
|
}
|
|
2045
2046
|
}
|
|
2046
2047
|
]
|
|
2047
|
-
},
|
|
2048
|
+
}, Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2048
2049
|
__proto__: null,
|
|
2049
|
-
default:
|
|
2050
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2050
|
+
default: Rn
|
|
2051
|
+
}, Symbol.toStringTag, { value: "Module" })), Wn = {
|
|
2051
2052
|
title: "\u6761\u5F62\u7801 ",
|
|
2052
2053
|
order: 7,
|
|
2053
2054
|
children: [
|
|
@@ -2128,10 +2129,10 @@ const Cn = { class: "u-card u-h" }, An = {
|
|
|
2128
2129
|
}
|
|
2129
2130
|
}
|
|
2130
2131
|
]
|
|
2131
|
-
},
|
|
2132
|
+
}, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2132
2133
|
__proto__: null,
|
|
2133
|
-
default:
|
|
2134
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2134
|
+
default: Wn
|
|
2135
|
+
}, Symbol.toStringTag, { value: "Module" })), Mn = {
|
|
2135
2136
|
title: "\u5E03\u5C40\u63A7\u4EF6",
|
|
2136
2137
|
order: 8,
|
|
2137
2138
|
children: [
|
|
@@ -2183,90 +2184,90 @@ const Cn = { class: "u-card u-h" }, An = {
|
|
|
2183
2184
|
options: {}
|
|
2184
2185
|
}
|
|
2185
2186
|
]
|
|
2186
|
-
},
|
|
2187
|
+
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2187
2188
|
__proto__: null,
|
|
2188
|
-
default:
|
|
2189
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2190
|
-
Object.keys(
|
|
2191
|
-
const o =
|
|
2192
|
-
o &&
|
|
2189
|
+
default: Mn
|
|
2190
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = /* @__PURE__ */ Object.assign({ "./module/basic.ts": Tn, "./module/bwip.ts": In, "./module/view.ts": Nn }), ft = [];
|
|
2191
|
+
Object.keys(kt).forEach((e) => {
|
|
2192
|
+
const o = kt[e].default;
|
|
2193
|
+
o && ft.push(o);
|
|
2193
2194
|
});
|
|
2194
|
-
|
|
2195
|
-
const
|
|
2195
|
+
ft.sort((e, o) => e.order - o.order);
|
|
2196
|
+
const Un = { class: "u-nos" }, qn = {
|
|
2196
2197
|
key: 0,
|
|
2197
2198
|
class: "u-card__bd u-aside__bd u-cl",
|
|
2198
2199
|
style: { "border-bottom": "1px solid var(--color-neutral-2)", "padding-top": "0px" }
|
|
2199
|
-
},
|
|
2200
|
+
}, Ue = /* @__PURE__ */ U({
|
|
2200
2201
|
__name: "card",
|
|
2201
2202
|
props: { title: String, isFirst: Boolean, show: { type: Boolean, default: !0 } },
|
|
2202
2203
|
setup(e) {
|
|
2203
|
-
const o = e,
|
|
2204
|
-
|
|
2204
|
+
const o = e, a = ot(o.show), n = () => {
|
|
2205
|
+
a.value = !a.value;
|
|
2205
2206
|
};
|
|
2206
2207
|
return (l, t) => {
|
|
2207
|
-
const
|
|
2208
|
-
return
|
|
2209
|
-
|
|
2208
|
+
const s = g("icon-down"), u = g("icon-right");
|
|
2209
|
+
return r(), B("div", Un, [
|
|
2210
|
+
R("div", {
|
|
2210
2211
|
class: "u-card__hd u-aside__hd",
|
|
2211
|
-
style:
|
|
2212
|
+
style: oe([{ borderBottomWidth: a.value ? "0px" : "1px" }, { "line-height": "36px", height: "36px", "border-bottom-color": "var(--color-neutral-2)" }])
|
|
2212
2213
|
}, [
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2214
|
+
R("div", null, [
|
|
2215
|
+
le(l.$slots, "title", {}, () => [
|
|
2216
|
+
R("strong", null, J(o.title), 1)
|
|
2216
2217
|
])
|
|
2217
2218
|
]),
|
|
2218
|
-
|
|
2219
|
+
R("span", {
|
|
2219
2220
|
style: { cursor: "pointer" },
|
|
2220
|
-
onClick: t[0] || (t[0] = (
|
|
2221
|
+
onClick: t[0] || (t[0] = (d) => n())
|
|
2221
2222
|
}, [
|
|
2222
|
-
|
|
2223
|
+
a.value ? (r(), y(s, { key: 0 })) : (r(), y(u, { key: 1 }))
|
|
2223
2224
|
])
|
|
2224
2225
|
], 4),
|
|
2225
|
-
f(
|
|
2226
|
+
f(so, null, {
|
|
2226
2227
|
default: p(() => [
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
])) :
|
|
2228
|
+
a.value ? (r(), B("div", qn, [
|
|
2229
|
+
le(l.$slots, "default")
|
|
2230
|
+
])) : N("", !0)
|
|
2230
2231
|
]),
|
|
2231
2232
|
_: 3
|
|
2232
2233
|
})
|
|
2233
2234
|
]);
|
|
2234
2235
|
};
|
|
2235
2236
|
}
|
|
2236
|
-
}),
|
|
2237
|
+
}), Kn = /* @__PURE__ */ U({
|
|
2237
2238
|
__name: "side-library",
|
|
2238
2239
|
props: { moduleConfig: Array },
|
|
2239
2240
|
setup(e) {
|
|
2240
2241
|
const o = e;
|
|
2241
|
-
function
|
|
2242
|
-
return Object.assign([], o.moduleConfig ||
|
|
2242
|
+
function a() {
|
|
2243
|
+
return Object.assign([], o.moduleConfig || ft);
|
|
2243
2244
|
}
|
|
2244
2245
|
return (n, l) => {
|
|
2245
|
-
const t =
|
|
2246
|
-
return
|
|
2247
|
-
key:
|
|
2248
|
-
title:
|
|
2249
|
-
"is-first": !
|
|
2246
|
+
const t = g("icon-drag-arrow"), s = g("a-button");
|
|
2247
|
+
return r(!0), B(Q, null, de(a(), ({ title: u, children: d }, i) => (r(), y(Ue, {
|
|
2248
|
+
key: i,
|
|
2249
|
+
title: u,
|
|
2250
|
+
"is-first": !i
|
|
2250
2251
|
}, {
|
|
2251
2252
|
default: p(() => [
|
|
2252
|
-
f(
|
|
2253
|
-
list:
|
|
2254
|
-
group: { name: "orchisky", pull: "clone", put: !1, animation:
|
|
2253
|
+
f(b(ze), {
|
|
2254
|
+
list: d,
|
|
2255
|
+
group: { name: "orchisky", pull: "clone", put: !1, animation: b(he).animation },
|
|
2255
2256
|
sort: !1,
|
|
2256
|
-
"ghost-class":
|
|
2257
|
-
"chosen-class":
|
|
2258
|
-
"drag-class":
|
|
2259
|
-
"item-key":
|
|
2257
|
+
"ghost-class": b(he).ghostClass,
|
|
2258
|
+
"chosen-class": b(he).chosenClass,
|
|
2259
|
+
"drag-class": b(he).dragClass,
|
|
2260
|
+
"item-key": b(he).itemKey
|
|
2260
2261
|
}, {
|
|
2261
|
-
item: p(({ element:
|
|
2262
|
-
f(
|
|
2263
|
-
class:
|
|
2264
|
-
"data-type":
|
|
2265
|
-
"data-category":
|
|
2262
|
+
item: p(({ element: c }) => [
|
|
2263
|
+
f(s, {
|
|
2264
|
+
class: Be(["fe--side-button", { "fe-ghost-fixed": c.fixed }]),
|
|
2265
|
+
"data-type": c.type,
|
|
2266
|
+
"data-category": c.category,
|
|
2266
2267
|
size: "mini"
|
|
2267
2268
|
}, {
|
|
2268
2269
|
icon: p(() => [
|
|
2269
|
-
(
|
|
2270
|
+
(r(), y(be(c.icon), null, {
|
|
2270
2271
|
default: p(() => [
|
|
2271
2272
|
f(t)
|
|
2272
2273
|
]),
|
|
@@ -2274,7 +2275,7 @@ const zn = { class: "u-nos" }, Pn = {
|
|
|
2274
2275
|
}, 1024))
|
|
2275
2276
|
]),
|
|
2276
2277
|
default: p(() => [
|
|
2277
|
-
|
|
2278
|
+
te(" " + J(c.name), 1)
|
|
2278
2279
|
]),
|
|
2279
2280
|
_: 2
|
|
2280
2281
|
}, 1032, ["class", "data-type", "data-category"])
|
|
@@ -2287,76 +2288,76 @@ const zn = { class: "u-nos" }, Pn = {
|
|
|
2287
2288
|
};
|
|
2288
2289
|
}
|
|
2289
2290
|
});
|
|
2290
|
-
const
|
|
2291
|
+
const Ln = { key: 1 }, Hn = {
|
|
2291
2292
|
key: 0,
|
|
2292
2293
|
class: "arco-tree arco-tree-size-mini",
|
|
2293
2294
|
style: { padding: "8px" }
|
|
2294
|
-
},
|
|
2295
|
+
}, Gn = ["onClick"], Qn = { class: "arco-tree-node-title arco-tree-node-title-block u-flex" }, Jn = { class: "arco-tree-node-icon arco-tree-node-custom-icon" }, Xn = { class: "u-flex__item u-overflow" }, Yn = {
|
|
2295
2296
|
style: { "margin-left": "0.2em" },
|
|
2296
2297
|
class: "arco-tag arco-tag-size-small arco-tag-orange arco-tag-checked"
|
|
2297
|
-
},
|
|
2298
|
+
}, Zn = /* @__PURE__ */ U({
|
|
2298
2299
|
__name: "side",
|
|
2299
2300
|
props: { moduleConfig: Array },
|
|
2300
2301
|
setup(e) {
|
|
2301
|
-
const { widgetArray: o } =
|
|
2302
|
-
return (
|
|
2303
|
-
const
|
|
2304
|
-
return
|
|
2302
|
+
const { widgetArray: o } = Gt(), a = e, n = q(!1), { useWidgetOperation: l } = ae(), { onSelected: t, hasSelected: s } = l();
|
|
2303
|
+
return (u, d) => {
|
|
2304
|
+
const i = g("icon-drag-arrow"), c = g("a-empty"), m = g("icon-right"), C = g("icon-left"), v = g("a-button");
|
|
2305
|
+
return r(), B("div", {
|
|
2305
2306
|
class: "fe--side u-page__side",
|
|
2306
|
-
style:
|
|
2307
|
+
style: oe({ width: n.value ? "0px" : "219px" })
|
|
2307
2308
|
}, [
|
|
2308
|
-
n.value ?
|
|
2309
|
+
n.value ? N("", !0) : (r(), y(Qt, {
|
|
2309
2310
|
key: 0,
|
|
2310
2311
|
list: ["\u7EC4\u4EF6\u5E93", "\u6570\u636E\u6E90"]
|
|
2311
2312
|
}, {
|
|
2312
|
-
default: p(({ index:
|
|
2313
|
-
|
|
2313
|
+
default: p(({ index: h }) => [
|
|
2314
|
+
h === 0 ? (r(), y(Kn, {
|
|
2314
2315
|
key: 0,
|
|
2315
|
-
"module-config":
|
|
2316
|
-
}, null, 8, ["module-config"])) :
|
|
2317
|
-
|
|
2318
|
-
(
|
|
2319
|
-
key:
|
|
2320
|
-
class:
|
|
2321
|
-
"arco-tree-node-selected":
|
|
2316
|
+
"module-config": a.moduleConfig
|
|
2317
|
+
}, null, 8, ["module-config"])) : h === 1 ? (r(), B("div", Ln, [
|
|
2318
|
+
b(o).length ? (r(), B("div", Hn, [
|
|
2319
|
+
(r(!0), B(Q, null, de(b(o), (F, O) => (r(), B("div", {
|
|
2320
|
+
key: O,
|
|
2321
|
+
class: Be(["arco-tree-node arco-tree-node-is-leaf", {
|
|
2322
|
+
"arco-tree-node-selected": b(s)(F.key)
|
|
2322
2323
|
}]),
|
|
2323
|
-
onClick:
|
|
2324
|
+
onClick: Ke((w) => b(t)(F.key), ["stop"])
|
|
2324
2325
|
}, [
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
(
|
|
2326
|
+
R("div", Qn, [
|
|
2327
|
+
R("div", Jn, [
|
|
2328
|
+
(r(), y(be(F.icon), null, {
|
|
2328
2329
|
default: p(() => [
|
|
2329
|
-
f(
|
|
2330
|
+
f(i)
|
|
2330
2331
|
]),
|
|
2331
2332
|
_: 2
|
|
2332
2333
|
}, 1024))
|
|
2333
2334
|
]),
|
|
2334
|
-
|
|
2335
|
-
|
|
2335
|
+
R("div", Xn, J(F.title) + J(F.title) + J(F.title), 1),
|
|
2336
|
+
R("code", Yn, J(F.model), 1)
|
|
2336
2337
|
])
|
|
2337
|
-
], 10,
|
|
2338
|
-
])) : (
|
|
2339
|
-
])) : (
|
|
2338
|
+
], 10, Gn))), 128))
|
|
2339
|
+
])) : (r(), y(c, { key: 1 }))
|
|
2340
|
+
])) : (r(), y(c, { key: 2 }))
|
|
2340
2341
|
]),
|
|
2341
2342
|
_: 1
|
|
2342
2343
|
})),
|
|
2343
|
-
f(
|
|
2344
|
+
f(v, {
|
|
2344
2345
|
type: "secondary",
|
|
2345
2346
|
status: "normal",
|
|
2346
2347
|
size: "mini",
|
|
2347
2348
|
class: "arco-btn-light u-page__arrow",
|
|
2348
|
-
style:
|
|
2349
|
-
onClick:
|
|
2349
|
+
style: oe({ borderLeftWidth: n.value ? "1px" : "0" }),
|
|
2350
|
+
onClick: d[0] || (d[0] = (h) => n.value = !n.value)
|
|
2350
2351
|
}, {
|
|
2351
2352
|
icon: p(() => [
|
|
2352
|
-
n.value ? (
|
|
2353
|
+
n.value ? (r(), y(m, { key: 0 })) : (r(), y(C, { key: 1 }))
|
|
2353
2354
|
]),
|
|
2354
2355
|
_: 1
|
|
2355
2356
|
}, 8, ["style"])
|
|
2356
2357
|
], 4);
|
|
2357
2358
|
};
|
|
2358
2359
|
}
|
|
2359
|
-
}),
|
|
2360
|
+
}), Bt = /* @__PURE__ */ U({
|
|
2360
2361
|
__name: "string",
|
|
2361
2362
|
props: {
|
|
2362
2363
|
elementType: {},
|
|
@@ -2368,37 +2369,37 @@ const Rn = { key: 1 }, jn = {
|
|
|
2368
2369
|
},
|
|
2369
2370
|
emits: ["update:model-value"],
|
|
2370
2371
|
setup(e, { emit: o }) {
|
|
2371
|
-
const
|
|
2372
|
-
var
|
|
2373
|
-
return (
|
|
2374
|
-
}, t =
|
|
2375
|
-
return
|
|
2372
|
+
const a = o, n = e, l = () => {
|
|
2373
|
+
var u;
|
|
2374
|
+
return (u = n.modelValue) != null ? u : void 0;
|
|
2375
|
+
}, t = q(l());
|
|
2376
|
+
return ne(() => n.modelValue, () => {
|
|
2376
2377
|
t.value = l();
|
|
2377
|
-
}),
|
|
2378
|
-
const
|
|
2379
|
-
return
|
|
2380
|
-
field:
|
|
2381
|
-
label:
|
|
2382
|
-
},
|
|
2378
|
+
}), ne(t, (u) => a("update:model-value", u)), (u, d) => {
|
|
2379
|
+
const i = g("AInputNumber"), c = g("AInput"), m = g("AFormItem");
|
|
2380
|
+
return r(), y(m, I({
|
|
2381
|
+
field: u.field,
|
|
2382
|
+
label: u.label
|
|
2383
|
+
}, u.formProps), {
|
|
2383
2384
|
default: p(() => [
|
|
2384
|
-
typeof t.value == "number" ? (
|
|
2385
|
+
typeof t.value == "number" ? (r(), y(i, I({
|
|
2385
2386
|
key: 0,
|
|
2386
2387
|
modelValue: t.value,
|
|
2387
|
-
"onUpdate:modelValue":
|
|
2388
|
+
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
2388
2389
|
mode: "button",
|
|
2389
2390
|
size: "mini"
|
|
2390
|
-
},
|
|
2391
|
+
}, u.elementProps), null, 16, ["modelValue"])) : (r(), y(c, I({
|
|
2391
2392
|
key: 1,
|
|
2392
2393
|
modelValue: t.value,
|
|
2393
|
-
"onUpdate:modelValue":
|
|
2394
|
+
"onUpdate:modelValue": d[1] || (d[1] = (C) => t.value = C),
|
|
2394
2395
|
size: "mini"
|
|
2395
|
-
},
|
|
2396
|
+
}, u.elementProps), null, 16, ["modelValue"]))
|
|
2396
2397
|
]),
|
|
2397
2398
|
_: 1
|
|
2398
2399
|
}, 16, ["field", "label"]);
|
|
2399
2400
|
};
|
|
2400
2401
|
}
|
|
2401
|
-
}),
|
|
2402
|
+
}), el = /* @__PURE__ */ U({
|
|
2402
2403
|
__name: "number",
|
|
2403
2404
|
props: {
|
|
2404
2405
|
elementType: {},
|
|
@@ -2410,31 +2411,31 @@ const Rn = { key: 1 }, jn = {
|
|
|
2410
2411
|
},
|
|
2411
2412
|
emits: ["update:model-value"],
|
|
2412
2413
|
setup(e, { emit: o }) {
|
|
2413
|
-
const
|
|
2414
|
-
var
|
|
2415
|
-
return (
|
|
2416
|
-
}, t =
|
|
2417
|
-
return
|
|
2414
|
+
const a = o, n = e, l = () => {
|
|
2415
|
+
var u;
|
|
2416
|
+
return (u = n.modelValue) != null ? u : void 0;
|
|
2417
|
+
}, t = q(l());
|
|
2418
|
+
return ne(() => n.modelValue, () => {
|
|
2418
2419
|
t.value = l();
|
|
2419
|
-
}),
|
|
2420
|
-
const
|
|
2421
|
-
return
|
|
2422
|
-
field:
|
|
2423
|
-
label:
|
|
2424
|
-
},
|
|
2420
|
+
}), ne(t, (u) => a("update:model-value", u)), (u, d) => {
|
|
2421
|
+
const i = g("AInputNumber"), c = g("AFormItem");
|
|
2422
|
+
return r(), y(c, I({
|
|
2423
|
+
field: u.field,
|
|
2424
|
+
label: u.label
|
|
2425
|
+
}, u.formProps), {
|
|
2425
2426
|
default: p(() => [
|
|
2426
|
-
f(
|
|
2427
|
+
f(i, I({
|
|
2427
2428
|
modelValue: t.value,
|
|
2428
|
-
"onUpdate:modelValue":
|
|
2429
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
|
|
2429
2430
|
mode: "button",
|
|
2430
2431
|
size: "mini"
|
|
2431
|
-
},
|
|
2432
|
+
}, u.elementProps), null, 16, ["modelValue"])
|
|
2432
2433
|
]),
|
|
2433
2434
|
_: 1
|
|
2434
2435
|
}, 16, ["field", "label"]);
|
|
2435
2436
|
};
|
|
2436
2437
|
}
|
|
2437
|
-
}),
|
|
2438
|
+
}), tl = /* @__PURE__ */ U({
|
|
2438
2439
|
__name: "px",
|
|
2439
2440
|
props: {
|
|
2440
2441
|
elementType: {},
|
|
@@ -2446,48 +2447,48 @@ const Rn = { key: 1 }, jn = {
|
|
|
2446
2447
|
},
|
|
2447
2448
|
emits: ["update:model-value"],
|
|
2448
2449
|
setup(e, { emit: o }) {
|
|
2449
|
-
const
|
|
2450
|
-
return
|
|
2450
|
+
const a = o, n = e, l = ["px", "pt", "mm"], t = q("px"), s = q();
|
|
2451
|
+
return ne(
|
|
2451
2452
|
() => n.modelValue,
|
|
2452
|
-
(
|
|
2453
|
-
if (typeof
|
|
2454
|
-
t.value = "px",
|
|
2455
|
-
else if (
|
|
2456
|
-
t.value = "px",
|
|
2453
|
+
(u) => {
|
|
2454
|
+
if (typeof u == "number")
|
|
2455
|
+
t.value = "px", s.value = u;
|
|
2456
|
+
else if (u == null)
|
|
2457
|
+
t.value = "px", s.value = void 0;
|
|
2457
2458
|
else {
|
|
2458
|
-
const
|
|
2459
|
-
l.includes(
|
|
2459
|
+
const d = String(u).slice(-2).toLowerCase();
|
|
2460
|
+
l.includes(d) && (t.value = d), s.value = Number.parseFloat(String(u));
|
|
2460
2461
|
}
|
|
2461
2462
|
},
|
|
2462
2463
|
{
|
|
2463
2464
|
immediate: !0
|
|
2464
2465
|
}
|
|
2465
|
-
),
|
|
2466
|
-
const
|
|
2467
|
-
return
|
|
2468
|
-
field:
|
|
2469
|
-
label:
|
|
2470
|
-
},
|
|
2466
|
+
), ne([s, t], () => a("update:model-value", `${s.value}${t.value}`)), (u, d) => {
|
|
2467
|
+
const i = g("AInput"), c = g("AInputNumber"), m = g("ASelect"), C = g("AInputGroup"), v = g("AFormItem");
|
|
2468
|
+
return r(), y(v, I({
|
|
2469
|
+
field: u.field,
|
|
2470
|
+
label: u.label
|
|
2471
|
+
}, u.formProps), {
|
|
2471
2472
|
label: p(() => [
|
|
2472
|
-
|
|
2473
|
+
te(J(n.label), 1)
|
|
2473
2474
|
]),
|
|
2474
2475
|
default: p(() => [
|
|
2475
|
-
n.modelValue === "100%" ? (
|
|
2476
|
+
n.modelValue === "100%" ? (r(), y(i, {
|
|
2476
2477
|
key: 0,
|
|
2477
2478
|
size: "mini",
|
|
2478
2479
|
disabled: "",
|
|
2479
2480
|
"model-value": "100%"
|
|
2480
|
-
})) : (
|
|
2481
|
+
})) : (r(), y(C, { key: 1 }, {
|
|
2481
2482
|
default: p(() => [
|
|
2482
|
-
f(
|
|
2483
|
-
modelValue:
|
|
2484
|
-
"onUpdate:modelValue":
|
|
2483
|
+
f(c, I({
|
|
2484
|
+
modelValue: s.value,
|
|
2485
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => s.value = h),
|
|
2485
2486
|
size: "mini",
|
|
2486
2487
|
mode: "button"
|
|
2487
|
-
},
|
|
2488
|
+
}, u.elementProps), null, 16, ["modelValue"]),
|
|
2488
2489
|
f(m, {
|
|
2489
2490
|
modelValue: t.value,
|
|
2490
|
-
"onUpdate:modelValue":
|
|
2491
|
+
"onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h),
|
|
2491
2492
|
size: "mini",
|
|
2492
2493
|
options: l,
|
|
2493
2494
|
style: { minWidth: "0", width: "68px" },
|
|
@@ -2502,7 +2503,7 @@ const Rn = { key: 1 }, jn = {
|
|
|
2502
2503
|
}, 16, ["field", "label"]);
|
|
2503
2504
|
};
|
|
2504
2505
|
}
|
|
2505
|
-
}),
|
|
2506
|
+
}), ol = /* @__PURE__ */ U({
|
|
2506
2507
|
__name: "radio",
|
|
2507
2508
|
props: {
|
|
2508
2509
|
elementType: {},
|
|
@@ -2514,31 +2515,31 @@ const Rn = { key: 1 }, jn = {
|
|
|
2514
2515
|
},
|
|
2515
2516
|
emits: ["update:model-value"],
|
|
2516
2517
|
setup(e, { emit: o }) {
|
|
2517
|
-
const
|
|
2518
|
-
var
|
|
2519
|
-
return (
|
|
2520
|
-
}, t =
|
|
2521
|
-
return
|
|
2518
|
+
const a = o, n = e, l = () => {
|
|
2519
|
+
var u;
|
|
2520
|
+
return (u = n.modelValue) != null ? u : void 0;
|
|
2521
|
+
}, t = q(l());
|
|
2522
|
+
return ne(() => n.modelValue, () => {
|
|
2522
2523
|
t.value = l();
|
|
2523
|
-
}),
|
|
2524
|
-
const
|
|
2525
|
-
return
|
|
2526
|
-
field:
|
|
2527
|
-
label:
|
|
2528
|
-
},
|
|
2524
|
+
}), ne(t, (u) => a("update:model-value", u)), (u, d) => {
|
|
2525
|
+
const i = g("ARadioGroup"), c = g("AFormItem");
|
|
2526
|
+
return r(), y(c, I({
|
|
2527
|
+
field: u.field,
|
|
2528
|
+
label: u.label
|
|
2529
|
+
}, u.formProps), {
|
|
2529
2530
|
default: p(() => [
|
|
2530
|
-
f(
|
|
2531
|
+
f(i, I({
|
|
2531
2532
|
modelValue: t.value,
|
|
2532
|
-
"onUpdate:modelValue":
|
|
2533
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
|
|
2533
2534
|
type: "button",
|
|
2534
2535
|
size: "mini"
|
|
2535
|
-
},
|
|
2536
|
+
}, u.elementProps), null, 16, ["modelValue"])
|
|
2536
2537
|
]),
|
|
2537
2538
|
_: 1
|
|
2538
2539
|
}, 16, ["field", "label"]);
|
|
2539
2540
|
};
|
|
2540
2541
|
}
|
|
2541
|
-
}),
|
|
2542
|
+
}), nl = /* @__PURE__ */ U({
|
|
2542
2543
|
__name: "select",
|
|
2543
2544
|
props: {
|
|
2544
2545
|
elementType: {},
|
|
@@ -2550,31 +2551,31 @@ const Rn = { key: 1 }, jn = {
|
|
|
2550
2551
|
},
|
|
2551
2552
|
emits: ["update:model-value"],
|
|
2552
2553
|
setup(e, { emit: o }) {
|
|
2553
|
-
const
|
|
2554
|
-
var
|
|
2555
|
-
return (
|
|
2556
|
-
}, t =
|
|
2557
|
-
return
|
|
2554
|
+
const a = o, n = e, l = () => {
|
|
2555
|
+
var u;
|
|
2556
|
+
return (u = n.modelValue) != null ? u : void 0;
|
|
2557
|
+
}, t = q(l());
|
|
2558
|
+
return ne(() => n.modelValue, () => {
|
|
2558
2559
|
t.value = l();
|
|
2559
|
-
}),
|
|
2560
|
-
const
|
|
2561
|
-
return
|
|
2562
|
-
field:
|
|
2563
|
-
label:
|
|
2564
|
-
},
|
|
2560
|
+
}), ne(t, (u) => a("update:model-value", u)), (u, d) => {
|
|
2561
|
+
const i = g("ASelect"), c = g("AFormItem");
|
|
2562
|
+
return r(), y(c, I({
|
|
2563
|
+
field: u.field,
|
|
2564
|
+
label: u.label
|
|
2565
|
+
}, u.formProps), {
|
|
2565
2566
|
default: p(() => [
|
|
2566
|
-
f(
|
|
2567
|
+
f(i, I({
|
|
2567
2568
|
modelValue: t.value,
|
|
2568
|
-
"onUpdate:modelValue":
|
|
2569
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
|
|
2569
2570
|
size: "mini",
|
|
2570
2571
|
"trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" }
|
|
2571
|
-
},
|
|
2572
|
+
}, u.elementProps), null, 16, ["modelValue"])
|
|
2572
2573
|
]),
|
|
2573
2574
|
_: 1
|
|
2574
2575
|
}, 16, ["field", "label"]);
|
|
2575
2576
|
};
|
|
2576
2577
|
}
|
|
2577
|
-
}),
|
|
2578
|
+
}), Oe = /* @__PURE__ */ U({
|
|
2578
2579
|
__name: "panel-item",
|
|
2579
2580
|
props: {
|
|
2580
2581
|
elementType: { default: "string" },
|
|
@@ -2586,149 +2587,149 @@ const Rn = { key: 1 }, jn = {
|
|
|
2586
2587
|
},
|
|
2587
2588
|
emits: ["update:model-value"],
|
|
2588
2589
|
setup(e, { emit: o }) {
|
|
2589
|
-
const
|
|
2590
|
+
const a = e, n = o, l = rt();
|
|
2590
2591
|
function t() {
|
|
2591
|
-
var
|
|
2592
|
-
l.value = (
|
|
2592
|
+
var s;
|
|
2593
|
+
l.value = (s = { string: Bt, number: el, px: tl, radio: ol, select: nl }[a.elementType]) != null ? s : Bt;
|
|
2593
2594
|
}
|
|
2594
|
-
return
|
|
2595
|
-
"onUpdate:modelValue":
|
|
2596
|
-
}), null, 16)) :
|
|
2595
|
+
return dt(t), ne(() => a.elementType, t), (s, u) => l.value ? (r(), y(be(l.value), I({ key: 0 }, a, {
|
|
2596
|
+
"onUpdate:modelValue": u[0] || (u[0] = (d) => n("update:model-value", d))
|
|
2597
|
+
}), null, 16)) : N("", !0);
|
|
2597
2598
|
}
|
|
2598
|
-
}),
|
|
2599
|
+
}), ll = /* @__PURE__ */ U({
|
|
2599
2600
|
__name: "panel",
|
|
2600
2601
|
setup(e) {
|
|
2601
|
-
const { getWidgetPanelProperty: o, getWidget:
|
|
2602
|
-
|
|
2602
|
+
const { getWidgetPanelProperty: o, getWidget: a, updateRootPathValue: n } = ae(), { t: l } = fo(), t = q(!1), s = q(0), { config: u, selectPath: d, models: i } = Pe(), c = (O) => {
|
|
2603
|
+
s.value = O ? 0 : 1;
|
|
2603
2604
|
};
|
|
2604
|
-
d
|
|
2605
|
-
const m =
|
|
2606
|
-
m.value &&
|
|
2607
|
-
},
|
|
2605
|
+
c(d.value);
|
|
2606
|
+
const m = M(() => a(d.value)), C = (O) => (w) => n(`${d.value}.${O}`, w), v = (O, w) => {
|
|
2607
|
+
m.value && O && (O === "defaultValue" && m.value.model && (i.value[m.value.model] = w), C(`options.${O}`)(w));
|
|
2608
|
+
}, h = M(
|
|
2608
2609
|
() => {
|
|
2609
|
-
var
|
|
2610
|
-
return (
|
|
2610
|
+
var O;
|
|
2611
|
+
return (O = o({
|
|
2611
2612
|
optionsConfig: {
|
|
2612
2613
|
width: "px",
|
|
2613
2614
|
height: "px",
|
|
2614
|
-
labelWidth: { type: "px", show: !!
|
|
2615
|
+
labelWidth: { type: "px", show: !!u.value.labelWidth, toolbar: "" },
|
|
2615
2616
|
labelAlign: {
|
|
2616
2617
|
type: "radio",
|
|
2617
|
-
show: !!
|
|
2618
|
+
show: !!u.value.labelAlign,
|
|
2618
2619
|
options: [
|
|
2619
2620
|
{ label: l("fe.config.labelAlignRight"), value: "right" },
|
|
2620
2621
|
{ label: l("fe.config.labelAlignLeft"), value: "left" }
|
|
2621
2622
|
]
|
|
2622
2623
|
}
|
|
2623
2624
|
},
|
|
2624
|
-
options:
|
|
2625
|
-
})) != null ?
|
|
2625
|
+
options: u.value
|
|
2626
|
+
})) != null ? O : {};
|
|
2626
2627
|
}
|
|
2627
|
-
),
|
|
2628
|
-
const
|
|
2629
|
-
if (
|
|
2630
|
-
const
|
|
2628
|
+
), F = M(() => {
|
|
2629
|
+
const O = o(m.value);
|
|
2630
|
+
if (O) {
|
|
2631
|
+
const w = [
|
|
2631
2632
|
{
|
|
2632
2633
|
title: "\u57FA\u7840\u8BBE\u7F6E",
|
|
2633
2634
|
sort: 1,
|
|
2634
2635
|
type: "base",
|
|
2635
2636
|
list: [],
|
|
2636
|
-
filterFunc: (
|
|
2637
|
+
filterFunc: (A) => ["defaultValue"].includes(A)
|
|
2637
2638
|
},
|
|
2638
2639
|
{
|
|
2639
2640
|
title: "\u5C5E\u6027\u8BBE\u7F6E",
|
|
2640
2641
|
sort: 2,
|
|
2641
2642
|
type: "boolean",
|
|
2642
2643
|
list: [],
|
|
2643
|
-
filterFunc: (
|
|
2644
|
+
filterFunc: (A, S) => S.type === "boolean"
|
|
2644
2645
|
},
|
|
2645
2646
|
{
|
|
2646
2647
|
title: "\u4F4D\u7F6E\u8BBE\u7F6E",
|
|
2647
2648
|
sort: 99,
|
|
2648
2649
|
type: "position",
|
|
2649
2650
|
list: [],
|
|
2650
|
-
filterFunc: (
|
|
2651
|
+
filterFunc: (A) => ["left", "top"].includes(A),
|
|
2651
2652
|
showFunc: () => {
|
|
2652
|
-
var
|
|
2653
|
-
return ((
|
|
2653
|
+
var A;
|
|
2654
|
+
return ((A = m.value) == null ? void 0 : A.fixed) === !0;
|
|
2654
2655
|
}
|
|
2655
2656
|
},
|
|
2656
|
-
{ title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (
|
|
2657
|
+
{ title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (A) => !!A }
|
|
2657
2658
|
];
|
|
2658
|
-
return Object.keys(
|
|
2659
|
-
let
|
|
2660
|
-
const
|
|
2661
|
-
|
|
2662
|
-
|
|
2659
|
+
return Object.keys(O).forEach((A) => {
|
|
2660
|
+
let S = !1;
|
|
2661
|
+
const $ = O[A];
|
|
2662
|
+
w.forEach((k) => {
|
|
2663
|
+
!S && k.filterFunc(A, $) && (k.list.push($), S = !0);
|
|
2663
2664
|
});
|
|
2664
|
-
}), [...
|
|
2665
|
+
}), [...w].filter((A) => typeof A.showFunc != "function" || A.showFunc()).sort((A, S) => A.sort - S.sort).map((A) => (delete A.filterFunc, delete A.showFunc, A));
|
|
2665
2666
|
}
|
|
2666
2667
|
return null;
|
|
2667
2668
|
});
|
|
2668
|
-
return
|
|
2669
|
-
const
|
|
2670
|
-
return
|
|
2669
|
+
return ne(d, c), (O, w) => {
|
|
2670
|
+
const A = g("AForm"), S = g("a-checkbox"), $ = g("a-space"), k = g("a-empty"), P = g("icon-right"), j = g("icon-left"), T = g("a-button");
|
|
2671
|
+
return r(), B("div", {
|
|
2671
2672
|
class: "u-page__panel fe--panels",
|
|
2672
|
-
style:
|
|
2673
|
+
style: oe({ width: t.value ? "0px" : "219px" })
|
|
2673
2674
|
}, [
|
|
2674
|
-
t.value ?
|
|
2675
|
+
t.value ? N("", !0) : (r(), y(Qt, {
|
|
2675
2676
|
key: 0,
|
|
2676
|
-
"tab-index":
|
|
2677
|
-
"onUpdate:tabIndex":
|
|
2677
|
+
"tab-index": s.value,
|
|
2678
|
+
"onUpdate:tabIndex": w[2] || (w[2] = (Y) => s.value = Y),
|
|
2678
2679
|
list: ["\u7EC4\u4EF6\u5C5E\u6027", "\u5168\u5C40\u5C5E\u6027"]
|
|
2679
2680
|
}, {
|
|
2680
2681
|
default: p(({ index: Y }) => {
|
|
2681
|
-
var
|
|
2682
|
+
var ie;
|
|
2682
2683
|
return [
|
|
2683
|
-
Y ? (
|
|
2684
|
+
Y ? (r(), y(Ue, {
|
|
2684
2685
|
key: 0,
|
|
2685
2686
|
title: "\u5168\u5C40\u5C5E\u6027"
|
|
2686
2687
|
}, {
|
|
2687
2688
|
default: p(() => [
|
|
2688
|
-
f(
|
|
2689
|
-
model:
|
|
2689
|
+
f(A, {
|
|
2690
|
+
model: b(u),
|
|
2690
2691
|
layout: "vertical"
|
|
2691
2692
|
}, {
|
|
2692
2693
|
default: p(() => [
|
|
2693
|
-
(
|
|
2694
|
-
|
|
2694
|
+
(r(!0), B(Q, null, de(h.value, (L, ue) => (r(), B(Q, { key: ue }, [
|
|
2695
|
+
L.show ? (r(), y(Oe, {
|
|
2695
2696
|
key: 0,
|
|
2696
|
-
"model-value":
|
|
2697
|
-
type:
|
|
2698
|
-
"element-type":
|
|
2699
|
-
"element-props": { options:
|
|
2700
|
-
label:
|
|
2701
|
-
"onUpdate:modelValue": (
|
|
2702
|
-
}, null, 8, ["model-value", "type", "element-type", "element-props", "label", "onUpdate:modelValue"])) :
|
|
2697
|
+
"model-value": b(u)[ue],
|
|
2698
|
+
type: L.type,
|
|
2699
|
+
"element-type": L.type,
|
|
2700
|
+
"element-props": { options: L.options },
|
|
2701
|
+
label: O.$t(`fe.config.${ue}`),
|
|
2702
|
+
"onUpdate:modelValue": (_) => b(u)[ue] = _
|
|
2703
|
+
}, null, 8, ["model-value", "type", "element-type", "element-props", "label", "onUpdate:modelValue"])) : N("", !0)
|
|
2703
2704
|
], 64))), 128))
|
|
2704
2705
|
]),
|
|
2705
2706
|
_: 1
|
|
2706
2707
|
}, 8, ["model"])
|
|
2707
2708
|
]),
|
|
2708
2709
|
_: 1
|
|
2709
|
-
})) : (
|
|
2710
|
-
(
|
|
2710
|
+
})) : (r(), B(Q, { key: 1 }, [
|
|
2711
|
+
(ie = m.value) != null && ie.options ? (r(), y(A, {
|
|
2711
2712
|
key: 0,
|
|
2712
2713
|
model: m.value,
|
|
2713
2714
|
layout: "vertical"
|
|
2714
2715
|
}, {
|
|
2715
2716
|
default: p(() => [
|
|
2716
|
-
(
|
|
2717
|
-
|
|
2718
|
-
|
|
2717
|
+
(r(!0), B(Q, null, de(F.value, (L, ue) => (r(), B(Q, { key: ue }, [
|
|
2718
|
+
L.list.length || L.type === "base" ? (r(), B(Q, { key: 0 }, [
|
|
2719
|
+
L.type === "boolean" ? (r(), y(Ue, {
|
|
2719
2720
|
key: 0,
|
|
2720
|
-
title:
|
|
2721
|
+
title: L.title
|
|
2721
2722
|
}, {
|
|
2722
2723
|
default: p(() => [
|
|
2723
|
-
f(
|
|
2724
|
+
f($, { wrap: "" }, {
|
|
2724
2725
|
default: p(() => [
|
|
2725
|
-
(
|
|
2726
|
-
key:
|
|
2727
|
-
"model-value": m.value.options[
|
|
2728
|
-
"onUpdate:modelValue": (
|
|
2726
|
+
(r(!0), B(Q, null, de(L.list, (_) => (r(), y(S, {
|
|
2727
|
+
key: _.model,
|
|
2728
|
+
"model-value": m.value.options[_.model],
|
|
2729
|
+
"onUpdate:modelValue": (E) => C(`options.${_.model}`)(E)
|
|
2729
2730
|
}, {
|
|
2730
2731
|
default: p(() => [
|
|
2731
|
-
|
|
2732
|
+
te(J(b(l)(`fe.panel.${_.model}`)), 1)
|
|
2732
2733
|
]),
|
|
2733
2734
|
_: 2
|
|
2734
2735
|
}, 1032, ["model-value", "onUpdate:modelValue"]))), 128))
|
|
@@ -2737,67 +2738,67 @@ const Rn = { key: 1 }, jn = {
|
|
|
2737
2738
|
}, 1024)
|
|
2738
2739
|
]),
|
|
2739
2740
|
_: 2
|
|
2740
|
-
}, 1032, ["title"])) : (
|
|
2741
|
+
}, 1032, ["title"])) : (r(), y(Ue, {
|
|
2741
2742
|
key: 1,
|
|
2742
|
-
title:
|
|
2743
|
+
title: L.title
|
|
2743
2744
|
}, {
|
|
2744
2745
|
default: p(() => [
|
|
2745
|
-
|
|
2746
|
-
f(
|
|
2746
|
+
L.type === "base" ? (r(), B(Q, { key: 0 }, [
|
|
2747
|
+
f(Oe, {
|
|
2747
2748
|
"model-value": m.value.type,
|
|
2748
2749
|
field: "type",
|
|
2749
2750
|
"element-type": "input",
|
|
2750
2751
|
label: "\u7C7B\u578B",
|
|
2751
2752
|
disabled: ""
|
|
2752
2753
|
}, null, 8, ["model-value"]),
|
|
2753
|
-
f(
|
|
2754
|
+
f(Oe, {
|
|
2754
2755
|
"model-value": m.value.name,
|
|
2755
2756
|
field: "name",
|
|
2756
2757
|
"element-type": "input",
|
|
2757
2758
|
label: "\u6807\u9898",
|
|
2758
|
-
"onUpdate:modelValue":
|
|
2759
|
+
"onUpdate:modelValue": w[0] || (w[0] = (_) => C("name")(_))
|
|
2759
2760
|
}, null, 8, ["model-value"]),
|
|
2760
|
-
m.value.category === "basic" ? (
|
|
2761
|
+
m.value.category === "basic" ? (r(), y(Oe, {
|
|
2761
2762
|
key: 0,
|
|
2762
2763
|
"model-value": m.value.model,
|
|
2763
2764
|
field: "model",
|
|
2764
2765
|
"element-type": "input",
|
|
2765
2766
|
label: "\u6570\u636E\u6E90",
|
|
2766
2767
|
"form-props": { tooltip: "\u91CD\u8981\u9009\u9879" },
|
|
2767
|
-
"onUpdate:modelValue":
|
|
2768
|
-
}, null, 8, ["model-value"])) :
|
|
2769
|
-
], 64)) :
|
|
2770
|
-
(
|
|
2771
|
-
key:
|
|
2772
|
-
label:
|
|
2773
|
-
"model-value": m.value.options[
|
|
2774
|
-
"element-type":
|
|
2775
|
-
"element-props": { options:
|
|
2776
|
-
"onUpdate:modelValue": (
|
|
2768
|
+
"onUpdate:modelValue": w[1] || (w[1] = (_) => C("model")(_))
|
|
2769
|
+
}, null, 8, ["model-value"])) : N("", !0)
|
|
2770
|
+
], 64)) : N("", !0),
|
|
2771
|
+
(r(!0), B(Q, null, de(L.list, (_, E) => (r(), y(Oe, {
|
|
2772
|
+
key: E,
|
|
2773
|
+
label: b(l)(`fe.panel.${_.model}`),
|
|
2774
|
+
"model-value": m.value.options[_.model],
|
|
2775
|
+
"element-type": _.type,
|
|
2776
|
+
"element-props": { options: _.options },
|
|
2777
|
+
"onUpdate:modelValue": (V) => v(_.model, V)
|
|
2777
2778
|
}, null, 8, ["label", "model-value", "element-type", "element-props", "onUpdate:modelValue"]))), 128))
|
|
2778
2779
|
]),
|
|
2779
2780
|
_: 2
|
|
2780
2781
|
}, 1032, ["title"]))
|
|
2781
|
-
], 64)) :
|
|
2782
|
+
], 64)) : N("", !0)
|
|
2782
2783
|
], 64))), 128))
|
|
2783
2784
|
]),
|
|
2784
2785
|
_: 1
|
|
2785
|
-
}, 8, ["model"])) : (
|
|
2786
|
+
}, 8, ["model"])) : (r(), y(k, { key: 1 }))
|
|
2786
2787
|
], 64))
|
|
2787
2788
|
];
|
|
2788
2789
|
}),
|
|
2789
2790
|
_: 1
|
|
2790
2791
|
}, 8, ["tab-index"])),
|
|
2791
|
-
f(
|
|
2792
|
+
f(T, {
|
|
2792
2793
|
type: "secondary",
|
|
2793
2794
|
status: "normal",
|
|
2794
2795
|
size: "mini",
|
|
2795
2796
|
class: "arco-btn-light u-page__arrow",
|
|
2796
|
-
style:
|
|
2797
|
-
onClick:
|
|
2797
|
+
style: oe({ borderRightWidth: t.value ? "1px" : "0" }),
|
|
2798
|
+
onClick: w[3] || (w[3] = (Y) => t.value = !t.value)
|
|
2798
2799
|
}, {
|
|
2799
2800
|
icon: p(() => [
|
|
2800
|
-
t.value ? (
|
|
2801
|
+
t.value ? (r(), y(j, { key: 1 })) : (r(), y(P, { key: 0 }))
|
|
2801
2802
|
]),
|
|
2802
2803
|
_: 1
|
|
2803
2804
|
}, 8, ["style"])
|
|
@@ -2805,13 +2806,13 @@ const Rn = { key: 1 }, jn = {
|
|
|
2805
2806
|
};
|
|
2806
2807
|
}
|
|
2807
2808
|
});
|
|
2808
|
-
const
|
|
2809
|
+
const ul = {
|
|
2809
2810
|
key: 0,
|
|
2810
2811
|
class: "u-aside"
|
|
2811
|
-
},
|
|
2812
|
+
}, al = { class: "u-page u-page--row" }, il = {
|
|
2812
2813
|
class: "u-main",
|
|
2813
2814
|
style: { padding: "0" }
|
|
2814
|
-
},
|
|
2815
|
+
}, sl = /* @__PURE__ */ U({
|
|
2815
2816
|
__name: "index",
|
|
2816
2817
|
props: {
|
|
2817
2818
|
readonly: Boolean,
|
|
@@ -2837,29 +2838,29 @@ const Qn = {
|
|
|
2837
2838
|
},
|
|
2838
2839
|
emits: ["save"],
|
|
2839
2840
|
setup(e, { emit: o }) {
|
|
2840
|
-
const
|
|
2841
|
-
|
|
2841
|
+
const a = o, n = e;
|
|
2842
|
+
Io({ ...n.data, models: n.models, remoteFuncs: n.remoteFuncs });
|
|
2842
2843
|
function l(t) {
|
|
2843
|
-
n.readonly ||
|
|
2844
|
+
n.readonly || a("save", t);
|
|
2844
2845
|
}
|
|
2845
|
-
return (t,
|
|
2846
|
-
|
|
2847
|
-
f(
|
|
2846
|
+
return (t, s) => n.readonly ? (r(), y(it, { key: 1 })) : (r(), B("div", ul, [
|
|
2847
|
+
R("div", al, [
|
|
2848
|
+
f(Zn, {
|
|
2848
2849
|
"module-config": n.moduleConfig
|
|
2849
2850
|
}, null, 8, ["module-config"]),
|
|
2850
|
-
|
|
2851
|
-
f(
|
|
2851
|
+
R("div", il, [
|
|
2852
|
+
f(Sn, { onSave: l })
|
|
2852
2853
|
]),
|
|
2853
|
-
f(
|
|
2854
|
+
f(ll)
|
|
2854
2855
|
])
|
|
2855
2856
|
]));
|
|
2856
2857
|
}
|
|
2857
|
-
}),
|
|
2858
|
+
}), Ze = {
|
|
2858
2859
|
height: "px",
|
|
2859
2860
|
width: "px",
|
|
2860
2861
|
left: "px",
|
|
2861
2862
|
top: "px"
|
|
2862
|
-
},
|
|
2863
|
+
}, rl = {
|
|
2863
2864
|
title: "\u8F85\u52A9\u63A7\u4EF6",
|
|
2864
2865
|
order: 4,
|
|
2865
2866
|
children: [
|
|
@@ -2875,7 +2876,7 @@ const Qn = {
|
|
|
2875
2876
|
borderTop: "1px solid #000"
|
|
2876
2877
|
},
|
|
2877
2878
|
optionsConfig: {
|
|
2878
|
-
...
|
|
2879
|
+
...Ze,
|
|
2879
2880
|
borderTop: {
|
|
2880
2881
|
show: !1
|
|
2881
2882
|
}
|
|
@@ -2893,7 +2894,7 @@ const Qn = {
|
|
|
2893
2894
|
borderLeft: "1px solid #000"
|
|
2894
2895
|
},
|
|
2895
2896
|
optionsConfig: {
|
|
2896
|
-
...
|
|
2897
|
+
...Ze,
|
|
2897
2898
|
borderLeft: {
|
|
2898
2899
|
show: !1
|
|
2899
2900
|
}
|
|
@@ -2912,19 +2913,19 @@ const Qn = {
|
|
|
2912
2913
|
colspan: 2
|
|
2913
2914
|
},
|
|
2914
2915
|
optionsConfig: {
|
|
2915
|
-
...
|
|
2916
|
+
...Ze
|
|
2916
2917
|
}
|
|
2917
2918
|
}
|
|
2918
2919
|
]
|
|
2919
|
-
},
|
|
2920
|
+
}, cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2920
2921
|
__proto__: null,
|
|
2921
|
-
default:
|
|
2922
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2922
|
+
default: rl
|
|
2923
|
+
}, Symbol.toStringTag, { value: "Module" })), et = {
|
|
2923
2924
|
height: "px",
|
|
2924
2925
|
width: "px",
|
|
2925
2926
|
left: "px",
|
|
2926
2927
|
top: "px"
|
|
2927
|
-
},
|
|
2928
|
+
}, dl = {
|
|
2928
2929
|
title: "\u57FA\u7840\u5B57\u6BB5",
|
|
2929
2930
|
order: 1,
|
|
2930
2931
|
children: [
|
|
@@ -2943,7 +2944,7 @@ const Qn = {
|
|
|
2943
2944
|
fontFamily: ""
|
|
2944
2945
|
},
|
|
2945
2946
|
optionsConfig: {
|
|
2946
|
-
...
|
|
2947
|
+
...et,
|
|
2947
2948
|
textAlign: {
|
|
2948
2949
|
type: "radio",
|
|
2949
2950
|
options: ["left", "center", "right"]
|
|
@@ -2964,7 +2965,7 @@ const Qn = {
|
|
|
2964
2965
|
fontFamily: ""
|
|
2965
2966
|
},
|
|
2966
2967
|
optionsConfig: {
|
|
2967
|
-
...
|
|
2968
|
+
...et,
|
|
2968
2969
|
fontSize: "px",
|
|
2969
2970
|
fontFamily: "string"
|
|
2970
2971
|
}
|
|
@@ -2979,13 +2980,13 @@ const Qn = {
|
|
|
2979
2980
|
width: "150pt",
|
|
2980
2981
|
height: "150pt"
|
|
2981
2982
|
},
|
|
2982
|
-
optionsConfig:
|
|
2983
|
+
optionsConfig: et
|
|
2983
2984
|
}
|
|
2984
2985
|
]
|
|
2985
|
-
},
|
|
2986
|
+
}, pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2986
2987
|
__proto__: null,
|
|
2987
|
-
default:
|
|
2988
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2988
|
+
default: dl
|
|
2989
|
+
}, Symbol.toStringTag, { value: "Module" })), fl = {
|
|
2989
2990
|
title: "\u6761\u5F62\u7801",
|
|
2990
2991
|
order: 7,
|
|
2991
2992
|
children: [
|
|
@@ -3058,64 +3059,64 @@ const Qn = {
|
|
|
3058
3059
|
}
|
|
3059
3060
|
}
|
|
3060
3061
|
]
|
|
3061
|
-
},
|
|
3062
|
+
}, ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3062
3063
|
__proto__: null,
|
|
3063
|
-
default:
|
|
3064
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3065
|
-
Object.keys(
|
|
3066
|
-
const o =
|
|
3067
|
-
o &&
|
|
3064
|
+
default: fl
|
|
3065
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ Object.assign({ "./module/assist.ts": cl, "./module/base.ts": pl, "./module/bwip.ts": ml }), mt = [];
|
|
3066
|
+
Object.keys($t).forEach((e) => {
|
|
3067
|
+
const o = $t[e].default;
|
|
3068
|
+
o && mt.push(o);
|
|
3068
3069
|
});
|
|
3069
|
-
|
|
3070
|
-
const
|
|
3070
|
+
mt.sort((e, o) => e.order - o.order);
|
|
3071
|
+
const Xl = /* @__PURE__ */ U({
|
|
3071
3072
|
__name: "index",
|
|
3072
3073
|
setup(e, { expose: o }) {
|
|
3073
|
-
const
|
|
3074
|
+
const a = q();
|
|
3074
3075
|
return o({
|
|
3075
3076
|
getHtml() {
|
|
3076
|
-
var n, l, t,
|
|
3077
|
-
return (
|
|
3077
|
+
var n, l, t, s;
|
|
3078
|
+
return (s = (t = (l = (n = a.value) == null ? void 0 : n.$el) == null ? void 0 : l.nextElementSibling) == null ? void 0 : t.innerHTML) != null ? s : "";
|
|
3078
3079
|
}
|
|
3079
|
-
}), (n, l) => (
|
|
3080
|
+
}), (n, l) => (r(), y(b(sl), I({
|
|
3080
3081
|
ref_key: "ref$",
|
|
3081
|
-
ref:
|
|
3082
|
-
"module-config":
|
|
3082
|
+
ref: a,
|
|
3083
|
+
"module-config": b(mt)
|
|
3083
3084
|
}, n.$props), null, 16, ["module-config"]));
|
|
3084
3085
|
}
|
|
3085
3086
|
});
|
|
3086
|
-
function
|
|
3087
|
-
return e.multiple && (e.defaultValue ?
|
|
3087
|
+
function qe(e) {
|
|
3088
|
+
return e.multiple && (e.defaultValue ? Le(e.defaultValue) !== "Array" && (e.defaultValue = String(e.defaultValue).split(",")) : e.defaultValue = []), e;
|
|
3088
3089
|
}
|
|
3089
|
-
const
|
|
3090
|
-
const
|
|
3090
|
+
const gt = (e, o) => {
|
|
3091
|
+
const a = e.__vccOpts || e;
|
|
3091
3092
|
for (const [n, l] of o)
|
|
3092
|
-
|
|
3093
|
-
return
|
|
3094
|
-
},
|
|
3095
|
-
function
|
|
3096
|
-
const
|
|
3097
|
-
return
|
|
3098
|
-
e.$attrs.multiple !== !0 ? (
|
|
3093
|
+
a[n] = l;
|
|
3094
|
+
return a;
|
|
3095
|
+
}, gl = {};
|
|
3096
|
+
function _l(e, o) {
|
|
3097
|
+
const a = g("a-date-picker"), n = g("a-range-picker");
|
|
3098
|
+
return r(), B("div", null, [
|
|
3099
|
+
e.$attrs.multiple !== !0 ? (r(), y(a, xe(I({ key: 0 }, e.$attrs)), null, 16)) : (r(), y(n, xe(I({ key: 1 }, e.$attrs)), null, 16))
|
|
3099
3100
|
]);
|
|
3100
3101
|
}
|
|
3101
|
-
const
|
|
3102
|
+
const vl = /* @__PURE__ */ gt(gl, [["render", _l]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3102
3103
|
__proto__: null,
|
|
3103
|
-
default:
|
|
3104
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3105
|
-
function
|
|
3106
|
-
const
|
|
3107
|
-
return
|
|
3104
|
+
default: vl
|
|
3105
|
+
}, Symbol.toStringTag, { value: "Module" })), yl = {};
|
|
3106
|
+
function hl(e, o) {
|
|
3107
|
+
const a = g("a-input");
|
|
3108
|
+
return r(), y(a, xe(ct(e.$attrs)), null, 16);
|
|
3108
3109
|
}
|
|
3109
|
-
const
|
|
3110
|
+
const st = /* @__PURE__ */ gt(yl, [["render", hl]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3110
3111
|
__proto__: null,
|
|
3111
|
-
default:
|
|
3112
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3112
|
+
default: st
|
|
3113
|
+
}, Symbol.toStringTag, { value: "Module" })), Cl = {
|
|
3113
3114
|
key: 0,
|
|
3114
3115
|
class: "u-flex"
|
|
3115
|
-
},
|
|
3116
|
+
}, Al = /* @__PURE__ */ R("span", {
|
|
3116
3117
|
class: "arco-picker-separator",
|
|
3117
3118
|
style: { "min-width": "8px" }
|
|
3118
|
-
}, " - ", -1),
|
|
3119
|
+
}, " - ", -1), El = /* @__PURE__ */ U({
|
|
3119
3120
|
__name: "Number",
|
|
3120
3121
|
props: {
|
|
3121
3122
|
modelValue: [Number, Array],
|
|
@@ -3123,53 +3124,53 @@ const Ze = /* @__PURE__ */ ut(rl, [["render", cl]]), dl = /* @__PURE__ */ Object
|
|
|
3123
3124
|
},
|
|
3124
3125
|
emits: ["update:model-value"],
|
|
3125
3126
|
setup(e, { emit: o }) {
|
|
3126
|
-
const
|
|
3127
|
-
function t(
|
|
3128
|
-
const
|
|
3129
|
-
return
|
|
3130
|
-
}
|
|
3131
|
-
const
|
|
3132
|
-
return (
|
|
3133
|
-
const
|
|
3134
|
-
return
|
|
3135
|
-
e.multiple === !0 ? (
|
|
3136
|
-
f(
|
|
3127
|
+
const a = o, n = e, { modelValue: l } = Ce(n);
|
|
3128
|
+
function t(d) {
|
|
3129
|
+
const i = at(l == null ? void 0 : l.value), c = Number(i == null ? void 0 : i[d]);
|
|
3130
|
+
return qo(c) ? c : void 0;
|
|
3131
|
+
}
|
|
3132
|
+
const s = M(() => t(0)), u = M(() => t(1));
|
|
3133
|
+
return (d, i) => {
|
|
3134
|
+
const c = g("a-input-number");
|
|
3135
|
+
return r(), B("span", null, [
|
|
3136
|
+
e.multiple === !0 ? (r(), B("div", Cl, [
|
|
3137
|
+
f(c, I(d.$attrs, {
|
|
3137
3138
|
style: { width: "auto" },
|
|
3138
|
-
"model-value":
|
|
3139
|
-
"onUpdate:modelValue":
|
|
3139
|
+
"model-value": s.value,
|
|
3140
|
+
"onUpdate:modelValue": i[0] || (i[0] = (m) => a("update:model-value", [m, u.value]))
|
|
3140
3141
|
}), null, 16, ["model-value"]),
|
|
3141
|
-
|
|
3142
|
-
f(
|
|
3142
|
+
Al,
|
|
3143
|
+
f(c, I(d.$attrs, {
|
|
3143
3144
|
style: { width: "auto" },
|
|
3144
|
-
"model-value":
|
|
3145
|
-
"onUpdate:modelValue":
|
|
3145
|
+
"model-value": u.value,
|
|
3146
|
+
"onUpdate:modelValue": i[1] || (i[1] = (m) => a("update:model-value", [s.value, m]))
|
|
3146
3147
|
}), null, 16, ["model-value"])
|
|
3147
|
-
])) : (
|
|
3148
|
+
])) : (r(), y(c, I({ key: 1 }, d.$attrs, {
|
|
3148
3149
|
"model-value": Number(n.modelValue),
|
|
3149
|
-
"onUpdate:modelValue":
|
|
3150
|
+
"onUpdate:modelValue": i[2] || (i[2] = (m) => a("update:model-value", m))
|
|
3150
3151
|
}), null, 16, ["model-value"]))
|
|
3151
3152
|
]);
|
|
3152
3153
|
};
|
|
3153
3154
|
}
|
|
3154
|
-
}),
|
|
3155
|
+
}), xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3155
3156
|
__proto__: null,
|
|
3156
|
-
default:
|
|
3157
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3158
|
-
function
|
|
3159
|
-
const
|
|
3160
|
-
return
|
|
3157
|
+
default: El
|
|
3158
|
+
}, Symbol.toStringTag, { value: "Module" })), Fl = {};
|
|
3159
|
+
function kl(e, o) {
|
|
3160
|
+
const a = g("a-select");
|
|
3161
|
+
return r(), y(a, I(e.$attrs, { "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" } }), null, 16);
|
|
3161
3162
|
}
|
|
3162
|
-
const
|
|
3163
|
+
const Bl = /* @__PURE__ */ gt(Fl, [["render", kl]]), $l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3163
3164
|
__proto__: null,
|
|
3164
|
-
default:
|
|
3165
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3166
|
-
function
|
|
3165
|
+
default: Bl
|
|
3166
|
+
}, Symbol.toStringTag, { value: "Module" })), tt = /* @__PURE__ */ Object.assign({ "./Date.vue": bl, "./Input.vue": wl, "./Number.vue": xl, "./Select.vue": $l });
|
|
3167
|
+
function Ol(e) {
|
|
3167
3168
|
if (!e)
|
|
3168
|
-
return
|
|
3169
|
-
const o = Object.keys(
|
|
3170
|
-
return o &&
|
|
3169
|
+
return st;
|
|
3170
|
+
const o = Object.keys(tt).find((a) => String(a).toLowerCase().slice(2, -4) === e);
|
|
3171
|
+
return o && tt[o] ? tt[o].default : st;
|
|
3171
3172
|
}
|
|
3172
|
-
const
|
|
3173
|
+
const Sl = { class: "u-flex u-flex--start" }, Dl = { class: "u-flex__item" }, zl = /* @__PURE__ */ U({
|
|
3173
3174
|
__name: "search",
|
|
3174
3175
|
props: {
|
|
3175
3176
|
loading: Boolean,
|
|
@@ -3201,175 +3202,175 @@ const wl = { class: "u-flex u-flex--start" }, Cl = { class: "u-flex__item" }, Al
|
|
|
3201
3202
|
},
|
|
3202
3203
|
emits: ["onSearch", "update:model-value"],
|
|
3203
3204
|
setup(e, { emit: o }) {
|
|
3204
|
-
const
|
|
3205
|
+
const a = o, n = e, l = q();
|
|
3205
3206
|
function t() {
|
|
3206
|
-
return Object.assign([], n.options).map(
|
|
3207
|
+
return Object.assign([], n.options).map(qe);
|
|
3207
3208
|
}
|
|
3208
|
-
function
|
|
3209
|
-
return t().filter((
|
|
3209
|
+
function s() {
|
|
3210
|
+
return t().filter((k) => k.show !== !1);
|
|
3210
3211
|
}
|
|
3211
|
-
function
|
|
3212
|
-
const
|
|
3213
|
-
return
|
|
3214
|
-
|
|
3215
|
-
}),
|
|
3212
|
+
function u() {
|
|
3213
|
+
const k = {};
|
|
3214
|
+
return s().forEach((P) => {
|
|
3215
|
+
k[P.name] = qe(P).defaultValue;
|
|
3216
|
+
}), k;
|
|
3216
3217
|
}
|
|
3217
|
-
const
|
|
3218
|
-
function
|
|
3219
|
-
return { "shaonq--search": !0, [`shaonq--search-${
|
|
3218
|
+
const d = M(() => n.size), i = q({ ...u(), ...n.modelValue });
|
|
3219
|
+
function c() {
|
|
3220
|
+
return { "shaonq--search": !0, [`shaonq--search-${d.value}`]: !0 };
|
|
3220
3221
|
}
|
|
3221
|
-
const m =
|
|
3222
|
+
const m = q(s());
|
|
3222
3223
|
function C() {
|
|
3223
3224
|
return Object.assign([], m.value);
|
|
3224
3225
|
}
|
|
3225
|
-
function
|
|
3226
|
+
function v() {
|
|
3226
3227
|
m.value.push({ type: "input", name: "", label: "" });
|
|
3227
3228
|
}
|
|
3228
|
-
function
|
|
3229
|
-
m.value.splice(
|
|
3229
|
+
function h(k, P) {
|
|
3230
|
+
m.value.splice(k, 1), delete i.value[P];
|
|
3230
3231
|
}
|
|
3231
|
-
const
|
|
3232
|
-
function
|
|
3232
|
+
const F = q(!1);
|
|
3233
|
+
function O() {
|
|
3233
3234
|
l.value && l.value.clearValidate();
|
|
3234
3235
|
}
|
|
3235
|
-
function
|
|
3236
|
-
|
|
3237
|
-
|
|
3236
|
+
function w() {
|
|
3237
|
+
F.value = !0, m.value = s(), i.value = { ...u(), ...n.modelValue }, setTimeout(() => {
|
|
3238
|
+
O(), F.value = !1;
|
|
3238
3239
|
}, 200);
|
|
3239
3240
|
}
|
|
3240
|
-
const
|
|
3241
|
-
label:
|
|
3242
|
-
value:
|
|
3243
|
-
disabled: C().some((
|
|
3241
|
+
const A = M(() => t().map((k) => ({
|
|
3242
|
+
label: k.label,
|
|
3243
|
+
value: k.name,
|
|
3244
|
+
disabled: C().some((P) => P.name === k.name)
|
|
3244
3245
|
})));
|
|
3245
|
-
function
|
|
3246
|
-
const
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
C().map((
|
|
3250
|
-
),
|
|
3251
|
-
}
|
|
3252
|
-
async function
|
|
3253
|
-
l.value && await new Promise((
|
|
3254
|
-
var
|
|
3255
|
-
(
|
|
3256
|
-
var
|
|
3257
|
-
const Y = (
|
|
3258
|
-
Y &&
|
|
3246
|
+
function S(k, P) {
|
|
3247
|
+
const j = t().find((T) => T.name === P);
|
|
3248
|
+
j && (m.value[k] = qe(j), i.value[j.name] = m.value[k].defaultValue), i.value = Ut(
|
|
3249
|
+
i.value,
|
|
3250
|
+
C().map((T) => T.name)
|
|
3251
|
+
), O();
|
|
3252
|
+
}
|
|
3253
|
+
async function $() {
|
|
3254
|
+
l.value && await new Promise((P) => {
|
|
3255
|
+
var j;
|
|
3256
|
+
(j = l.value) == null || j.validate((T) => {
|
|
3257
|
+
var ie, L;
|
|
3258
|
+
const Y = (L = (ie = Object.values({ ...T })) == null ? void 0 : ie[0]) == null ? void 0 : L.label;
|
|
3259
|
+
Y && jt.warning(`\u8BF7\u8F93\u5165${Y}`), P(!T);
|
|
3259
3260
|
});
|
|
3260
|
-
}) &&
|
|
3261
|
+
}) && a(
|
|
3261
3262
|
"onSearch",
|
|
3262
|
-
Object.keys(
|
|
3263
|
-
const
|
|
3264
|
-
return
|
|
3263
|
+
Object.keys(i.value).reduce((P, j) => {
|
|
3264
|
+
const T = i.value[j];
|
|
3265
|
+
return Uo(T) ? P[j] = T.some((Y) => !!Y) ? T.join(",") : "" : P[j] = T, P;
|
|
3265
3266
|
}, {})
|
|
3266
3267
|
);
|
|
3267
3268
|
}
|
|
3268
|
-
return (
|
|
3269
|
-
const
|
|
3270
|
-
return
|
|
3271
|
-
class:
|
|
3269
|
+
return (k, P) => {
|
|
3270
|
+
const j = g("icon-refresh"), T = g("a-button"), Y = g("a-select"), ie = g("a-form-item"), L = g("icon-plus-circle"), ue = g("icon-delete"), _ = g("a-space"), E = g("a-input-group"), V = g("icon-search"), re = g("a-form");
|
|
3271
|
+
return r(), B("div", {
|
|
3272
|
+
class: Be(c())
|
|
3272
3273
|
}, [
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
f(
|
|
3274
|
+
le(k.$slots, "head"),
|
|
3275
|
+
R("div", Sl, [
|
|
3276
|
+
R("div", Dl, [
|
|
3277
|
+
f(_, {
|
|
3277
3278
|
size: 1,
|
|
3278
3279
|
align: "start"
|
|
3279
3280
|
}, {
|
|
3280
3281
|
default: p(() => [
|
|
3281
|
-
n.readonly ?
|
|
3282
|
+
n.readonly ? N("", !0) : (r(), y(T, {
|
|
3282
3283
|
key: 0,
|
|
3283
3284
|
type: "outline",
|
|
3284
3285
|
class: "arco-btn-light",
|
|
3285
|
-
size:
|
|
3286
|
+
size: d.value,
|
|
3286
3287
|
title: "\u91CD\u7F6E\u641C\u7D22\u6761\u4EF6",
|
|
3287
|
-
loading:
|
|
3288
|
-
onClick:
|
|
3288
|
+
loading: F.value,
|
|
3289
|
+
onClick: P[0] || (P[0] = (X) => w())
|
|
3289
3290
|
}, {
|
|
3290
3291
|
icon: p(() => [
|
|
3291
|
-
f(
|
|
3292
|
+
f(j)
|
|
3292
3293
|
]),
|
|
3293
3294
|
_: 1
|
|
3294
3295
|
}, 8, ["size", "loading"])),
|
|
3295
|
-
f(
|
|
3296
|
+
f(re, {
|
|
3296
3297
|
ref_key: "formRef",
|
|
3297
3298
|
ref: l,
|
|
3298
|
-
model:
|
|
3299
|
+
model: i.value
|
|
3299
3300
|
}, {
|
|
3300
3301
|
default: p(() => [
|
|
3301
|
-
f(
|
|
3302
|
-
size:
|
|
3302
|
+
f(_, {
|
|
3303
|
+
size: d.value,
|
|
3303
3304
|
wrap: ""
|
|
3304
3305
|
}, {
|
|
3305
3306
|
default: p(() => [
|
|
3306
|
-
(
|
|
3307
|
-
key:
|
|
3308
|
-
size:
|
|
3307
|
+
(r(!0), B(Q, null, de(m.value, (X, me) => (r(), y(E, {
|
|
3308
|
+
key: me,
|
|
3309
|
+
size: d.value
|
|
3309
3310
|
}, {
|
|
3310
3311
|
default: p(() => [
|
|
3311
|
-
f(
|
|
3312
|
+
f(_, { size: 1 }, {
|
|
3312
3313
|
default: p(() => [
|
|
3313
|
-
n.readonly ? (
|
|
3314
|
+
n.readonly ? (r(), B("div", {
|
|
3314
3315
|
key: 1,
|
|
3315
|
-
style:
|
|
3316
|
-
},
|
|
3316
|
+
style: oe({ width: n.labelWidth })
|
|
3317
|
+
}, J(X.label), 5)) : (r(), y(Y, {
|
|
3317
3318
|
key: 0,
|
|
3318
|
-
"model-value":
|
|
3319
|
-
options:
|
|
3320
|
-
style:
|
|
3319
|
+
"model-value": X.name,
|
|
3320
|
+
options: A.value,
|
|
3321
|
+
style: oe({ width: n.labelWidth }),
|
|
3321
3322
|
placeholder: "\u5B57\u6BB5\u540D\u79F0",
|
|
3322
3323
|
"allow-search": "",
|
|
3323
|
-
size:
|
|
3324
|
+
size: d.value,
|
|
3324
3325
|
"trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" },
|
|
3325
|
-
onChange: (ge) =>
|
|
3326
|
+
onChange: (ge) => S(me, ge)
|
|
3326
3327
|
}, null, 8, ["model-value", "options", "style", "size", "onChange"])),
|
|
3327
|
-
f(
|
|
3328
|
+
f(ie, {
|
|
3328
3329
|
"no-style": "",
|
|
3329
|
-
field:
|
|
3330
|
-
label:
|
|
3331
|
-
required:
|
|
3332
|
-
rules:
|
|
3330
|
+
field: X.name,
|
|
3331
|
+
label: X.label,
|
|
3332
|
+
required: X.required,
|
|
3333
|
+
rules: X.rules
|
|
3333
3334
|
}, {
|
|
3334
3335
|
default: p(() => [
|
|
3335
|
-
(
|
|
3336
|
-
modelValue:
|
|
3337
|
-
"onUpdate:modelValue": (ge) =>
|
|
3338
|
-
size:
|
|
3336
|
+
(r(), y(be(b(Ol)(X.type)), I({
|
|
3337
|
+
modelValue: i.value[X.name],
|
|
3338
|
+
"onUpdate:modelValue": (ge) => i.value[X.name] = ge,
|
|
3339
|
+
size: d.value,
|
|
3339
3340
|
style: { width: n.inputWidth },
|
|
3340
3341
|
autocomplete: "off",
|
|
3341
|
-
readonly: !
|
|
3342
|
+
readonly: !X.name,
|
|
3342
3343
|
"allow-clear": "",
|
|
3343
3344
|
ref_for: !0
|
|
3344
|
-
},
|
|
3345
|
-
onPressEnter:
|
|
3345
|
+
}, b(He)(X, ["label", "defaultValue", "type", "show"]), {
|
|
3346
|
+
onPressEnter: P[1] || (P[1] = (ge) => $())
|
|
3346
3347
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "style", "readonly"]))
|
|
3347
3348
|
]),
|
|
3348
3349
|
_: 2
|
|
3349
3350
|
}, 1032, ["field", "label", "required", "rules"]),
|
|
3350
|
-
n.readonly ?
|
|
3351
|
-
|
|
3351
|
+
n.readonly ? N("", !0) : (r(), B(Q, { key: 2 }, [
|
|
3352
|
+
me ? (r(), y(T, {
|
|
3352
3353
|
key: 1,
|
|
3353
3354
|
type: "primary",
|
|
3354
3355
|
class: "arco-btn-light",
|
|
3355
3356
|
title: "\u5220\u9664",
|
|
3356
|
-
size:
|
|
3357
|
-
onClick: (ge) =>
|
|
3357
|
+
size: d.value,
|
|
3358
|
+
onClick: (ge) => h(me, X.name)
|
|
3358
3359
|
}, {
|
|
3359
3360
|
icon: p(() => [
|
|
3360
|
-
f(
|
|
3361
|
+
f(ue)
|
|
3361
3362
|
]),
|
|
3362
3363
|
_: 2
|
|
3363
|
-
}, 1032, ["size", "onClick"])) : (
|
|
3364
|
+
}, 1032, ["size", "onClick"])) : (r(), y(T, {
|
|
3364
3365
|
key: 0,
|
|
3365
3366
|
type: "primary",
|
|
3366
3367
|
class: "arco-btn-light",
|
|
3367
3368
|
title: "\u6DFB\u52A0",
|
|
3368
|
-
size:
|
|
3369
|
-
onClick:
|
|
3369
|
+
size: d.value,
|
|
3370
|
+
onClick: P[2] || (P[2] = (ge) => v())
|
|
3370
3371
|
}, {
|
|
3371
3372
|
icon: p(() => [
|
|
3372
|
-
f(
|
|
3373
|
+
f(L)
|
|
3373
3374
|
]),
|
|
3374
3375
|
_: 1
|
|
3375
3376
|
}, 8, ["size"]))
|
|
@@ -3380,21 +3381,21 @@ const wl = { class: "u-flex u-flex--start" }, Cl = { class: "u-flex__item" }, Al
|
|
|
3380
3381
|
]),
|
|
3381
3382
|
_: 2
|
|
3382
3383
|
}, 1032, ["size"]))), 128)),
|
|
3383
|
-
|
|
3384
|
-
f(
|
|
3384
|
+
le(k.$slots, "default"),
|
|
3385
|
+
f(_, { size: d.value }, {
|
|
3385
3386
|
default: p(() => [
|
|
3386
|
-
f(
|
|
3387
|
+
f(T, {
|
|
3387
3388
|
type: "primary",
|
|
3388
3389
|
loading: n.loading,
|
|
3389
3390
|
title: "\u641C\u7D22",
|
|
3390
|
-
size:
|
|
3391
|
-
onClick:
|
|
3391
|
+
size: d.value,
|
|
3392
|
+
onClick: P[3] || (P[3] = (X) => $())
|
|
3392
3393
|
}, {
|
|
3393
3394
|
icon: p(() => [
|
|
3394
|
-
f(
|
|
3395
|
+
f(V)
|
|
3395
3396
|
]),
|
|
3396
3397
|
default: p(() => [
|
|
3397
|
-
|
|
3398
|
+
te(" \u641C\u7D22 ")
|
|
3398
3399
|
]),
|
|
3399
3400
|
_: 1
|
|
3400
3401
|
}, 8, ["loading", "size"])
|
|
@@ -3416,13 +3417,13 @@ const wl = { class: "u-flex u-flex--start" }, Cl = { class: "u-flex__item" }, Al
|
|
|
3416
3417
|
};
|
|
3417
3418
|
}
|
|
3418
3419
|
});
|
|
3419
|
-
function
|
|
3420
|
+
function Yl(e) {
|
|
3420
3421
|
const o = {};
|
|
3421
|
-
return e.forEach((
|
|
3422
|
-
|
|
3423
|
-
}), [
|
|
3422
|
+
return e.forEach((a) => {
|
|
3423
|
+
a.show !== !1 && (o[a.name] = qe(a).defaultValue);
|
|
3424
|
+
}), [ot(e), ot(o)];
|
|
3424
3425
|
}
|
|
3425
|
-
const
|
|
3426
|
+
const Pl = {
|
|
3426
3427
|
textarea: [
|
|
3427
3428
|
[{ header: 1 }, { header: 2 }],
|
|
3428
3429
|
["bold", "italic", "underline"],
|
|
@@ -3449,7 +3450,7 @@ const El = {
|
|
|
3449
3450
|
["link", "video", "image"],
|
|
3450
3451
|
["clean"]
|
|
3451
3452
|
]
|
|
3452
|
-
},
|
|
3453
|
+
}, Zl = /* @__PURE__ */ U({
|
|
3453
3454
|
__name: "index",
|
|
3454
3455
|
props: {
|
|
3455
3456
|
modelValue: { type: String, default: "" },
|
|
@@ -3457,48 +3458,426 @@ const El = {
|
|
|
3457
3458
|
},
|
|
3458
3459
|
emits: ["update:modelValue"],
|
|
3459
3460
|
setup(e, { emit: o }) {
|
|
3460
|
-
const
|
|
3461
|
+
const a = e, n = o, l = q();
|
|
3461
3462
|
let t;
|
|
3462
|
-
const
|
|
3463
|
-
var
|
|
3464
|
-
return String((
|
|
3463
|
+
const s = () => {
|
|
3464
|
+
var d, i;
|
|
3465
|
+
return String((i = (d = t == null ? void 0 : t.root) == null ? void 0 : d.innerHTML) != null ? i : "");
|
|
3465
3466
|
};
|
|
3466
|
-
function
|
|
3467
|
+
function u() {
|
|
3467
3468
|
return {
|
|
3468
|
-
container:
|
|
3469
|
+
container: Pl.textarea,
|
|
3469
3470
|
handlers: {
|
|
3470
|
-
link(
|
|
3471
|
-
if (
|
|
3472
|
-
const
|
|
3473
|
-
t && t.format("link",
|
|
3471
|
+
link(d) {
|
|
3472
|
+
if (d) {
|
|
3473
|
+
const i = prompt("Enter the URL");
|
|
3474
|
+
t && t.format("link", i);
|
|
3474
3475
|
} else
|
|
3475
3476
|
t && t.format("link", !1);
|
|
3476
3477
|
}
|
|
3477
3478
|
}
|
|
3478
3479
|
};
|
|
3479
3480
|
}
|
|
3480
|
-
return
|
|
3481
|
-
l.value && !t && (t = new
|
|
3482
|
-
n("update:modelValue",
|
|
3481
|
+
return dt(() => {
|
|
3482
|
+
l.value && !t && (t = new mo(l.value, { modules: { toolbar: u() }, theme: "snow" }), t.root.innerHTML = a.modelValue, t.on("text-change", () => {
|
|
3483
|
+
n("update:modelValue", s());
|
|
3483
3484
|
}));
|
|
3484
|
-
}),
|
|
3485
|
+
}), Dt(() => {
|
|
3485
3486
|
t = null;
|
|
3486
|
-
}), (
|
|
3487
|
+
}), (d, i) => (r(), B("div", {
|
|
3487
3488
|
ref_key: "divRef",
|
|
3488
3489
|
ref: l
|
|
3489
3490
|
}, null, 512));
|
|
3490
3491
|
}
|
|
3491
3492
|
});
|
|
3492
|
-
const
|
|
3493
|
+
const eu = /* @__PURE__ */ U({
|
|
3493
3494
|
__name: "index",
|
|
3494
3495
|
props: {
|
|
3495
3496
|
useErrData: {}
|
|
3496
3497
|
},
|
|
3497
3498
|
setup(e) {
|
|
3498
|
-
const o = e, { useErrData:
|
|
3499
|
-
return
|
|
3499
|
+
const o = e, { useErrData: a } = Ce(o), n = zt({ useErrData: a });
|
|
3500
|
+
return Pt(Tt, n), (l, t) => le(l.$slots, "default");
|
|
3501
|
+
}
|
|
3502
|
+
});
|
|
3503
|
+
function Jt(e) {
|
|
3504
|
+
return e ? typeof e == "string" ? e.split(",") : Object.assign([], e) : [];
|
|
3505
|
+
}
|
|
3506
|
+
function Vl(e) {
|
|
3507
|
+
return Jt(e).join(",");
|
|
3508
|
+
}
|
|
3509
|
+
const Xt = /* @__PURE__ */ U({
|
|
3510
|
+
__name: "form",
|
|
3511
|
+
props: {
|
|
3512
|
+
config: {
|
|
3513
|
+
type: Array,
|
|
3514
|
+
default() {
|
|
3515
|
+
return [];
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3518
|
+
labelWidth: { type: String, default: "110px" },
|
|
3519
|
+
labelAlign: { type: String, default: "right" },
|
|
3520
|
+
loading: Boolean,
|
|
3521
|
+
disabled: Boolean,
|
|
3522
|
+
hideSubmit: Boolean,
|
|
3523
|
+
modelValue: {
|
|
3524
|
+
type: Object,
|
|
3525
|
+
default() {
|
|
3526
|
+
return {};
|
|
3527
|
+
}
|
|
3528
|
+
},
|
|
3529
|
+
gutter: { type: Number, default: 8 },
|
|
3530
|
+
span: { type: Number, default: 24 },
|
|
3531
|
+
formProps: {
|
|
3532
|
+
type: Object,
|
|
3533
|
+
default() {
|
|
3534
|
+
return {};
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
grid: {
|
|
3538
|
+
type: Object,
|
|
3539
|
+
default() {
|
|
3540
|
+
return {};
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
},
|
|
3544
|
+
emits: ["update:modelValue", "submit", "error"],
|
|
3545
|
+
setup(e, { expose: o, emit: a }) {
|
|
3546
|
+
const n = e;
|
|
3547
|
+
function l(_) {
|
|
3548
|
+
const E = { ..._ };
|
|
3549
|
+
return n.config.forEach((V) => {
|
|
3550
|
+
V.dotNotation && (E[V.model] = Jt(E[V.model]));
|
|
3551
|
+
}), E;
|
|
3552
|
+
}
|
|
3553
|
+
function t(_) {
|
|
3554
|
+
const E = { ..._ };
|
|
3555
|
+
return n.config.forEach((V) => {
|
|
3556
|
+
V.dotNotation && (E[V.model] = Vl(E[V.model]));
|
|
3557
|
+
}), E;
|
|
3558
|
+
}
|
|
3559
|
+
const s = a, u = q(), d = (_) => typeof _ == "string" && ["a-input", "a-textarea"].includes(_) ? { autocomplete: "new-password" } : null;
|
|
3560
|
+
function i(_) {
|
|
3561
|
+
return Object.fromEntries(
|
|
3562
|
+
Object.values(n.config).filter((E) => E.model).map((E) => {
|
|
3563
|
+
var V;
|
|
3564
|
+
return [E.model, _ ? _(E) : (V = E.defaultValue) != null ? V : ""];
|
|
3565
|
+
})
|
|
3566
|
+
);
|
|
3567
|
+
}
|
|
3568
|
+
const [c, m] = De(i(() => [])), [C] = De(i((_) => _.show !== !1)), [v, h] = De(l({ ...i(), ...n.modelValue }), u);
|
|
3569
|
+
function F() {
|
|
3570
|
+
const _ = t(v.value);
|
|
3571
|
+
s("update:modelValue", _);
|
|
3572
|
+
}
|
|
3573
|
+
F();
|
|
3574
|
+
function O(_) {
|
|
3575
|
+
if (_ != null && _.customClass)
|
|
3576
|
+
return typeof _.customClass == "function" ? _.customClass(_, v.value) : _;
|
|
3577
|
+
}
|
|
3578
|
+
function w(_) {
|
|
3579
|
+
return c.value[_];
|
|
3580
|
+
}
|
|
3581
|
+
function A(_) {
|
|
3582
|
+
return v.value[_];
|
|
3583
|
+
}
|
|
3584
|
+
function S(_) {
|
|
3585
|
+
return C.value[_];
|
|
3586
|
+
}
|
|
3587
|
+
function $(_, E) {
|
|
3588
|
+
c.value[_] = E;
|
|
3589
|
+
}
|
|
3590
|
+
function k(_, E) {
|
|
3591
|
+
typeof _ == "string" ? v.value[_] = E : v.value = { ...v.value, ..._ }, F();
|
|
3592
|
+
}
|
|
3593
|
+
function P(_, E) {
|
|
3594
|
+
C.value[_] = E;
|
|
3595
|
+
}
|
|
3596
|
+
const j = { getModelOption: w, getModel: A, getShow: S, setModelOption: $, setModel: k, setShow: P };
|
|
3597
|
+
function T(_) {
|
|
3598
|
+
const E = { ..._.componentAttr };
|
|
3599
|
+
return Object.keys(E).forEach((V) => {
|
|
3600
|
+
typeof E[V] == "function" && (E[V] = E[V](v.value, { ...j, ..._.events }));
|
|
3601
|
+
}), E;
|
|
3602
|
+
}
|
|
3603
|
+
function Y() {
|
|
3604
|
+
n.config.forEach(async (_) => {
|
|
3605
|
+
var E;
|
|
3606
|
+
if (typeof ((E = _ == null ? void 0 : _.events) == null ? void 0 : E.onMounted) == "function") {
|
|
3607
|
+
const V = await _.events.onMounted({ ...j, ..._.events });
|
|
3608
|
+
V && $(_.model, V);
|
|
3609
|
+
}
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3612
|
+
function ie(_, E) {
|
|
3613
|
+
n.config.forEach(async (V) => {
|
|
3614
|
+
var re;
|
|
3615
|
+
if (typeof ((re = V == null ? void 0 : V.events) == null ? void 0 : re.onUpdate) == "function") {
|
|
3616
|
+
const X = _ == null ? void 0 : _[V.model], me = E == null ? void 0 : E[V.model];
|
|
3617
|
+
X !== me && await V.events.onUpdate(X, me, { ...j, ...V.events, onUpdate: () => {
|
|
3618
|
+
} });
|
|
3619
|
+
}
|
|
3620
|
+
});
|
|
3621
|
+
}
|
|
3622
|
+
ne(
|
|
3623
|
+
() => n.modelValue,
|
|
3624
|
+
(_, E) => {
|
|
3625
|
+
v.value = l(n.modelValue), ie(_, E);
|
|
3626
|
+
},
|
|
3627
|
+
{ deep: !0, immediate: !0 }
|
|
3628
|
+
), ne(
|
|
3629
|
+
() => n.config,
|
|
3630
|
+
() => {
|
|
3631
|
+
C.value = i((_) => _.show !== !1);
|
|
3632
|
+
}
|
|
3633
|
+
);
|
|
3634
|
+
async function L(_, E) {
|
|
3635
|
+
var V;
|
|
3636
|
+
typeof ((V = E.events) == null ? void 0 : V.onChange) == "function" && await E.events.onChange(_, { ...j, ...E.events });
|
|
3637
|
+
}
|
|
3638
|
+
async function ue() {
|
|
3639
|
+
return new Promise((_) => {
|
|
3640
|
+
u.value.validate((E) => {
|
|
3641
|
+
if (E)
|
|
3642
|
+
_([!0, E]), s("error", E);
|
|
3643
|
+
else {
|
|
3644
|
+
const V = t(v.value);
|
|
3645
|
+
_([!1, V]), s("update:modelValue", V), s("submit", V);
|
|
3646
|
+
}
|
|
3647
|
+
});
|
|
3648
|
+
});
|
|
3649
|
+
}
|
|
3650
|
+
return dt(() => {
|
|
3651
|
+
h(), m(), Y();
|
|
3652
|
+
}), o({
|
|
3653
|
+
onSubmit: ue,
|
|
3654
|
+
onReset: h,
|
|
3655
|
+
resetFields() {
|
|
3656
|
+
var _;
|
|
3657
|
+
(_ = u.value) == null || _.resetFields();
|
|
3658
|
+
}
|
|
3659
|
+
}), (_, E) => {
|
|
3660
|
+
const V = g("a-form-item"), re = g("a-col"), X = g("a-row"), me = g("icon-save"), ge = g("a-button"), ye = g("a-space"), pe = g("a-form");
|
|
3661
|
+
return r(), y(pe, I({
|
|
3662
|
+
ref_key: "formRef",
|
|
3663
|
+
ref: u,
|
|
3664
|
+
model: b(v),
|
|
3665
|
+
"label-col-props": { flex: n.labelWidth },
|
|
3666
|
+
"label-col-style": { paddingRight: "8px" },
|
|
3667
|
+
disabled: n.disabled,
|
|
3668
|
+
"label-align": n.labelAlign,
|
|
3669
|
+
size: "small"
|
|
3670
|
+
}, n.formProps), {
|
|
3671
|
+
default: p(() => [
|
|
3672
|
+
f(X, {
|
|
3673
|
+
gutter: n.gutter
|
|
3674
|
+
}, {
|
|
3675
|
+
default: p(() => [
|
|
3676
|
+
(r(!0), B(Q, null, de(n.config, (G, je) => {
|
|
3677
|
+
var Fe;
|
|
3678
|
+
return r(), y(re, I({
|
|
3679
|
+
key: je,
|
|
3680
|
+
ref_for: !0
|
|
3681
|
+
}, n.grid, {
|
|
3682
|
+
span: ((Fe = G.options) == null ? void 0 : Fe.span) || n.span
|
|
3683
|
+
}), {
|
|
3684
|
+
default: p(() => {
|
|
3685
|
+
var Re, Te, We;
|
|
3686
|
+
return [
|
|
3687
|
+
b(C)[G.model] ? (r(), y(V, {
|
|
3688
|
+
key: 0,
|
|
3689
|
+
field: G.model,
|
|
3690
|
+
"row-class": O(G),
|
|
3691
|
+
label: G.name,
|
|
3692
|
+
"validate-trigger": G.validateTrigger,
|
|
3693
|
+
rules: G.rules || ((Re = G.options) != null && Re.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${G.name}` }] : []),
|
|
3694
|
+
disabled: Boolean((Te = G.options) == null ? void 0 : Te.disabled),
|
|
3695
|
+
tooltip: (We = G.options) == null ? void 0 : We.tooltip,
|
|
3696
|
+
"label-col-flex": n.labelWidth,
|
|
3697
|
+
"asterisk-position": n.labelAlign === "right" ? "start" : "end"
|
|
3698
|
+
}, {
|
|
3699
|
+
default: p(() => {
|
|
3700
|
+
var $e, x, D;
|
|
3701
|
+
return [
|
|
3702
|
+
(r(), y(be(G.type), I({
|
|
3703
|
+
modelValue: b(v)[G.model],
|
|
3704
|
+
"onUpdate:modelValue": (K) => b(v)[G.model] = K,
|
|
3705
|
+
size: "small",
|
|
3706
|
+
"input-attrs": d(G),
|
|
3707
|
+
placeholder: ($e = G == null ? void 0 : G.options) == null ? void 0 : $e.placeholder,
|
|
3708
|
+
options: (x = b(c)[G.model]) != null ? x : [],
|
|
3709
|
+
disabled: Boolean((D = G.options) == null ? void 0 : D.disabled),
|
|
3710
|
+
style: { width: "100%" },
|
|
3711
|
+
ref_for: !0
|
|
3712
|
+
}, T(G), {
|
|
3713
|
+
onChange: (K) => L(K, G)
|
|
3714
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "input-attrs", "placeholder", "options", "disabled", "onChange"]))
|
|
3715
|
+
];
|
|
3716
|
+
}),
|
|
3717
|
+
_: 2
|
|
3718
|
+
}, 1032, ["field", "row-class", "label", "validate-trigger", "rules", "disabled", "tooltip", "label-col-flex", "asterisk-position"])) : N("", !0)
|
|
3719
|
+
];
|
|
3720
|
+
}),
|
|
3721
|
+
_: 2
|
|
3722
|
+
}, 1040, ["span"]);
|
|
3723
|
+
}), 128)),
|
|
3724
|
+
le(_.$slots, "row")
|
|
3725
|
+
]),
|
|
3726
|
+
_: 3
|
|
3727
|
+
}, 8, ["gutter"]),
|
|
3728
|
+
le(_.$slots, "default", { onSubmit: ue }, () => [
|
|
3729
|
+
n.hideSubmit ? N("", !0) : (r(), y(V, { key: 0 }, {
|
|
3730
|
+
default: p(() => [
|
|
3731
|
+
f(ye, null, {
|
|
3732
|
+
default: p(() => [
|
|
3733
|
+
f(ge, {
|
|
3734
|
+
type: "primary",
|
|
3735
|
+
loading: n.loading,
|
|
3736
|
+
onClick: E[0] || (E[0] = (G) => ue())
|
|
3737
|
+
}, {
|
|
3738
|
+
icon: p(() => [
|
|
3739
|
+
f(me)
|
|
3740
|
+
]),
|
|
3741
|
+
default: p(() => [
|
|
3742
|
+
te(" \u4FDD\u5B58 ")
|
|
3743
|
+
]),
|
|
3744
|
+
_: 1
|
|
3745
|
+
}, 8, ["loading"])
|
|
3746
|
+
]),
|
|
3747
|
+
_: 1
|
|
3748
|
+
})
|
|
3749
|
+
]),
|
|
3750
|
+
_: 1
|
|
3751
|
+
}))
|
|
3752
|
+
])
|
|
3753
|
+
]),
|
|
3754
|
+
_: 3
|
|
3755
|
+
}, 16, ["model", "label-col-props", "disabled", "label-align"]);
|
|
3756
|
+
};
|
|
3757
|
+
}
|
|
3758
|
+
}), jl = /* @__PURE__ */ U({
|
|
3759
|
+
__name: "modal-form",
|
|
3760
|
+
props: {
|
|
3761
|
+
disabled: { type: Boolean },
|
|
3762
|
+
title: { default: "\u63D0\u793A" },
|
|
3763
|
+
span: {},
|
|
3764
|
+
gutter: {},
|
|
3765
|
+
config: {},
|
|
3766
|
+
modelValue: { default: void 0 },
|
|
3767
|
+
labelWidth: {},
|
|
3768
|
+
buttonAttrs: {},
|
|
3769
|
+
modalAttrs: {}
|
|
3770
|
+
},
|
|
3771
|
+
emits: ["submit", "error"],
|
|
3772
|
+
setup(e, { emit: o }) {
|
|
3773
|
+
const a = e, n = o, [l, t] = De({});
|
|
3774
|
+
function s() {
|
|
3775
|
+
t({ visible: !1 });
|
|
3776
|
+
}
|
|
3777
|
+
const u = q();
|
|
3778
|
+
async function d() {
|
|
3779
|
+
const [i, c] = await u.value.onSubmit();
|
|
3780
|
+
i || n("submit", {
|
|
3781
|
+
data: c,
|
|
3782
|
+
utils: {
|
|
3783
|
+
setVisible(m) {
|
|
3784
|
+
l.value.visible = m;
|
|
3785
|
+
},
|
|
3786
|
+
setLoading(m) {
|
|
3787
|
+
l.value.loading = m;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
});
|
|
3791
|
+
}
|
|
3792
|
+
return (i, c) => {
|
|
3793
|
+
const m = g("a-button"), C = g("a-modal");
|
|
3794
|
+
return r(), B(Q, null, [
|
|
3795
|
+
f(m, I({
|
|
3796
|
+
disabled: a.disabled,
|
|
3797
|
+
type: "primary",
|
|
3798
|
+
size: "small"
|
|
3799
|
+
}, { ...a.buttonAttrs }, {
|
|
3800
|
+
onClick: c[0] || (c[0] = (v) => b(t)({ visible: !0 }))
|
|
3801
|
+
}), {
|
|
3802
|
+
default: p(() => [
|
|
3803
|
+
le(i.$slots, "default", {}, () => [
|
|
3804
|
+
te(J(a.title), 1)
|
|
3805
|
+
])
|
|
3806
|
+
]),
|
|
3807
|
+
_: 3
|
|
3808
|
+
}, 16, ["disabled"]),
|
|
3809
|
+
(r(), y(ro, { to: "body" }, [
|
|
3810
|
+
f(C, I({
|
|
3811
|
+
visible: b(l).visible,
|
|
3812
|
+
title: a.title,
|
|
3813
|
+
"title-align": "start",
|
|
3814
|
+
"mask-closable": !1,
|
|
3815
|
+
size: "small",
|
|
3816
|
+
class: "hamco-drawer",
|
|
3817
|
+
"body-style": { minHeight: "280px" },
|
|
3818
|
+
"unmount-on-close": ""
|
|
3819
|
+
}, a.modalAttrs, {
|
|
3820
|
+
onCancel: s,
|
|
3821
|
+
onClose: s
|
|
3822
|
+
}), {
|
|
3823
|
+
footer: p(() => [
|
|
3824
|
+
f(m, {
|
|
3825
|
+
size: "small",
|
|
3826
|
+
onClick: c[2] || (c[2] = (v) => s())
|
|
3827
|
+
}, {
|
|
3828
|
+
default: p(() => [
|
|
3829
|
+
te("\u53D6\u6D88 ")
|
|
3830
|
+
]),
|
|
3831
|
+
_: 1
|
|
3832
|
+
}),
|
|
3833
|
+
f(m, {
|
|
3834
|
+
type: "primary",
|
|
3835
|
+
size: "small",
|
|
3836
|
+
loading: b(l).loading,
|
|
3837
|
+
onClick: c[3] || (c[3] = (v) => d())
|
|
3838
|
+
}, {
|
|
3839
|
+
default: p(() => [
|
|
3840
|
+
te("\u786E\u8BA4 ")
|
|
3841
|
+
]),
|
|
3842
|
+
_: 1
|
|
3843
|
+
}, 8, ["loading"])
|
|
3844
|
+
]),
|
|
3845
|
+
default: p(() => [
|
|
3846
|
+
f(Xt, I({
|
|
3847
|
+
ref_key: "formRef",
|
|
3848
|
+
ref: u,
|
|
3849
|
+
"hide-submit": "",
|
|
3850
|
+
"label-align": "left"
|
|
3851
|
+
}, { ...b(He)(i.$props, ["buttonAttrs"]) }, {
|
|
3852
|
+
onError: c[1] || (c[1] = (v) => n("error", v))
|
|
3853
|
+
}), null, 16)
|
|
3854
|
+
]),
|
|
3855
|
+
_: 1
|
|
3856
|
+
}, 16, ["visible", "title"])
|
|
3857
|
+
]))
|
|
3858
|
+
], 64);
|
|
3859
|
+
};
|
|
3860
|
+
}
|
|
3861
|
+
}), tu = /* @__PURE__ */ U({
|
|
3862
|
+
__name: "index",
|
|
3863
|
+
props: {
|
|
3864
|
+
isShow: { type: Boolean },
|
|
3865
|
+
isDirection: { type: Boolean },
|
|
3866
|
+
formProps: {}
|
|
3867
|
+
},
|
|
3868
|
+
setup(e) {
|
|
3869
|
+
return (o, a) => (r(), B("div", {
|
|
3870
|
+
style: oe(o.isShow ? { display: "block" } : { position: "absolute", clip: "rect(0px, 0px, 0px, 0px)", height: "0px", overflow: "auto" })
|
|
3871
|
+
}, [
|
|
3872
|
+
R("div", I({
|
|
3873
|
+
ref: "print$",
|
|
3874
|
+
style: [{ position: "relative", width: "100%" }, { maxWidth: o.isDirection ? "297mm" : "210mm" }]
|
|
3875
|
+
}, o.formProps), [
|
|
3876
|
+
le(o.$slots, "default")
|
|
3877
|
+
], 16)
|
|
3878
|
+
], 4));
|
|
3500
3879
|
}
|
|
3501
|
-
}),
|
|
3880
|
+
}), Ot = {
|
|
3502
3881
|
fe: {
|
|
3503
3882
|
panel: {
|
|
3504
3883
|
title: "\u5B57\u6BB5\u5C5E\u6027",
|
|
@@ -3688,39 +4067,35 @@ const Yl = /* @__PURE__ */ I({
|
|
|
3688
4067
|
customClass: "\u81EA\u5B9A\u4E49Class"
|
|
3689
4068
|
}
|
|
3690
4069
|
}
|
|
3691
|
-
},
|
|
4070
|
+
}, ou = { enUS: Ot, zhCN: Ot }, nu = {
|
|
4071
|
+
formatTable: jo,
|
|
4072
|
+
mergeConfig: Ho,
|
|
4073
|
+
generateQRcodeBase64: Kt,
|
|
4074
|
+
downLoadPdf: Go,
|
|
4075
|
+
useState: De,
|
|
4076
|
+
findObject: Ut,
|
|
4077
|
+
omitObject: He,
|
|
4078
|
+
deepClone: Ko,
|
|
4079
|
+
download: Lo,
|
|
4080
|
+
log: No
|
|
4081
|
+
}, lu = {
|
|
3692
4082
|
install(e) {
|
|
3693
|
-
e.use(
|
|
4083
|
+
e.use(uo), e.component("OrcTable", Vo), e.component("OrcSearch", zl), e.component("OrcForm", Xt), e.component("OrcFormButton", jl);
|
|
3694
4084
|
}
|
|
3695
4085
|
};
|
|
3696
4086
|
export {
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
Ul as getUniqueId,
|
|
3712
|
-
Vo as isArray,
|
|
3713
|
-
Ml as isEmptyArray,
|
|
3714
|
-
Il as isEmptyObject,
|
|
3715
|
-
Ro as isNumber,
|
|
3716
|
-
_t as isObject,
|
|
3717
|
-
Zl as locale,
|
|
3718
|
-
Wl as log,
|
|
3719
|
-
Hl as mergeConfig,
|
|
3720
|
-
Rt as omitObject,
|
|
3721
|
-
Kl as setData,
|
|
3722
|
-
Xe as toArray,
|
|
3723
|
-
ke as typeName,
|
|
3724
|
-
Jl as useOrcSearch,
|
|
3725
|
-
Tl as useOrcTable
|
|
4087
|
+
sl as OrcDesign,
|
|
4088
|
+
Xl as OrcDesignPrint,
|
|
4089
|
+
Xt as OrcForm,
|
|
4090
|
+
jl as OrcFormButton,
|
|
4091
|
+
tu as OrcHiddenView,
|
|
4092
|
+
eu as OrcProvider,
|
|
4093
|
+
Zl as OrcQuill,
|
|
4094
|
+
zl as OrcSearch,
|
|
4095
|
+
Vo as OrcTable,
|
|
4096
|
+
lu as default,
|
|
4097
|
+
ou as locale,
|
|
4098
|
+
Yl as useOrcSearch,
|
|
4099
|
+
Jl as useOrcTable,
|
|
4100
|
+
nu as utils
|
|
3726
4101
|
};
|