@shaonq/vue 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +815 -825
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import wo from "vxe-table";
|
|
2
2
|
import "vxe-table/lib/style.css";
|
|
3
|
-
import { ref as q, inject as bt, defineComponent as H, computed as Q, shallowRef as He, watch as
|
|
3
|
+
import { ref as q, inject as bt, defineComponent as H, computed as Q, shallowRef as He, watch as le, onUnmounted as ht, resolveComponent as y, openBlock as m, createElementBlock as z, createBlock as x, withCtx as f, renderSlot as Y, createElementVNode as i, toDisplayString as ne, createVNode as d, createTextVNode as P, unref as _, createCommentVNode as L, Fragment as te, renderList as ce, createSlots as Ft, mergeProps as I, resolveDynamicComponent as Ee, normalizeStyle as ie, reactive as qt, provide as Et, toRefs as De, normalizeProps as xe, guardReactiveProps as lt, isRef as Ct, normalizeClass as de, withModifiers as je, toRef as nt, Transition as Kt, onMounted as Me, useAttrs as Bo, Teleport as Lt, markRaw as ko, withDirectives as xo, vShow as $o, nextTick as Do } from "vue";
|
|
4
4
|
import it from "xe-utils";
|
|
5
5
|
import Ge from "vuedraggable";
|
|
6
6
|
import { Modal as Ht, Message as So, Button as Oo, useFormItem as zo, Icon as Vo } from "@arco-design/web-vue";
|
|
@@ -42,10 +42,10 @@ function Wo(e, t) {
|
|
|
42
42
|
const E = c.checkboxKey, F = s.filter((k) => k[E] && k[E] === r[E]);
|
|
43
43
|
F.length && a.setCheckboxRow(F, l);
|
|
44
44
|
}
|
|
45
|
-
const g = a.getCheckboxRecords().concat(a.getCheckboxReserveRecords()),
|
|
46
|
-
|
|
45
|
+
const g = a.getCheckboxRecords().concat(a.getCheckboxReserveRecords()), b = pt(e.option);
|
|
46
|
+
b && t(
|
|
47
47
|
"update:selectedKeys",
|
|
48
|
-
g.map((E) => E[
|
|
48
|
+
g.map((E) => E[b])
|
|
49
49
|
);
|
|
50
50
|
}, radioChangeEvent: ({ row: a }) => {
|
|
51
51
|
const l = [a], r = pt(e.option);
|
|
@@ -55,43 +55,43 @@ function Wo(e, t) {
|
|
|
55
55
|
);
|
|
56
56
|
} };
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const oe = q(/* @__PURE__ */ Object.create({}));
|
|
59
59
|
function Gt(e) {
|
|
60
60
|
const t = {
|
|
61
61
|
...e,
|
|
62
62
|
ref: (o) => {
|
|
63
|
-
o && (
|
|
63
|
+
o && (oe.value = o);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
return {
|
|
67
67
|
tableOption: t,
|
|
68
|
-
$grid:
|
|
68
|
+
$grid: oe,
|
|
69
69
|
$gridTwo: {
|
|
70
70
|
getRowKey() {
|
|
71
71
|
return pt(e);
|
|
72
72
|
},
|
|
73
73
|
getRowIndex(o) {
|
|
74
|
-
return
|
|
74
|
+
return oe.value.getRowIndex(o);
|
|
75
75
|
},
|
|
76
76
|
getRowSeq(o) {
|
|
77
|
-
return
|
|
77
|
+
return oe.value.getRowSeq(o);
|
|
78
78
|
},
|
|
79
79
|
getTableData() {
|
|
80
80
|
var o, u;
|
|
81
|
-
return
|
|
81
|
+
return oe.value ? (u = (o = oe.value) == null ? void 0 : o.getTableData().fullData) != null ? u : [] : [];
|
|
82
82
|
},
|
|
83
83
|
getSelection() {
|
|
84
|
-
return
|
|
84
|
+
return oe.value ? t.selectedType === "checkbox" ? oe.value.getCheckboxRecords() : t.selectedType === "radio" ? [oe.value.getRadioRecord()] : [] : [];
|
|
85
85
|
},
|
|
86
86
|
getReserveSelection() {
|
|
87
|
-
if (
|
|
87
|
+
if (oe.value) {
|
|
88
88
|
if (t.selectedType === "checkbox") {
|
|
89
|
-
const o =
|
|
90
|
-
return e.reserve ? o.concat(
|
|
89
|
+
const o = oe.value.getCheckboxRecords();
|
|
90
|
+
return e.reserve ? o.concat(oe.value.getCheckboxReserveRecords()) : o;
|
|
91
91
|
}
|
|
92
92
|
if (t.selectedType === "radio") {
|
|
93
|
-
let o =
|
|
94
|
-
return e.reserve && !o && (o =
|
|
93
|
+
let o = oe.value.getRadioRecord();
|
|
94
|
+
return e.reserve && !o && (o = oe.value.getRadioReserveRecord()), o ? [o] : [];
|
|
95
95
|
}
|
|
96
96
|
return [];
|
|
97
97
|
}
|
|
@@ -102,30 +102,30 @@ function Gt(e) {
|
|
|
102
102
|
return o || (o = this.getSelection().map((l) => l[u])), this.getTableData().filter((l) => o && o.includes(l[u]));
|
|
103
103
|
},
|
|
104
104
|
clearSelection() {
|
|
105
|
-
|
|
105
|
+
oe.value && (t.selectedType === "checkbox" && (e.reserve && oe.value.clearCheckboxReserve(), oe.value.clearCheckboxRow()), t.selectedType === "radio" && (e.reserve && oe.value.clearRadioReserve(), oe.value.clearRadioRow()));
|
|
106
106
|
},
|
|
107
107
|
insertRow(o, u, a = !0) {
|
|
108
108
|
var c;
|
|
109
109
|
const l = this.getRowKey();
|
|
110
110
|
if (u && typeof u == "object" && a) {
|
|
111
|
-
const s =
|
|
111
|
+
const s = oe.value.getRowIndex(u);
|
|
112
112
|
s >= 0 && (u = (c = this.getTableData()[s + 1]) != null ? c : -1);
|
|
113
113
|
}
|
|
114
|
-
return o[l] && delete o[l],
|
|
114
|
+
return o[l] && delete o[l], oe.value.insertAt(o, u);
|
|
115
115
|
},
|
|
116
116
|
removeRows() {
|
|
117
|
-
|
|
117
|
+
oe.value && (t.selectedType === "checkbox" && oe.value.removeCheckboxRow(), t.selectedType === "radio" && oe.value.removeRadioRow());
|
|
118
118
|
},
|
|
119
119
|
removerRowIndex(o) {
|
|
120
|
-
if (
|
|
120
|
+
if (oe.value) {
|
|
121
121
|
const u = this.getTableData();
|
|
122
|
-
u.splice(o, 1),
|
|
122
|
+
u.splice(o, 1), oe.value.reloadData(u);
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
async validate(o = void 0) {
|
|
126
126
|
o = o != null ? o : this.getSelection();
|
|
127
127
|
let u = "";
|
|
128
|
-
const a = await
|
|
128
|
+
const a = await oe.value.validate(o);
|
|
129
129
|
return a && Object.values(a).forEach((l) => {
|
|
130
130
|
l.forEach(({ rowIndex: r, column: c, rules: s }) => {
|
|
131
131
|
s.forEach((g) => {
|
|
@@ -183,186 +183,186 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
183
183
|
setup(e, { expose: t, emit: n }) {
|
|
184
184
|
var xt;
|
|
185
185
|
const o = Uo(), u = Q(() => o.useErrData);
|
|
186
|
-
function a(
|
|
187
|
-
return !!(
|
|
186
|
+
function a(O) {
|
|
187
|
+
return !!(O && typeof O == "object" && ["setup", "props"].some((V) => V in O));
|
|
188
188
|
}
|
|
189
189
|
const l = e;
|
|
190
|
-
function r(
|
|
191
|
-
return Ce(
|
|
190
|
+
function r(O) {
|
|
191
|
+
return Ce(O) ? O() : O;
|
|
192
192
|
}
|
|
193
193
|
const c = n;
|
|
194
|
-
function s(
|
|
195
|
-
return (
|
|
196
|
-
typeof
|
|
197
|
-
|
|
198
|
-
}) :
|
|
194
|
+
function s(O, V) {
|
|
195
|
+
return (ee) => {
|
|
196
|
+
typeof ee == "object" ? Object.keys(ee).forEach((N) => {
|
|
197
|
+
O[N] = ee[N];
|
|
198
|
+
}) : O[V] = ee;
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
function g(
|
|
202
|
-
const { dataIndex: Z } =
|
|
203
|
-
return { record: V, dataIndex: Z, rowIndex:
|
|
201
|
+
function g(O, V, ee, N) {
|
|
202
|
+
const { dataIndex: Z } = O, re = V[Z];
|
|
203
|
+
return { record: V, dataIndex: Z, rowIndex: ee, columnIndex: N, value: re, updateValue: s(V, Z), formatValue: Ne(V, O) };
|
|
204
204
|
}
|
|
205
|
-
function
|
|
206
|
-
const Z = { ...
|
|
205
|
+
function b(O, V, ee, N) {
|
|
206
|
+
const Z = { ...O.cellAttr }, re = g(O, V, ee, N);
|
|
207
207
|
return Object.keys(Z).forEach((_e) => {
|
|
208
208
|
const we = Z[_e];
|
|
209
209
|
if (typeof we == "function")
|
|
210
210
|
try {
|
|
211
|
-
Z[_e] = we(
|
|
211
|
+
Z[_e] = we(re);
|
|
212
212
|
} catch {
|
|
213
213
|
}
|
|
214
214
|
}), Z;
|
|
215
215
|
}
|
|
216
216
|
const E = Q(() => {
|
|
217
|
-
var
|
|
218
|
-
return (V = (
|
|
217
|
+
var O, V;
|
|
218
|
+
return (V = (O = l.option) == null ? void 0 : O.pageSize) != null ? V : 20;
|
|
219
219
|
}), F = Q(() => {
|
|
220
|
-
var
|
|
221
|
-
return (V = (
|
|
222
|
-
}), k = q({ page: 1, size: E.value }), { disabledList: $, selectChangeEvent: A, radioChangeEvent: C } = Wo(l, c), { $grid:
|
|
223
|
-
function v(
|
|
224
|
-
var
|
|
225
|
-
const N = (
|
|
226
|
-
return ["string", "number"].includes(typeof N[
|
|
220
|
+
var O, V;
|
|
221
|
+
return (V = (O = l.option) == null ? void 0 : O.pageSizeOptions) != null ? V : [10, 20, 50, 100, 200];
|
|
222
|
+
}), k = q({ page: 1, size: E.value }), { disabledList: $, selectChangeEvent: A, radioChangeEvent: C } = Wo(l, c), { $grid: h, $gridTwo: p } = Gt(l.option);
|
|
223
|
+
function v(O, V, ee) {
|
|
224
|
+
var re, _e;
|
|
225
|
+
const N = (re = O[V]) != null ? re : {}, Z = (_e = O[V - 1]) != null ? _e : {};
|
|
226
|
+
return ["string", "number"].includes(typeof N[ee]) ? l.option.skinRow && typeof l.option.skinRow == "string" ? N[l.option.skinRow] === Z[l.option.skinRow] && N[ee] === Z[ee] : N[ee] === Z[ee] : !1;
|
|
227
227
|
}
|
|
228
|
-
function B(
|
|
228
|
+
function B(O, V, ee) {
|
|
229
229
|
let N = {};
|
|
230
230
|
if (l.option.skinRowStyle)
|
|
231
231
|
try {
|
|
232
|
-
N = V > 0 && !v(
|
|
232
|
+
N = V > 0 && !v(O, V, ee) && l.option.skinRow && O[V][String(l.option.skinRow)] === O[V - 1][String(l.option.skinRow)] ? l.option.skinRowStyle : {};
|
|
233
233
|
} catch {
|
|
234
234
|
}
|
|
235
235
|
return N;
|
|
236
236
|
}
|
|
237
|
-
const
|
|
238
|
-
function
|
|
239
|
-
const
|
|
237
|
+
const T = q([]);
|
|
238
|
+
function R() {
|
|
239
|
+
const O = [...l.option.columns], V = l.option.resolveColumns && Ce(l.option.resolveColumns) ? l.option.resolveColumns(O) : O;
|
|
240
240
|
return Object.assign([], V).filter((N) => Boolean(N)).map((N) => {
|
|
241
241
|
var Z;
|
|
242
242
|
return N.show = (Z = N.show) != null ? Z : !0, N.tooltip && (N.ellipsis = !0), N;
|
|
243
243
|
});
|
|
244
244
|
}
|
|
245
|
-
const
|
|
246
|
-
const
|
|
245
|
+
const D = Q(() => {
|
|
246
|
+
const O = R(), V = Object.assign([], T.value);
|
|
247
247
|
return [
|
|
248
248
|
...new Set(
|
|
249
|
-
[...V].map((N) => N.dataIndex).filter((N) =>
|
|
249
|
+
[...V].map((N) => N.dataIndex).filter((N) => O.find((Z) => Z.dataIndex === N)).concat([...O].map((N) => N.dataIndex)).filter((N) => !!N)
|
|
250
250
|
)
|
|
251
251
|
].map((N) => {
|
|
252
252
|
var _e;
|
|
253
|
-
const Z =
|
|
254
|
-
return { ...Z, ...
|
|
253
|
+
const Z = O.find((we) => we.dataIndex === N), re = (_e = V.find((we) => we.dataIndex === N)) != null ? _e : /* @__PURE__ */ Object.create({});
|
|
254
|
+
return { ...Z, ...re };
|
|
255
255
|
});
|
|
256
|
-
}), G = Q(() => l.option.resolvePage && Ce(l.option.resolvePage) ? l.option.resolvePage(k.value) : l.option.resolvePage),
|
|
257
|
-
|
|
256
|
+
}), G = Q(() => l.option.resolvePage && Ce(l.option.resolvePage) ? l.option.resolvePage(k.value) : l.option.resolvePage), J = Q(() => Boolean(l.option.url)), K = q(!1), w = q(!1), S = q(0), j = He((xt = l.data) != null ? xt : []);
|
|
257
|
+
le(
|
|
258
258
|
() => l.data,
|
|
259
259
|
() => {
|
|
260
|
-
|
|
260
|
+
J.value || (j.value = Object.assign([], l.data));
|
|
261
261
|
},
|
|
262
262
|
{ deep: !0 }
|
|
263
263
|
);
|
|
264
|
-
const
|
|
265
|
-
function
|
|
266
|
-
var Z,
|
|
267
|
-
const
|
|
268
|
-
if (typeof
|
|
264
|
+
const ue = new AbortController();
|
|
265
|
+
function fe() {
|
|
266
|
+
var Z, re;
|
|
267
|
+
const O = (Z = l.option.useErrData) != null ? Z : u.value;
|
|
268
|
+
if (typeof O != "function")
|
|
269
269
|
return console.error("useErrData not declared"), [!0, { rows: [] }];
|
|
270
270
|
let V = /* @__PURE__ */ Object.create({});
|
|
271
271
|
G.value ? Ce(l.option.resolvePage) ? V = { ...G.value } : V = { page: k.value } : V = {};
|
|
272
|
-
const
|
|
272
|
+
const ee = {
|
|
273
273
|
[String(l.option.method).toUpperCase() === "GET" ? "params" : "data"]: { ...V, ...l.option.data }
|
|
274
|
-
}, N = { url: l.option.url, method: (
|
|
275
|
-
return l.option.timeout && (N.timeout = l.option.timeout),
|
|
274
|
+
}, N = { url: l.option.url, method: (re = l.option.method) != null ? re : "GET", ...ee, signal: ue.signal };
|
|
275
|
+
return l.option.timeout && (N.timeout = l.option.timeout), O(N);
|
|
276
276
|
}
|
|
277
277
|
const be = Q({
|
|
278
278
|
get: () => l.selectedKeys,
|
|
279
|
-
set: (
|
|
280
|
-
c("update:selectedKeys",
|
|
279
|
+
set: (O) => {
|
|
280
|
+
c("update:selectedKeys", O);
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
-
function
|
|
284
|
-
K.value =
|
|
283
|
+
function ve(O = !0) {
|
|
284
|
+
K.value = O;
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
|
|
290
|
-
const [we,
|
|
291
|
-
if (
|
|
292
|
-
Ce(l.option.error) && ((_e = (
|
|
286
|
+
const W = async () => {
|
|
287
|
+
var O, V, ee, N, Z, re, _e;
|
|
288
|
+
if (J.value) {
|
|
289
|
+
ve(!0);
|
|
290
|
+
const [we, ge] = await fe();
|
|
291
|
+
if (ve(!1), we)
|
|
292
|
+
Ce(l.option.error) && ((_e = (re = l.option).error) == null || _e.call(re, ge));
|
|
293
293
|
else {
|
|
294
|
-
const Ye = l.option.resolveData && Ce(l.option.resolveData) ? l.option.resolveData(
|
|
295
|
-
Object.prototype.toString.call(Ye).slice(8, -1) !== "Array" && console.warn(new Error("[orc-table] :Not in Array format data ")),
|
|
294
|
+
const Ye = l.option.resolveData && Ce(l.option.resolveData) ? l.option.resolveData(ge, { ...k.value }) : (V = (O = ge == null ? void 0 : ge.rows) != null ? O : ge) != null ? V : [];
|
|
295
|
+
Object.prototype.toString.call(Ye).slice(8, -1) !== "Array" && console.warn(new Error("[orc-table] :Not in Array format data ")), j.value = Object.assign([], Ye), S.value = l.option.resolveTotal && Ce(l.option.resolveTotal) ? l.option.resolveTotal(ge) : (ee = ge == null ? void 0 : ge.total) != null ? ee : 0, Ce(l.option.success) && ((Z = (N = l.option).success) == null || Z.call(N, ge));
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
};
|
|
299
|
-
async function
|
|
300
|
-
K.value || (c("onReset"),
|
|
301
|
-
setTimeout(
|
|
302
|
-
}),
|
|
299
|
+
async function ae() {
|
|
300
|
+
K.value || (c("onReset"), J.value ? await W() : (ve(!0), await new Promise((O) => {
|
|
301
|
+
setTimeout(O, 99);
|
|
302
|
+
}), ve(!1)));
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
|
|
304
|
+
function M(O, V = !1) {
|
|
305
|
+
O && (k.value.page = O), (!l.option.reserve || V) && (be.value = [], p.clearSelection()), W();
|
|
306
306
|
}
|
|
307
|
-
async function Se(
|
|
308
|
-
k.value.size =
|
|
307
|
+
async function Se(O) {
|
|
308
|
+
k.value.size = O, M(1, !0);
|
|
309
309
|
}
|
|
310
|
-
const Ae = q(/* @__PURE__ */ Object.create({})),
|
|
310
|
+
const Ae = q(/* @__PURE__ */ Object.create({})), me = q({
|
|
311
311
|
loading: !1,
|
|
312
312
|
columns: [],
|
|
313
313
|
tempWidth: /* @__PURE__ */ Object.create({})
|
|
314
314
|
});
|
|
315
315
|
async function Xe() {
|
|
316
|
-
var
|
|
317
|
-
if (typeof ((
|
|
318
|
-
const [V,
|
|
319
|
-
!V &&
|
|
316
|
+
var O;
|
|
317
|
+
if (typeof ((O = l.hook) == null ? void 0 : O.getColumn) == "function") {
|
|
318
|
+
const [V, ee] = await l.hook.getColumn();
|
|
319
|
+
!V && ee && (T.value = ee);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
Xe();
|
|
323
|
-
const Ie = (
|
|
324
|
-
var V,
|
|
325
|
-
!Ae.value || (
|
|
326
|
-
const Z =
|
|
323
|
+
const Ie = (O = !1) => {
|
|
324
|
+
var V, ee;
|
|
325
|
+
!Ae.value || (O ? (V = Ae.value) == null || V.togglePanel() : (ee = Ae.value) == null || ee.showPanel(), me.value.columns = Object.assign([], [...D.value]).map((N) => {
|
|
326
|
+
const Z = me.value.tempWidth[N.dataIndex];
|
|
327
327
|
return Z && (N.width = Z), N;
|
|
328
328
|
}));
|
|
329
329
|
}, Oe = () => {
|
|
330
|
-
var
|
|
331
|
-
!Ae.value || (
|
|
330
|
+
var O;
|
|
331
|
+
!Ae.value || (O = Ae.value) == null || O.hidePanel();
|
|
332
332
|
};
|
|
333
333
|
function We() {
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
me.value.loading = !0, T.value = [], me.value.tempWidth = /* @__PURE__ */ Object.create({}), me.value.columns = R(), Ie(), setTimeout(() => {
|
|
335
|
+
me.value.loading = !1;
|
|
336
336
|
}, 500);
|
|
337
337
|
}
|
|
338
|
-
function go(
|
|
339
|
-
let V =
|
|
340
|
-
!V &&
|
|
338
|
+
function go(O) {
|
|
339
|
+
let V = O.column.property;
|
|
340
|
+
!V && O.column.type === "seq" && (V = "index"), V && O.column.resizeWidth > 0 && (me.value.tempWidth[V] = O.column.resizeWidth, Oe());
|
|
341
341
|
}
|
|
342
342
|
const vo = () => {
|
|
343
|
-
var
|
|
344
|
-
!Ae.value || (
|
|
343
|
+
var O;
|
|
344
|
+
!Ae.value || (T.value = me.value.columns, c("confirm", D.value), typeof ((O = l.hook) == null ? void 0 : O.setColumn) == "function" && l.hook.setColumn(D.value), me.value.tempWidth = /* @__PURE__ */ Object.create({}), Oe());
|
|
345
345
|
};
|
|
346
|
-
return l.option.firstLoad !== !1 &&
|
|
346
|
+
return l.option.firstLoad !== !1 && W(), le(
|
|
347
347
|
() => l.option.firstLoad,
|
|
348
|
-
(
|
|
349
|
-
|
|
348
|
+
(O) => {
|
|
349
|
+
O === !0 && W();
|
|
350
350
|
}
|
|
351
351
|
), ht(() => {
|
|
352
|
-
|
|
352
|
+
ue.abort();
|
|
353
353
|
}), t({
|
|
354
354
|
loading: K,
|
|
355
|
-
setLoading:
|
|
356
|
-
dataInit(
|
|
357
|
-
return
|
|
355
|
+
setLoading: ve,
|
|
356
|
+
dataInit(O) {
|
|
357
|
+
return O !== !1 && (k.value.page = 1), be.value = [], p.clearSelection(), W();
|
|
358
358
|
},
|
|
359
|
-
loadData(
|
|
360
|
-
|
|
359
|
+
loadData(O) {
|
|
360
|
+
h.value && (h.value.reloadData(O), j.value = O);
|
|
361
361
|
},
|
|
362
362
|
...p
|
|
363
|
-
}), (
|
|
363
|
+
}), (O, V) => {
|
|
364
364
|
var St;
|
|
365
|
-
const
|
|
365
|
+
const ee = y("a-switch"), N = y("a-tooltip"), Z = y("icon-refresh"), re = y("a-button"), _e = y("icon-settings"), we = y("icon-drag-dot-vertical"), ge = y("a-checkbox"), Ye = y("a-input-number"), _o = y("a-divider"), $t = y("vxe-button"), yo = y("vxe-pulldown"), Dt = y("a-space"), bo = y("vxe-toolbar"), Ze = y("vxe-column"), ho = y("a-empty"), Fo = y("a-spin"), Eo = y("vxe-table"), Co = y("a-pagination");
|
|
366
366
|
return m(), z("div", No, [
|
|
367
367
|
l.hideToolbar ? L("", !0) : (m(), x(bo, {
|
|
368
368
|
key: 0,
|
|
@@ -370,22 +370,22 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
370
370
|
"class-name": "orc-table__toolbar"
|
|
371
371
|
}, {
|
|
372
372
|
buttons: f(() => [
|
|
373
|
-
Y(
|
|
374
|
-
i("div", qo,
|
|
373
|
+
Y(O.$slots, "default", {}, () => [
|
|
374
|
+
i("div", qo, ne(l.title), 1)
|
|
375
375
|
])
|
|
376
376
|
]),
|
|
377
377
|
tools: f(() => [
|
|
378
378
|
d(Dt, { size: "mini" }, {
|
|
379
379
|
default: f(() => [
|
|
380
|
-
Y(
|
|
380
|
+
Y(O.$slots, "tools"),
|
|
381
381
|
d(N, {
|
|
382
382
|
content: "\u8868\u683C\u6591\u9A6C\u7EB9",
|
|
383
383
|
mini: ""
|
|
384
384
|
}, {
|
|
385
385
|
default: f(() => [
|
|
386
|
-
d(
|
|
386
|
+
d(ee, {
|
|
387
387
|
modelValue: w.value,
|
|
388
|
-
"onUpdate:modelValue": V[0] || (V[0] = (
|
|
388
|
+
"onUpdate:modelValue": V[0] || (V[0] = (se) => w.value = se),
|
|
389
389
|
size: "small"
|
|
390
390
|
}, {
|
|
391
391
|
checked: f(() => V[8] || (V[8] = [
|
|
@@ -404,12 +404,12 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
404
404
|
mini: ""
|
|
405
405
|
}, {
|
|
406
406
|
default: f(() => [
|
|
407
|
-
d(
|
|
407
|
+
d(re, {
|
|
408
408
|
loading: K.value,
|
|
409
409
|
size: "small",
|
|
410
410
|
class: "arco-btn-light",
|
|
411
411
|
style: { border: "0" },
|
|
412
|
-
onClick: V[1] || (V[1] = (
|
|
412
|
+
onClick: V[1] || (V[1] = (se) => ae())
|
|
413
413
|
}, {
|
|
414
414
|
icon: f(() => [
|
|
415
415
|
d(Z, { size: 16 })
|
|
@@ -431,7 +431,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
431
431
|
mini: ""
|
|
432
432
|
}, {
|
|
433
433
|
default: f(() => [
|
|
434
|
-
d(
|
|
434
|
+
d(re, {
|
|
435
435
|
size: "small",
|
|
436
436
|
class: "arco-btn-light",
|
|
437
437
|
style: { border: "0" }
|
|
@@ -439,7 +439,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
439
439
|
icon: f(() => [
|
|
440
440
|
d(_e, {
|
|
441
441
|
size: 16,
|
|
442
|
-
onClick: V[2] || (V[2] = (
|
|
442
|
+
onClick: V[2] || (V[2] = (se) => Ie(!0))
|
|
443
443
|
})
|
|
444
444
|
]),
|
|
445
445
|
_: 1
|
|
@@ -457,12 +457,12 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
457
457
|
mini: ""
|
|
458
458
|
}, {
|
|
459
459
|
default: f(() => [
|
|
460
|
-
d(
|
|
460
|
+
d(re, {
|
|
461
461
|
size: "small",
|
|
462
462
|
class: "arco-btn-light",
|
|
463
463
|
style: { border: "0" },
|
|
464
|
-
loading:
|
|
465
|
-
onClick: V[3] || (V[3] = (
|
|
464
|
+
loading: me.value.loading,
|
|
465
|
+
onClick: V[3] || (V[3] = (se) => We())
|
|
466
466
|
}, {
|
|
467
467
|
icon: f(() => [
|
|
468
468
|
d(Z)
|
|
@@ -476,7 +476,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
476
476
|
i("div", Ho, [
|
|
477
477
|
i("div", Go, [
|
|
478
478
|
d(_(Ge), {
|
|
479
|
-
list:
|
|
479
|
+
list: me.value.columns,
|
|
480
480
|
style: { "user-select": "none" },
|
|
481
481
|
class: "orc-table__draggable-list",
|
|
482
482
|
group: "toolsGroup",
|
|
@@ -487,23 +487,23 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
487
487
|
"item-key": "id",
|
|
488
488
|
handle: ".orc-table__draggable-moving"
|
|
489
489
|
}, {
|
|
490
|
-
item: f(({ element:
|
|
490
|
+
item: f(({ element: se }) => [
|
|
491
491
|
i("div", Jo, [
|
|
492
|
-
|
|
492
|
+
se.title ? (m(), z("div", Qo, [
|
|
493
493
|
d(we, { class: "orc-table__draggable-moving" }),
|
|
494
|
-
d(
|
|
495
|
-
modelValue:
|
|
496
|
-
"onUpdate:modelValue": (ze) =>
|
|
494
|
+
d(ge, {
|
|
495
|
+
modelValue: se.show,
|
|
496
|
+
"onUpdate:modelValue": (ze) => se.show = ze
|
|
497
497
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
498
498
|
i("label", {
|
|
499
499
|
class: "u-flex__item u-clamp",
|
|
500
|
-
title:
|
|
500
|
+
title: se.title
|
|
501
501
|
}, [
|
|
502
|
-
i("span", Yo,
|
|
502
|
+
i("span", Yo, ne(se.title), 1)
|
|
503
503
|
], 8, Xo),
|
|
504
504
|
d(Ye, {
|
|
505
|
-
modelValue:
|
|
506
|
-
"onUpdate:modelValue": (ze) =>
|
|
505
|
+
modelValue: se.width,
|
|
506
|
+
"onUpdate:modelValue": (ze) => se.width = ze,
|
|
507
507
|
size: "mini",
|
|
508
508
|
style: { width: "50px" }
|
|
509
509
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
@@ -525,7 +525,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
525
525
|
class: "u-flex__item",
|
|
526
526
|
type: "text",
|
|
527
527
|
status: "info",
|
|
528
|
-
onClick: V[4] || (V[4] = (
|
|
528
|
+
onClick: V[4] || (V[4] = (se) => Oe())
|
|
529
529
|
}, {
|
|
530
530
|
default: f(() => V[11] || (V[11] = [
|
|
531
531
|
P("\u53D6\u6D88")
|
|
@@ -537,7 +537,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
537
537
|
class: "u-flex__item",
|
|
538
538
|
type: "text",
|
|
539
539
|
status: "primary",
|
|
540
|
-
onClick: V[5] || (V[5] = (
|
|
540
|
+
onClick: V[5] || (V[5] = (se) => vo())
|
|
541
541
|
}, {
|
|
542
542
|
default: f(() => V[12] || (V[12] = [
|
|
543
543
|
P("\u786E\u8BA4")
|
|
@@ -557,7 +557,7 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
557
557
|
})),
|
|
558
558
|
d(Eo, {
|
|
559
559
|
ref: l.option.ref,
|
|
560
|
-
data:
|
|
560
|
+
data: j.value,
|
|
561
561
|
height: l.height,
|
|
562
562
|
stripe: w.value,
|
|
563
563
|
"keep-source": !1,
|
|
@@ -586,8 +586,8 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
586
586
|
onCheckboxAll: _(A),
|
|
587
587
|
onRadioChange: _(C),
|
|
588
588
|
onResizableChange: go,
|
|
589
|
-
onCellClick: V[6] || (V[6] = (
|
|
590
|
-
onCellDblclick: V[7] || (V[7] = (
|
|
589
|
+
onCellClick: V[6] || (V[6] = (se) => c("cellClick", se)),
|
|
590
|
+
onCellDblclick: V[7] || (V[7] = (se) => c("cellDblclick", se)),
|
|
591
591
|
onFooterCellClick: l.option.onFooterCellClick
|
|
592
592
|
}, {
|
|
593
593
|
empty: f(() => [
|
|
@@ -597,10 +597,10 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
597
597
|
d(Fo)
|
|
598
598
|
]),
|
|
599
599
|
default: f(() => [
|
|
600
|
-
Y(
|
|
601
|
-
var
|
|
600
|
+
Y(O.$slots, "columns", {}, () => {
|
|
601
|
+
var se, ze;
|
|
602
602
|
return [
|
|
603
|
-
["checkbox"].includes((
|
|
603
|
+
["checkbox"].includes((se = l.option.selectedType) != null ? se : "") ? (m(), x(Ze, {
|
|
604
604
|
key: 0,
|
|
605
605
|
type: "checkbox",
|
|
606
606
|
width: "30",
|
|
@@ -613,83 +613,83 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
613
613
|
fixed: "left",
|
|
614
614
|
align: l.option.selectedAlign
|
|
615
615
|
}, null, 8, ["align"])) : L("", !0),
|
|
616
|
-
(m(!0), z(
|
|
617
|
-
["index"].includes(
|
|
616
|
+
(m(!0), z(te, null, ce(D.value.filter((U) => U.show), (U, Ao) => (m(), z(te, { key: Ao }, [
|
|
617
|
+
["index"].includes(U.dataIndex) ? (m(), x(Ze, {
|
|
618
618
|
key: 0,
|
|
619
619
|
type: "seq",
|
|
620
|
-
field:
|
|
621
|
-
width:
|
|
622
|
-
title:
|
|
623
|
-
sortable:
|
|
624
|
-
"header-align":
|
|
625
|
-
"footer-align":
|
|
626
|
-
align:
|
|
627
|
-
"show-header-overflow":
|
|
628
|
-
"show-overflow":
|
|
629
|
-
fixed:
|
|
630
|
-
"title-prefix":
|
|
631
|
-
filters:
|
|
632
|
-
"filter-multiple":
|
|
633
|
-
"filter-method":
|
|
620
|
+
field: U.dataIndex,
|
|
621
|
+
width: U.width,
|
|
622
|
+
title: U.title,
|
|
623
|
+
sortable: U.sort,
|
|
624
|
+
"header-align": U.headerAlign,
|
|
625
|
+
"footer-align": U.footerAlign,
|
|
626
|
+
align: U.align,
|
|
627
|
+
"show-header-overflow": U.tooltip,
|
|
628
|
+
"show-overflow": U.tooltip,
|
|
629
|
+
fixed: U.fixed,
|
|
630
|
+
"title-prefix": U.help,
|
|
631
|
+
filters: U.filters,
|
|
632
|
+
"filter-multiple": U.filterMultiple,
|
|
633
|
+
"filter-method": U.filterMethod
|
|
634
634
|
}, null, 8, ["field", "width", "title", "sortable", "header-align", "footer-align", "align", "show-header-overflow", "show-overflow", "fixed", "title-prefix", "filters", "filter-multiple", "filter-method"])) : (m(), x(Ze, {
|
|
635
635
|
key: 1,
|
|
636
|
-
field:
|
|
637
|
-
width:
|
|
638
|
-
title:
|
|
639
|
-
sortable:
|
|
640
|
-
"header-align":
|
|
641
|
-
"footer-align":
|
|
642
|
-
align:
|
|
643
|
-
"show-header-overflow":
|
|
644
|
-
"show-overflow":
|
|
645
|
-
fixed:
|
|
646
|
-
"title-prefix":
|
|
647
|
-
filters:
|
|
648
|
-
"filter-multiple":
|
|
649
|
-
"filter-method":
|
|
650
|
-
"edit-render": { enabled: Boolean(
|
|
636
|
+
field: U.dataIndex,
|
|
637
|
+
width: U.width,
|
|
638
|
+
title: U.title,
|
|
639
|
+
sortable: U.sort,
|
|
640
|
+
"header-align": U.headerAlign,
|
|
641
|
+
"footer-align": U.footerAlign,
|
|
642
|
+
align: U.align,
|
|
643
|
+
"show-header-overflow": U.tooltip,
|
|
644
|
+
"show-overflow": U.tooltip,
|
|
645
|
+
fixed: U.fixed,
|
|
646
|
+
"title-prefix": U.help,
|
|
647
|
+
filters: U.filters,
|
|
648
|
+
"filter-multiple": U.filterMultiple,
|
|
649
|
+
"filter-method": U.filterMethod,
|
|
650
|
+
"edit-render": { enabled: Boolean(U.cell), placeholder: U.placeholder }
|
|
651
651
|
}, Ft({ _: 2 }, [
|
|
652
|
-
|
|
652
|
+
U.cell ? {
|
|
653
653
|
name: "edit",
|
|
654
654
|
fn: f(({ row: ye, rowIndex: Be, columnIndex: Ue }) => [
|
|
655
|
-
Y(
|
|
656
|
-
a(
|
|
655
|
+
Y(O.$slots, "cell", I({ ref_for: !0 }, g(U, ye, Be, Ue)), () => [
|
|
656
|
+
a(U.cell) ? (m(), x(Ee(U.cell), I({
|
|
657
657
|
key: 0,
|
|
658
658
|
ref_for: !0
|
|
659
|
-
},
|
|
659
|
+
}, b(U, ye, Be, Ue)), null, 16)) : (m(), z("span", {
|
|
660
660
|
key: 1,
|
|
661
|
-
style:
|
|
662
|
-
},
|
|
661
|
+
style: ie(_(st)(ye, U))
|
|
662
|
+
}, ne(_(Ne)(ye, U)), 5))
|
|
663
663
|
])
|
|
664
664
|
]),
|
|
665
665
|
key: "0"
|
|
666
666
|
} : void 0,
|
|
667
|
-
|
|
667
|
+
U.cell && U.div ? {
|
|
668
668
|
name: "default",
|
|
669
669
|
fn: f(({ row: ye, rowIndex: Be, columnIndex: Ue }) => [
|
|
670
|
-
Y(
|
|
671
|
-
a(
|
|
670
|
+
Y(O.$slots, "cell", I({ ref_for: !0 }, g(U, ye, Be, Ue)), () => [
|
|
671
|
+
a(U.cell) ? (m(), x(Ee(U.cell), I({
|
|
672
672
|
key: 0,
|
|
673
673
|
ref_for: !0
|
|
674
|
-
},
|
|
674
|
+
}, b(U, ye, Be, Ue)), null, 16)) : (m(), z("span", {
|
|
675
675
|
key: 1,
|
|
676
|
-
style:
|
|
677
|
-
},
|
|
676
|
+
style: ie(_(st)(ye, U))
|
|
677
|
+
}, ne(_(Ne)(ye, U)), 5))
|
|
678
678
|
])
|
|
679
679
|
]),
|
|
680
680
|
key: "1"
|
|
681
681
|
} : {
|
|
682
682
|
name: "default",
|
|
683
683
|
fn: f(({ row: ye, rowIndex: Be }) => [
|
|
684
|
-
l.option.skinRow && !
|
|
685
|
-
Be > 0 && v(
|
|
684
|
+
l.option.skinRow && !U.cell ? (m(), z(te, { key: 0 }, [
|
|
685
|
+
Be > 0 && v(j.value, Be, U.dataIndex) && U.width ? (m(), z("span", tn, ne(l.option.skinRowText), 1)) : (m(), z("span", {
|
|
686
686
|
key: 1,
|
|
687
|
-
style:
|
|
688
|
-
},
|
|
687
|
+
style: ie(B(j.value, Be, U.dataIndex))
|
|
688
|
+
}, ne(_(Ne)(ye, U)), 5))
|
|
689
689
|
], 64)) : (m(), z("span", {
|
|
690
690
|
key: 1,
|
|
691
|
-
style:
|
|
692
|
-
},
|
|
691
|
+
style: ie(_(st)(ye, U))
|
|
692
|
+
}, ne(_(Ne)(ye, U)), 5))
|
|
693
693
|
]),
|
|
694
694
|
key: "2"
|
|
695
695
|
}
|
|
@@ -700,10 +700,10 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
700
700
|
]),
|
|
701
701
|
_: 3
|
|
702
702
|
}, 8, ["data", "height", "stripe", "row-config", "show-overflow", "show-header-overflow", "size", "loading", "radio-config", "checkbox-config", "header-cell-style", "border", "show-footer", "footer-method", "footer-cell-style", "cell-style", "merge-footer-items", "show-footer-overflow", "filter-config", "edit-rules", "scroll-y", "scroll-x", "onCheckboxChange", "onCheckboxAll", "onRadioChange", "onFooterCellClick"]),
|
|
703
|
-
|
|
703
|
+
J.value && !l.hidePagination ? (m(), z("div", on, [
|
|
704
704
|
i("div", nn, [
|
|
705
705
|
i("div", un, [
|
|
706
|
-
Y(
|
|
706
|
+
Y(O.$slots, "footer")
|
|
707
707
|
]),
|
|
708
708
|
i("div", ln, [
|
|
709
709
|
d(Dt, {
|
|
@@ -715,20 +715,20 @@ const No = { class: "orc-table" }, qo = { class: "arco-card-header-title" }, Ko
|
|
|
715
715
|
d(Co, {
|
|
716
716
|
current: k.value.page,
|
|
717
717
|
"default-page-size": k.value.size,
|
|
718
|
-
total:
|
|
718
|
+
total: S.value,
|
|
719
719
|
"auto-adjust": !1,
|
|
720
720
|
size: l.size,
|
|
721
721
|
"show-total": "",
|
|
722
722
|
"show-page-size": "",
|
|
723
723
|
"page-size-options": F.value,
|
|
724
724
|
onPageSizeChange: Se,
|
|
725
|
-
onChange:
|
|
725
|
+
onChange: M
|
|
726
726
|
}, {
|
|
727
727
|
total: f(() => [
|
|
728
|
-
be.value.length ? (m(), z(
|
|
729
|
-
P(" \u9009 " +
|
|
728
|
+
be.value.length ? (m(), z(te, { key: 0 }, [
|
|
729
|
+
P(" \u9009 " + ne(be.value.length), 1)
|
|
730
730
|
], 64)) : L("", !0),
|
|
731
|
-
P(" \u5171 " +
|
|
731
|
+
P(" \u5171 " + ne(S.value) + " \u6761 ", 1)
|
|
732
732
|
]),
|
|
733
733
|
_: 1
|
|
734
734
|
}, 8, ["current", "default-page-size", "total", "size", "page-size-options"])
|
|
@@ -762,7 +762,7 @@ const li = {
|
|
|
762
762
|
var g;
|
|
763
763
|
const s = a.getTableData()[r];
|
|
764
764
|
if (!s.disabled && u.value) {
|
|
765
|
-
const
|
|
765
|
+
const b = a.getRowKey();
|
|
766
766
|
if (o.selectedType === "checkbox") {
|
|
767
767
|
const E = u.value, { fullData: F } = E.getTableData();
|
|
768
768
|
if (e.checkboxKey) {
|
|
@@ -770,9 +770,9 @@ const li = {
|
|
|
770
770
|
$.length && E.setCheckboxRow($, !0);
|
|
771
771
|
} else
|
|
772
772
|
u.value.setCheckboxRow(s, !0);
|
|
773
|
-
|
|
773
|
+
b && (n.value = ((g = u.value.getCheckboxRecords()) != null ? g : []).map((k) => k[b]));
|
|
774
774
|
}
|
|
775
|
-
o.selectedType === "radio" && (u.value.setRadioRow(s), u.value.getRadioRecord() &&
|
|
775
|
+
o.selectedType === "radio" && (u.value.setRadioRow(s), u.value.getRadioRecord() && b && (n.value = [u.value.getRadioRecord()].map((E) => E[b])));
|
|
776
776
|
}
|
|
777
777
|
},
|
|
778
778
|
setTableData(r) {
|
|
@@ -781,8 +781,8 @@ const li = {
|
|
|
781
781
|
setTableRow(r, c, s) {
|
|
782
782
|
if (u.value) {
|
|
783
783
|
const g = a.getTableData();
|
|
784
|
-
typeof c == "string" ? g[r][c] = s : Object.keys({ ...c }).forEach((
|
|
785
|
-
g[r][
|
|
784
|
+
typeof c == "string" ? g[r][c] = s : Object.keys({ ...c }).forEach((b) => {
|
|
785
|
+
g[r][b] = c[b];
|
|
786
786
|
}), l.addKey(r), typeof e.footerMethod == "function" && u.value.updateFooter();
|
|
787
787
|
}
|
|
788
788
|
}
|
|
@@ -899,7 +899,7 @@ const ke = {
|
|
|
899
899
|
top: "px",
|
|
900
900
|
options: "select"
|
|
901
901
|
};
|
|
902
|
-
function
|
|
902
|
+
function pe() {
|
|
903
903
|
const { children: e, models: t, config: n, remoteFuncs: o, selectPath: u } = Je(), a = () => ({ children: e.value });
|
|
904
904
|
function l(F, k) {
|
|
905
905
|
if (F) {
|
|
@@ -923,12 +923,12 @@ function fe() {
|
|
|
923
923
|
A[C] = typeof A[C] != "object" ? { type: A[C], model: C } : A[C];
|
|
924
924
|
}), Object.keys(k).forEach((C) => {
|
|
925
925
|
var v, B;
|
|
926
|
-
let
|
|
927
|
-
(!p || p === "undefined") && (p = "string"), typeof p == "object" ?
|
|
928
|
-
...
|
|
929
|
-
show:
|
|
930
|
-
tooltip: (v = k.tooltip) != null ? v :
|
|
931
|
-
options: (B = k.options) != null ? B :
|
|
926
|
+
let h = { type: "string", model: C }, p = A[C] || pn[C] || typeof k[C];
|
|
927
|
+
(!p || p === "undefined") && (p = "string"), typeof p == "object" ? h = { ...h, ...p } : h.type = p, A[C] = {
|
|
928
|
+
...h,
|
|
929
|
+
show: h.show !== !1,
|
|
930
|
+
tooltip: (v = k.tooltip) != null ? v : h.tooltip,
|
|
931
|
+
options: (B = k.options) != null ? B : h.options
|
|
932
932
|
};
|
|
933
933
|
}), A;
|
|
934
934
|
}
|
|
@@ -944,16 +944,16 @@ function fe() {
|
|
|
944
944
|
const k = He(), $ = (p) => {
|
|
945
945
|
k.value = p;
|
|
946
946
|
}, A = Q(() => r(F.value)), C = () => {
|
|
947
|
-
var v, B,
|
|
947
|
+
var v, B, T;
|
|
948
948
|
const p = A.value;
|
|
949
|
-
p && p.model ? $((
|
|
950
|
-
},
|
|
949
|
+
p && p.model ? $((T = (B = t.value[p.model]) != null ? B : (v = p.options) == null ? void 0 : v.defaultValue) != null ? T : void 0) : $(void 0);
|
|
950
|
+
}, h = () => {
|
|
951
951
|
const p = A.value;
|
|
952
952
|
p && p.model && (t.value[p.model] = k.value);
|
|
953
953
|
};
|
|
954
|
-
return
|
|
954
|
+
return le(F, C, { immediate: !0 }), le(() => A.value && A.value.model && t.value[A.value.model], $), le(k, (p) => {
|
|
955
955
|
const v = A.value;
|
|
956
|
-
(v == null ? void 0 : v.model) && v.options && (v.options.defaultValue = p),
|
|
956
|
+
(v == null ? void 0 : v.model) && v.options && (v.options.defaultValue = p), h();
|
|
957
957
|
}), [k];
|
|
958
958
|
}, useWidgetOperation: () => {
|
|
959
959
|
const F = (v, B) => {
|
|
@@ -968,49 +968,49 @@ function fe() {
|
|
|
968
968
|
models: { ...t.value },
|
|
969
969
|
remoteFuncs: { ...o.value }
|
|
970
970
|
});
|
|
971
|
-
function
|
|
971
|
+
function h(v) {
|
|
972
972
|
if (!v)
|
|
973
973
|
return;
|
|
974
|
-
const [B,
|
|
975
|
-
|
|
974
|
+
const [B, T = 0] = at(v), R = r(B);
|
|
975
|
+
R && Array.isArray(R) && (R.splice(T, 1), l(B, R), R.length > 0 && k(`${B}[${Math.min(T, R.length - 1)}]`));
|
|
976
976
|
}
|
|
977
977
|
function p(v) {
|
|
978
978
|
if (!v)
|
|
979
979
|
return;
|
|
980
|
-
const B = r(v), [
|
|
981
|
-
if (B &&
|
|
980
|
+
const B = r(v), [T, R = 0] = at(v), D = r(T);
|
|
981
|
+
if (B && D && Array.isArray(D)) {
|
|
982
982
|
const G = Pt(B, {});
|
|
983
|
-
|
|
983
|
+
D.splice(R, 0, G), l(T, D), k(`${T}[${R + 1}]`);
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
|
-
return { setConfig: F, onSelected: k, hasSelected: $, onReset: A, toJson: C, onDelete:
|
|
986
|
+
return { setConfig: F, onSelected: k, hasSelected: $, onReset: A, toJson: C, onDelete: h, onCopy: p };
|
|
987
987
|
}, useDraggableOperation: (F) => {
|
|
988
|
-
function k(
|
|
988
|
+
function k(h) {
|
|
989
989
|
if (!(F != null && F.value))
|
|
990
990
|
return {};
|
|
991
|
-
const { originalEvent: p } =
|
|
992
|
-
return { left: `${v -
|
|
991
|
+
const { originalEvent: p } = h, { clientX: v, clientY: B } = p, { top: T, left: R } = F.value.getBoundingClientRect();
|
|
992
|
+
return { left: `${v - R}px`, top: `${B - T}px` };
|
|
993
993
|
}
|
|
994
|
-
const $ = (
|
|
995
|
-
l(
|
|
994
|
+
const $ = (h, p) => {
|
|
995
|
+
l(h, p), u.value = h;
|
|
996
996
|
};
|
|
997
|
-
function A(
|
|
998
|
-
var
|
|
999
|
-
if (!
|
|
997
|
+
function A(h, p = null) {
|
|
998
|
+
var R, D;
|
|
999
|
+
if (!h)
|
|
1000
1000
|
return;
|
|
1001
|
-
const v =
|
|
1002
|
-
B[v] = Pt(B[v], { options: k(
|
|
1003
|
-
const
|
|
1004
|
-
$(`${
|
|
1001
|
+
const v = h.newIndex, B = ft(p ? (D = (R = r(p)) == null ? void 0 : R.children) != null ? D : [] : e.value);
|
|
1002
|
+
B[v] = Pt(B[v], { options: k(h) }), B[v].children && (B[v] = { ...B[v], children: [...B[v].children] });
|
|
1003
|
+
const T = $e(p, v);
|
|
1004
|
+
$(`${T}`, B[v]);
|
|
1005
1005
|
}
|
|
1006
|
-
function C(
|
|
1007
|
-
var
|
|
1008
|
-
if (!
|
|
1006
|
+
function C(h, p = null) {
|
|
1007
|
+
var R, D;
|
|
1008
|
+
if (!h)
|
|
1009
1009
|
return;
|
|
1010
|
-
const v =
|
|
1011
|
-
B[v].options = { ...B[v].options, ...k(
|
|
1012
|
-
const
|
|
1013
|
-
$(`${
|
|
1010
|
+
const v = h.newIndex, B = ft(p ? (D = (R = r(p)) == null ? void 0 : R.children) != null ? D : [] : e.value);
|
|
1011
|
+
B[v].options = { ...B[v].options, ...k(h) };
|
|
1012
|
+
const T = $e(p, v);
|
|
1013
|
+
$(`${T}`, B[v]);
|
|
1014
1014
|
}
|
|
1015
1015
|
return {
|
|
1016
1016
|
onAddWidget: A,
|
|
@@ -1166,7 +1166,7 @@ async function vn(e, { concurrency: t = 3, delayTime: n = 3 } = {}) {
|
|
|
1166
1166
|
return await Promise.all(l), o;
|
|
1167
1167
|
}
|
|
1168
1168
|
async function _n(e, t, n) {
|
|
1169
|
-
var
|
|
1169
|
+
var b;
|
|
1170
1170
|
if (!t)
|
|
1171
1171
|
throw new Error("downLoadPdf not element");
|
|
1172
1172
|
const o = `${e || "\u65B0\u5EFA PDF\u6587\u6863"}.pdf`;
|
|
@@ -1180,7 +1180,7 @@ async function _n(e, t, n) {
|
|
|
1180
1180
|
function s() {
|
|
1181
1181
|
c += 1, typeof (n == null ? void 0 : n.progress) == "function" && n.progress(c, r.length);
|
|
1182
1182
|
}
|
|
1183
|
-
const g = (
|
|
1183
|
+
const g = (b = n == null ? void 0 : n.paddingBuffer) != null ? b : 5;
|
|
1184
1184
|
r.forEach((E, F) => {
|
|
1185
1185
|
F > 0 && a.addPage();
|
|
1186
1186
|
const k = E.width / 210, $ = E.height / k;
|
|
@@ -1217,7 +1217,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1217
1217
|
isEdit: { type: Boolean }
|
|
1218
1218
|
},
|
|
1219
1219
|
setup(e) {
|
|
1220
|
-
const t = e, { path: n } = De(t), { useField: o, getWidget: u } =
|
|
1220
|
+
const t = e, { path: n } = De(t), { useField: o, getWidget: u } = pe(), a = Q(() => u(n.value)), [l] = o(n), r = Q(() => {
|
|
1221
1221
|
var s;
|
|
1222
1222
|
return (s = a == null ? void 0 : a.value) == null ? void 0 : s.options;
|
|
1223
1223
|
});
|
|
@@ -1228,14 +1228,14 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1228
1228
|
return "";
|
|
1229
1229
|
try {
|
|
1230
1230
|
return yn({ ...s, defaultValue: l == null ? void 0 : l.value });
|
|
1231
|
-
} catch (
|
|
1232
|
-
return console.error(String(
|
|
1231
|
+
} catch (b) {
|
|
1232
|
+
return console.error(String(b)), jt;
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
return (s, g) => r.value ? (m(), z("img", {
|
|
1236
1236
|
key: 0,
|
|
1237
1237
|
src: c(),
|
|
1238
|
-
style:
|
|
1238
|
+
style: ie({ display: "block", background: "#fff", width: r.value.width + "px", height: r.value.height + "px" }),
|
|
1239
1239
|
draggable: "false",
|
|
1240
1240
|
onerror: `this.src='${jt}'`
|
|
1241
1241
|
}, null, 12, bn)) : L("", !0);
|
|
@@ -1259,11 +1259,11 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1259
1259
|
isView: { type: Boolean }
|
|
1260
1260
|
},
|
|
1261
1261
|
setup(e) {
|
|
1262
|
-
const t = e, { getWidget: n, useDraggableOperation: o } =
|
|
1262
|
+
const t = e, { getWidget: n, useDraggableOperation: o } = pe(), u = Q(() => n(t.path)), { onAddWidget: a } = o(), l = (r, c, s) => {
|
|
1263
1263
|
var g;
|
|
1264
1264
|
return t.isView ? !0 : ((g = s == null ? void 0 : s.dataset) == null ? void 0 : g.category) === "basic";
|
|
1265
1265
|
};
|
|
1266
|
-
return (r, c) => u.value && u.value.children ? (m(), x(_(Ge),
|
|
1266
|
+
return (r, c) => u.value && u.value.children ? (m(), x(_(Ge), I({
|
|
1267
1267
|
key: 0,
|
|
1268
1268
|
list: u.value.children,
|
|
1269
1269
|
class: { "fe--widget-list": !0, "fe--widget-list--border": t.isEdit },
|
|
@@ -1298,7 +1298,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1298
1298
|
isEdit: { type: Boolean }
|
|
1299
1299
|
},
|
|
1300
1300
|
setup(e) {
|
|
1301
|
-
const t = e, { getWidget: n } =
|
|
1301
|
+
const t = e, { getWidget: n } = pe(), o = Q(() => n(t.path));
|
|
1302
1302
|
return (u, a) => {
|
|
1303
1303
|
const l = y("ACard");
|
|
1304
1304
|
return o.value && o.value.children ? (m(), x(l, {
|
|
@@ -1328,7 +1328,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1328
1328
|
isEdit: { type: Boolean }
|
|
1329
1329
|
},
|
|
1330
1330
|
setup(e) {
|
|
1331
|
-
const t = e, { getWidget: n } =
|
|
1331
|
+
const t = e, { getWidget: n } = pe(), o = Q(() => n(t.path));
|
|
1332
1332
|
return (u, a) => {
|
|
1333
1333
|
const l = y("ACard");
|
|
1334
1334
|
return o.value && o.value.children ? (m(), x(l, {
|
|
@@ -1368,7 +1368,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1368
1368
|
isEdit: { type: Boolean }
|
|
1369
1369
|
},
|
|
1370
1370
|
setup(e) {
|
|
1371
|
-
const t = e, { getWidget: n } =
|
|
1371
|
+
const t = e, { getWidget: n } = pe(), o = Q(() => n(t.path));
|
|
1372
1372
|
return (u, a) => {
|
|
1373
1373
|
const l = y("a-col"), r = y("a-row");
|
|
1374
1374
|
return o.value && o.value.key && o.value.children ? (m(), x(r, {
|
|
@@ -1376,7 +1376,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1376
1376
|
gutter: 8
|
|
1377
1377
|
}, {
|
|
1378
1378
|
default: f(() => [
|
|
1379
|
-
(m(!0), z(
|
|
1379
|
+
(m(!0), z(te, null, ce(o.value.children, (c, s) => (m(), x(l, {
|
|
1380
1380
|
key: s,
|
|
1381
1381
|
span: 12
|
|
1382
1382
|
}, {
|
|
@@ -1403,10 +1403,10 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1403
1403
|
isEdit: { type: Boolean }
|
|
1404
1404
|
},
|
|
1405
1405
|
setup(e) {
|
|
1406
|
-
const t = e, { getWidget: n } =
|
|
1406
|
+
const t = e, { getWidget: n } = pe(), o = Q(() => n(t.path));
|
|
1407
1407
|
return (u, a) => o.value && o.value.options ? (m(), z("div", {
|
|
1408
1408
|
key: 0,
|
|
1409
|
-
style:
|
|
1409
|
+
style: ie(o.value.options)
|
|
1410
1410
|
}, null, 4)) : L("", !0);
|
|
1411
1411
|
}
|
|
1412
1412
|
}), Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1419,13 +1419,13 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1419
1419
|
isEdit: { type: Boolean }
|
|
1420
1420
|
},
|
|
1421
1421
|
setup(e) {
|
|
1422
|
-
const t = e, { path: n } = De(t), { useField: o, getWidget: u } =
|
|
1422
|
+
const t = e, { path: n } = De(t), { useField: o, getWidget: u } = pe(), a = Q(() => u(n.value)), [l] = o(n);
|
|
1423
1423
|
return (r, c) => {
|
|
1424
1424
|
var s;
|
|
1425
1425
|
return a.value && a.value.options && a.value.model ? (m(), z("img", {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
src: (s = _(l)) != null ? s : Mt,
|
|
1428
|
-
style:
|
|
1428
|
+
style: ie({ width: a.value.options.width, height: a.value.options.height }),
|
|
1429
1429
|
alt: a.value.name,
|
|
1430
1430
|
draggable: "false",
|
|
1431
1431
|
onerror: `this.src='${Mt}'`
|
|
@@ -1445,7 +1445,7 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1445
1445
|
isEdit: { type: Boolean }
|
|
1446
1446
|
},
|
|
1447
1447
|
setup(e) {
|
|
1448
|
-
const t = e, { getWidget: n, useDraggableOperation: o } =
|
|
1448
|
+
const t = e, { getWidget: n, useDraggableOperation: o } = pe(), u = Q(() => n(t.path)), { onAddWidget: a } = o(), l = (r, c, s) => {
|
|
1449
1449
|
var g;
|
|
1450
1450
|
return ((g = s == null ? void 0 : s.dataset) == null ? void 0 : g.category) === "basic";
|
|
1451
1451
|
};
|
|
@@ -1470,18 +1470,18 @@ const bn = ["src", "onerror"], jt = "data:image/gif;base64,R0lGODlhAQABAAAAACH5B
|
|
|
1470
1470
|
_: 1
|
|
1471
1471
|
}),
|
|
1472
1472
|
i("div", Rn, [
|
|
1473
|
-
d(_(Ge),
|
|
1473
|
+
d(_(Ge), I({
|
|
1474
1474
|
list: u.value.children,
|
|
1475
1475
|
class: { "fe--widget-list": !0, "fe--widget-list--border": t.isEdit },
|
|
1476
1476
|
style: { paddingBottom: "0px", minHeight: "50px" },
|
|
1477
1477
|
disabled: !t.isEdit,
|
|
1478
1478
|
group: { name: "orchisky", put: l }
|
|
1479
1479
|
}, _(ke), {
|
|
1480
|
-
onAdd: c[0] || (c[0] = (
|
|
1480
|
+
onAdd: c[0] || (c[0] = (b) => _(a)(b, t.path))
|
|
1481
1481
|
}), {
|
|
1482
|
-
item: f(({ index:
|
|
1482
|
+
item: f(({ index: b }) => [
|
|
1483
1483
|
d(Qe, {
|
|
1484
|
-
path: _($e)(t.path,
|
|
1484
|
+
path: _($e)(t.path, b),
|
|
1485
1485
|
"is-edit": t.isEdit
|
|
1486
1486
|
}, null, 8, ["path", "is-edit"])
|
|
1487
1487
|
]),
|
|
@@ -1503,7 +1503,7 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1503
1503
|
isEdit: { type: Boolean }
|
|
1504
1504
|
},
|
|
1505
1505
|
setup(e) {
|
|
1506
|
-
const t = e, { path: n } = De(t), { getWidget: o } =
|
|
1506
|
+
const t = e, { path: n } = De(t), { getWidget: o } = pe(), u = Q(() => o(n.value)), a = Q(() => {
|
|
1507
1507
|
var r, c;
|
|
1508
1508
|
return (c = (r = u == null ? void 0 : u.value) == null ? void 0 : r.options) != null ? c : {};
|
|
1509
1509
|
}), l = Q(() => {
|
|
@@ -1517,10 +1517,10 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1517
1517
|
});
|
|
1518
1518
|
return (r, c) => u.value && a.value ? (m(), z("table", {
|
|
1519
1519
|
key: 0,
|
|
1520
|
-
style:
|
|
1520
|
+
style: ie([l.value, { width: "100%", height: "100%", "table-layout": "fixed", "border-collapse": "collapse" }])
|
|
1521
1521
|
}, [
|
|
1522
|
-
(m(!0), z(
|
|
1523
|
-
(m(!0), z(
|
|
1522
|
+
(m(!0), z(te, null, ce(a.value.rowspan, (s) => (m(), z("tr", { key: s }, [
|
|
1523
|
+
(m(!0), z(te, null, ce(a.value.colspan, (g) => (m(), z("td", {
|
|
1524
1524
|
key: g,
|
|
1525
1525
|
style: { border: "1px solid #000" }
|
|
1526
1526
|
}))), 128))
|
|
@@ -1537,7 +1537,7 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1537
1537
|
isEdit: { type: Boolean }
|
|
1538
1538
|
},
|
|
1539
1539
|
setup(e) {
|
|
1540
|
-
const t = e, { path: n } = De(t), { useField: o, getWidget: u } =
|
|
1540
|
+
const t = e, { path: n } = De(t), { useField: o, getWidget: u } = pe(), a = Q(() => u(n.value)), [l] = o(n), r = Q(() => {
|
|
1541
1541
|
var s;
|
|
1542
1542
|
return (s = a == null ? void 0 : a.value) == null ? void 0 : s.options;
|
|
1543
1543
|
}), c = Q(() => {
|
|
@@ -1551,8 +1551,8 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1551
1551
|
});
|
|
1552
1552
|
return (s, g) => a.value ? (m(), z("div", {
|
|
1553
1553
|
key: 0,
|
|
1554
|
-
style:
|
|
1555
|
-
},
|
|
1554
|
+
style: ie(c.value)
|
|
1555
|
+
}, ne(a.value.name) + " " + ne(_(l)), 5)) : L("", !0);
|
|
1556
1556
|
}
|
|
1557
1557
|
}), Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1558
1558
|
__proto__: null,
|
|
@@ -1564,9 +1564,9 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1564
1564
|
isEdit: { type: Boolean }
|
|
1565
1565
|
},
|
|
1566
1566
|
setup(e) {
|
|
1567
|
-
const t = e, { path: n } = De(t), { config: o } = Je(), { useField: u, getWidget: a } =
|
|
1568
|
-
var
|
|
1569
|
-
return ((
|
|
1567
|
+
const t = e, { path: n } = De(t), { config: o } = Je(), { useField: u, getWidget: a } = pe(), l = Q(() => a(n.value)), [r] = u(n), c = Q(() => {
|
|
1568
|
+
var b, E, F, k, $;
|
|
1569
|
+
return ((b = l.value) == null ? void 0 : b.options) ? {
|
|
1570
1570
|
field: l.value.model,
|
|
1571
1571
|
label: l.value.name,
|
|
1572
1572
|
rules: l.value.rules || ((E = l.value.options) != null && E.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${l.value.name}` }] : []),
|
|
@@ -1574,8 +1574,8 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1574
1574
|
labelColFlex: ($ = (k = l.value.options) == null ? void 0 : k.labelWidth) != null ? $ : o.value.labelWidth
|
|
1575
1575
|
} : {};
|
|
1576
1576
|
}), s = Q(() => {
|
|
1577
|
-
var
|
|
1578
|
-
const g = (
|
|
1577
|
+
var b;
|
|
1578
|
+
const g = (b = l.value) == null ? void 0 : b.options;
|
|
1579
1579
|
return g ? {
|
|
1580
1580
|
size: "small",
|
|
1581
1581
|
placeholder: g.placeholder,
|
|
@@ -1584,13 +1584,13 @@ const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1584
1584
|
style: { width: "100%" }
|
|
1585
1585
|
} : {};
|
|
1586
1586
|
});
|
|
1587
|
-
return (g,
|
|
1587
|
+
return (g, b) => {
|
|
1588
1588
|
const E = y("AFormItem");
|
|
1589
|
-
return l.value ? (m(), x(E, xe(
|
|
1589
|
+
return l.value ? (m(), x(E, xe(I({ key: 0 }, c.value)), {
|
|
1590
1590
|
default: f(() => [
|
|
1591
|
-
(m(), x(Ee(l.value.type),
|
|
1591
|
+
(m(), x(Ee(l.value.type), I({
|
|
1592
1592
|
modelValue: _(r),
|
|
1593
|
-
"onUpdate:modelValue":
|
|
1593
|
+
"onUpdate:modelValue": b[0] || (b[0] = (F) => Ct(r) ? r.value = F : null),
|
|
1594
1594
|
size: "small"
|
|
1595
1595
|
}, s.value), null, 16, ["modelValue"]))
|
|
1596
1596
|
]),
|
|
@@ -1619,10 +1619,10 @@ const qn = {
|
|
|
1619
1619
|
isEdit: { type: Boolean }
|
|
1620
1620
|
},
|
|
1621
1621
|
setup(e) {
|
|
1622
|
-
const t = e, { useWidgetOperation: n } =
|
|
1622
|
+
const t = e, { useWidgetOperation: n } = pe(), { onDelete: o, onSelected: u, hasSelected: a, onCopy: l } = n(), { getWidget: r, getWidgetProperty: c } = pe(), s = Q(() => r(t.path)), g = () => {
|
|
1623
1623
|
var C;
|
|
1624
1624
|
return ((C = s.value) == null ? void 0 : C.category) === "only";
|
|
1625
|
-
},
|
|
1625
|
+
}, b = () => a(t.path);
|
|
1626
1626
|
function E(C) {
|
|
1627
1627
|
return { "data-type": C.type, "data-category": C.category };
|
|
1628
1628
|
}
|
|
@@ -1634,11 +1634,11 @@ const qn = {
|
|
|
1634
1634
|
height: C.options.height,
|
|
1635
1635
|
left: C.options.left,
|
|
1636
1636
|
top: C.options.top,
|
|
1637
|
-
zIndex:
|
|
1637
|
+
zIndex: b() ? "9" : "2"
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
function k(C = !1) {
|
|
1641
|
-
return { "fe--widget-view": !0, "is-selected":
|
|
1641
|
+
return { "fe--widget-view": !0, "is-selected": b(), "fe--widget-view-fixed": C };
|
|
1642
1642
|
}
|
|
1643
1643
|
function $(C = !1) {
|
|
1644
1644
|
return t.isEdit ? { "fe--widget-item": !0, "fe-cl": !0, "fe--widget-item-fixed": C } : {};
|
|
@@ -1646,26 +1646,26 @@ const qn = {
|
|
|
1646
1646
|
function A() {
|
|
1647
1647
|
return t.isEdit ? {} : F();
|
|
1648
1648
|
}
|
|
1649
|
-
return (C,
|
|
1649
|
+
return (C, h) => {
|
|
1650
1650
|
const p = y("icon-drag-dot-vertical"), v = y("icon-copy"), B = y("icon-delete");
|
|
1651
|
-
return s.value ? (m(), z("div",
|
|
1651
|
+
return s.value ? (m(), z("div", I({ key: 0 }, E(s.value), {
|
|
1652
1652
|
class: $(s.value.fixed),
|
|
1653
1653
|
style: A()
|
|
1654
1654
|
}), [
|
|
1655
1655
|
t.isEdit ? (m(), z("div", {
|
|
1656
1656
|
key: 0,
|
|
1657
|
-
style:
|
|
1658
|
-
class:
|
|
1659
|
-
onClick:
|
|
1657
|
+
style: ie(F()),
|
|
1658
|
+
class: de(k(s.value.fixed)),
|
|
1659
|
+
onClick: h[3] || (h[3] = je((T) => _(u)(t.path), ["stop"]))
|
|
1660
1660
|
}, [
|
|
1661
|
-
|
|
1661
|
+
b() ? (m(), z("div", {
|
|
1662
1662
|
key: 0,
|
|
1663
1663
|
class: "fe--widget-tool",
|
|
1664
|
-
onClick:
|
|
1664
|
+
onClick: h[2] || (h[2] = je(() => {
|
|
1665
1665
|
}, ["stop"]))
|
|
1666
1666
|
}, [
|
|
1667
1667
|
i("div", {
|
|
1668
|
-
class:
|
|
1668
|
+
class: de(["fe--widget-tool-lt", { "fe-moving": !g() }])
|
|
1669
1669
|
}, [
|
|
1670
1670
|
g() ? L("", !0) : (m(), z("span", qn, [
|
|
1671
1671
|
d(p)
|
|
@@ -1674,21 +1674,21 @@ const qn = {
|
|
|
1674
1674
|
g() ? L("", !0) : (m(), z("div", Kn, [
|
|
1675
1675
|
i("span", {
|
|
1676
1676
|
class: "fe--widget-tool-btn",
|
|
1677
|
-
onClick:
|
|
1677
|
+
onClick: h[0] || (h[0] = (T) => _(l)(t.path))
|
|
1678
1678
|
}, [
|
|
1679
1679
|
d(v)
|
|
1680
1680
|
]),
|
|
1681
1681
|
_(c)(t.path).isDelete ? (m(), z("span", {
|
|
1682
1682
|
key: 0,
|
|
1683
1683
|
class: "fe--widget-tool-btn",
|
|
1684
|
-
onClick:
|
|
1684
|
+
onClick: h[1] || (h[1] = (T) => _(o)(t.path))
|
|
1685
1685
|
}, [
|
|
1686
1686
|
d(B)
|
|
1687
1687
|
])) : L("", !0)
|
|
1688
1688
|
]))
|
|
1689
1689
|
])) : L("", !0),
|
|
1690
1690
|
(m(), x(Ee(_(Tt)(s.value.type)), xe(lt(t)), null, 16))
|
|
1691
|
-
], 6)) : (m(), x(Ee(_(Tt)(s.value.type)), xe(
|
|
1691
|
+
], 6)) : (m(), x(Ee(_(Tt)(s.value.type)), xe(I({ key: 1 }, t)), null, 16))
|
|
1692
1692
|
], 16)) : L("", !0);
|
|
1693
1693
|
};
|
|
1694
1694
|
}
|
|
@@ -1698,10 +1698,10 @@ const qn = {
|
|
|
1698
1698
|
isEdit: { type: Boolean, default: !1 }
|
|
1699
1699
|
},
|
|
1700
1700
|
setup(e) {
|
|
1701
|
-
const t = e, { useDraggableOperation: n } =
|
|
1701
|
+
const t = e, { useDraggableOperation: n } = pe(), o = q(), { onAddWidget: u, onUpdateWidget: a } = n(o), { children: l, config: r, models: c } = Je();
|
|
1702
1702
|
return (s, g) => {
|
|
1703
|
-
const
|
|
1704
|
-
return m(), x(
|
|
1703
|
+
const b = y("AForm");
|
|
1704
|
+
return m(), x(b, {
|
|
1705
1705
|
class: "fe--widget-form",
|
|
1706
1706
|
model: _(c),
|
|
1707
1707
|
"label-col-props": { flex: _(r).labelWidth },
|
|
@@ -1714,9 +1714,9 @@ const qn = {
|
|
|
1714
1714
|
i("div", {
|
|
1715
1715
|
ref_key: "form$",
|
|
1716
1716
|
ref: o,
|
|
1717
|
-
style:
|
|
1717
|
+
style: ie([{ display: "block", height: "100%", "min-height": "0", "box-shadow": "0 0 5px rgba(0, 0, 0, 0.08)" }, { width: `${_(r).width}`, height: `${_(r).height}`, margin: "0 auto" }])
|
|
1718
1718
|
}, [
|
|
1719
|
-
d(_(Ge),
|
|
1719
|
+
d(_(Ge), I({
|
|
1720
1720
|
modelValue: _(l),
|
|
1721
1721
|
"onUpdate:modelValue": g[0] || (g[0] = (E) => Ct(l) ? l.value = E : null),
|
|
1722
1722
|
class: { "fe--widget-content": !0, "fe--widget-list": !0, "fe--widget-list--border": t.isEdit },
|
|
@@ -1755,18 +1755,18 @@ function io() {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
const u = (r) => r.name || "[\u672A\u547D\u540D]", a = Q(() => {
|
|
1757
1757
|
const r = [], c = (s, g) => {
|
|
1758
|
-
s.forEach((
|
|
1758
|
+
s.forEach((b, E) => {
|
|
1759
1759
|
var k;
|
|
1760
1760
|
const F = $e(g != null ? g : null, E);
|
|
1761
|
-
|
|
1761
|
+
b.model && r.push({ ...b, key: F, title: u(b) }), (k = b.children) != null && k.length && c(b.children, F);
|
|
1762
1762
|
});
|
|
1763
1763
|
};
|
|
1764
1764
|
return c(n().children), r;
|
|
1765
1765
|
}), l = Q(() => {
|
|
1766
1766
|
if (t.value) {
|
|
1767
1767
|
const r = String(t.value).split("."), c = [];
|
|
1768
|
-
return r.reduce((s, g,
|
|
1769
|
-
const E = [...r].slice(-
|
|
1768
|
+
return r.reduce((s, g, b) => {
|
|
1769
|
+
const E = [...r].slice(-b).join("."), F = o(E);
|
|
1770
1770
|
return F && s.push({ ...F, path: E, name: u(F) }), s;
|
|
1771
1771
|
}, c).reverse();
|
|
1772
1772
|
}
|
|
@@ -1781,16 +1781,16 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1781
1781
|
__name: "main",
|
|
1782
1782
|
emits: ["save"],
|
|
1783
1783
|
setup(e, { emit: t }) {
|
|
1784
|
-
const { useWidgetOperation: n } =
|
|
1784
|
+
const { useWidgetOperation: n } = pe(), { selectedArrayWidget: o } = io(), { setConfig: u, toJson: a, onSelected: l, onReset: r } = n(), c = q(!1);
|
|
1785
1785
|
function s([k, $]) {
|
|
1786
1786
|
u("width", k), u("height", $);
|
|
1787
1787
|
}
|
|
1788
1788
|
function g(k) {
|
|
1789
1789
|
k === "A4" && s(["210mm", "297mm"]), k === "PC" && s(["1920px", "1080px"]), k === "Auto" && s(["100%", "100%"]), k === "Mobile" && s(["375px", "100%"]);
|
|
1790
1790
|
}
|
|
1791
|
-
const
|
|
1791
|
+
const b = t;
|
|
1792
1792
|
function E() {
|
|
1793
|
-
|
|
1793
|
+
b("save", a());
|
|
1794
1794
|
}
|
|
1795
1795
|
function F() {
|
|
1796
1796
|
Ht.warning({
|
|
@@ -1807,7 +1807,7 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1807
1807
|
});
|
|
1808
1808
|
}
|
|
1809
1809
|
return (k, $) => {
|
|
1810
|
-
const A = y("icon-desktop"), C = y("a-button"),
|
|
1810
|
+
const A = y("icon-desktop"), C = y("a-button"), h = y("icon-computer"), p = y("icon-drive-file"), v = y("icon-mobile"), B = y("a-space"), T = y("icon-save"), R = y("icon-eye"), D = y("icon-eraser"), G = y("icon-right"), J = y("a-link"), K = y("a-breadcrumb-item"), w = y("a-breadcrumb"), S = y("a-drawer");
|
|
1811
1811
|
return m(), z("div", Ln, [
|
|
1812
1812
|
i("div", Hn, [
|
|
1813
1813
|
i("div", Gn, [
|
|
@@ -1818,7 +1818,7 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1818
1818
|
d(C, {
|
|
1819
1819
|
size: "mini",
|
|
1820
1820
|
title: "\u81EA\u52A8",
|
|
1821
|
-
onClick: $[0] || ($[0] = (
|
|
1821
|
+
onClick: $[0] || ($[0] = (j) => g("Auto"))
|
|
1822
1822
|
}, {
|
|
1823
1823
|
icon: f(() => [
|
|
1824
1824
|
d(A, { size: 14 })
|
|
@@ -1828,17 +1828,17 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1828
1828
|
d(C, {
|
|
1829
1829
|
size: "mini",
|
|
1830
1830
|
title: " \u62A5\u8868",
|
|
1831
|
-
onClick: $[1] || ($[1] = (
|
|
1831
|
+
onClick: $[1] || ($[1] = (j) => g("PC"))
|
|
1832
1832
|
}, {
|
|
1833
1833
|
icon: f(() => [
|
|
1834
|
-
d(
|
|
1834
|
+
d(h, { size: 14 })
|
|
1835
1835
|
]),
|
|
1836
1836
|
_: 1
|
|
1837
1837
|
}),
|
|
1838
1838
|
d(C, {
|
|
1839
1839
|
title: "A4",
|
|
1840
1840
|
size: "mini",
|
|
1841
|
-
onClick: $[2] || ($[2] = (
|
|
1841
|
+
onClick: $[2] || ($[2] = (j) => g("A4"))
|
|
1842
1842
|
}, {
|
|
1843
1843
|
icon: f(() => [
|
|
1844
1844
|
d(p, { size: 14 })
|
|
@@ -1848,7 +1848,7 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1848
1848
|
d(C, {
|
|
1849
1849
|
size: "mini",
|
|
1850
1850
|
title: "\u624B\u673A",
|
|
1851
|
-
onClick: $[3] || ($[3] = (
|
|
1851
|
+
onClick: $[3] || ($[3] = (j) => g("Mobile"))
|
|
1852
1852
|
}, {
|
|
1853
1853
|
icon: f(() => [
|
|
1854
1854
|
d(v, { size: 14 })
|
|
@@ -1866,30 +1866,30 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1866
1866
|
d(C, {
|
|
1867
1867
|
size: "mini",
|
|
1868
1868
|
title: "\u4FDD\u5B58",
|
|
1869
|
-
onClick: $[4] || ($[4] = (
|
|
1869
|
+
onClick: $[4] || ($[4] = (j) => E())
|
|
1870
1870
|
}, {
|
|
1871
1871
|
icon: f(() => [
|
|
1872
|
-
d(
|
|
1872
|
+
d(T, { size: 14 })
|
|
1873
1873
|
]),
|
|
1874
1874
|
_: 1
|
|
1875
1875
|
}),
|
|
1876
1876
|
d(C, {
|
|
1877
1877
|
size: "mini",
|
|
1878
1878
|
title: "\u9884\u89C8",
|
|
1879
|
-
onClick: $[5] || ($[5] = (
|
|
1879
|
+
onClick: $[5] || ($[5] = (j) => c.value = !0)
|
|
1880
1880
|
}, {
|
|
1881
1881
|
icon: f(() => [
|
|
1882
|
-
d(
|
|
1882
|
+
d(R, { size: 14 })
|
|
1883
1883
|
]),
|
|
1884
1884
|
_: 1
|
|
1885
1885
|
}),
|
|
1886
1886
|
d(C, {
|
|
1887
1887
|
size: "mini",
|
|
1888
1888
|
title: "\u6E05\u7A7A",
|
|
1889
|
-
onClick: $[6] || ($[6] = (
|
|
1889
|
+
onClick: $[6] || ($[6] = (j) => F())
|
|
1890
1890
|
}, {
|
|
1891
1891
|
icon: f(() => [
|
|
1892
|
-
d(
|
|
1892
|
+
d(D, { size: 14 })
|
|
1893
1893
|
]),
|
|
1894
1894
|
_: 1
|
|
1895
1895
|
})
|
|
@@ -1912,11 +1912,11 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1912
1912
|
d(G)
|
|
1913
1913
|
]),
|
|
1914
1914
|
default: f(() => {
|
|
1915
|
-
var
|
|
1915
|
+
var j;
|
|
1916
1916
|
return [
|
|
1917
1917
|
d(K, null, {
|
|
1918
1918
|
default: f(() => [
|
|
1919
|
-
d(
|
|
1919
|
+
d(J, null, {
|
|
1920
1920
|
default: f(() => $[9] || ($[9] = [
|
|
1921
1921
|
P("\u7ED3\u6784\u5BFC\u822A")
|
|
1922
1922
|
])),
|
|
@@ -1925,14 +1925,14 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1925
1925
|
]),
|
|
1926
1926
|
_: 1
|
|
1927
1927
|
}),
|
|
1928
|
-
(
|
|
1928
|
+
(j = _(o)) != null && j.length ? (m(!0), z(te, { key: 0 }, ce(_(o), (ue, fe) => (m(), x(K, { key: fe }, {
|
|
1929
1929
|
default: f(() => [
|
|
1930
|
-
|
|
1930
|
+
ue ? (m(), x(J, {
|
|
1931
1931
|
key: 0,
|
|
1932
|
-
onClick: (be) => _(l)(
|
|
1932
|
+
onClick: (be) => _(l)(ue.path)
|
|
1933
1933
|
}, {
|
|
1934
1934
|
default: f(() => [
|
|
1935
|
-
P(
|
|
1935
|
+
P(ne(ue.name), 1)
|
|
1936
1936
|
]),
|
|
1937
1937
|
_: 2
|
|
1938
1938
|
}, 1032, ["onClick"])) : L("", !0)
|
|
@@ -1945,9 +1945,9 @@ const Ln = { class: "u-h u-card" }, Hn = { class: "u-card__hd u-aside__hd" }, Gn
|
|
|
1945
1945
|
})
|
|
1946
1946
|
])
|
|
1947
1947
|
]),
|
|
1948
|
-
d(
|
|
1948
|
+
d(S, {
|
|
1949
1949
|
visible: c.value,
|
|
1950
|
-
"onUpdate:visible": $[8] || ($[8] = (
|
|
1950
|
+
"onUpdate:visible": $[8] || ($[8] = (j) => c.value = j),
|
|
1951
1951
|
placement: "bottom",
|
|
1952
1952
|
height: "80%",
|
|
1953
1953
|
footer: !1,
|
|
@@ -1995,7 +1995,7 @@ const tu = { class: "u-card u-h" }, ou = {
|
|
|
1995
1995
|
function l(r) {
|
|
1996
1996
|
u.value = r, n("update:tab-index", u.value);
|
|
1997
1997
|
}
|
|
1998
|
-
return
|
|
1998
|
+
return le(
|
|
1999
1999
|
() => o.tabIndex,
|
|
2000
2000
|
(r) => {
|
|
2001
2001
|
u.value = r;
|
|
@@ -2003,14 +2003,14 @@ const tu = { class: "u-card u-h" }, ou = {
|
|
|
2003
2003
|
), (r, c) => (m(), z("div", tu, [
|
|
2004
2004
|
i("div", ou, [
|
|
2005
2005
|
i("div", nu, [
|
|
2006
|
-
(m(!0), z(
|
|
2006
|
+
(m(!0), z(te, null, ce(o.list, (s, g) => (m(), z("div", {
|
|
2007
2007
|
key: g,
|
|
2008
2008
|
class: "u-tabs__item",
|
|
2009
|
-
onClick: (
|
|
2009
|
+
onClick: (b) => l(g)
|
|
2010
2010
|
}, [
|
|
2011
2011
|
i("div", {
|
|
2012
|
-
class:
|
|
2013
|
-
},
|
|
2012
|
+
class: de(["u-tabs__link", a(g)])
|
|
2013
|
+
}, ne(s), 3)
|
|
2014
2014
|
], 8, uu))), 128))
|
|
2015
2015
|
])
|
|
2016
2016
|
]),
|
|
@@ -2274,11 +2274,11 @@ const pu = { class: "u-nos" }, fu = {
|
|
|
2274
2274
|
return m(), z("div", pu, [
|
|
2275
2275
|
i("div", {
|
|
2276
2276
|
class: "u-card__hd u-aside__hd",
|
|
2277
|
-
style:
|
|
2277
|
+
style: ie([{ borderBottomWidth: n.value ? "0px" : "1px" }, { "line-height": "36px", height: "36px", "border-bottom-color": "var(--color-neutral-2)" }])
|
|
2278
2278
|
}, [
|
|
2279
2279
|
i("div", null, [
|
|
2280
2280
|
Y(u.$slots, "title", {}, () => [
|
|
2281
|
-
i("strong", null,
|
|
2281
|
+
i("strong", null, ne(t.title), 1)
|
|
2282
2282
|
])
|
|
2283
2283
|
]),
|
|
2284
2284
|
i("span", {
|
|
@@ -2309,7 +2309,7 @@ const pu = { class: "u-nos" }, fu = {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
return (o, u) => {
|
|
2311
2311
|
const a = y("icon-drag-arrow"), l = y("a-button");
|
|
2312
|
-
return m(!0), z(
|
|
2312
|
+
return m(!0), z(te, null, ce(n(), ({ title: r, children: c }, s) => (m(), x(et, {
|
|
2313
2313
|
key: s,
|
|
2314
2314
|
title: r,
|
|
2315
2315
|
"is-first": !s
|
|
@@ -2326,7 +2326,7 @@ const pu = { class: "u-nos" }, fu = {
|
|
|
2326
2326
|
}, {
|
|
2327
2327
|
item: f(({ element: g }) => [
|
|
2328
2328
|
d(l, {
|
|
2329
|
-
class:
|
|
2329
|
+
class: de(["fe--side-button", { "fe-ghost-fixed": g.fixed }]),
|
|
2330
2330
|
"data-type": g.type,
|
|
2331
2331
|
"data-category": g.category,
|
|
2332
2332
|
size: "mini"
|
|
@@ -2340,7 +2340,7 @@ const pu = { class: "u-nos" }, fu = {
|
|
|
2340
2340
|
}, 1024))
|
|
2341
2341
|
]),
|
|
2342
2342
|
default: f(() => [
|
|
2343
|
-
P(" " +
|
|
2343
|
+
P(" " + ne(g.name), 1)
|
|
2344
2344
|
]),
|
|
2345
2345
|
_: 2
|
|
2346
2346
|
}, 1032, ["class", "data-type", "data-category"])
|
|
@@ -2364,12 +2364,12 @@ const gu = { key: 1 }, vu = {
|
|
|
2364
2364
|
__name: "side",
|
|
2365
2365
|
props: { moduleConfig: Array },
|
|
2366
2366
|
setup(e) {
|
|
2367
|
-
const { widgetArray: t } = io(), n = e, o = q(!1), { useWidgetOperation: u } =
|
|
2367
|
+
const { widgetArray: t } = io(), n = e, o = q(!1), { useWidgetOperation: u } = pe(), { onSelected: a, hasSelected: l } = u();
|
|
2368
2368
|
return (r, c) => {
|
|
2369
|
-
const s = y("icon-drag-arrow"), g = y("a-empty"),
|
|
2369
|
+
const s = y("icon-drag-arrow"), g = y("a-empty"), b = y("icon-right"), E = y("icon-left"), F = y("a-button");
|
|
2370
2370
|
return m(), z("div", {
|
|
2371
2371
|
class: "fe--side u-page__side",
|
|
2372
|
-
style:
|
|
2372
|
+
style: ie({ width: o.value ? "0px" : "219px" })
|
|
2373
2373
|
}, [
|
|
2374
2374
|
o.value ? L("", !0) : (m(), x(so, {
|
|
2375
2375
|
key: 0,
|
|
@@ -2381,9 +2381,9 @@ const gu = { key: 1 }, vu = {
|
|
|
2381
2381
|
"module-config": n.moduleConfig
|
|
2382
2382
|
}, null, 8, ["module-config"])) : k === 1 ? (m(), z("div", gu, [
|
|
2383
2383
|
_(t).length ? (m(), z("div", vu, [
|
|
2384
|
-
(m(!0), z(
|
|
2384
|
+
(m(!0), z(te, null, ce(_(t), ($, A) => (m(), z("div", {
|
|
2385
2385
|
key: A,
|
|
2386
|
-
class:
|
|
2386
|
+
class: de(["arco-tree-node arco-tree-node-is-leaf", {
|
|
2387
2387
|
"arco-tree-node-selected": _(l)($.key)
|
|
2388
2388
|
}]),
|
|
2389
2389
|
onClick: je((C) => _(a)($.key), ["stop"])
|
|
@@ -2397,8 +2397,8 @@ const gu = { key: 1 }, vu = {
|
|
|
2397
2397
|
_: 2
|
|
2398
2398
|
}, 1024))
|
|
2399
2399
|
]),
|
|
2400
|
-
i("div", hu,
|
|
2401
|
-
i("code", Fu,
|
|
2400
|
+
i("div", hu, ne($.title) + ne($.title) + ne($.title), 1),
|
|
2401
|
+
i("code", Fu, ne($.model), 1)
|
|
2402
2402
|
])
|
|
2403
2403
|
], 10, _u))), 128))
|
|
2404
2404
|
])) : (m(), x(g, { key: 1 }))
|
|
@@ -2411,11 +2411,11 @@ const gu = { key: 1 }, vu = {
|
|
|
2411
2411
|
status: "normal",
|
|
2412
2412
|
size: "mini",
|
|
2413
2413
|
class: "arco-btn-light u-page__arrow",
|
|
2414
|
-
style:
|
|
2414
|
+
style: ie({ borderLeftWidth: o.value ? "1px" : "0" }),
|
|
2415
2415
|
onClick: c[0] || (c[0] = (k) => o.value = !o.value)
|
|
2416
2416
|
}, {
|
|
2417
2417
|
icon: f(() => [
|
|
2418
|
-
o.value ? (m(), x(
|
|
2418
|
+
o.value ? (m(), x(b, { key: 0 })) : (m(), x(E, { key: 1 }))
|
|
2419
2419
|
]),
|
|
2420
2420
|
_: 1
|
|
2421
2421
|
}, 8, ["style"])
|
|
@@ -2438,22 +2438,22 @@ const gu = { key: 1 }, vu = {
|
|
|
2438
2438
|
var r;
|
|
2439
2439
|
return (r = o.modelValue) != null ? r : void 0;
|
|
2440
2440
|
}, a = q(u());
|
|
2441
|
-
return
|
|
2441
|
+
return le(() => o.modelValue, () => {
|
|
2442
2442
|
a.value = u();
|
|
2443
|
-
}),
|
|
2444
|
-
const s = y("AInputNumber"), g = y("AInput"),
|
|
2445
|
-
return m(), x(
|
|
2443
|
+
}), le(a, (r) => n("update:model-value", r)), (r, c) => {
|
|
2444
|
+
const s = y("AInputNumber"), g = y("AInput"), b = y("AFormItem");
|
|
2445
|
+
return m(), x(b, I({
|
|
2446
2446
|
field: r.field,
|
|
2447
2447
|
label: r.label
|
|
2448
2448
|
}, r.formProps), {
|
|
2449
2449
|
default: f(() => [
|
|
2450
|
-
typeof a.value == "number" ? (m(), x(s,
|
|
2450
|
+
typeof a.value == "number" ? (m(), x(s, I({
|
|
2451
2451
|
key: 0,
|
|
2452
2452
|
modelValue: a.value,
|
|
2453
2453
|
"onUpdate:modelValue": c[0] || (c[0] = (E) => a.value = E),
|
|
2454
2454
|
mode: "button",
|
|
2455
2455
|
size: "mini"
|
|
2456
|
-
}, r.elementProps), null, 16, ["modelValue"])) : (m(), x(g,
|
|
2456
|
+
}, r.elementProps), null, 16, ["modelValue"])) : (m(), x(g, I({
|
|
2457
2457
|
key: 1,
|
|
2458
2458
|
modelValue: a.value,
|
|
2459
2459
|
"onUpdate:modelValue": c[1] || (c[1] = (E) => a.value = E),
|
|
@@ -2480,18 +2480,18 @@ const gu = { key: 1 }, vu = {
|
|
|
2480
2480
|
var r;
|
|
2481
2481
|
return (r = o.modelValue) != null ? r : void 0;
|
|
2482
2482
|
}, a = q(u());
|
|
2483
|
-
return
|
|
2483
|
+
return le(() => o.modelValue, () => {
|
|
2484
2484
|
a.value = u();
|
|
2485
|
-
}),
|
|
2485
|
+
}), le(a, (r) => n("update:model-value", r)), (r, c) => {
|
|
2486
2486
|
const s = y("AInputNumber"), g = y("AFormItem");
|
|
2487
|
-
return m(), x(g,
|
|
2487
|
+
return m(), x(g, I({
|
|
2488
2488
|
field: r.field,
|
|
2489
2489
|
label: r.label
|
|
2490
2490
|
}, r.formProps), {
|
|
2491
2491
|
default: f(() => [
|
|
2492
|
-
d(s,
|
|
2492
|
+
d(s, I({
|
|
2493
2493
|
modelValue: a.value,
|
|
2494
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2494
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => a.value = b),
|
|
2495
2495
|
mode: "button",
|
|
2496
2496
|
size: "mini"
|
|
2497
2497
|
}, r.elementProps), null, 16, ["modelValue"])
|
|
@@ -2513,7 +2513,7 @@ const gu = { key: 1 }, vu = {
|
|
|
2513
2513
|
emits: ["update:model-value"],
|
|
2514
2514
|
setup(e, { emit: t }) {
|
|
2515
2515
|
const n = t, o = e, u = ["px", "pt", "mm"], a = q("px"), l = q();
|
|
2516
|
-
return
|
|
2516
|
+
return le(
|
|
2517
2517
|
() => o.modelValue,
|
|
2518
2518
|
(r) => {
|
|
2519
2519
|
if (typeof r == "number")
|
|
@@ -2528,14 +2528,14 @@ const gu = { key: 1 }, vu = {
|
|
|
2528
2528
|
{
|
|
2529
2529
|
immediate: !0
|
|
2530
2530
|
}
|
|
2531
|
-
),
|
|
2532
|
-
const s = y("AInput"), g = y("AInputNumber"),
|
|
2533
|
-
return m(), x(F,
|
|
2531
|
+
), le([l, a], () => n("update:model-value", `${l.value}${a.value}`)), (r, c) => {
|
|
2532
|
+
const s = y("AInput"), g = y("AInputNumber"), b = y("ASelect"), E = y("AInputGroup"), F = y("AFormItem");
|
|
2533
|
+
return m(), x(F, I({
|
|
2534
2534
|
field: r.field,
|
|
2535
2535
|
label: r.label
|
|
2536
2536
|
}, r.formProps), {
|
|
2537
2537
|
label: f(() => [
|
|
2538
|
-
P(
|
|
2538
|
+
P(ne(o.label), 1)
|
|
2539
2539
|
]),
|
|
2540
2540
|
default: f(() => [
|
|
2541
2541
|
o.modelValue === "100%" ? (m(), x(s, {
|
|
@@ -2545,13 +2545,13 @@ const gu = { key: 1 }, vu = {
|
|
|
2545
2545
|
"model-value": "100%"
|
|
2546
2546
|
})) : (m(), x(E, { key: 1 }, {
|
|
2547
2547
|
default: f(() => [
|
|
2548
|
-
d(g,
|
|
2548
|
+
d(g, I({
|
|
2549
2549
|
modelValue: l.value,
|
|
2550
2550
|
"onUpdate:modelValue": c[0] || (c[0] = (k) => l.value = k),
|
|
2551
2551
|
size: "mini",
|
|
2552
2552
|
mode: "button"
|
|
2553
2553
|
}, r.elementProps), null, 16, ["modelValue"]),
|
|
2554
|
-
d(
|
|
2554
|
+
d(b, {
|
|
2555
2555
|
modelValue: a.value,
|
|
2556
2556
|
"onUpdate:modelValue": c[1] || (c[1] = (k) => a.value = k),
|
|
2557
2557
|
size: "mini",
|
|
@@ -2584,18 +2584,18 @@ const gu = { key: 1 }, vu = {
|
|
|
2584
2584
|
var r;
|
|
2585
2585
|
return (r = o.modelValue) != null ? r : void 0;
|
|
2586
2586
|
}, a = q(u());
|
|
2587
|
-
return
|
|
2587
|
+
return le(() => o.modelValue, () => {
|
|
2588
2588
|
a.value = u();
|
|
2589
|
-
}),
|
|
2589
|
+
}), le(a, (r) => n("update:model-value", r)), (r, c) => {
|
|
2590
2590
|
const s = y("ARadioGroup"), g = y("AFormItem");
|
|
2591
|
-
return m(), x(g,
|
|
2591
|
+
return m(), x(g, I({
|
|
2592
2592
|
field: r.field,
|
|
2593
2593
|
label: r.label
|
|
2594
2594
|
}, r.formProps), {
|
|
2595
2595
|
default: f(() => [
|
|
2596
|
-
d(s,
|
|
2596
|
+
d(s, I({
|
|
2597
2597
|
modelValue: a.value,
|
|
2598
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2598
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => a.value = b),
|
|
2599
2599
|
type: "button",
|
|
2600
2600
|
size: "mini"
|
|
2601
2601
|
}, r.elementProps), null, 16, ["modelValue"])
|
|
@@ -2620,18 +2620,18 @@ const gu = { key: 1 }, vu = {
|
|
|
2620
2620
|
var r;
|
|
2621
2621
|
return (r = o.modelValue) != null ? r : void 0;
|
|
2622
2622
|
}, a = q(u());
|
|
2623
|
-
return
|
|
2623
|
+
return le(() => o.modelValue, () => {
|
|
2624
2624
|
a.value = u();
|
|
2625
|
-
}),
|
|
2625
|
+
}), le(a, (r) => n("update:model-value", r)), (r, c) => {
|
|
2626
2626
|
const s = y("ASelect"), g = y("AFormItem");
|
|
2627
|
-
return m(), x(g,
|
|
2627
|
+
return m(), x(g, I({
|
|
2628
2628
|
field: r.field,
|
|
2629
2629
|
label: r.label
|
|
2630
2630
|
}, r.formProps), {
|
|
2631
2631
|
default: f(() => [
|
|
2632
|
-
d(s,
|
|
2632
|
+
d(s, I({
|
|
2633
2633
|
modelValue: a.value,
|
|
2634
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
2634
|
+
"onUpdate:modelValue": c[0] || (c[0] = (b) => a.value = b),
|
|
2635
2635
|
size: "mini",
|
|
2636
2636
|
"trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" }
|
|
2637
2637
|
}, r.elementProps), null, 16, ["modelValue"])
|
|
@@ -2657,19 +2657,19 @@ const gu = { key: 1 }, vu = {
|
|
|
2657
2657
|
var l;
|
|
2658
2658
|
u.value = (l = { string: Wt, number: Cu, px: Au, radio: wu, select: Bu }[n.elementType]) != null ? l : Wt;
|
|
2659
2659
|
}
|
|
2660
|
-
return Me(a),
|
|
2660
|
+
return Me(a), le(() => n.elementType, a), (l, r) => u.value ? (m(), x(Ee(u.value), I({ key: 0 }, n, {
|
|
2661
2661
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => o("update:model-value", c))
|
|
2662
2662
|
}), null, 16)) : L("", !0);
|
|
2663
2663
|
}
|
|
2664
2664
|
}), ku = /* @__PURE__ */ H({
|
|
2665
2665
|
__name: "panel",
|
|
2666
2666
|
setup(e) {
|
|
2667
|
-
const { getWidgetPanelProperty: t, getWidget: n, updateRootPathValue: o } =
|
|
2667
|
+
const { getWidgetPanelProperty: t, getWidget: n, updateRootPathValue: o } = pe(), { t: u } = Mo(), a = q(!1), l = q(0), { config: r, selectPath: c, models: s } = Je(), g = (A) => {
|
|
2668
2668
|
l.value = A ? 0 : 1;
|
|
2669
2669
|
};
|
|
2670
2670
|
g(c.value);
|
|
2671
|
-
const
|
|
2672
|
-
|
|
2671
|
+
const b = Q(() => n(c.value)), E = (A) => (C) => o(`${c.value}.${A}`, C), F = (A, C) => {
|
|
2672
|
+
b.value && A && (A === "defaultValue" && b.value.model && (s.value[b.value.model] = C), E(`options.${A}`)(C));
|
|
2673
2673
|
}, k = Q(
|
|
2674
2674
|
() => {
|
|
2675
2675
|
var A;
|
|
@@ -2691,7 +2691,7 @@ const gu = { key: 1 }, vu = {
|
|
|
2691
2691
|
})) != null ? A : {};
|
|
2692
2692
|
}
|
|
2693
2693
|
), $ = Q(() => {
|
|
2694
|
-
const A = t(
|
|
2694
|
+
const A = t(b.value);
|
|
2695
2695
|
if (A) {
|
|
2696
2696
|
const C = [
|
|
2697
2697
|
{
|
|
@@ -2699,43 +2699,43 @@ const gu = { key: 1 }, vu = {
|
|
|
2699
2699
|
sort: 1,
|
|
2700
2700
|
type: "base",
|
|
2701
2701
|
list: [],
|
|
2702
|
-
filterFunc: (
|
|
2702
|
+
filterFunc: (h) => ["defaultValue"].includes(h)
|
|
2703
2703
|
},
|
|
2704
2704
|
{
|
|
2705
2705
|
title: "\u5C5E\u6027\u8BBE\u7F6E",
|
|
2706
2706
|
sort: 2,
|
|
2707
2707
|
type: "boolean",
|
|
2708
2708
|
list: [],
|
|
2709
|
-
filterFunc: (
|
|
2709
|
+
filterFunc: (h, p) => p.type === "boolean"
|
|
2710
2710
|
},
|
|
2711
2711
|
{
|
|
2712
2712
|
title: "\u4F4D\u7F6E\u8BBE\u7F6E",
|
|
2713
2713
|
sort: 99,
|
|
2714
2714
|
type: "position",
|
|
2715
2715
|
list: [],
|
|
2716
|
-
filterFunc: (
|
|
2716
|
+
filterFunc: (h) => ["left", "top"].includes(h),
|
|
2717
2717
|
showFunc: () => {
|
|
2718
|
-
var
|
|
2719
|
-
return ((
|
|
2718
|
+
var h;
|
|
2719
|
+
return ((h = b.value) == null ? void 0 : h.fixed) === !0;
|
|
2720
2720
|
}
|
|
2721
2721
|
},
|
|
2722
|
-
{ title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (
|
|
2722
|
+
{ title: "\u9AD8\u7EA7\u8BBE\u7F6E", sort: 9, list: [], filterFunc: (h) => !!h }
|
|
2723
2723
|
];
|
|
2724
|
-
return Object.keys(A).forEach((
|
|
2724
|
+
return Object.keys(A).forEach((h) => {
|
|
2725
2725
|
let p = !1;
|
|
2726
|
-
const v = A[
|
|
2726
|
+
const v = A[h];
|
|
2727
2727
|
C.forEach((B) => {
|
|
2728
|
-
!p && B.filterFunc(
|
|
2728
|
+
!p && B.filterFunc(h, v) && (B.list.push(v), p = !0);
|
|
2729
2729
|
});
|
|
2730
|
-
}), [...C].filter((
|
|
2730
|
+
}), [...C].filter((h) => typeof h.showFunc != "function" || h.showFunc()).sort((h, p) => h.sort - p.sort).map((h) => (delete h.filterFunc, delete h.showFunc, h));
|
|
2731
2731
|
}
|
|
2732
2732
|
return null;
|
|
2733
2733
|
});
|
|
2734
|
-
return
|
|
2735
|
-
const
|
|
2734
|
+
return le(c, g), (A, C) => {
|
|
2735
|
+
const h = y("AForm"), p = y("a-checkbox"), v = y("a-space"), B = y("a-empty"), T = y("icon-right"), R = y("icon-left"), D = y("a-button");
|
|
2736
2736
|
return m(), z("div", {
|
|
2737
2737
|
class: "u-page__panel fe--panels",
|
|
2738
|
-
style:
|
|
2738
|
+
style: ie({ width: a.value ? "0px" : "219px" })
|
|
2739
2739
|
}, [
|
|
2740
2740
|
a.value ? L("", !0) : (m(), x(so, {
|
|
2741
2741
|
key: 0,
|
|
@@ -2744,19 +2744,19 @@ const gu = { key: 1 }, vu = {
|
|
|
2744
2744
|
list: ["\u7EC4\u4EF6\u5C5E\u6027", "\u5168\u5C40\u5C5E\u6027"]
|
|
2745
2745
|
}, {
|
|
2746
2746
|
default: f(({ index: G }) => {
|
|
2747
|
-
var
|
|
2747
|
+
var J;
|
|
2748
2748
|
return [
|
|
2749
2749
|
G ? (m(), x(et, {
|
|
2750
2750
|
key: 0,
|
|
2751
2751
|
title: "\u5168\u5C40\u5C5E\u6027"
|
|
2752
2752
|
}, {
|
|
2753
2753
|
default: f(() => [
|
|
2754
|
-
d(
|
|
2754
|
+
d(h, {
|
|
2755
2755
|
model: _(r),
|
|
2756
2756
|
layout: "vertical"
|
|
2757
2757
|
}, {
|
|
2758
2758
|
default: f(() => [
|
|
2759
|
-
(m(!0), z(
|
|
2759
|
+
(m(!0), z(te, null, ce(k.value, (K, w) => (m(), z(te, { key: w }, [
|
|
2760
2760
|
K.show ? (m(), x(qe, {
|
|
2761
2761
|
key: 0,
|
|
2762
2762
|
"model-value": _(r)[w],
|
|
@@ -2764,7 +2764,7 @@ const gu = { key: 1 }, vu = {
|
|
|
2764
2764
|
"element-type": K.type,
|
|
2765
2765
|
"element-props": { options: K.options },
|
|
2766
2766
|
label: A.$t(`fe.config.${w}`),
|
|
2767
|
-
"onUpdate:modelValue": (
|
|
2767
|
+
"onUpdate:modelValue": (S) => _(r)[w] = S
|
|
2768
2768
|
}, null, 8, ["model-value", "type", "element-type", "element-props", "label", "onUpdate:modelValue"])) : L("", !0)
|
|
2769
2769
|
], 64))), 128))
|
|
2770
2770
|
]),
|
|
@@ -2772,15 +2772,15 @@ const gu = { key: 1 }, vu = {
|
|
|
2772
2772
|
}, 8, ["model"])
|
|
2773
2773
|
]),
|
|
2774
2774
|
_: 1
|
|
2775
|
-
})) : (m(), z(
|
|
2776
|
-
(
|
|
2775
|
+
})) : (m(), z(te, { key: 1 }, [
|
|
2776
|
+
(J = b.value) != null && J.options ? (m(), x(h, {
|
|
2777
2777
|
key: 0,
|
|
2778
|
-
model:
|
|
2778
|
+
model: b.value,
|
|
2779
2779
|
layout: "vertical"
|
|
2780
2780
|
}, {
|
|
2781
2781
|
default: f(() => [
|
|
2782
|
-
(m(!0), z(
|
|
2783
|
-
K.list.length || K.type === "base" ? (m(), z(
|
|
2782
|
+
(m(!0), z(te, null, ce($.value, (K, w) => (m(), z(te, { key: w }, [
|
|
2783
|
+
K.list.length || K.type === "base" ? (m(), z(te, { key: 0 }, [
|
|
2784
2784
|
K.type === "boolean" ? (m(), x(et, {
|
|
2785
2785
|
key: 0,
|
|
2786
2786
|
title: K.title
|
|
@@ -2788,13 +2788,13 @@ const gu = { key: 1 }, vu = {
|
|
|
2788
2788
|
default: f(() => [
|
|
2789
2789
|
d(v, { wrap: "" }, {
|
|
2790
2790
|
default: f(() => [
|
|
2791
|
-
(m(!0), z(
|
|
2792
|
-
key:
|
|
2793
|
-
"model-value":
|
|
2794
|
-
"onUpdate:modelValue": (
|
|
2791
|
+
(m(!0), z(te, null, ce(K.list, (S) => (m(), x(p, {
|
|
2792
|
+
key: S.model,
|
|
2793
|
+
"model-value": b.value.options[S.model],
|
|
2794
|
+
"onUpdate:modelValue": (j) => E(`options.${S.model}`)(j)
|
|
2795
2795
|
}, {
|
|
2796
2796
|
default: f(() => [
|
|
2797
|
-
P(
|
|
2797
|
+
P(ne(_(u)(`fe.panel.${S.model}`)), 1)
|
|
2798
2798
|
]),
|
|
2799
2799
|
_: 2
|
|
2800
2800
|
}, 1032, ["model-value", "onUpdate:modelValue"]))), 128))
|
|
@@ -2808,38 +2808,38 @@ const gu = { key: 1 }, vu = {
|
|
|
2808
2808
|
title: K.title
|
|
2809
2809
|
}, {
|
|
2810
2810
|
default: f(() => [
|
|
2811
|
-
K.type === "base" ? (m(), z(
|
|
2811
|
+
K.type === "base" ? (m(), z(te, { key: 0 }, [
|
|
2812
2812
|
d(qe, {
|
|
2813
|
-
"model-value":
|
|
2813
|
+
"model-value": b.value.type,
|
|
2814
2814
|
field: "type",
|
|
2815
2815
|
"element-type": "input",
|
|
2816
2816
|
label: "\u7C7B\u578B",
|
|
2817
2817
|
disabled: ""
|
|
2818
2818
|
}, null, 8, ["model-value"]),
|
|
2819
2819
|
d(qe, {
|
|
2820
|
-
"model-value":
|
|
2820
|
+
"model-value": b.value.name,
|
|
2821
2821
|
field: "name",
|
|
2822
2822
|
"element-type": "input",
|
|
2823
2823
|
label: "\u6807\u9898",
|
|
2824
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
2824
|
+
"onUpdate:modelValue": C[0] || (C[0] = (S) => E("name")(S))
|
|
2825
2825
|
}, null, 8, ["model-value"]),
|
|
2826
|
-
|
|
2826
|
+
b.value.category === "basic" ? (m(), x(qe, {
|
|
2827
2827
|
key: 0,
|
|
2828
|
-
"model-value":
|
|
2828
|
+
"model-value": b.value.model,
|
|
2829
2829
|
field: "model",
|
|
2830
2830
|
"element-type": "input",
|
|
2831
2831
|
label: "\u6570\u636E\u6E90",
|
|
2832
2832
|
"form-props": { tooltip: "\u91CD\u8981\u9009\u9879" },
|
|
2833
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
2833
|
+
"onUpdate:modelValue": C[1] || (C[1] = (S) => E("model")(S))
|
|
2834
2834
|
}, null, 8, ["model-value"])) : L("", !0)
|
|
2835
2835
|
], 64)) : L("", !0),
|
|
2836
|
-
(m(!0), z(
|
|
2837
|
-
key:
|
|
2838
|
-
label: _(u)(`fe.panel.${
|
|
2839
|
-
"model-value":
|
|
2840
|
-
"element-type":
|
|
2841
|
-
"element-props": { options:
|
|
2842
|
-
"onUpdate:modelValue": (
|
|
2836
|
+
(m(!0), z(te, null, ce(K.list, (S, j) => (m(), x(qe, {
|
|
2837
|
+
key: j,
|
|
2838
|
+
label: _(u)(`fe.panel.${S.model}`),
|
|
2839
|
+
"model-value": b.value.options[S.model],
|
|
2840
|
+
"element-type": S.type,
|
|
2841
|
+
"element-props": { options: S.options },
|
|
2842
|
+
"onUpdate:modelValue": (ue) => F(S.model, ue)
|
|
2843
2843
|
}, null, 8, ["label", "model-value", "element-type", "element-props", "onUpdate:modelValue"]))), 128))
|
|
2844
2844
|
]),
|
|
2845
2845
|
_: 2
|
|
@@ -2854,16 +2854,16 @@ const gu = { key: 1 }, vu = {
|
|
|
2854
2854
|
}),
|
|
2855
2855
|
_: 1
|
|
2856
2856
|
}, 8, ["tab-index"])),
|
|
2857
|
-
d(
|
|
2857
|
+
d(D, {
|
|
2858
2858
|
type: "secondary",
|
|
2859
2859
|
status: "normal",
|
|
2860
2860
|
size: "mini",
|
|
2861
2861
|
class: "arco-btn-light u-page__arrow",
|
|
2862
|
-
style:
|
|
2862
|
+
style: ie({ borderRightWidth: a.value ? "1px" : "0" }),
|
|
2863
2863
|
onClick: C[3] || (C[3] = (G) => a.value = !a.value)
|
|
2864
2864
|
}, {
|
|
2865
2865
|
icon: f(() => [
|
|
2866
|
-
a.value ? (m(), x(
|
|
2866
|
+
a.value ? (m(), x(R, { key: 1 })) : (m(), x(T, { key: 0 }))
|
|
2867
2867
|
]),
|
|
2868
2868
|
_: 1
|
|
2869
2869
|
}, 8, ["style"])
|
|
@@ -2933,7 +2933,7 @@ const kt = (e, t) => {
|
|
|
2933
2933
|
function Ou(e, t) {
|
|
2934
2934
|
const n = y("a-date-picker"), o = y("a-range-picker");
|
|
2935
2935
|
return m(), z("div", null, [
|
|
2936
|
-
e.$attrs.multiple !== !0 ? (m(), x(n, xe(
|
|
2936
|
+
e.$attrs.multiple !== !0 ? (m(), x(n, xe(I({ key: 0 }, e.$attrs)), null, 16)) : (m(), x(o, xe(I({ key: 1 }, e.$attrs)), null, 16))
|
|
2937
2937
|
]);
|
|
2938
2938
|
}
|
|
2939
2939
|
const zu = /* @__PURE__ */ kt(Su, [["render", Ou]]), Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -2968,23 +2968,23 @@ const _t = /* @__PURE__ */ kt(Pu, [["render", Ru]]), ju = /* @__PURE__ */ Object
|
|
|
2968
2968
|
const g = y("a-input-number");
|
|
2969
2969
|
return m(), z("span", null, [
|
|
2970
2970
|
e.multiple === !0 ? (m(), z("div", Mu, [
|
|
2971
|
-
d(g,
|
|
2971
|
+
d(g, I(c.$attrs, {
|
|
2972
2972
|
style: { width: "auto" },
|
|
2973
2973
|
"model-value": l.value,
|
|
2974
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2974
|
+
"onUpdate:modelValue": s[0] || (s[0] = (b) => n("update:model-value", [b, r.value]))
|
|
2975
2975
|
}), null, 16, ["model-value"]),
|
|
2976
2976
|
s[3] || (s[3] = i("span", {
|
|
2977
2977
|
class: "arco-picker-separator",
|
|
2978
2978
|
style: { "min-width": "8px" }
|
|
2979
2979
|
}, " - ", -1)),
|
|
2980
|
-
d(g,
|
|
2980
|
+
d(g, I(c.$attrs, {
|
|
2981
2981
|
style: { width: "auto" },
|
|
2982
2982
|
"model-value": r.value,
|
|
2983
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
2983
|
+
"onUpdate:modelValue": s[1] || (s[1] = (b) => n("update:model-value", [l.value, b]))
|
|
2984
2984
|
}), null, 16, ["model-value"])
|
|
2985
|
-
])) : (m(), x(g,
|
|
2985
|
+
])) : (m(), x(g, I({ key: 1 }, c.$attrs, {
|
|
2986
2986
|
"model-value": Number(o.modelValue),
|
|
2987
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
2987
|
+
"onUpdate:modelValue": s[2] || (s[2] = (b) => n("update:model-value", b))
|
|
2988
2988
|
}), null, 16, ["model-value"]))
|
|
2989
2989
|
]);
|
|
2990
2990
|
};
|
|
@@ -2995,7 +2995,7 @@ const _t = /* @__PURE__ */ kt(Pu, [["render", Ru]]), ju = /* @__PURE__ */ Object
|
|
|
2995
2995
|
}, Symbol.toStringTag, { value: "Module" })), Wu = {};
|
|
2996
2996
|
function Uu(e, t) {
|
|
2997
2997
|
const n = y("a-select");
|
|
2998
|
-
return m(), x(n,
|
|
2998
|
+
return m(), x(n, I(e.$attrs, { "trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" } }), null, 16);
|
|
2999
2999
|
}
|
|
3000
3000
|
const Nu = /* @__PURE__ */ kt(Wu, [["render", Uu]]), qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3001
3001
|
__proto__: null,
|
|
@@ -3044,174 +3044,174 @@ const Lu = { class: "u-flex u-flex--start" }, Hu = { class: "u-flex__item" }, Gu
|
|
|
3044
3044
|
return Object.assign([], o.options).map(tt);
|
|
3045
3045
|
}
|
|
3046
3046
|
function l() {
|
|
3047
|
-
return a().filter((
|
|
3047
|
+
return a().filter((R) => R.show !== !1);
|
|
3048
3048
|
}
|
|
3049
3049
|
function r() {
|
|
3050
|
-
const
|
|
3051
|
-
return l().forEach((
|
|
3052
|
-
|
|
3053
|
-
}),
|
|
3050
|
+
const R = {};
|
|
3051
|
+
return l().forEach((D) => {
|
|
3052
|
+
R[D.name] = tt(D).defaultValue;
|
|
3053
|
+
}), R;
|
|
3054
3054
|
}
|
|
3055
3055
|
const c = Q(() => o.size), s = q({ ...r(), ...o.modelValue });
|
|
3056
3056
|
function g() {
|
|
3057
3057
|
return { "shaonq--search": !0, [`shaonq--search-${c.value}`]: !0 };
|
|
3058
3058
|
}
|
|
3059
|
-
const
|
|
3059
|
+
const b = q(l());
|
|
3060
3060
|
function E() {
|
|
3061
|
-
return Object.assign([],
|
|
3061
|
+
return Object.assign([], b.value);
|
|
3062
3062
|
}
|
|
3063
3063
|
function F() {
|
|
3064
|
-
|
|
3064
|
+
b.value.push({ type: "input", name: "", label: "" });
|
|
3065
3065
|
}
|
|
3066
|
-
function k(
|
|
3067
|
-
|
|
3066
|
+
function k(R, D) {
|
|
3067
|
+
b.value.splice(R, 1), delete s.value[D];
|
|
3068
3068
|
}
|
|
3069
3069
|
const $ = q(!1);
|
|
3070
3070
|
function A() {
|
|
3071
3071
|
u.value && u.value.clearValidate();
|
|
3072
3072
|
}
|
|
3073
3073
|
function C() {
|
|
3074
|
-
$.value = !0,
|
|
3074
|
+
$.value = !0, b.value = l(), s.value = { ...r() }, setTimeout(() => {
|
|
3075
3075
|
A(), $.value = !1;
|
|
3076
3076
|
}, 200);
|
|
3077
3077
|
}
|
|
3078
|
-
const
|
|
3079
|
-
label:
|
|
3080
|
-
value:
|
|
3081
|
-
disabled: E().some((
|
|
3078
|
+
const h = Q(() => a().map((R) => ({
|
|
3079
|
+
label: R.label,
|
|
3080
|
+
value: R.name,
|
|
3081
|
+
disabled: E().some((D) => D.name === R.name)
|
|
3082
3082
|
})));
|
|
3083
|
-
function p(
|
|
3084
|
-
const G = a().find((
|
|
3085
|
-
G && (
|
|
3083
|
+
function p(R, D) {
|
|
3084
|
+
const G = a().find((J) => J.name === D);
|
|
3085
|
+
G && (b.value[R] = tt(G), s.value[G.name] = b.value[R].defaultValue), s.value = to(
|
|
3086
3086
|
s.value,
|
|
3087
|
-
E().map((
|
|
3087
|
+
E().map((J) => J.name)
|
|
3088
3088
|
), A();
|
|
3089
3089
|
}
|
|
3090
3090
|
function v() {
|
|
3091
|
-
return Object.keys(s.value).reduce((
|
|
3092
|
-
const G = s.value[
|
|
3093
|
-
return fn(G) ?
|
|
3091
|
+
return Object.keys(s.value).reduce((R, D) => {
|
|
3092
|
+
const G = s.value[D];
|
|
3093
|
+
return fn(G) ? R[D] = G.some((J) => !!J) ? G.join(",") : "" : R[D] = G, R;
|
|
3094
3094
|
}, {});
|
|
3095
3095
|
}
|
|
3096
3096
|
function B() {
|
|
3097
3097
|
n("update:modelValue", v());
|
|
3098
3098
|
}
|
|
3099
|
-
async function
|
|
3100
|
-
u.value && await new Promise((
|
|
3099
|
+
async function T() {
|
|
3100
|
+
u.value && await new Promise((D) => {
|
|
3101
3101
|
var G;
|
|
3102
|
-
(G = u.value) == null || G.validate((
|
|
3103
|
-
var w,
|
|
3104
|
-
const K = (
|
|
3105
|
-
K && So.warning(`\u8BF7\u8F93\u5165${K}`),
|
|
3102
|
+
(G = u.value) == null || G.validate((J) => {
|
|
3103
|
+
var w, S;
|
|
3104
|
+
const K = (S = (w = Object.values({ ...J })) == null ? void 0 : w[0]) == null ? void 0 : S.label;
|
|
3105
|
+
K && So.warning(`\u8BF7\u8F93\u5165${K}`), D(!J);
|
|
3106
3106
|
});
|
|
3107
3107
|
}) && n("onSearch", v());
|
|
3108
3108
|
}
|
|
3109
|
-
return (
|
|
3110
|
-
const G = y("icon-refresh"),
|
|
3109
|
+
return (R, D) => {
|
|
3110
|
+
const G = y("icon-refresh"), J = y("a-button"), K = y("a-select"), w = y("a-form-item"), S = y("icon-plus-circle"), j = y("icon-delete"), ue = y("a-space"), fe = y("a-input-group"), be = y("icon-search"), ve = y("a-form");
|
|
3111
3111
|
return m(), z("div", {
|
|
3112
|
-
class:
|
|
3112
|
+
class: de(g())
|
|
3113
3113
|
}, [
|
|
3114
|
-
Y(
|
|
3114
|
+
Y(R.$slots, "head"),
|
|
3115
3115
|
i("div", Lu, [
|
|
3116
3116
|
i("div", Hu, [
|
|
3117
|
-
d(
|
|
3117
|
+
d(ue, {
|
|
3118
3118
|
size: 1,
|
|
3119
3119
|
align: "start"
|
|
3120
3120
|
}, {
|
|
3121
3121
|
default: f(() => [
|
|
3122
|
-
o.readonly ? L("", !0) : (m(), x(
|
|
3122
|
+
o.readonly ? L("", !0) : (m(), x(J, {
|
|
3123
3123
|
key: 0,
|
|
3124
3124
|
type: "outline",
|
|
3125
3125
|
class: "arco-btn-light",
|
|
3126
3126
|
size: c.value,
|
|
3127
3127
|
title: "\u91CD\u7F6E\u641C\u7D22\u6761\u4EF6",
|
|
3128
3128
|
loading: $.value,
|
|
3129
|
-
onClick:
|
|
3129
|
+
onClick: D[0] || (D[0] = (W) => C())
|
|
3130
3130
|
}, {
|
|
3131
3131
|
icon: f(() => [
|
|
3132
3132
|
d(G)
|
|
3133
3133
|
]),
|
|
3134
3134
|
_: 1
|
|
3135
3135
|
}, 8, ["size", "loading"])),
|
|
3136
|
-
d(
|
|
3136
|
+
d(ve, {
|
|
3137
3137
|
ref_key: "formRef",
|
|
3138
3138
|
ref: u,
|
|
3139
3139
|
model: s.value
|
|
3140
3140
|
}, {
|
|
3141
3141
|
default: f(() => [
|
|
3142
|
-
d(
|
|
3142
|
+
d(ue, {
|
|
3143
3143
|
size: c.value,
|
|
3144
3144
|
wrap: ""
|
|
3145
3145
|
}, {
|
|
3146
3146
|
default: f(() => [
|
|
3147
|
-
(m(!0), z(
|
|
3148
|
-
key:
|
|
3147
|
+
(m(!0), z(te, null, ce(b.value, (W, ae) => (m(), x(fe, {
|
|
3148
|
+
key: ae,
|
|
3149
3149
|
size: c.value
|
|
3150
3150
|
}, {
|
|
3151
3151
|
default: f(() => [
|
|
3152
|
-
d(
|
|
3152
|
+
d(ue, { size: 1 }, {
|
|
3153
3153
|
default: f(() => [
|
|
3154
3154
|
o.readonly ? (m(), z("div", {
|
|
3155
3155
|
key: 1,
|
|
3156
|
-
style:
|
|
3157
|
-
},
|
|
3156
|
+
style: ie({ width: o.labelWidth })
|
|
3157
|
+
}, ne(W.label), 5)) : (m(), x(K, {
|
|
3158
3158
|
key: 0,
|
|
3159
|
-
"model-value":
|
|
3160
|
-
options:
|
|
3161
|
-
style:
|
|
3159
|
+
"model-value": W.name,
|
|
3160
|
+
options: h.value,
|
|
3161
|
+
style: ie({ width: o.labelWidth }),
|
|
3162
3162
|
placeholder: "\u5B57\u6BB5\u540D\u79F0",
|
|
3163
3163
|
"allow-search": "",
|
|
3164
3164
|
size: c.value,
|
|
3165
3165
|
"trigger-props": { autoFitPopupMinWidth: !0, contentClass: "arco-trigger-content-size-small" },
|
|
3166
|
-
onChange: (
|
|
3166
|
+
onChange: (M) => p(ae, M)
|
|
3167
3167
|
}, null, 8, ["model-value", "options", "style", "size", "onChange"])),
|
|
3168
3168
|
d(w, {
|
|
3169
3169
|
"no-style": "",
|
|
3170
|
-
field:
|
|
3171
|
-
label:
|
|
3172
|
-
required:
|
|
3173
|
-
rules:
|
|
3170
|
+
field: W.name,
|
|
3171
|
+
label: W.label,
|
|
3172
|
+
required: W.required,
|
|
3173
|
+
rules: W.rules
|
|
3174
3174
|
}, {
|
|
3175
3175
|
default: f(() => [
|
|
3176
|
-
(m(), x(Ee(_(Ku)(
|
|
3177
|
-
modelValue: s.value[
|
|
3178
|
-
"onUpdate:modelValue": (
|
|
3176
|
+
(m(), x(Ee(_(Ku)(W.type)), I({
|
|
3177
|
+
modelValue: s.value[W.name],
|
|
3178
|
+
"onUpdate:modelValue": (M) => s.value[W.name] = M,
|
|
3179
3179
|
size: c.value,
|
|
3180
3180
|
style: { width: o.inputWidth },
|
|
3181
3181
|
autocomplete: "off",
|
|
3182
|
-
readonly: !
|
|
3182
|
+
readonly: !W.name,
|
|
3183
3183
|
"allow-clear": "",
|
|
3184
3184
|
ref_for: !0
|
|
3185
|
-
}, _(eo)(
|
|
3186
|
-
onChange:
|
|
3187
|
-
onPressEnter:
|
|
3185
|
+
}, _(eo)(W, ["label", "defaultValue", "type", "show"]), {
|
|
3186
|
+
onChange: D[1] || (D[1] = (M) => B()),
|
|
3187
|
+
onPressEnter: D[2] || (D[2] = (M) => T())
|
|
3188
3188
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "size", "style", "readonly"]))
|
|
3189
3189
|
]),
|
|
3190
3190
|
_: 2
|
|
3191
3191
|
}, 1032, ["field", "label", "required", "rules"]),
|
|
3192
|
-
o.readonly ? L("", !0) : (m(), z(
|
|
3193
|
-
|
|
3192
|
+
o.readonly ? L("", !0) : (m(), z(te, { key: 2 }, [
|
|
3193
|
+
ae ? (m(), x(J, {
|
|
3194
3194
|
key: 1,
|
|
3195
3195
|
type: "primary",
|
|
3196
3196
|
class: "arco-btn-light",
|
|
3197
3197
|
title: "\u5220\u9664",
|
|
3198
3198
|
size: c.value,
|
|
3199
|
-
onClick: (
|
|
3199
|
+
onClick: (M) => k(ae, W.name)
|
|
3200
3200
|
}, {
|
|
3201
3201
|
icon: f(() => [
|
|
3202
|
-
d(
|
|
3202
|
+
d(j)
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 2
|
|
3205
|
-
}, 1032, ["size", "onClick"])) : (m(), x(
|
|
3205
|
+
}, 1032, ["size", "onClick"])) : (m(), x(J, {
|
|
3206
3206
|
key: 0,
|
|
3207
3207
|
type: "primary",
|
|
3208
3208
|
class: "arco-btn-light",
|
|
3209
3209
|
title: "\u6DFB\u52A0",
|
|
3210
3210
|
size: c.value,
|
|
3211
|
-
onClick:
|
|
3211
|
+
onClick: D[3] || (D[3] = (M) => F())
|
|
3212
3212
|
}, {
|
|
3213
3213
|
icon: f(() => [
|
|
3214
|
-
d(
|
|
3214
|
+
d(S)
|
|
3215
3215
|
]),
|
|
3216
3216
|
_: 1
|
|
3217
3217
|
}, 8, ["size"]))
|
|
@@ -3222,21 +3222,21 @@ const Lu = { class: "u-flex u-flex--start" }, Hu = { class: "u-flex__item" }, Gu
|
|
|
3222
3222
|
]),
|
|
3223
3223
|
_: 2
|
|
3224
3224
|
}, 1032, ["size"]))), 128)),
|
|
3225
|
-
Y(
|
|
3226
|
-
d(
|
|
3225
|
+
Y(R.$slots, "default"),
|
|
3226
|
+
d(ue, { size: c.value }, {
|
|
3227
3227
|
default: f(() => [
|
|
3228
|
-
d(
|
|
3228
|
+
d(J, {
|
|
3229
3229
|
type: "primary",
|
|
3230
3230
|
loading: o.loading,
|
|
3231
3231
|
title: "\u641C\u7D22",
|
|
3232
3232
|
size: c.value,
|
|
3233
|
-
onClick:
|
|
3233
|
+
onClick: D[4] || (D[4] = (W) => T())
|
|
3234
3234
|
}, {
|
|
3235
3235
|
icon: f(() => [
|
|
3236
3236
|
d(be)
|
|
3237
3237
|
]),
|
|
3238
3238
|
default: f(() => [
|
|
3239
|
-
|
|
3239
|
+
D[5] || (D[5] = P(" \u641C\u7D22 "))
|
|
3240
3240
|
]),
|
|
3241
3241
|
_: 1
|
|
3242
3242
|
}, 8, ["loading", "size"])
|
|
@@ -3377,30 +3377,30 @@ const ro = /* @__PURE__ */ H({
|
|
|
3377
3377
|
setup(e, { expose: t, emit: n }) {
|
|
3378
3378
|
const o = e;
|
|
3379
3379
|
function u(w) {
|
|
3380
|
-
const
|
|
3381
|
-
return o.config.forEach((
|
|
3382
|
-
|
|
3383
|
-
}),
|
|
3380
|
+
const S = { ...w };
|
|
3381
|
+
return o.config.forEach((j) => {
|
|
3382
|
+
j.dotNotation && j.model && (S[j.model] = ao(S[j.model]));
|
|
3383
|
+
}), S;
|
|
3384
3384
|
}
|
|
3385
3385
|
function a(w) {
|
|
3386
|
-
const
|
|
3387
|
-
return o.config.forEach((
|
|
3388
|
-
|
|
3389
|
-
}),
|
|
3386
|
+
const S = { ...w };
|
|
3387
|
+
return o.config.forEach((j) => {
|
|
3388
|
+
j.dotNotation && j.model && (S[j.model] = yt(S[j.model]));
|
|
3389
|
+
}), S;
|
|
3390
3390
|
}
|
|
3391
3391
|
const l = n, r = q(), c = (w) => typeof w == "string" && ["a-input", "a-textarea"].includes(w) ? { autocomplete: "new-password" } : null;
|
|
3392
3392
|
function s(w) {
|
|
3393
3393
|
return Object.fromEntries(
|
|
3394
|
-
Object.values(o.config).filter((
|
|
3395
|
-
var
|
|
3396
|
-
return [
|
|
3394
|
+
Object.values(o.config).filter((S) => S.model).map((S) => {
|
|
3395
|
+
var j;
|
|
3396
|
+
return [S.model, w ? w(S) : (j = S.defaultValue) != null ? j : null];
|
|
3397
3397
|
})
|
|
3398
3398
|
);
|
|
3399
3399
|
}
|
|
3400
|
-
const [g,
|
|
3400
|
+
const [g, b] = Re(
|
|
3401
3401
|
s((w) => {
|
|
3402
|
-
var
|
|
3403
|
-
return (
|
|
3402
|
+
var S, j;
|
|
3403
|
+
return (j = (S = w == null ? void 0 : w.options) == null ? void 0 : S.options) != null ? j : [];
|
|
3404
3404
|
})
|
|
3405
3405
|
), [E] = Re(s((w) => (w == null ? void 0 : w.show) !== !1)), [F, k] = Re(u({ ...s(), ...o.modelValue }), r);
|
|
3406
3406
|
function $(w) {
|
|
@@ -3415,10 +3415,10 @@ const ro = /* @__PURE__ */ H({
|
|
|
3415
3415
|
if (w.customClass)
|
|
3416
3416
|
return typeof w.customClass == "function" ? w.customClass(w, F.value) : w;
|
|
3417
3417
|
}
|
|
3418
|
-
const
|
|
3419
|
-
getModelOption(w,
|
|
3420
|
-
const
|
|
3421
|
-
return
|
|
3418
|
+
const h = {
|
|
3419
|
+
getModelOption(w, S) {
|
|
3420
|
+
const j = g.value[w];
|
|
3421
|
+
return S ? j == null ? void 0 : j.find((ue) => ue.value === S) : j;
|
|
3422
3422
|
},
|
|
3423
3423
|
getModels() {
|
|
3424
3424
|
return F.value;
|
|
@@ -3429,44 +3429,44 @@ const ro = /* @__PURE__ */ H({
|
|
|
3429
3429
|
getShow(w) {
|
|
3430
3430
|
return E.value[w];
|
|
3431
3431
|
},
|
|
3432
|
-
setModelOption(w,
|
|
3433
|
-
g.value[w] =
|
|
3432
|
+
setModelOption(w, S) {
|
|
3433
|
+
g.value[w] = S;
|
|
3434
3434
|
},
|
|
3435
|
-
setModel(w,
|
|
3436
|
-
!w || (typeof w == "string" ? F.value[w] =
|
|
3435
|
+
setModel(w, S) {
|
|
3436
|
+
!w || (typeof w == "string" ? F.value[w] = S : F.value = { ...F.value, ...w }, A());
|
|
3437
3437
|
},
|
|
3438
|
-
setShow(w,
|
|
3439
|
-
(Array.isArray(w) ? w : [w]).forEach((
|
|
3440
|
-
E.value[
|
|
3438
|
+
setShow(w, S) {
|
|
3439
|
+
(Array.isArray(w) ? w : [w]).forEach((ue) => {
|
|
3440
|
+
E.value[ue] = S;
|
|
3441
3441
|
});
|
|
3442
3442
|
}
|
|
3443
|
-
}, p = (w) => ({ ...
|
|
3444
|
-
const { options:
|
|
3445
|
-
return typeof
|
|
3446
|
-
}, { setModel:
|
|
3447
|
-
function
|
|
3448
|
-
return (
|
|
3443
|
+
}, p = (w) => ({ ...h, model: w.model, ...w.events, getFormItem: () => w }), v = ({ options: w }) => o.disabled || !!(w != null && w.disabled), B = (w) => {
|
|
3444
|
+
const { options: S, rules: j, name: ue } = w;
|
|
3445
|
+
return typeof j == "function" ? j({ ...w }, p(w)) : j || (S != null && S.required ? [{ required: !0, message: `\u8BF7\u8F93\u5165${ue}` }] : []);
|
|
3446
|
+
}, { setModel: T, setModelOption: R } = h;
|
|
3447
|
+
function D(w) {
|
|
3448
|
+
return (S) => T(w, S);
|
|
3449
3449
|
}
|
|
3450
3450
|
function G() {
|
|
3451
3451
|
o.config.forEach(async (w) => {
|
|
3452
|
-
var
|
|
3453
|
-
if (typeof ((
|
|
3454
|
-
const
|
|
3455
|
-
|
|
3452
|
+
var S;
|
|
3453
|
+
if (typeof ((S = w == null ? void 0 : w.events) == null ? void 0 : S.onMounted) == "function") {
|
|
3454
|
+
const j = await w.events.onMounted(p(w));
|
|
3455
|
+
j && w.model && R(w.model, j);
|
|
3456
3456
|
}
|
|
3457
3457
|
});
|
|
3458
3458
|
}
|
|
3459
|
-
async function
|
|
3460
|
-
var
|
|
3461
|
-
typeof ((
|
|
3459
|
+
async function J(w, S) {
|
|
3460
|
+
var j;
|
|
3461
|
+
typeof ((j = S.events) == null ? void 0 : j.onChange) == "function" && await S.events.onChange(w, p(S));
|
|
3462
3462
|
}
|
|
3463
|
-
|
|
3463
|
+
le(
|
|
3464
3464
|
() => o.modelValue,
|
|
3465
3465
|
() => {
|
|
3466
3466
|
F.value = u(o.modelValue);
|
|
3467
3467
|
},
|
|
3468
3468
|
{ deep: !1, immediate: !0 }
|
|
3469
|
-
),
|
|
3469
|
+
), le(
|
|
3470
3470
|
() => o.config,
|
|
3471
3471
|
() => {
|
|
3472
3472
|
E.value = s((w) => (w == null ? void 0 : w.show) !== !1);
|
|
@@ -3474,18 +3474,18 @@ const ro = /* @__PURE__ */ H({
|
|
|
3474
3474
|
);
|
|
3475
3475
|
async function K() {
|
|
3476
3476
|
return new Promise((w) => {
|
|
3477
|
-
r.value.validate((
|
|
3478
|
-
if (
|
|
3479
|
-
w([!0,
|
|
3477
|
+
r.value.validate((S) => {
|
|
3478
|
+
if (S)
|
|
3479
|
+
w([!0, S]), l("error", S);
|
|
3480
3480
|
else {
|
|
3481
|
-
const
|
|
3482
|
-
w([!1,
|
|
3481
|
+
const j = a(F.value);
|
|
3482
|
+
w([!1, j]), l("update:modelValue", j), l("submit", j);
|
|
3483
3483
|
}
|
|
3484
3484
|
});
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
3487
|
return Me(() => {
|
|
3488
|
-
k(),
|
|
3488
|
+
k(), b(), G();
|
|
3489
3489
|
}), t({
|
|
3490
3490
|
onSubmit: K,
|
|
3491
3491
|
onReset: k,
|
|
@@ -3493,9 +3493,9 @@ const ro = /* @__PURE__ */ H({
|
|
|
3493
3493
|
var w;
|
|
3494
3494
|
(w = r.value) == null || w.resetFields();
|
|
3495
3495
|
}
|
|
3496
|
-
}), (w,
|
|
3497
|
-
const
|
|
3498
|
-
return m(), x(
|
|
3496
|
+
}), (w, S) => {
|
|
3497
|
+
const j = y("a-form-item"), ue = y("a-col"), fe = y("a-row"), be = y("icon-save"), ve = y("a-button"), W = y("a-space"), ae = y("a-form");
|
|
3498
|
+
return m(), x(ae, I({
|
|
3499
3499
|
ref_key: "formRef",
|
|
3500
3500
|
ref: r,
|
|
3501
3501
|
model: _(F),
|
|
@@ -3506,60 +3506,60 @@ const ro = /* @__PURE__ */ H({
|
|
|
3506
3506
|
class: "orc-form"
|
|
3507
3507
|
}, o.formAttr, { size: "small" }), {
|
|
3508
3508
|
default: f(() => [
|
|
3509
|
-
d(
|
|
3509
|
+
d(fe, {
|
|
3510
3510
|
gutter: o.gutter
|
|
3511
3511
|
}, {
|
|
3512
3512
|
default: f(() => [
|
|
3513
|
-
(m(!0), z(
|
|
3514
|
-
var Ae,
|
|
3515
|
-
return m(), z(
|
|
3516
|
-
$(
|
|
3513
|
+
(m(!0), z(te, null, ce(o.config, (M, Se) => {
|
|
3514
|
+
var Ae, me;
|
|
3515
|
+
return m(), z(te, { key: Se }, [
|
|
3516
|
+
$(M) ? (m(), x(ue, I({
|
|
3517
3517
|
key: 0,
|
|
3518
3518
|
ref_for: !0
|
|
3519
3519
|
}, o.grid, {
|
|
3520
|
-
span: ((Ae =
|
|
3521
|
-
offset: (
|
|
3520
|
+
span: ((Ae = M.options) == null ? void 0 : Ae.span) || o.span,
|
|
3521
|
+
offset: (me = M.options) == null ? void 0 : me.offset
|
|
3522
3522
|
}), {
|
|
3523
3523
|
default: f(() => {
|
|
3524
3524
|
var Xe, Ie;
|
|
3525
3525
|
return [
|
|
3526
|
-
d(
|
|
3527
|
-
field:
|
|
3528
|
-
"row-class": C(
|
|
3529
|
-
label:
|
|
3530
|
-
"validate-trigger":
|
|
3531
|
-
rules: B(
|
|
3532
|
-
disabled: v(
|
|
3533
|
-
help: (Xe =
|
|
3534
|
-
tooltip: (Ie =
|
|
3526
|
+
d(j, I({
|
|
3527
|
+
field: M.model,
|
|
3528
|
+
"row-class": C(M),
|
|
3529
|
+
label: M.name,
|
|
3530
|
+
"validate-trigger": M.validateTrigger,
|
|
3531
|
+
rules: B(M),
|
|
3532
|
+
disabled: v(M),
|
|
3533
|
+
help: (Xe = M.options) == null ? void 0 : Xe.help,
|
|
3534
|
+
tooltip: (Ie = M.options) == null ? void 0 : Ie.tooltip,
|
|
3535
3535
|
"label-col-flex": o.labelWidth,
|
|
3536
3536
|
"asterisk-position": o.labelAlign === "right" ? "start" : "end",
|
|
3537
3537
|
ref_for: !0
|
|
3538
|
-
},
|
|
3538
|
+
}, M.itemAttr), {
|
|
3539
3539
|
default: f(() => [
|
|
3540
|
-
Y(w.$slots,
|
|
3541
|
-
utils: p(
|
|
3542
|
-
componentAttr: _(ut)(
|
|
3540
|
+
Y(w.$slots, M.model, I({
|
|
3541
|
+
utils: p(M),
|
|
3542
|
+
componentAttr: _(ut)(M, p(M)),
|
|
3543
3543
|
ref_for: !0
|
|
3544
|
-
}, { ...
|
|
3545
|
-
disabled: v(
|
|
3544
|
+
}, { ...M.model ? { value: _(F)[M.model], setValue: D(M.model), options: _(g)[M.model] } : {} }, {
|
|
3545
|
+
disabled: v(M)
|
|
3546
3546
|
}), () => {
|
|
3547
3547
|
var Oe;
|
|
3548
3548
|
return [
|
|
3549
|
-
(m(), x(Ee(
|
|
3549
|
+
(m(), x(Ee(M.type), I({
|
|
3550
3550
|
size: "small",
|
|
3551
|
-
"input-attrs": c(
|
|
3552
|
-
placeholder: (Oe =
|
|
3553
|
-
disabled: v(
|
|
3551
|
+
"input-attrs": c(M),
|
|
3552
|
+
placeholder: (Oe = M == null ? void 0 : M.options) == null ? void 0 : Oe.placeholder,
|
|
3553
|
+
disabled: v(M),
|
|
3554
3554
|
style: { width: "100%" },
|
|
3555
3555
|
ref_for: !0
|
|
3556
3556
|
}, {
|
|
3557
|
-
...
|
|
3558
|
-
..._(ut)(
|
|
3559
|
-
...typeof
|
|
3557
|
+
...M.model ? { modelValue: _(F)[M.model], options: _(g)[M.model] } : {},
|
|
3558
|
+
..._(ut)(M, p(M)),
|
|
3559
|
+
...typeof M.type != "string" ? { utils: p(M) } : {}
|
|
3560
3560
|
}, {
|
|
3561
|
-
onChange: (We) =>
|
|
3562
|
-
"onUpdate:modelValue": (We) => _(
|
|
3561
|
+
onChange: (We) => J(We, M),
|
|
3562
|
+
"onUpdate:modelValue": (We) => _(T)(`${M.model}`, We)
|
|
3563
3563
|
}), null, 16, ["input-attrs", "placeholder", "disabled", "onChange", "onUpdate:modelValue"]))
|
|
3564
3564
|
];
|
|
3565
3565
|
})
|
|
@@ -3577,20 +3577,20 @@ const ro = /* @__PURE__ */ H({
|
|
|
3577
3577
|
_: 3
|
|
3578
3578
|
}, 8, ["gutter"]),
|
|
3579
3579
|
Y(w.$slots, "default", { onSubmit: K }, () => [
|
|
3580
|
-
o.hideSubmit ? L("", !0) : (m(), x(
|
|
3580
|
+
o.hideSubmit ? L("", !0) : (m(), x(j, { key: 0 }, {
|
|
3581
3581
|
default: f(() => [
|
|
3582
|
-
d(
|
|
3582
|
+
d(W, null, {
|
|
3583
3583
|
default: f(() => [
|
|
3584
|
-
d(
|
|
3584
|
+
d(ve, {
|
|
3585
3585
|
type: "primary",
|
|
3586
3586
|
loading: o.loading,
|
|
3587
|
-
onClick:
|
|
3587
|
+
onClick: S[0] || (S[0] = (M) => K())
|
|
3588
3588
|
}, {
|
|
3589
3589
|
icon: f(() => [
|
|
3590
3590
|
d(be)
|
|
3591
3591
|
]),
|
|
3592
3592
|
default: f(() => [
|
|
3593
|
-
|
|
3593
|
+
S[1] || (S[1] = P(" \u4FDD\u5B58 "))
|
|
3594
3594
|
]),
|
|
3595
3595
|
_: 1
|
|
3596
3596
|
}, 8, ["loading"])
|
|
@@ -3635,7 +3635,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
3635
3635
|
return o.isView ? E : { ...E, disabled: o.disabled, type: "primary", size: "small", ...o.buttonAttrs, onClick: () => c() };
|
|
3636
3636
|
}
|
|
3637
3637
|
const g = q();
|
|
3638
|
-
async function
|
|
3638
|
+
async function b() {
|
|
3639
3639
|
const [E, F] = await g.value.onSubmit();
|
|
3640
3640
|
E || u("submit", {
|
|
3641
3641
|
data: F,
|
|
@@ -3654,13 +3654,13 @@ const ro = /* @__PURE__ */ H({
|
|
|
3654
3654
|
return m(), x(Ee(o.isView ? "div" : _(Oo)), xe(lt(s())), Ft({
|
|
3655
3655
|
default: f(() => [
|
|
3656
3656
|
Y(E.$slots, "default", {
|
|
3657
|
-
onSubmit:
|
|
3657
|
+
onSubmit: b,
|
|
3658
3658
|
onShow: c
|
|
3659
3659
|
}, () => [
|
|
3660
|
-
P(
|
|
3660
|
+
P(ne(o.title), 1)
|
|
3661
3661
|
]),
|
|
3662
3662
|
(m(), x(Lt, { to: "body" }, [
|
|
3663
|
-
d($,
|
|
3663
|
+
d($, I({
|
|
3664
3664
|
visible: _(a).visible,
|
|
3665
3665
|
title: o.title,
|
|
3666
3666
|
"title-align": "start",
|
|
@@ -3686,7 +3686,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
3686
3686
|
type: "primary",
|
|
3687
3687
|
size: o.size,
|
|
3688
3688
|
loading: _(a).loading,
|
|
3689
|
-
onClick: F[3] || (F[3] = (A) =>
|
|
3689
|
+
onClick: F[3] || (F[3] = (A) => b())
|
|
3690
3690
|
}, {
|
|
3691
3691
|
default: f(() => F[5] || (F[5] = [
|
|
3692
3692
|
P("\u786E\u8BA4 ")
|
|
@@ -3695,7 +3695,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
3695
3695
|
}, 8, ["size", "loading"])
|
|
3696
3696
|
]),
|
|
3697
3697
|
default: f(() => [
|
|
3698
|
-
d(ro,
|
|
3698
|
+
d(ro, I({
|
|
3699
3699
|
ref_key: "formRef",
|
|
3700
3700
|
ref: g,
|
|
3701
3701
|
"hide-submit": "",
|
|
@@ -3760,8 +3760,8 @@ const ro = /* @__PURE__ */ H({
|
|
|
3760
3760
|
l().forEach(async (A) => {
|
|
3761
3761
|
var C;
|
|
3762
3762
|
if (typeof ((C = A == null ? void 0 : A.events) == null ? void 0 : C.onMounted) == "function") {
|
|
3763
|
-
const
|
|
3764
|
-
|
|
3763
|
+
const h = await A.events.onMounted(n.utils);
|
|
3764
|
+
h && A.model && (a.value = h);
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
3767
|
}
|
|
@@ -3775,32 +3775,32 @@ const ro = /* @__PURE__ */ H({
|
|
|
3775
3775
|
const g = (A) => {
|
|
3776
3776
|
var C;
|
|
3777
3777
|
return n.disabled || !!((C = A == null ? void 0 : A.options) != null && C.disabled);
|
|
3778
|
-
},
|
|
3779
|
-
const A = l().reduce((
|
|
3778
|
+
}, b = () => {
|
|
3779
|
+
const A = l().reduce((h, p) => {
|
|
3780
3780
|
var v;
|
|
3781
|
-
return p.model && (
|
|
3781
|
+
return p.model && (h[p.model] = (v = p.defaultValue) != null ? v : null), h;
|
|
3782
3782
|
}, {}), C = c();
|
|
3783
3783
|
C.push(A), s(C);
|
|
3784
3784
|
}, E = () => {
|
|
3785
3785
|
const A = "_X_ROW_KEY", C = c();
|
|
3786
|
-
s([...C].filter((
|
|
3786
|
+
s([...C].filter((h) => !u.value.includes(h[A]))), u.value = [], o("update:selectedKeys", u.value);
|
|
3787
3787
|
};
|
|
3788
3788
|
async function F(A, C) {
|
|
3789
|
-
var
|
|
3790
|
-
typeof ((
|
|
3789
|
+
var h;
|
|
3790
|
+
typeof ((h = C.events) == null ? void 0 : h.onChange) == "function" && await C.events.onChange(A, n.utils);
|
|
3791
3791
|
}
|
|
3792
|
-
async function k(A, C,
|
|
3792
|
+
async function k(A, C, h) {
|
|
3793
3793
|
if (C) {
|
|
3794
|
-
const { rowIndex: p } = A, v = l().find((
|
|
3795
|
-
v && await F([
|
|
3794
|
+
const { rowIndex: p } = A, v = l().find((T) => T.model === C);
|
|
3795
|
+
v && await F([h, A], v);
|
|
3796
3796
|
const B = c();
|
|
3797
|
-
B[p][C] =
|
|
3797
|
+
B[p][C] = h, s(B);
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
3800
3800
|
return Me(() => {
|
|
3801
3801
|
r();
|
|
3802
3802
|
}), (A, C) => {
|
|
3803
|
-
const
|
|
3803
|
+
const h = y("a-link"), p = y("ASpace"), v = y("vxe-column");
|
|
3804
3804
|
return m(), x(_(At), {
|
|
3805
3805
|
ref: "tableRef",
|
|
3806
3806
|
"selected-keys": u.value,
|
|
@@ -3837,9 +3837,9 @@ const ro = /* @__PURE__ */ H({
|
|
|
3837
3837
|
align: n.hideTools === !0 ? "center" : "left",
|
|
3838
3838
|
"show-overflow": ""
|
|
3839
3839
|
}, null, 8, ["align"])) : L("", !0),
|
|
3840
|
-
(m(!0), z(
|
|
3841
|
-
var
|
|
3842
|
-
return m(), z(
|
|
3840
|
+
(m(!0), z(te, null, ce(l(), (B, T) => {
|
|
3841
|
+
var R;
|
|
3842
|
+
return m(), z(te, { key: T }, [
|
|
3843
3843
|
B.show !== !1 ? (m(), x(v, {
|
|
3844
3844
|
key: 0,
|
|
3845
3845
|
field: B.model,
|
|
@@ -3847,28 +3847,28 @@ const ro = /* @__PURE__ */ H({
|
|
|
3847
3847
|
width: B.width,
|
|
3848
3848
|
align: B.align,
|
|
3849
3849
|
"show-overflow": B.tooltip,
|
|
3850
|
-
"title-prefix": (
|
|
3850
|
+
"title-prefix": (R = B.options) != null && R.required ? { icon: "vxe-cell--required-icon" } : void 0
|
|
3851
3851
|
}, Ft({ _: 2 }, [
|
|
3852
3852
|
B.div !== !1 ? {
|
|
3853
3853
|
name: "default",
|
|
3854
|
-
fn: f((
|
|
3854
|
+
fn: f((D) => [
|
|
3855
3855
|
Y(A.$slots, B.model, {
|
|
3856
|
-
row:
|
|
3856
|
+
row: D.row,
|
|
3857
3857
|
model: B.model
|
|
3858
3858
|
}, () => [
|
|
3859
|
-
!B.type && B.model ? (m(), z("span",
|
|
3859
|
+
!B.type && B.model ? (m(), z("span", I({
|
|
3860
3860
|
key: 0,
|
|
3861
3861
|
ref_for: !0
|
|
3862
|
-
}, _(ut)(B, n.utils)),
|
|
3862
|
+
}, _(ut)(B, n.utils)), ne(typeof B.format == "function" ? B.format(D.row[B.model], D.row) : D.row[B.model]), 17)) : (m(), x(Ee(B.type), I({
|
|
3863
3863
|
key: 1,
|
|
3864
3864
|
size: "mini",
|
|
3865
3865
|
ref_for: !0
|
|
3866
3866
|
}, {
|
|
3867
|
-
...B.model ? { "model-value":
|
|
3867
|
+
...B.model ? { "model-value": D.row[B.model], options: a.value } : {},
|
|
3868
3868
|
..._(ut)(B, n.utils)
|
|
3869
3869
|
}, {
|
|
3870
3870
|
disabled: g(B),
|
|
3871
|
-
"onUpdate:modelValue": (G) => k(
|
|
3871
|
+
"onUpdate:modelValue": (G) => k(D, B.model, G)
|
|
3872
3872
|
}), null, 16, ["disabled", "onUpdate:modelValue"]))
|
|
3873
3873
|
])
|
|
3874
3874
|
]),
|
|
@@ -3886,16 +3886,16 @@ const ro = /* @__PURE__ */ H({
|
|
|
3886
3886
|
d(p, { size: "mini" }, {
|
|
3887
3887
|
default: f(() => [
|
|
3888
3888
|
n.hideTools !== !0 ? Y(A.$slots, "default", { key: 0 }, () => [
|
|
3889
|
-
d(
|
|
3889
|
+
d(h, {
|
|
3890
3890
|
disabled: g(),
|
|
3891
|
-
onClick: C[0] || (C[0] = (B) =>
|
|
3891
|
+
onClick: C[0] || (C[0] = (B) => b())
|
|
3892
3892
|
}, {
|
|
3893
3893
|
default: f(() => C[6] || (C[6] = [
|
|
3894
3894
|
P("\u65B0\u589E\u884C")
|
|
3895
3895
|
])),
|
|
3896
3896
|
_: 1
|
|
3897
3897
|
}, 8, ["disabled"]),
|
|
3898
|
-
d(
|
|
3898
|
+
d(h, {
|
|
3899
3899
|
status: "danger",
|
|
3900
3900
|
disabled: g() || !u.value.length,
|
|
3901
3901
|
onClick: C[1] || (C[1] = (B) => E())
|
|
@@ -3932,8 +3932,8 @@ const ro = /* @__PURE__ */ H({
|
|
|
3932
3932
|
emits: ["update:modelValue", "change"],
|
|
3933
3933
|
setup(e, { emit: t }) {
|
|
3934
3934
|
const n = e, { mergedDisabled: o, eventHandlers: u } = zo(), a = Q(() => {
|
|
3935
|
-
var
|
|
3936
|
-
return (
|
|
3935
|
+
var h;
|
|
3936
|
+
return (h = n.disabled) != null ? h : o.value;
|
|
3937
3937
|
}), l = t, [r, c] = Re({ visible: !1, keyword: "" });
|
|
3938
3938
|
function s() {
|
|
3939
3939
|
c({ visible: !1 });
|
|
@@ -3941,31 +3941,31 @@ const ro = /* @__PURE__ */ H({
|
|
|
3941
3941
|
function g() {
|
|
3942
3942
|
a.value || c({ visible: !0 });
|
|
3943
3943
|
}
|
|
3944
|
-
const { tableRef:
|
|
3945
|
-
function k(
|
|
3946
|
-
const p = { [n.keyword]: r.value.keyword, page:
|
|
3944
|
+
const { tableRef: b, selectedKeys: E, tableOptions: F } = sn(n.options);
|
|
3945
|
+
function k(h) {
|
|
3946
|
+
const p = { [n.keyword]: r.value.keyword, page: h };
|
|
3947
3947
|
return typeof (F == null ? void 0 : F.resolvePage) == "function" && F.resolvePage(p) ? F.resolvePage(p) : p;
|
|
3948
3948
|
}
|
|
3949
3949
|
function $() {
|
|
3950
|
-
var
|
|
3951
|
-
(
|
|
3950
|
+
var h;
|
|
3951
|
+
(h = b.value) == null || h.dataInit();
|
|
3952
3952
|
}
|
|
3953
|
-
function A(
|
|
3954
|
-
var B,
|
|
3955
|
-
const p = Object.assign([],
|
|
3956
|
-
var
|
|
3957
|
-
return
|
|
3953
|
+
function A(h) {
|
|
3954
|
+
var B, T;
|
|
3955
|
+
const p = Object.assign([], h), v = [...p].map((R) => {
|
|
3956
|
+
var D;
|
|
3957
|
+
return R[(D = n.nameKey) != null ? D : "name"];
|
|
3958
3958
|
});
|
|
3959
|
-
l("update:modelValue", yt(v)), l("change", { name: yt(v), data: p }), (
|
|
3959
|
+
l("update:modelValue", yt(v)), l("change", { name: yt(v), data: p }), (T = (B = u.value) == null ? void 0 : B.onChange) == null || T.call(B), s();
|
|
3960
3960
|
}
|
|
3961
|
-
function C({ row:
|
|
3962
|
-
n.options.selectedType === "radio" && A([
|
|
3961
|
+
function C({ row: h }) {
|
|
3962
|
+
n.options.selectedType === "radio" && A([h]);
|
|
3963
3963
|
}
|
|
3964
|
-
return (
|
|
3965
|
-
const v = y("a-input-search"), B = y("a-button"),
|
|
3964
|
+
return (h, p) => {
|
|
3965
|
+
const v = y("a-input-search"), B = y("a-button"), T = y("AModal");
|
|
3966
3966
|
return m(), x(Xu, null, {
|
|
3967
3967
|
default: f(() => [
|
|
3968
|
-
Y(
|
|
3968
|
+
Y(h.$slots, "default", {
|
|
3969
3969
|
value: n.modelValue,
|
|
3970
3970
|
disabled: a.value,
|
|
3971
3971
|
onShow: g
|
|
@@ -3979,9 +3979,9 @@ const ro = /* @__PURE__ */ H({
|
|
|
3979
3979
|
}, null, 8, ["size", "model-value"])
|
|
3980
3980
|
]),
|
|
3981
3981
|
(m(), x(Lt, { to: "body" }, [
|
|
3982
|
-
d(
|
|
3982
|
+
d(T, {
|
|
3983
3983
|
visible: _(r).visible,
|
|
3984
|
-
title:
|
|
3984
|
+
title: h.title,
|
|
3985
3985
|
"title-align": "start",
|
|
3986
3986
|
"mask-closable": !1,
|
|
3987
3987
|
size: n.size,
|
|
@@ -3995,7 +3995,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
3995
3995
|
footer: f(() => [
|
|
3996
3996
|
d(B, {
|
|
3997
3997
|
size: n.size,
|
|
3998
|
-
onClick: p[4] || (p[4] = (
|
|
3998
|
+
onClick: p[4] || (p[4] = (R) => s())
|
|
3999
3999
|
}, {
|
|
4000
4000
|
default: f(() => p[6] || (p[6] = [
|
|
4001
4001
|
P("\u53D6\u6D88 ")
|
|
@@ -4006,7 +4006,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
4006
4006
|
type: "primary",
|
|
4007
4007
|
size: n.size,
|
|
4008
4008
|
disabled: !_(E).length,
|
|
4009
|
-
onClick: p[5] || (p[5] = (
|
|
4009
|
+
onClick: p[5] || (p[5] = (R) => A(_(b).getSelection()))
|
|
4010
4010
|
}, {
|
|
4011
4011
|
default: f(() => p[7] || (p[7] = [
|
|
4012
4012
|
P("\u786E\u8BA4 ")
|
|
@@ -4015,14 +4015,14 @@ const ro = /* @__PURE__ */ H({
|
|
|
4015
4015
|
}, 8, ["size", "disabled"])
|
|
4016
4016
|
]),
|
|
4017
4017
|
default: f(() => {
|
|
4018
|
-
var
|
|
4018
|
+
var R;
|
|
4019
4019
|
return [
|
|
4020
4020
|
d(_(At), {
|
|
4021
4021
|
ref_key: "tableRef",
|
|
4022
|
-
ref:
|
|
4022
|
+
ref: b,
|
|
4023
4023
|
"selected-keys": _(E),
|
|
4024
|
-
"onUpdate:selectedKeys": p[3] || (p[3] = (
|
|
4025
|
-
data: (
|
|
4024
|
+
"onUpdate:selectedKeys": p[3] || (p[3] = (D) => Ct(E) ? E.value = D : null),
|
|
4025
|
+
data: (R = n.tableData) != null ? R : [],
|
|
4026
4026
|
"hide-setting": "",
|
|
4027
4027
|
option: { ..._(F), resolvePage: k },
|
|
4028
4028
|
height: 330,
|
|
@@ -4033,13 +4033,13 @@ const ro = /* @__PURE__ */ H({
|
|
|
4033
4033
|
n.pagination ? (m(), x(v, {
|
|
4034
4034
|
key: 0,
|
|
4035
4035
|
modelValue: _(r).keyword,
|
|
4036
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
4036
|
+
"onUpdate:modelValue": p[0] || (p[0] = (D) => _(r).keyword = D),
|
|
4037
4037
|
style: { width: "192px" },
|
|
4038
4038
|
placeholder: "\u6A21\u7CCA\u641C\u7D22",
|
|
4039
4039
|
"allow-clear": "",
|
|
4040
4040
|
size: n.size,
|
|
4041
|
-
onPressEnter: p[1] || (p[1] = (
|
|
4042
|
-
onSearch: p[2] || (p[2] = (
|
|
4041
|
+
onPressEnter: p[1] || (p[1] = (D) => $()),
|
|
4042
|
+
onSearch: p[2] || (p[2] = (D) => $())
|
|
4043
4043
|
}, null, 8, ["modelValue", "size"])) : L("", !0)
|
|
4044
4044
|
]),
|
|
4045
4045
|
_: 1
|
|
@@ -4067,9 +4067,9 @@ const hi = co(Yu), Fi = co(Zu), Ei = /* @__PURE__ */ H({
|
|
|
4067
4067
|
},
|
|
4068
4068
|
setup(e) {
|
|
4069
4069
|
return (t, n) => (m(), z("div", {
|
|
4070
|
-
style:
|
|
4070
|
+
style: ie(t.isShow ? { display: "block" } : { position: "absolute", clip: "rect(0px, 0px, 0px, 0px)", height: "0px", overflow: "auto" })
|
|
4071
4071
|
}, [
|
|
4072
|
-
i("div",
|
|
4072
|
+
i("div", I({
|
|
4073
4073
|
ref: "print$",
|
|
4074
4074
|
style: [{ position: "relative", width: "100%" }, { maxWidth: t.isDirection ? "297mm" : "210mm" }]
|
|
4075
4075
|
}, t.formProps), [
|
|
@@ -4301,11 +4301,11 @@ const tl = { class: "u-nos" }, ol = {
|
|
|
4301
4301
|
return m(), z("div", tl, [
|
|
4302
4302
|
i("div", {
|
|
4303
4303
|
class: "u-card__hd u-aside__hd",
|
|
4304
|
-
style:
|
|
4304
|
+
style: ie([{ borderBottomWidth: n.value ? "0px" : "1px" }, { height: "36px", "line-height": "36px", "border-bottom-color": "var(--color-neutral-2)" }])
|
|
4305
4305
|
}, [
|
|
4306
4306
|
i("div", null, [
|
|
4307
4307
|
Y(u.$slots, "title", {}, () => [
|
|
4308
|
-
i("strong", null,
|
|
4308
|
+
i("strong", null, ne(t.title), 1)
|
|
4309
4309
|
])
|
|
4310
4310
|
]),
|
|
4311
4311
|
i("span", {
|
|
@@ -4354,7 +4354,7 @@ const tl = { class: "u-nos" }, ol = {
|
|
|
4354
4354
|
lineColor: "#bec2c7",
|
|
4355
4355
|
textColor: "#999999",
|
|
4356
4356
|
displayDragPos: !0,
|
|
4357
|
-
dragPosFormat: (
|
|
4357
|
+
dragPosFormat: (b) => `${b}px`
|
|
4358
4358
|
}, g = document.querySelector(o);
|
|
4359
4359
|
!g || (u = new zt(g, {
|
|
4360
4360
|
...s,
|
|
@@ -4372,18 +4372,18 @@ const tl = { class: "u-nos" }, ol = {
|
|
|
4372
4372
|
if (u && a) {
|
|
4373
4373
|
const s = n.zoom * 1;
|
|
4374
4374
|
u.zoom = s, a.zoom = s, s < 0.9 && (u.unit = Math.floor(1 / s), a.unit = Math.floor(1 / s)), setTimeout(() => {
|
|
4375
|
-
var g,
|
|
4375
|
+
var g, b;
|
|
4376
4376
|
if (u && a && n.warpContainer) {
|
|
4377
4377
|
const E = document.querySelector(n.warpContainer);
|
|
4378
4378
|
if (!E)
|
|
4379
4379
|
return;
|
|
4380
|
-
const F = n.leftOffset + ((g = E == null ? void 0 : E.offsetLeft) != null ? g : 0), k = n.topOffset + ((
|
|
4380
|
+
const F = n.leftOffset + ((g = E == null ? void 0 : E.offsetLeft) != null ? g : 0), k = n.topOffset + ((b = E == null ? void 0 : E.offsetTop) != null ? b : 0);
|
|
4381
4381
|
u.scroll(-F / s), u.scrollGuides(-k / s), a.scroll(-k / s), a.scrollGuides(-(F - 30) / s);
|
|
4382
4382
|
}
|
|
4383
4383
|
}, 90);
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
4386
|
-
return
|
|
4386
|
+
return le(() => n.show, r), le(() => n.zoom, c), Me(() => {
|
|
4387
4387
|
r(), window.addEventListener("resize", c, !1);
|
|
4388
4388
|
}), ht(() => {
|
|
4389
4389
|
window.removeEventListener("resize", c, !1);
|
|
@@ -4413,11 +4413,11 @@ const ul = {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
}
|
|
4415
4415
|
);
|
|
4416
|
-
},
|
|
4416
|
+
}, b = () => {
|
|
4417
4417
|
_n("\u6253\u5370\u9884\u89C8", Pe("#preview_content_design")[0]);
|
|
4418
4418
|
};
|
|
4419
4419
|
return t({ show: s, hideModal: c }), (E, F) => {
|
|
4420
|
-
const k = y("a-spin"), $ = y("icon-printer"), A = y("a-button"), C = y("icon-download"),
|
|
4420
|
+
const k = y("a-spin"), $ = y("icon-printer"), A = y("a-button"), C = y("icon-download"), h = y("ASpace"), p = y("AModal");
|
|
4421
4421
|
return m(), x(p, {
|
|
4422
4422
|
title: "\u6253\u5370\u9884\u89C8",
|
|
4423
4423
|
visible: n.value,
|
|
@@ -4434,7 +4434,7 @@ const ul = {
|
|
|
4434
4434
|
i("strong", null, "\u6253\u5370\u9884\u89C8")
|
|
4435
4435
|
], -1)),
|
|
4436
4436
|
i("div", null, [
|
|
4437
|
-
d(
|
|
4437
|
+
d(h, null, {
|
|
4438
4438
|
default: f(() => [
|
|
4439
4439
|
d(A, {
|
|
4440
4440
|
loading: u.value,
|
|
@@ -4453,7 +4453,7 @@ const ul = {
|
|
|
4453
4453
|
d(A, {
|
|
4454
4454
|
type: "primary",
|
|
4455
4455
|
icon: "printer",
|
|
4456
|
-
onClick: je(
|
|
4456
|
+
onClick: je(b, ["stop"])
|
|
4457
4457
|
}, {
|
|
4458
4458
|
icon: f(() => [
|
|
4459
4459
|
d(C)
|
|
@@ -4489,7 +4489,7 @@ const ul = {
|
|
|
4489
4489
|
}, {
|
|
4490
4490
|
default: f(() => [
|
|
4491
4491
|
i("div", {
|
|
4492
|
-
style:
|
|
4492
|
+
style: ie([{ width: a.value + "mm", overflow: "hidden" }, { margin: "0 auto", background: "#fff", "box-shadow": "rgb(0 0 0 / 12%) 0 0 20px" }])
|
|
4493
4493
|
}, F[0] || (F[0] = [
|
|
4494
4494
|
i("div", { id: "preview_content_design" }, null, -1)
|
|
4495
4495
|
]), 4)
|
|
@@ -4510,7 +4510,7 @@ const ul = {
|
|
|
4510
4510
|
return t({ show: (c, s) => {
|
|
4511
4511
|
n.value = !0, u.value = c, a.value = s;
|
|
4512
4512
|
}, hideModal: l }), (c, s) => {
|
|
4513
|
-
const g = y("icon-lock"),
|
|
4513
|
+
const g = y("icon-lock"), b = y("icon-to-top"), E = y("icon-to-bottom"), F = y("ACard"), k = y("a-spin"), $ = y("a-button"), A = y("AModal");
|
|
4514
4514
|
return m(), x(A, {
|
|
4515
4515
|
title: "\u5E2E\u52A9\u6587\u6863",
|
|
4516
4516
|
visible: n.value,
|
|
@@ -4552,7 +4552,7 @@ const ul = {
|
|
|
4552
4552
|
}, {
|
|
4553
4553
|
default: f(() => [
|
|
4554
4554
|
i("div", {
|
|
4555
|
-
style:
|
|
4555
|
+
style: ie([{ width: o.value + "mm", overflow: "hidden" }, { margin: "0 auto" }])
|
|
4556
4556
|
}, [
|
|
4557
4557
|
d(F, null, {
|
|
4558
4558
|
default: f(() => [
|
|
@@ -4670,7 +4670,7 @@ const ul = {
|
|
|
4670
4670
|
i("tr", null, [
|
|
4671
4671
|
i("td", null, [
|
|
4672
4672
|
i("kbd", null, [
|
|
4673
|
-
d(
|
|
4673
|
+
d(b, { title: "\u7F6E\u4E0E\u9876\u5C42" })
|
|
4674
4674
|
])
|
|
4675
4675
|
]),
|
|
4676
4676
|
s[1] || (s[1] = i("td", null, "\u7B49\u6548\u8BBE\u7F6E \u6837\u5F0F-\u5143\u7D20\u5C42\u7EA7 = 9", -1))
|
|
@@ -4901,44 +4901,44 @@ const dl = {
|
|
|
4901
4901
|
function u() {
|
|
4902
4902
|
return t.tpl ? t.tpl.getSelectEls() : [];
|
|
4903
4903
|
}
|
|
4904
|
-
function a(
|
|
4905
|
-
var v, B,
|
|
4904
|
+
function a(h = !1) {
|
|
4905
|
+
var v, B, T, R, D, G, J, K, w;
|
|
4906
4906
|
const p = u();
|
|
4907
4907
|
if (p.length > 1) {
|
|
4908
|
-
const
|
|
4909
|
-
var
|
|
4910
|
-
return
|
|
4911
|
-
}, 0),
|
|
4912
|
-
return Math.max(10, +((
|
|
4908
|
+
const S = h ? "top" : "left", j = h ? "height" : "width", ue = p.reduce((W, ae) => {
|
|
4909
|
+
var M, Se;
|
|
4910
|
+
return W += (Se = (M = ae == null ? void 0 : ae.options) == null ? void 0 : M[j]) != null ? Se : 0, W;
|
|
4911
|
+
}, 0), fe = p.length - 1, ve = ((T = (B = (v = p[fe]) == null ? void 0 : v.options) == null ? void 0 : B[S]) != null ? T : 0) + ((G = (D = (R = p[fe]) == null ? void 0 : R.options) == null ? void 0 : D[j]) != null ? G : 0) - ((w = (K = (J = p[0]) == null ? void 0 : J.options) == null ? void 0 : K[S]) != null ? w : 0);
|
|
4912
|
+
return Math.max(10, +((ve - ue) / fe).toFixed(2));
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
4915
|
const l = () => {
|
|
4916
|
-
const
|
|
4916
|
+
const h = u(), p = h[h.length - 1];
|
|
4917
4917
|
p ? o.value = {
|
|
4918
4918
|
...p.options,
|
|
4919
4919
|
printElementType: p.printElementType.type
|
|
4920
4920
|
} : o.value = t.elementOptions;
|
|
4921
4921
|
};
|
|
4922
|
-
function r(
|
|
4923
|
-
n.value.updateOption(
|
|
4922
|
+
function r(h, p, v = !0) {
|
|
4923
|
+
n.value.updateOption(h, p), v && l();
|
|
4924
4924
|
}
|
|
4925
|
-
function c(
|
|
4925
|
+
function c(h, p) {
|
|
4926
4926
|
const v = { shape: "square", size: "small" };
|
|
4927
|
-
return
|
|
4927
|
+
return h && o.value && o.value[h] === p ? { ...v, style: { color: "rgb(var(--primary-6))" } } : v;
|
|
4928
4928
|
}
|
|
4929
|
-
|
|
4929
|
+
le(() => t.elementOptions, l);
|
|
4930
4930
|
function s() {
|
|
4931
4931
|
r("fontWeight", "line-through", !1), r("textDecoration", "none", !1), r("fontSize", "9", !1), r("fontWeight", "400");
|
|
4932
4932
|
}
|
|
4933
|
-
function g(
|
|
4933
|
+
function g(h) {
|
|
4934
4934
|
if (u().length === 1) {
|
|
4935
|
-
let p =
|
|
4936
|
-
|
|
4935
|
+
let p = h;
|
|
4936
|
+
h === "vertical" && (p = "center"), ["left", "vertical", "right"].includes(h) ? r("textAlign", p, !1) : r("textContentVerticalAlign", p, !1);
|
|
4937
4937
|
} else
|
|
4938
|
-
t.tpl && t.tpl.setElsAlign(
|
|
4938
|
+
t.tpl && t.tpl.setElsAlign(h);
|
|
4939
4939
|
l();
|
|
4940
4940
|
}
|
|
4941
|
-
const [
|
|
4941
|
+
const [b] = Re({
|
|
4942
4942
|
visible: !1,
|
|
4943
4943
|
fields: [],
|
|
4944
4944
|
list: [],
|
|
@@ -4946,122 +4946,112 @@ const dl = {
|
|
|
4946
4946
|
{ value: "field", label: "\u5B57\u6BB5\u540D" },
|
|
4947
4947
|
{ value: "string", label: "\u56FA\u5B9A\u503C " }
|
|
4948
4948
|
]
|
|
4949
|
-
}), E = (
|
|
4950
|
-
|
|
4949
|
+
}), E = (h) => {
|
|
4950
|
+
b.value.list.length > 1 && b.value.list.splice(h, 1);
|
|
4951
4951
|
}, F = () => {
|
|
4952
|
-
|
|
4952
|
+
b.value.list.push({ type: "field", field: "", value: "" });
|
|
4953
4953
|
}, k = () => {
|
|
4954
|
-
const
|
|
4955
|
-
r("dataType", "format", !1), r("format",
|
|
4954
|
+
const h = JSON.stringify(b.value.list);
|
|
4955
|
+
r("dataType", "format", !1), r("format", h), Pe(".hiprint-option-item-datatype-input-format").addClass("hiprint-option-item-datatype-format").val(h).trigger("change").show().siblings().hide().removeClass("hiprint-option-item-datatype-format");
|
|
4956
4956
|
};
|
|
4957
4957
|
function $() {
|
|
4958
4958
|
var p;
|
|
4959
|
-
const { printElementType:
|
|
4960
|
-
return String(
|
|
4959
|
+
const { printElementType: h } = (p = t.elementOptions) != null ? p : {};
|
|
4960
|
+
return String(h) !== "text";
|
|
4961
4961
|
}
|
|
4962
4962
|
function A() {
|
|
4963
|
-
var B,
|
|
4964
|
-
const { format:
|
|
4963
|
+
var B, T;
|
|
4964
|
+
const { format: h = "[]", printElementType: p } = (B = t.elementOptions) != null ? B : {};
|
|
4965
4965
|
if (String(p) !== "text")
|
|
4966
4966
|
return;
|
|
4967
|
-
|
|
4968
|
-
function v(
|
|
4969
|
-
return
|
|
4970
|
-
var
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
const R = (K = O == null ? void 0 : O.text) != null ? K : "", oe = R ? `[${R}.${(w = U.text) != null ? w : U.field}]` : U.text, me = R ? `${O == null ? void 0 : O.field}.${U.field}` : U.field;
|
|
4975
|
-
G.push({ label: oe, value: me });
|
|
4976
|
-
}
|
|
4977
|
-
if (U.type === "object" && ((D = U.fields) == null ? void 0 : D.length)) {
|
|
4978
|
-
const R = v(U.fields, U);
|
|
4979
|
-
G = G.concat(R);
|
|
4980
|
-
}
|
|
4981
|
-
return G;
|
|
4982
|
-
}, []);
|
|
4967
|
+
b.value.visible = !0;
|
|
4968
|
+
function v(R = []) {
|
|
4969
|
+
return R.filter((D) => D.field && D.type !== "table").map((D) => {
|
|
4970
|
+
var w, S;
|
|
4971
|
+
const G = D.field, K = { label: (w = D.text) != null ? w : G, value: G };
|
|
4972
|
+
return D.type === "object" && ((S = D.fields) == null ? void 0 : S.length) && (K.children = v(D.fields)), K;
|
|
4973
|
+
});
|
|
4983
4974
|
}
|
|
4984
|
-
|
|
4975
|
+
b.value.fields = v((T = t.tpl) == null ? void 0 : T.fields), b.value.list = [];
|
|
4985
4976
|
try {
|
|
4986
|
-
if (
|
|
4977
|
+
if (b.value.list = JSON.parse(h), !Array.isArray(b.value.list))
|
|
4987
4978
|
throw new Error("not array");
|
|
4988
|
-
} catch (
|
|
4989
|
-
console.warn(
|
|
4979
|
+
} catch (R) {
|
|
4980
|
+
console.warn(R), b.value.list = [];
|
|
4990
4981
|
}
|
|
4991
|
-
|
|
4982
|
+
b.value.list.length || F();
|
|
4992
4983
|
}
|
|
4993
|
-
function C(
|
|
4994
|
-
console.log(b);
|
|
4984
|
+
function C() {
|
|
4995
4985
|
}
|
|
4996
|
-
return (
|
|
4997
|
-
const v = y("AButton"), B = y("AButtonGroup"),
|
|
4986
|
+
return (h, p) => {
|
|
4987
|
+
const v = y("AButton"), B = y("AButtonGroup"), T = y("ADivider"), R = y("icon-lock"), D = y("icon-to-top"), G = y("icon-to-bottom"), J = y("icon-code"), K = y("ASpace"), w = y("a-select"), S = y("a-cascader"), j = y("a-input"), ue = y("icon-plus"), fe = y("a-button"), be = y("icon-minus"), ve = y("AModal");
|
|
4998
4988
|
return m(), z("div", dl, [
|
|
4999
4989
|
i("div", cl, [
|
|
5000
|
-
Y(
|
|
4990
|
+
Y(h.$slots, "left", { tools: n.value })
|
|
5001
4991
|
]),
|
|
5002
4992
|
i("div", pl, [
|
|
5003
4993
|
d(K, { size: "mini" }, {
|
|
5004
4994
|
default: f(() => [
|
|
5005
4995
|
d(B, { size: "mini" }, {
|
|
5006
4996
|
default: f(() => [
|
|
5007
|
-
d(v,
|
|
5008
|
-
onClick: p[0] || (p[0] = (
|
|
4997
|
+
d(v, I({ title: "\u9760\u5DE6\u5BF9\u9F50" }, c(), {
|
|
4998
|
+
onClick: p[0] || (p[0] = (W) => g("left"))
|
|
5009
4999
|
}), {
|
|
5010
5000
|
icon: f(() => [
|
|
5011
5001
|
d(_(X), { type: "icon-24gl-textAlignLeft" })
|
|
5012
5002
|
]),
|
|
5013
5003
|
_: 1
|
|
5014
5004
|
}, 16),
|
|
5015
|
-
d(v,
|
|
5016
|
-
onClick: p[1] || (p[1] = (
|
|
5005
|
+
d(v, I({ title: "\u5C45\u4E2D\u5BF9\u9F50" }, c(), {
|
|
5006
|
+
onClick: p[1] || (p[1] = (W) => g("vertical"))
|
|
5017
5007
|
}), {
|
|
5018
5008
|
icon: f(() => [
|
|
5019
5009
|
d(_(X), { type: "icon-24gl-textAlignCenter" })
|
|
5020
5010
|
]),
|
|
5021
5011
|
_: 1
|
|
5022
5012
|
}, 16),
|
|
5023
|
-
d(v,
|
|
5024
|
-
onClick: p[2] || (p[2] = (
|
|
5013
|
+
d(v, I({ title: "\u9760\u5DE6\u5BF9\u9F50" }, c(), {
|
|
5014
|
+
onClick: p[2] || (p[2] = (W) => g("right"))
|
|
5025
5015
|
}), {
|
|
5026
5016
|
icon: f(() => [
|
|
5027
5017
|
d(_(X), { type: "icon-24gl-textAlignRight" })
|
|
5028
5018
|
]),
|
|
5029
5019
|
_: 1
|
|
5030
5020
|
}, 16),
|
|
5031
|
-
d(v,
|
|
5032
|
-
onClick: p[3] || (p[3] = (
|
|
5021
|
+
d(v, I({ title: "\u9876\u7AEF\u5BF9\u9F50" }, c(), {
|
|
5022
|
+
onClick: p[3] || (p[3] = (W) => g("top"))
|
|
5033
5023
|
}), {
|
|
5034
5024
|
icon: f(() => [
|
|
5035
5025
|
d(_(X), { type: "icon-v-textAlignTop" })
|
|
5036
5026
|
]),
|
|
5037
5027
|
_: 1
|
|
5038
5028
|
}, 16),
|
|
5039
|
-
d(v,
|
|
5040
|
-
onClick: p[4] || (p[4] = (
|
|
5029
|
+
d(v, I({ title: "\u5C45\u4E2D\u5BF9\u9F50" }, c(), {
|
|
5030
|
+
onClick: p[4] || (p[4] = (W) => g("horizontal"))
|
|
5041
5031
|
}), {
|
|
5042
5032
|
icon: f(() => [
|
|
5043
5033
|
d(_(X), { type: "icon-v-textAlignCenter" })
|
|
5044
5034
|
]),
|
|
5045
5035
|
_: 1
|
|
5046
5036
|
}, 16),
|
|
5047
|
-
d(v,
|
|
5048
|
-
onClick: p[5] || (p[5] = (
|
|
5037
|
+
d(v, I({ title: "\u5E95\u90E8\u5BF9\u9F50" }, c(), {
|
|
5038
|
+
onClick: p[5] || (p[5] = (W) => g("bottom"))
|
|
5049
5039
|
}), {
|
|
5050
5040
|
icon: f(() => [
|
|
5051
5041
|
d(_(X), { type: "icon-v-textAlignBottom" })
|
|
5052
5042
|
]),
|
|
5053
5043
|
_: 1
|
|
5054
5044
|
}, 16),
|
|
5055
|
-
d(v,
|
|
5056
|
-
onClick: p[6] || (p[6] = (
|
|
5045
|
+
d(v, I({ title: "\u6C34\u5E73\u6392\u7248" }, c(), {
|
|
5046
|
+
onClick: p[6] || (p[6] = (W) => n.value.setElsSpace(!0, a()))
|
|
5057
5047
|
}), {
|
|
5058
5048
|
icon: f(() => [
|
|
5059
5049
|
d(_(X), { type: "icon-v-lineSpacing" })
|
|
5060
5050
|
]),
|
|
5061
5051
|
_: 1
|
|
5062
5052
|
}, 16),
|
|
5063
|
-
d(v,
|
|
5064
|
-
onClick: p[7] || (p[7] = (
|
|
5053
|
+
d(v, I({ title: "\u5782\u76F4\u6392\u7248" }, c(), {
|
|
5054
|
+
onClick: p[7] || (p[7] = (W) => n.value.setElsSpace(!1, a(!0)))
|
|
5065
5055
|
}), {
|
|
5066
5056
|
icon: f(() => [
|
|
5067
5057
|
d(_(X), { type: "icon-24gl-lineSpacing" })
|
|
@@ -5071,54 +5061,54 @@ const dl = {
|
|
|
5071
5061
|
]),
|
|
5072
5062
|
_: 1
|
|
5073
5063
|
}),
|
|
5074
|
-
d(
|
|
5064
|
+
d(T, {
|
|
5075
5065
|
direction: "vertical",
|
|
5076
5066
|
margin: 2
|
|
5077
5067
|
}),
|
|
5078
5068
|
d(B, { size: "mini" }, {
|
|
5079
5069
|
default: f(() => [
|
|
5080
|
-
d(v,
|
|
5081
|
-
onClick: p[8] || (p[8] = (
|
|
5070
|
+
d(v, I({ title: "\u6807\u9898" }, c(), {
|
|
5071
|
+
onClick: p[8] || (p[8] = (W) => r("fontSize", "19"))
|
|
5082
5072
|
}), {
|
|
5083
5073
|
icon: f(() => [
|
|
5084
5074
|
d(_(X), { type: "icon-24gl-title" })
|
|
5085
5075
|
]),
|
|
5086
5076
|
_: 1
|
|
5087
5077
|
}, 16),
|
|
5088
|
-
d(v,
|
|
5089
|
-
onClick: p[9] || (p[9] = (
|
|
5078
|
+
d(v, I({ title: "\u6B63\u6587" }, c(), {
|
|
5079
|
+
onClick: p[9] || (p[9] = (W) => r("fontSize", "9"))
|
|
5090
5080
|
}), {
|
|
5091
5081
|
icon: f(() => [
|
|
5092
5082
|
d(_(X), { type: "icon-24gl-fontSize" })
|
|
5093
5083
|
]),
|
|
5094
5084
|
_: 1
|
|
5095
5085
|
}, 16),
|
|
5096
|
-
d(v,
|
|
5097
|
-
onClick: p[10] || (p[10] = (
|
|
5086
|
+
d(v, I({ title: "\u52A0\u7C97" }, c(), {
|
|
5087
|
+
onClick: p[10] || (p[10] = (W) => r("fontWeight", "bold"))
|
|
5098
5088
|
}), {
|
|
5099
5089
|
icon: f(() => [
|
|
5100
5090
|
d(_(X), { type: "icon-24gl-bold" })
|
|
5101
5091
|
]),
|
|
5102
5092
|
_: 1
|
|
5103
5093
|
}, 16),
|
|
5104
|
-
d(v,
|
|
5105
|
-
onClick: p[11] || (p[11] = (
|
|
5094
|
+
d(v, I({ title: "\u4E0B\u5212\u7EBF" }, c(), {
|
|
5095
|
+
onClick: p[11] || (p[11] = (W) => r("textDecoration", "underline"))
|
|
5106
5096
|
}), {
|
|
5107
5097
|
icon: f(() => [
|
|
5108
5098
|
d(_(X), { type: "icon-24gl-underline" })
|
|
5109
5099
|
]),
|
|
5110
5100
|
_: 1
|
|
5111
5101
|
}, 16),
|
|
5112
|
-
d(v,
|
|
5113
|
-
onClick: p[12] || (p[12] = (
|
|
5102
|
+
d(v, I({ title: "\u5220\u9664\u7EBF" }, c(), {
|
|
5103
|
+
onClick: p[12] || (p[12] = (W) => r("textDecoration", "line-through"))
|
|
5114
5104
|
}), {
|
|
5115
5105
|
icon: f(() => [
|
|
5116
5106
|
d(_(X), { type: "icon-24gl-strikethrough2" })
|
|
5117
5107
|
]),
|
|
5118
5108
|
_: 1
|
|
5119
5109
|
}, 16),
|
|
5120
|
-
d(v,
|
|
5121
|
-
onClick: p[13] || (p[13] = (
|
|
5110
|
+
d(v, I({ title: "\u6E05\u9664\u683C\u5F0F" }, c(), {
|
|
5111
|
+
onClick: p[13] || (p[13] = (W) => s())
|
|
5122
5112
|
}), {
|
|
5123
5113
|
icon: f(() => [
|
|
5124
5114
|
d(_(X), { type: "icon-24gl-formatClear" })
|
|
@@ -5128,36 +5118,36 @@ const dl = {
|
|
|
5128
5118
|
]),
|
|
5129
5119
|
_: 1
|
|
5130
5120
|
}),
|
|
5131
|
-
d(
|
|
5121
|
+
d(T, {
|
|
5132
5122
|
direction: "vertical",
|
|
5133
5123
|
margin: 2
|
|
5134
5124
|
}),
|
|
5135
5125
|
d(B, null, {
|
|
5136
5126
|
default: f(() => [
|
|
5137
|
-
d(v,
|
|
5127
|
+
d(v, I(c("draggable", !1), {
|
|
5138
5128
|
title: "\u9501\u5B9A/\u53D6\u6D88",
|
|
5139
|
-
onClick: p[14] || (p[14] = (
|
|
5140
|
-
var
|
|
5141
|
-
return r("draggable", ((
|
|
5129
|
+
onClick: p[14] || (p[14] = (W) => {
|
|
5130
|
+
var ae;
|
|
5131
|
+
return r("draggable", ((ae = o.value) == null ? void 0 : ae.draggable) === !1);
|
|
5142
5132
|
})
|
|
5143
5133
|
}), {
|
|
5144
5134
|
icon: f(() => [
|
|
5145
|
-
d(
|
|
5135
|
+
d(R)
|
|
5146
5136
|
]),
|
|
5147
5137
|
_: 1
|
|
5148
5138
|
}, 16),
|
|
5149
|
-
d(v,
|
|
5139
|
+
d(v, I(c("zIndex", "9"), {
|
|
5150
5140
|
title: "\u7F6E\u4E8E\u9876\u5C42",
|
|
5151
|
-
onClick: p[15] || (p[15] = (
|
|
5141
|
+
onClick: p[15] || (p[15] = (W) => r("zIndex", "9"))
|
|
5152
5142
|
}), {
|
|
5153
5143
|
icon: f(() => [
|
|
5154
|
-
d(
|
|
5144
|
+
d(D)
|
|
5155
5145
|
]),
|
|
5156
5146
|
_: 1
|
|
5157
5147
|
}, 16),
|
|
5158
|
-
d(v,
|
|
5148
|
+
d(v, I(c("zIndex", "1"), {
|
|
5159
5149
|
title: "\u7F6E\u4E8E\u5E95\u5C42",
|
|
5160
|
-
onClick: p[16] || (p[16] = (
|
|
5150
|
+
onClick: p[16] || (p[16] = (W) => r("zIndex", "1"))
|
|
5161
5151
|
}), {
|
|
5162
5152
|
icon: f(() => [
|
|
5163
5153
|
d(G)
|
|
@@ -5167,17 +5157,17 @@ const dl = {
|
|
|
5167
5157
|
]),
|
|
5168
5158
|
_: 1
|
|
5169
5159
|
}),
|
|
5170
|
-
d(
|
|
5160
|
+
d(T, {
|
|
5171
5161
|
direction: "vertical",
|
|
5172
5162
|
margin: 2
|
|
5173
5163
|
}),
|
|
5174
|
-
d(v,
|
|
5164
|
+
d(v, I(c(), {
|
|
5175
5165
|
title: "\u9AD8\u7EA7",
|
|
5176
5166
|
disabled: $(),
|
|
5177
|
-
onClick: p[17] || (p[17] = (
|
|
5167
|
+
onClick: p[17] || (p[17] = (W) => A())
|
|
5178
5168
|
}), {
|
|
5179
5169
|
icon: f(() => [
|
|
5180
|
-
d(
|
|
5170
|
+
d(J)
|
|
5181
5171
|
]),
|
|
5182
5172
|
_: 1
|
|
5183
5173
|
}, 16, ["disabled"])
|
|
@@ -5186,65 +5176,65 @@ const dl = {
|
|
|
5186
5176
|
})
|
|
5187
5177
|
]),
|
|
5188
5178
|
i("div", fl, [
|
|
5189
|
-
Y(
|
|
5179
|
+
Y(h.$slots, "right", { tools: n.value })
|
|
5190
5180
|
]),
|
|
5191
|
-
d(
|
|
5192
|
-
visible: _(
|
|
5193
|
-
"onUpdate:visible": p[19] || (p[19] = (
|
|
5181
|
+
d(ve, {
|
|
5182
|
+
visible: _(b).visible,
|
|
5183
|
+
"onUpdate:visible": p[19] || (p[19] = (W) => _(b).visible = W),
|
|
5194
5184
|
width: 960,
|
|
5195
5185
|
title: "\u81EA\u5B9A\u4E49\u683C\u5F0F",
|
|
5196
5186
|
"title-align": "start",
|
|
5197
5187
|
"unmount-on-close": "",
|
|
5198
|
-
onOk: p[20] || (p[20] = (
|
|
5188
|
+
onOk: p[20] || (p[20] = (W) => k())
|
|
5199
5189
|
}, {
|
|
5200
5190
|
default: f(() => [
|
|
5201
5191
|
i("div", ml, [
|
|
5202
|
-
(m(!0), z(
|
|
5203
|
-
key:
|
|
5192
|
+
(m(!0), z(te, null, ce(_(b).list, (W, ae) => (m(), z("div", {
|
|
5193
|
+
key: ae,
|
|
5204
5194
|
class: "u-flex u-mt"
|
|
5205
5195
|
}, [
|
|
5206
5196
|
i("div", gl, [
|
|
5207
5197
|
p[21] || (p[21] = i("span", { style: { width: "5em", padding: "0 0.5em" } }, "\u7C7B\u578B", -1)),
|
|
5208
5198
|
d(w, {
|
|
5209
|
-
modelValue:
|
|
5210
|
-
"onUpdate:modelValue": (
|
|
5211
|
-
options: _(
|
|
5199
|
+
modelValue: W.type,
|
|
5200
|
+
"onUpdate:modelValue": (M) => W.type = M,
|
|
5201
|
+
options: _(b).types
|
|
5212
5202
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options"])
|
|
5213
5203
|
]),
|
|
5214
|
-
|
|
5204
|
+
W.type === "field" ? (m(), z("div", vl, [
|
|
5215
5205
|
p[22] || (p[22] = i("span", { style: { width: "5em", padding: "0 0.5em" } }, "\u5B57\u6BB5", -1)),
|
|
5216
|
-
d(
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
options: _(h).fields,
|
|
5206
|
+
d(S, {
|
|
5207
|
+
"model-value": Array.isArray(W.field) ? W.field : String(W.field).split("."),
|
|
5208
|
+
options: _(b).fields,
|
|
5220
5209
|
"allow-search": "",
|
|
5221
5210
|
"allow-create": "",
|
|
5222
|
-
"
|
|
5211
|
+
"path-mode": "",
|
|
5212
|
+
"onUpdate:modelValue": (M) => W.field = Array.isArray(M) ? M.join(".") : M,
|
|
5223
5213
|
onChange: C
|
|
5224
|
-
}, null, 8, ["
|
|
5214
|
+
}, null, 8, ["model-value", "options", "onUpdate:modelValue"])
|
|
5225
5215
|
])) : (m(), z("div", _l, [
|
|
5226
5216
|
p[23] || (p[23] = i("span", { style: { width: "5em", padding: "0 0.5em" } }, "\u5185\u5BB9", -1)),
|
|
5227
|
-
d(
|
|
5228
|
-
modelValue:
|
|
5229
|
-
"onUpdate:modelValue": (
|
|
5217
|
+
d(j, {
|
|
5218
|
+
modelValue: W.value,
|
|
5219
|
+
"onUpdate:modelValue": (M) => W.value = M
|
|
5230
5220
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5231
5221
|
])),
|
|
5232
5222
|
i("div", yl, [
|
|
5233
|
-
d(
|
|
5234
|
-
onClick: p[18] || (p[18] = (
|
|
5223
|
+
d(fe, {
|
|
5224
|
+
onClick: p[18] || (p[18] = (M) => F())
|
|
5235
5225
|
}, {
|
|
5236
5226
|
icon: f(() => [
|
|
5237
|
-
d(
|
|
5227
|
+
d(ue)
|
|
5238
5228
|
]),
|
|
5239
5229
|
_: 1
|
|
5240
5230
|
})
|
|
5241
5231
|
]),
|
|
5242
5232
|
i("div", bl, [
|
|
5243
|
-
d(
|
|
5244
|
-
onClick: (
|
|
5233
|
+
d(fe, {
|
|
5234
|
+
onClick: (M) => E(ae)
|
|
5245
5235
|
}, {
|
|
5246
5236
|
icon: f(() => [
|
|
5247
|
-
d(
|
|
5237
|
+
d(be)
|
|
5248
5238
|
]),
|
|
5249
5239
|
_: 2
|
|
5250
5240
|
}, 1032, ["onClick"])
|
|
@@ -5324,7 +5314,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5324
5314
|
options: { ...c, field: a }
|
|
5325
5315
|
};
|
|
5326
5316
|
if (r === "table") {
|
|
5327
|
-
const g = [Nt(u.fields).map((
|
|
5317
|
+
const g = [Nt(u.fields).map((b) => ({ title: b.text, align: "center", field: b.field, width: 100 }))];
|
|
5328
5318
|
s.columns = g, s.options.width = null;
|
|
5329
5319
|
}
|
|
5330
5320
|
return {
|
|
@@ -5416,7 +5406,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5416
5406
|
settingContainer: l.panelContainer
|
|
5417
5407
|
}), a.design(l.mainContainer, { grid: !1 }), Pe(".hiprint_rul_wrapper").remove(), { hiprintTemplate: a, providers: p };
|
|
5418
5408
|
}
|
|
5419
|
-
const s = q(), g = q(),
|
|
5409
|
+
const s = q(), g = q(), b = q(), E = q(), F = q(), k = q();
|
|
5420
5410
|
function $() {
|
|
5421
5411
|
const { hiprintTemplate: p, providers: v } = c();
|
|
5422
5412
|
F.value = v[1].list, r(), E.value = p, rl(p, {
|
|
@@ -5430,12 +5420,12 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5430
5420
|
k.value = null;
|
|
5431
5421
|
},
|
|
5432
5422
|
onData(B) {
|
|
5433
|
-
var
|
|
5434
|
-
B === "\u8C03\u6574\u5927\u5C0F" && typeof ((
|
|
5423
|
+
var T;
|
|
5424
|
+
B === "\u8C03\u6574\u5927\u5C0F" && typeof ((T = s.value) == null ? void 0 : T.onResize) == "function" && s.value.onResize();
|
|
5435
5425
|
}
|
|
5436
5426
|
});
|
|
5437
5427
|
}
|
|
5438
|
-
|
|
5428
|
+
le(() => o.fields, $), le(
|
|
5439
5429
|
() => o.template,
|
|
5440
5430
|
() => {
|
|
5441
5431
|
E.value && E.value.update(o.template);
|
|
@@ -5446,13 +5436,13 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5446
5436
|
}
|
|
5447
5437
|
function C() {
|
|
5448
5438
|
var p;
|
|
5449
|
-
(p =
|
|
5439
|
+
(p = b.value) != null && p.show && b.value.show(E.value, o.printData);
|
|
5450
5440
|
}
|
|
5451
|
-
function
|
|
5441
|
+
function h() {
|
|
5452
5442
|
E.value && u("onSave", E.value.getJson());
|
|
5453
5443
|
}
|
|
5454
5444
|
return Me($), t({ hiprintTemplate: E, selectedOptions: k }), (p, v) => {
|
|
5455
|
-
const B = y("icon-folder"),
|
|
5445
|
+
const B = y("icon-folder"), T = y("AEmpty"), R = y("icon-question-circle"), D = y("AButton"), G = y("AButtonGroup");
|
|
5456
5446
|
return m(), z("div", Al, [
|
|
5457
5447
|
i("div", wl, [
|
|
5458
5448
|
i("div", Bl, [
|
|
@@ -5465,7 +5455,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5465
5455
|
d(ct, { title: "\u57FA\u7840" }, {
|
|
5466
5456
|
default: f(() => [
|
|
5467
5457
|
i("a", {
|
|
5468
|
-
class:
|
|
5458
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5469
5459
|
tid: "defaultModule.text"
|
|
5470
5460
|
}, [
|
|
5471
5461
|
d(_(X), {
|
|
@@ -5474,7 +5464,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5474
5464
|
v[0] || (v[0] = P(" \u6587\u672C "))
|
|
5475
5465
|
], 2),
|
|
5476
5466
|
i("a", {
|
|
5477
|
-
class:
|
|
5467
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5478
5468
|
tid: "defaultModule.number"
|
|
5479
5469
|
}, [
|
|
5480
5470
|
d(_(X), {
|
|
@@ -5483,7 +5473,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5483
5473
|
v[1] || (v[1] = P(" \u6570\u503C "))
|
|
5484
5474
|
], 2),
|
|
5485
5475
|
i("a", {
|
|
5486
|
-
class:
|
|
5476
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5487
5477
|
tid: "defaultModule.table"
|
|
5488
5478
|
}, [
|
|
5489
5479
|
d(_(X), {
|
|
@@ -5492,7 +5482,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5492
5482
|
v[2] || (v[2] = P(" \u8868\u683C "))
|
|
5493
5483
|
], 2),
|
|
5494
5484
|
i("a", {
|
|
5495
|
-
class:
|
|
5485
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5496
5486
|
tid: "defaultModule.image"
|
|
5497
5487
|
}, [
|
|
5498
5488
|
d(_(X), {
|
|
@@ -5501,7 +5491,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5501
5491
|
v[3] || (v[3] = P(" \u56FE\u7247 "))
|
|
5502
5492
|
], 2),
|
|
5503
5493
|
i("a", {
|
|
5504
|
-
class:
|
|
5494
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5505
5495
|
tid: "defaultModule.longText"
|
|
5506
5496
|
}, [
|
|
5507
5497
|
d(_(X), {
|
|
@@ -5510,7 +5500,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5510
5500
|
v[4] || (v[4] = P(" \u957F\u6587\u672C "))
|
|
5511
5501
|
], 2),
|
|
5512
5502
|
i("a", {
|
|
5513
|
-
class:
|
|
5503
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5514
5504
|
tid: "defaultModule.hline"
|
|
5515
5505
|
}, [
|
|
5516
5506
|
d(_(X), {
|
|
@@ -5519,7 +5509,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5519
5509
|
v[5] || (v[5] = P(" \u6C34\u5E73\u7EBF "))
|
|
5520
5510
|
], 2),
|
|
5521
5511
|
i("a", {
|
|
5522
|
-
class:
|
|
5512
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5523
5513
|
tid: "defaultModule.vline"
|
|
5524
5514
|
}, [
|
|
5525
5515
|
d(_(X), {
|
|
@@ -5528,7 +5518,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5528
5518
|
v[6] || (v[6] = P(" \u5782\u76F4\u7EBF "))
|
|
5529
5519
|
], 2),
|
|
5530
5520
|
i("a", {
|
|
5531
|
-
class:
|
|
5521
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5532
5522
|
tid: "defaultModule.rect"
|
|
5533
5523
|
}, [
|
|
5534
5524
|
d(_(X), {
|
|
@@ -5537,7 +5527,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5537
5527
|
v[7] || (v[7] = P(" \u77E9\u5F62 "))
|
|
5538
5528
|
], 2),
|
|
5539
5529
|
i("a", {
|
|
5540
|
-
class:
|
|
5530
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5541
5531
|
tid: "defaultModule.oval"
|
|
5542
5532
|
}, [
|
|
5543
5533
|
d(_(X), {
|
|
@@ -5551,7 +5541,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5551
5541
|
d(ct, { title: "\u6761\u7801" }, {
|
|
5552
5542
|
default: f(() => [
|
|
5553
5543
|
i("a", {
|
|
5554
|
-
class:
|
|
5544
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5555
5545
|
tid: "defaultModule.barcode"
|
|
5556
5546
|
}, [
|
|
5557
5547
|
d(_(X), {
|
|
@@ -5560,7 +5550,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5560
5550
|
v[9] || (v[9] = P(" \u6761\u5F62\u7801 "))
|
|
5561
5551
|
], 2),
|
|
5562
5552
|
i("a", {
|
|
5563
|
-
class:
|
|
5553
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5564
5554
|
tid: "defaultModule.qrcode"
|
|
5565
5555
|
}, [
|
|
5566
5556
|
d(_(X), {
|
|
@@ -5573,24 +5563,24 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5573
5563
|
}),
|
|
5574
5564
|
d(ct, { title: "\u4E1A\u52A1\u7EC4\u4EF6" }, {
|
|
5575
5565
|
default: f(() => {
|
|
5576
|
-
var
|
|
5566
|
+
var J;
|
|
5577
5567
|
return [
|
|
5578
|
-
(m(!0), z(
|
|
5568
|
+
(m(!0), z(te, null, ce(F.value, (K) => (m(), z("a", {
|
|
5579
5569
|
key: K.tid,
|
|
5580
|
-
class:
|
|
5570
|
+
class: de(`ep-draggable-item ${Fe}`),
|
|
5581
5571
|
tid: K.tid
|
|
5582
5572
|
}, [
|
|
5583
5573
|
K.sourceType === "object" ? (m(), z("div", Sl, [
|
|
5584
5574
|
d(B),
|
|
5585
|
-
P(" " +
|
|
5575
|
+
P(" " + ne(K.title), 1)
|
|
5586
5576
|
])) : (m(), z("div", Ol, [
|
|
5587
5577
|
d(_(X), {
|
|
5588
5578
|
type: _(he)(K.type)
|
|
5589
5579
|
}, null, 8, ["type"]),
|
|
5590
|
-
P(" " +
|
|
5580
|
+
P(" " + ne(K.title), 1)
|
|
5591
5581
|
]))
|
|
5592
5582
|
], 10, Dl))), 128)),
|
|
5593
|
-
(
|
|
5583
|
+
(J = F.value) != null && J.length ? L("", !0) : (m(), x(T, { key: 0 }, {
|
|
5594
5584
|
default: f(() => v[11] || (v[11] = [
|
|
5595
5585
|
i("div", { style: { "font-size": "12px" } }, "\u6682\u65E0\u6570\u636E", -1)
|
|
5596
5586
|
])),
|
|
@@ -5611,24 +5601,24 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5611
5601
|
tpl: E.value,
|
|
5612
5602
|
"element-options": k.value
|
|
5613
5603
|
}, {
|
|
5614
|
-
left: f(({ tools:
|
|
5615
|
-
Y(p.$slots, "toolbar-left", { tools:
|
|
5604
|
+
left: f(({ tools: J }) => [
|
|
5605
|
+
Y(p.$slots, "toolbar-left", { tools: J })
|
|
5616
5606
|
]),
|
|
5617
|
-
right: f(({ tools:
|
|
5618
|
-
Y(p.$slots, "toolbar-right", { tools:
|
|
5607
|
+
right: f(({ tools: J }) => [
|
|
5608
|
+
Y(p.$slots, "toolbar-right", { tools: J }),
|
|
5619
5609
|
d(G, { size: "small" }, {
|
|
5620
5610
|
default: f(() => [
|
|
5621
|
-
d(
|
|
5611
|
+
d(D, {
|
|
5622
5612
|
shape: "square",
|
|
5623
5613
|
title: "\u5E2E\u52A9",
|
|
5624
5614
|
onClick: C
|
|
5625
5615
|
}, {
|
|
5626
5616
|
icon: f(() => [
|
|
5627
|
-
d(
|
|
5617
|
+
d(R)
|
|
5628
5618
|
]),
|
|
5629
5619
|
_: 1
|
|
5630
5620
|
}),
|
|
5631
|
-
d(
|
|
5621
|
+
d(D, {
|
|
5632
5622
|
shape: "square",
|
|
5633
5623
|
title: "\u9884\u89C8",
|
|
5634
5624
|
onClick: A
|
|
@@ -5638,10 +5628,10 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5638
5628
|
]),
|
|
5639
5629
|
_: 1
|
|
5640
5630
|
}),
|
|
5641
|
-
d(
|
|
5631
|
+
d(D, {
|
|
5642
5632
|
shape: "square",
|
|
5643
5633
|
title: "\u4FDD\u5B58",
|
|
5644
|
-
onClick:
|
|
5634
|
+
onClick: h
|
|
5645
5635
|
}, {
|
|
5646
5636
|
icon: f(() => [
|
|
5647
5637
|
d(_(X), { type: "icon-24gl-floppyDisk" })
|
|
@@ -5677,7 +5667,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5677
5667
|
], -1)),
|
|
5678
5668
|
i("div", Tl, [
|
|
5679
5669
|
i("div", Il, [
|
|
5680
|
-
d(
|
|
5670
|
+
d(T)
|
|
5681
5671
|
])
|
|
5682
5672
|
])
|
|
5683
5673
|
])
|
|
@@ -5688,7 +5678,7 @@ const fo = "\u901A\u7528\u63A7\u4EF6", Le = "defaultModule", Fl = () => {
|
|
|
5688
5678
|
}, null, 512),
|
|
5689
5679
|
d(sl, {
|
|
5690
5680
|
ref_key: "kbdRef",
|
|
5691
|
-
ref:
|
|
5681
|
+
ref: b
|
|
5692
5682
|
}, null, 512)
|
|
5693
5683
|
]);
|
|
5694
5684
|
};
|