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