yc-vep-ui 0.3.5 → 0.3.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/dist/components/Upload/file.vue.d.ts +1 -5
- package/dist/components/Upload/image.vue.d.ts +5 -1
- package/dist/components/Upload/index.vue.d.ts +13 -12
- package/dist/components/utils/render.d.ts +2 -0
- package/dist/components/utils/tools.d.ts +1 -1
- package/dist/{entry-Dqeegao9.js → entry-C2idE4D3.js} +384 -377
- package/dist/hooks/index.js +1 -1
- package/dist/index.css +9 -9
- package/dist/vep-ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as D, resolveDynamicComponent as O, setBlockTracking as k, shallowRef as A, toDisplayString as j, toRaw as M, toValue as N, unref as P, useAttrs as F, useCssVars as ee, useModel as I, watch as L, watchEffect as R, withCtx as z, withDirectives as B, withKeys as te, withModifiers as
|
|
2
|
-
import { AiEditor as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createPropsRestProxy as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, getCurrentInstance as d, h as f, isRef as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, reactive as S, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as D, resolveDynamicComponent as O, setBlockTracking as k, shallowRef as A, toDisplayString as j, toRaw as M, toValue as N, unref as P, useAttrs as F, useCssVars as ee, useModel as I, watch as L, watchEffect as R, withCtx as z, withDirectives as B, withKeys as te, withModifiers as V } from "vue";
|
|
2
|
+
import { AiEditor as H } from "aieditor";
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var
|
|
4
|
+
var U = Object.defineProperty, W = (e, t) => {
|
|
5
5
|
let n = {};
|
|
6
|
-
for (var r in e)
|
|
6
|
+
for (var r in e) U(n, r, {
|
|
7
7
|
get: e[r],
|
|
8
8
|
enumerable: !0
|
|
9
9
|
});
|
|
10
|
-
return t ||
|
|
11
|
-
},
|
|
10
|
+
return t || U(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
11
|
+
}, ne = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, re = /* @__PURE__ */ u({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|
|
14
14
|
title: {},
|
|
@@ -29,7 +29,7 @@ var H = Object.defineProperty, U = (e, t) => {
|
|
|
29
29
|
"ui-card": !0,
|
|
30
30
|
hideBorder: e.hideBorder
|
|
31
31
|
} }), s({
|
|
32
|
-
default: z(() => [a("div",
|
|
32
|
+
default: z(() => [a("div", ne, [T(t.$slots, "default", {}, void 0, !0)])]),
|
|
33
33
|
_: 2
|
|
34
34
|
}, [e.title && e.title?.length > 0 ? {
|
|
35
35
|
name: "header",
|
|
@@ -41,11 +41,11 @@ var H = Object.defineProperty, U = (e, t) => {
|
|
|
41
41
|
} : void 0]), 1040, ["class"]);
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
}),
|
|
44
|
+
}), G = (e, t) => {
|
|
45
45
|
let n = e.__vccOpts || e;
|
|
46
46
|
for (let [e, r] of t) n[e] = r;
|
|
47
47
|
return n;
|
|
48
|
-
},
|
|
48
|
+
}, ie = /* @__PURE__ */ W({ default: () => ae }), ae = /* @__PURE__ */ G(re, [["__scopeId", "data-v-6ebb01d7"]]), K = {
|
|
49
49
|
get Button() {
|
|
50
50
|
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
51
51
|
},
|
|
@@ -140,14 +140,14 @@ var H = Object.defineProperty, U = (e, t) => {
|
|
|
140
140
|
};
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/components/utils/render.ts
|
|
143
|
-
function
|
|
143
|
+
function q() {
|
|
144
144
|
let e = $();
|
|
145
145
|
return e?.h ? e.h : function(e, t, n) {
|
|
146
146
|
return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
let t =
|
|
149
|
+
function oe(e) {
|
|
150
|
+
let t = q();
|
|
151
151
|
return t ? t("div", { style: {
|
|
152
152
|
display: "flex",
|
|
153
153
|
flexDirection: "row",
|
|
@@ -155,7 +155,7 @@ function se(e) {
|
|
|
155
155
|
gap: "8px"
|
|
156
156
|
} }, (Array.isArray(e) ? e : [e]).map((e) => {
|
|
157
157
|
let { text: n, ...r } = e;
|
|
158
|
-
return t(
|
|
158
|
+
return t(K.Button, {
|
|
159
159
|
...r,
|
|
160
160
|
link: !0,
|
|
161
161
|
size: "small",
|
|
@@ -163,54 +163,54 @@ function se(e) {
|
|
|
163
163
|
}, () => n);
|
|
164
164
|
})) : null;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
let t =
|
|
166
|
+
function se(e) {
|
|
167
|
+
let t = q();
|
|
168
168
|
return t ? Array.isArray(e) ? t("div", { style: {
|
|
169
169
|
display: "flex",
|
|
170
170
|
gap: "8px",
|
|
171
171
|
flexDirection: "row",
|
|
172
172
|
flexWrap: "wrap"
|
|
173
|
-
} }, e.map((e) => t(
|
|
173
|
+
} }, e.map((e) => t(K.Link, {
|
|
174
174
|
...e,
|
|
175
175
|
type: e.type || "primary"
|
|
176
|
-
}, () => t(
|
|
176
|
+
}, () => t(K.Text, {
|
|
177
177
|
lineClamp: e?.lineClamp,
|
|
178
178
|
type: e.type || "primary"
|
|
179
|
-
}, () => e.prop)))) : t(
|
|
179
|
+
}, () => e.prop)))) : t(K.Link, {
|
|
180
180
|
...e,
|
|
181
181
|
type: e.type || "primary"
|
|
182
|
-
}, () => t(
|
|
182
|
+
}, () => t(K.Text, {
|
|
183
183
|
lineClamp: e?.lineClamp,
|
|
184
184
|
type: e.type || "primary"
|
|
185
185
|
}, () => e.prop)) : null;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
let t =
|
|
187
|
+
function ce(e) {
|
|
188
|
+
let t = q();
|
|
189
189
|
return t ? t("div", { style: {
|
|
190
190
|
display: "flex",
|
|
191
191
|
gap: "4px",
|
|
192
192
|
flexDirection: "row",
|
|
193
193
|
flexWrap: "wrap"
|
|
194
|
-
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(
|
|
194
|
+
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(K.Tag, e, () => n))) : null;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
let t =
|
|
198
|
-
return t ? t(
|
|
196
|
+
function le(e) {
|
|
197
|
+
let t = q();
|
|
198
|
+
return t ? t(K.Tag, { ...e }) : null;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
let t =
|
|
202
|
-
return t ? t(
|
|
200
|
+
function ue(e) {
|
|
201
|
+
let t = q();
|
|
202
|
+
return t ? t(K.Select, {
|
|
203
203
|
style: { minWidth: "160px" },
|
|
204
204
|
...e,
|
|
205
205
|
placeholder: "请选择",
|
|
206
206
|
filterable: !0
|
|
207
207
|
}) : null;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
let t =
|
|
209
|
+
function de(e) {
|
|
210
|
+
let t = q();
|
|
211
211
|
if (!t) return null;
|
|
212
212
|
let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
213
|
-
return t(
|
|
213
|
+
return t(K.DatePicker, {
|
|
214
214
|
format: n,
|
|
215
215
|
valueFormat: n,
|
|
216
216
|
startPlaceholder: "开始时间",
|
|
@@ -220,11 +220,11 @@ function fe(e) {
|
|
|
220
220
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
let t =
|
|
223
|
+
function fe(e) {
|
|
224
|
+
let t = q();
|
|
225
225
|
if (!t) return null;
|
|
226
226
|
let { start: n = "00:00", end: r = "23:30", ...i } = e;
|
|
227
|
-
return t(
|
|
227
|
+
return t(K.TimeSelect, {
|
|
228
228
|
start: n,
|
|
229
229
|
end: r,
|
|
230
230
|
...i,
|
|
@@ -232,21 +232,21 @@ function pe(e) {
|
|
|
232
232
|
filterable: !0
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let t =
|
|
237
|
-
return t ? t(
|
|
235
|
+
function pe(e) {
|
|
236
|
+
let t = q();
|
|
237
|
+
return t ? t(K.Input, {
|
|
238
238
|
...e,
|
|
239
239
|
placeholder: "请输入"
|
|
240
240
|
}) : null;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
let t =
|
|
242
|
+
function me(e) {
|
|
243
|
+
let t = q();
|
|
244
244
|
if (!t) return null;
|
|
245
245
|
let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
|
|
246
246
|
...e?.style || {},
|
|
247
247
|
width: "100%"
|
|
248
248
|
};
|
|
249
|
-
return t(
|
|
249
|
+
return t(K.InputNumber, {
|
|
250
250
|
align: n,
|
|
251
251
|
style: a,
|
|
252
252
|
controlsPosition: r,
|
|
@@ -254,71 +254,67 @@ function he(e) {
|
|
|
254
254
|
...i
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
let t =
|
|
257
|
+
function he(e) {
|
|
258
|
+
let t = q();
|
|
259
259
|
if (!t) return null;
|
|
260
260
|
let { rows: n = 1, ...r } = e;
|
|
261
|
-
return t(
|
|
261
|
+
return t(K.Input, {
|
|
262
262
|
placeholder: "请输入",
|
|
263
263
|
rows: n,
|
|
264
264
|
...r,
|
|
265
265
|
type: "textarea"
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
let t =
|
|
270
|
-
return t ? t(
|
|
268
|
+
function ge(e) {
|
|
269
|
+
let t = q();
|
|
270
|
+
return t ? t(K.InputTag, {
|
|
271
271
|
placeholder: "请输入",
|
|
272
272
|
...e,
|
|
273
273
|
clearable: !1
|
|
274
274
|
}) : null;
|
|
275
275
|
}
|
|
276
|
+
function _e(e) {
|
|
277
|
+
let t = q();
|
|
278
|
+
return t ? t(mt || pt, e) : null;
|
|
279
|
+
}
|
|
276
280
|
function ve(e) {
|
|
277
|
-
let t =
|
|
278
|
-
return t ? t(
|
|
281
|
+
let t = q();
|
|
282
|
+
return t ? t(K.RadioGroup, e) : null;
|
|
279
283
|
}
|
|
280
284
|
function ye(e) {
|
|
281
|
-
let t =
|
|
282
|
-
return t ? t(
|
|
285
|
+
let t = q();
|
|
286
|
+
return t ? t(K.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
|
|
283
287
|
}
|
|
284
288
|
function be(e) {
|
|
285
|
-
let t =
|
|
286
|
-
return t ? t(
|
|
287
|
-
}
|
|
288
|
-
function xe(e) {
|
|
289
|
-
let t = K();
|
|
290
|
-
return t ? t(tn || en, {
|
|
289
|
+
let t = q();
|
|
290
|
+
return t ? t(en || $t, {
|
|
291
291
|
placeholder: "请选择",
|
|
292
292
|
...e,
|
|
293
293
|
searchable: !0
|
|
294
294
|
}) : null;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
let t =
|
|
298
|
-
return t ? t(
|
|
299
|
-
...e,
|
|
300
|
-
fileList: e.modelValue || e.fileList,
|
|
301
|
-
"onUpdate:fileList": (t, n) => e.onChange?.(n, t)
|
|
302
|
-
}) : null;
|
|
296
|
+
function xe(e) {
|
|
297
|
+
let t = q();
|
|
298
|
+
return t ? t(sn || on, e) : null;
|
|
303
299
|
}
|
|
304
|
-
var
|
|
305
|
-
button:
|
|
306
|
-
link:
|
|
307
|
-
tag:
|
|
308
|
-
switch:
|
|
309
|
-
select:
|
|
310
|
-
datePicker:
|
|
311
|
-
timeSelect:
|
|
312
|
-
input:
|
|
313
|
-
inputNumber:
|
|
314
|
-
textarea:
|
|
315
|
-
inputTag:
|
|
316
|
-
editor:
|
|
317
|
-
radio:
|
|
318
|
-
text:
|
|
319
|
-
staffSelect:
|
|
320
|
-
upload:
|
|
321
|
-
},
|
|
300
|
+
var J = {
|
|
301
|
+
button: oe,
|
|
302
|
+
link: se,
|
|
303
|
+
tag: ce,
|
|
304
|
+
switch: le,
|
|
305
|
+
select: ue,
|
|
306
|
+
datePicker: de,
|
|
307
|
+
timeSelect: fe,
|
|
308
|
+
input: pe,
|
|
309
|
+
inputNumber: me,
|
|
310
|
+
textarea: he,
|
|
311
|
+
inputTag: ge,
|
|
312
|
+
editor: _e,
|
|
313
|
+
radio: ve,
|
|
314
|
+
text: ye,
|
|
315
|
+
staffSelect: be,
|
|
316
|
+
upload: xe
|
|
317
|
+
}, Se = /* @__PURE__ */ u({
|
|
322
318
|
name: "UiColumn",
|
|
323
319
|
__name: "UiColumn",
|
|
324
320
|
props: {
|
|
@@ -333,7 +329,7 @@ var Ce = {
|
|
|
333
329
|
let a = r, o = t;
|
|
334
330
|
function s(e, t, n) {
|
|
335
331
|
let r = {};
|
|
336
|
-
Object.keys(
|
|
332
|
+
Object.keys(J).forEach((i) => {
|
|
337
333
|
let o = i;
|
|
338
334
|
r[o] = (r) => {
|
|
339
335
|
let i = Array.isArray(r) ? r : {
|
|
@@ -345,7 +341,7 @@ var Ce = {
|
|
|
345
341
|
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
346
342
|
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
347
343
|
};
|
|
348
|
-
return
|
|
344
|
+
return J[o](i);
|
|
349
345
|
};
|
|
350
346
|
});
|
|
351
347
|
let i = n.render ? n.render({
|
|
@@ -403,7 +399,7 @@ var Ce = {
|
|
|
403
399
|
]));
|
|
404
400
|
};
|
|
405
401
|
}
|
|
406
|
-
}),
|
|
402
|
+
}), Ce = /* @__PURE__ */ u({
|
|
407
403
|
__name: "index",
|
|
408
404
|
props: {
|
|
409
405
|
loading: {
|
|
@@ -494,7 +490,7 @@ var Ce = {
|
|
|
494
490
|
"column-key": "index_1",
|
|
495
491
|
align: a.align
|
|
496
492
|
}, null, 8, ["align"])) : r("", !0),
|
|
497
|
-
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(
|
|
493
|
+
(x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Se, {
|
|
498
494
|
key: t + "column_" + e?.prop?.toString(),
|
|
499
495
|
column: e,
|
|
500
496
|
data: a.data,
|
|
@@ -538,7 +534,7 @@ var Ce = {
|
|
|
538
534
|
]);
|
|
539
535
|
};
|
|
540
536
|
}
|
|
541
|
-
}),
|
|
537
|
+
}), we = /* @__PURE__ */ W({ default: () => Te }), Te = /* @__PURE__ */ G(Ce, [["__scopeId", "data-v-adf869c1"]]), Ee = ["src"], De = /* @__PURE__ */ u({
|
|
542
538
|
__name: "Icon",
|
|
543
539
|
props: {
|
|
544
540
|
name: {},
|
|
@@ -556,9 +552,9 @@ var Ce = {
|
|
|
556
552
|
width: e.size,
|
|
557
553
|
height: e.size
|
|
558
554
|
})
|
|
559
|
-
}, null, 12,
|
|
555
|
+
}, null, 12, Ee)) : r("", !0);
|
|
560
556
|
}
|
|
561
|
-
}),
|
|
557
|
+
}), Oe = {
|
|
562
558
|
style: {
|
|
563
559
|
width: "100%",
|
|
564
560
|
height: "100%"
|
|
@@ -569,30 +565,30 @@ var Ce = {
|
|
|
569
565
|
version: "1.1",
|
|
570
566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
571
567
|
"p-id": "8979"
|
|
572
|
-
},
|
|
568
|
+
}, ke = /* @__PURE__ */ u({
|
|
573
569
|
__name: "Search",
|
|
574
570
|
setup(e) {
|
|
575
|
-
return (e, t) => (x(), i("svg",
|
|
571
|
+
return (e, t) => (x(), i("svg", Oe, [...t[0] ||= [a("path", {
|
|
576
572
|
d: "M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z",
|
|
577
573
|
"p-id": "8980"
|
|
578
574
|
}, null, -1)]]));
|
|
579
575
|
}
|
|
580
|
-
}),
|
|
576
|
+
}), Ae = {
|
|
581
577
|
style: {
|
|
582
578
|
width: "100%",
|
|
583
579
|
height: "100%"
|
|
584
580
|
},
|
|
585
581
|
viewBox: "0 0 1024 1024",
|
|
586
582
|
xmlns: "http://www.w3.org/2000/svg"
|
|
587
|
-
},
|
|
583
|
+
}, je = /* @__PURE__ */ u({
|
|
588
584
|
__name: "CloseBold",
|
|
589
585
|
setup(e) {
|
|
590
|
-
return (e, t) => (x(), i("svg",
|
|
586
|
+
return (e, t) => (x(), i("svg", Ae, [...t[0] ||= [a("path", {
|
|
591
587
|
d: "M512 476.25l256-256 33.75 33.75-256 256 256 256-33.75 33.75-256-256-256 256-33.75-33.75 256-256-256-256L256 220.25l256 256z",
|
|
592
588
|
fill: "currentColor"
|
|
593
589
|
}, null, -1)]]));
|
|
594
590
|
}
|
|
595
|
-
}),
|
|
591
|
+
}), Me = {
|
|
596
592
|
style: {
|
|
597
593
|
width: "100%",
|
|
598
594
|
height: "100%"
|
|
@@ -603,10 +599,10 @@ var Ce = {
|
|
|
603
599
|
version: "1.1",
|
|
604
600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
605
601
|
"p-id": "10092"
|
|
606
|
-
},
|
|
602
|
+
}, Ne = /* @__PURE__ */ u({
|
|
607
603
|
__name: "User",
|
|
608
604
|
setup(e) {
|
|
609
|
-
return (e, t) => (x(), i("svg",
|
|
605
|
+
return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
|
|
610
606
|
d: "M512 512c141.385 0 256-114.615 256-256S653.385 0 512 0 256 114.615 256 256s114.615 256 256 256zM366.336 110.336C405.244 71.428 456.976 50 512 50s106.756 21.428 145.664 60.336S718 200.976 718 256s-21.428 106.756-60.336 145.664S567.024 462 512 462s-106.756-21.428-145.664-60.336S306 311.024 306 256s21.428-106.756 60.336-145.664z",
|
|
611
607
|
fill: "#999999",
|
|
612
608
|
"p-id": "10093"
|
|
@@ -616,7 +612,7 @@ var Ce = {
|
|
|
616
612
|
"p-id": "10094"
|
|
617
613
|
}, null, -1)]]));
|
|
618
614
|
}
|
|
619
|
-
}),
|
|
615
|
+
}), Pe = {
|
|
620
616
|
style: {
|
|
621
617
|
width: "100%",
|
|
622
618
|
height: "100%"
|
|
@@ -627,16 +623,16 @@ var Ce = {
|
|
|
627
623
|
version: "1.1",
|
|
628
624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
629
625
|
"p-id": "11055"
|
|
630
|
-
},
|
|
626
|
+
}, Fe = /* @__PURE__ */ u({
|
|
631
627
|
__name: "Plus",
|
|
632
628
|
setup(e) {
|
|
633
|
-
return (e, t) => (x(), i("svg",
|
|
629
|
+
return (e, t) => (x(), i("svg", Pe, [...t[0] ||= [a("path", {
|
|
634
630
|
d: "M489.244444 489.244444v295.822223c0 18.850702-15.282631 34.133333-34.133333 34.133333s-34.133333-15.282631-34.133333-34.133333v-295.822223h-295.822222c-18.850702 0-34.133333-15.282631-34.133334-34.133333s15.282631-34.133333 34.133334-34.133333h295.822222v-295.822222c0-18.850702 15.282631-34.133333 34.133333-34.133334s34.133333 15.282631 34.133333 34.133334v295.822222h295.822223c18.850702 0 34.133333 15.282631 34.133333 34.133333s-15.282631 34.133333-34.133333 34.133333h-295.822223z",
|
|
635
631
|
fill: "#323233",
|
|
636
632
|
"p-id": "11056"
|
|
637
633
|
}, null, -1)]]));
|
|
638
634
|
}
|
|
639
|
-
}),
|
|
635
|
+
}), Ie = {}, Le = {
|
|
640
636
|
style: {
|
|
641
637
|
width: "100%",
|
|
642
638
|
height: "100%"
|
|
@@ -648,14 +644,14 @@ var Ce = {
|
|
|
648
644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
649
645
|
"p-id": "4859"
|
|
650
646
|
};
|
|
651
|
-
function
|
|
652
|
-
return x(), i("svg",
|
|
647
|
+
function Re(e, t) {
|
|
648
|
+
return x(), i("svg", Le, [...t[0] ||= [a("path", {
|
|
653
649
|
d: "M731.733333 480l-384-341.333333c-17.066667-14.933333-44.8-14.933333-59.733333 4.266666-14.933333 17.066667-14.933333 44.8 4.266667 59.733334L640 512 292.266667 821.333333c-17.066667 14.933333-19.2 42.666667-4.266667 59.733334 8.533333 8.533333 19.2 14.933333 32 14.933333 10.666667 0 19.2-4.266667 27.733333-10.666667l384-341.333333c8.533333-8.533333 14.933333-19.2 14.933334-32s-4.266667-23.466667-14.933334-32z",
|
|
654
650
|
fill: "#666666",
|
|
655
651
|
"p-id": "4860"
|
|
656
652
|
}, null, -1)]]);
|
|
657
653
|
}
|
|
658
|
-
var
|
|
654
|
+
var ze = /* @__PURE__ */ G(Ie, [["render", Re]]), Be = {}, Ve = {
|
|
659
655
|
style: {
|
|
660
656
|
width: "100%",
|
|
661
657
|
height: "100%"
|
|
@@ -667,13 +663,13 @@ var Ve = /* @__PURE__ */ W(Re, [["render", Be]]), He = {}, Ue = {
|
|
|
667
663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
668
664
|
"p-id": "6029"
|
|
669
665
|
};
|
|
670
|
-
function
|
|
671
|
-
return x(), i("svg",
|
|
666
|
+
function He(e, t) {
|
|
667
|
+
return x(), i("svg", Ve, [...t[0] ||= [a("path", {
|
|
672
668
|
d: "M897.96 728.3c-18.8 18.8-49.1 18.801-67.901 0l-318-318-318 318c-18.8 18.8-49.2 18.8-67.901 0-18.8-18.8-18.801-49.1 0-67.901l352-352c18.8-18.8 49.2-18.8 67.901 0l352 352c9.4 9.4 14 21.7 14 34-0.1 12.2-4.7 24.501-14.1 33.9z",
|
|
673
669
|
"p-id": "6030"
|
|
674
670
|
}, null, -1)]]);
|
|
675
671
|
}
|
|
676
|
-
var
|
|
672
|
+
var Ue = /* @__PURE__ */ G(Be, [["render", He]]), We = {}, Ge = {
|
|
677
673
|
style: {
|
|
678
674
|
width: "100%",
|
|
679
675
|
height: "100%"
|
|
@@ -685,8 +681,8 @@ var Ge = /* @__PURE__ */ W(He, [["render", We]]), Ke = {}, qe = {
|
|
|
685
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
686
682
|
"p-id": "6997"
|
|
687
683
|
};
|
|
688
|
-
function
|
|
689
|
-
return x(), i("svg",
|
|
684
|
+
function Ke(e, t) {
|
|
685
|
+
return x(), i("svg", Ge, [...t[0] ||= [a("path", {
|
|
690
686
|
d: "M512.34133333 931.38488889c-49.94844445 0-98.87288889-8.64711111-145.29422222-25.82755556-44.94222222-16.61155555-86.35733333-40.61866667-123.22133333-71.45244444-74.29688889-61.89511111-125.15555555-148.02488889-143.24622223-242.34666667l71.45244445-13.76711111c31.28888889 162.58844445 174.42133333 280.576 340.30933333 280.576 70.08711111 0 137.55733333-20.82133333 195.12888889-60.07466666 56.32-38.45688889 99.66933333-91.93244445 125.49688889-154.73777778l67.35644444 27.648c-31.28888889 76.00355555-83.74044445 140.74311111-151.77955555 187.16444444-69.85955555 47.67288889-151.43822222 72.81777778-236.20266667 72.81777778zM846.848 421.43288889C827.392 349.29777778 783.92888889 284.33066667 724.65066667 238.13688889c-61.21244445-47.55911111-134.59911111-72.704-212.30933334-72.704-69.97333333 0-137.44355555 20.70755555-194.90133333 59.96088889-56.32 38.57066667-99.78311111 91.93244445-125.61066667 154.624l-67.35644444-27.76177778c31.28888889-75.88977778 83.74044445-140.40177778 151.77955556-186.82311111 69.74577778-47.55911111 151.32444445-72.704 235.9751111-72.704 47.33155555 0 93.86666667 7.85066667 138.12622223 23.32444444 42.89422222 14.90488889 82.83022222 36.75022222 118.784 64.62577778 35.61244445 27.648 66.33244445 60.64355555 91.47733333 98.07644444 25.48622222 38.00177778 44.48711111 79.64444445 56.32 123.67644445l-70.08711111 19.00088889z",
|
|
691
687
|
"p-id": "6998"
|
|
692
688
|
}, null, -1), a("path", {
|
|
@@ -694,7 +690,7 @@ function Je(e, t) {
|
|
|
694
690
|
"p-id": "6999"
|
|
695
691
|
}, null, -1)]]);
|
|
696
692
|
}
|
|
697
|
-
var
|
|
693
|
+
var qe = /* @__PURE__ */ G(We, [["render", Ke]]), Je = {}, Ye = {
|
|
698
694
|
style: {
|
|
699
695
|
width: "100%",
|
|
700
696
|
height: "100%"
|
|
@@ -706,55 +702,60 @@ var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
|
|
|
706
702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
707
703
|
"p-id": "9850"
|
|
708
704
|
};
|
|
709
|
-
function
|
|
710
|
-
return x(), i("svg",
|
|
705
|
+
function Xe(e, t) {
|
|
706
|
+
return x(), i("svg", Ye, [...t[0] ||= [a("path", {
|
|
711
707
|
d: "M64 448l832-320-128 704-446.016-243.008L832 192 243.008 544.96 64 448z m256 512v-303.04L512 768l-192 192z",
|
|
712
708
|
"p-id": "9851"
|
|
713
709
|
}, null, -1)]]);
|
|
714
710
|
}
|
|
715
|
-
var
|
|
716
|
-
ArrowRight: () =>
|
|
717
|
-
ArrowUp: () =>
|
|
718
|
-
CloseBold: () =>
|
|
719
|
-
Plus: () =>
|
|
720
|
-
Promotion: () =>
|
|
721
|
-
Refresh: () =>
|
|
722
|
-
Search: () =>
|
|
723
|
-
User: () =>
|
|
724
|
-
YcIcon: () =>
|
|
711
|
+
var Ze = /* @__PURE__ */ G(Je, [["render", Xe]]), Qe = /* @__PURE__ */ W({
|
|
712
|
+
ArrowRight: () => ze,
|
|
713
|
+
ArrowUp: () => Ue,
|
|
714
|
+
CloseBold: () => je,
|
|
715
|
+
Plus: () => Fe,
|
|
716
|
+
Promotion: () => Ze,
|
|
717
|
+
Refresh: () => qe,
|
|
718
|
+
Search: () => ke,
|
|
719
|
+
User: () => Ne,
|
|
720
|
+
YcIcon: () => De
|
|
725
721
|
});
|
|
726
722
|
//#endregion
|
|
727
723
|
//#region src/components/utils/tools.ts
|
|
728
|
-
function
|
|
724
|
+
function $e(e) {
|
|
729
725
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
730
726
|
}
|
|
731
|
-
function
|
|
727
|
+
function et(e) {
|
|
732
728
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
733
729
|
}
|
|
734
|
-
var tt = Object.fromEntries(Object.entries(Ce).map(([e, t]) => [e, (n = {}) => ({
|
|
735
|
-
props: n,
|
|
736
|
-
type: e,
|
|
737
|
-
component: t
|
|
738
|
-
})]));
|
|
739
730
|
function Y(e, t) {
|
|
731
|
+
let n = Object.fromEntries(Object.entries(J).map(([n, r]) => [n, (i = {}) => ({
|
|
732
|
+
props: {
|
|
733
|
+
...i,
|
|
734
|
+
data: t,
|
|
735
|
+
prop: e.prop
|
|
736
|
+
},
|
|
737
|
+
type: n,
|
|
738
|
+
component: r
|
|
739
|
+
})]));
|
|
740
740
|
return typeof e.render == "function" ? e.render({
|
|
741
|
-
h:
|
|
741
|
+
h: n,
|
|
742
742
|
data: t
|
|
743
|
-
}) :
|
|
743
|
+
}) : n.input({ prop: e.prop });
|
|
744
744
|
}
|
|
745
|
-
function X(e, t
|
|
745
|
+
function X(e, t) {
|
|
746
|
+
let n = e.prop;
|
|
746
747
|
n && typeof t == "object" && t && t[n];
|
|
747
748
|
let r = Y(e, t);
|
|
748
749
|
return typeof r != "object" || !r ? r ?? "" : (r.component, r);
|
|
749
750
|
}
|
|
750
751
|
//#endregion
|
|
751
752
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
752
|
-
var
|
|
753
|
+
var tt = { style: {
|
|
753
754
|
display: "flex",
|
|
754
755
|
"justify-content": "end",
|
|
755
756
|
"align-items": "center",
|
|
756
757
|
width: "100%"
|
|
757
|
-
} },
|
|
758
|
+
} }, nt = /* @__PURE__ */ u({
|
|
758
759
|
name: "UiDefaultFilter",
|
|
759
760
|
__name: "index",
|
|
760
761
|
props: {
|
|
@@ -829,8 +830,8 @@ var nt = { style: {
|
|
|
829
830
|
default: z(() => [(x(), n(d, {
|
|
830
831
|
key: e.prop,
|
|
831
832
|
label: e.label,
|
|
832
|
-
"label-width": P(
|
|
833
|
-
"value-width": P(
|
|
833
|
+
"label-width": P($e)(e?.labelWidth || s.labelWidth),
|
|
834
|
+
"value-width": P(et)(e?.valueWidth || s.valueWidth)
|
|
834
835
|
}, {
|
|
835
836
|
default: z(() => [e.render ? (x(), n(O(P(Y)(e, m).component), h({
|
|
836
837
|
key: 0,
|
|
@@ -838,7 +839,7 @@ var nt = { style: {
|
|
|
838
839
|
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
839
840
|
}, { ref_for: !0 }, P(Y)(e, m).props, {
|
|
840
841
|
clearable: !0,
|
|
841
|
-
style: { width: P(
|
|
842
|
+
style: { width: P(et)(e?.valueWidth || s.valueWidth) }
|
|
842
843
|
}), null, 16, [
|
|
843
844
|
"modelValue",
|
|
844
845
|
"onUpdate:modelValue",
|
|
@@ -849,7 +850,7 @@ var nt = { style: {
|
|
|
849
850
|
"onUpdate:modelValue": (t) => m[e.prop] = t,
|
|
850
851
|
placeholder: "请输入",
|
|
851
852
|
clearable: !0,
|
|
852
|
-
style: v({ width: P(
|
|
853
|
+
style: v({ width: P(et)(e?.valueWidth || s.valueWidth) })
|
|
853
854
|
}, null, 8, [
|
|
854
855
|
"modelValue",
|
|
855
856
|
"onUpdate:modelValue",
|
|
@@ -870,19 +871,19 @@ var nt = { style: {
|
|
|
870
871
|
label: "",
|
|
871
872
|
"label-width": "30px"
|
|
872
873
|
}, {
|
|
873
|
-
default: z(() => [a("div",
|
|
874
|
+
default: z(() => [a("div", tt, [
|
|
874
875
|
T(t.$slots, "left", { form: m }, void 0, !0),
|
|
875
876
|
s.fields.length >= 2 * s.column ? (x(), n(y, {
|
|
876
877
|
key: 0,
|
|
877
878
|
text: "",
|
|
878
|
-
icon: p.expand ? P(
|
|
879
|
+
icon: p.expand ? P(Ue) : P(ze),
|
|
879
880
|
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
880
881
|
}, {
|
|
881
882
|
default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
882
883
|
_: 1
|
|
883
884
|
}, 8, ["icon"])) : r("", !0),
|
|
884
885
|
l(y, {
|
|
885
|
-
icon: P(
|
|
886
|
+
icon: P(ke),
|
|
886
887
|
type: "primary",
|
|
887
888
|
onClick: b
|
|
888
889
|
}, {
|
|
@@ -890,7 +891,7 @@ var nt = { style: {
|
|
|
890
891
|
_: 1
|
|
891
892
|
}, 8, ["icon"]),
|
|
892
893
|
l(y, {
|
|
893
|
-
icon: P(
|
|
894
|
+
icon: P(qe),
|
|
894
895
|
onClick: C
|
|
895
896
|
}, {
|
|
896
897
|
default: z(() => [...o[2] ||= [c("重置", -1)]]),
|
|
@@ -909,16 +910,16 @@ var nt = { style: {
|
|
|
909
910
|
}, 16, ["model", "size"]);
|
|
910
911
|
};
|
|
911
912
|
}
|
|
912
|
-
}),
|
|
913
|
+
}), rt = /* @__PURE__ */ W({ default: () => it }), it = /* @__PURE__ */ G(nt, [["__scopeId", "data-v-0e3c7086"]]), at = {
|
|
913
914
|
key: 0,
|
|
914
915
|
style: { display: "inline-block" }
|
|
915
|
-
},
|
|
916
|
+
}, ot = {
|
|
916
917
|
key: 0,
|
|
917
918
|
style: { display: "inline-block" }
|
|
918
|
-
},
|
|
919
|
+
}, st = {
|
|
919
920
|
key: 0,
|
|
920
921
|
class: "ui-form-buttons"
|
|
921
|
-
},
|
|
922
|
+
}, ct = /* @__PURE__ */ u({
|
|
922
923
|
__name: "index",
|
|
923
924
|
props: {
|
|
924
925
|
fields: {},
|
|
@@ -943,16 +944,16 @@ var nt = { style: {
|
|
|
943
944
|
"update:modelValue"
|
|
944
945
|
],
|
|
945
946
|
setup(a, { expose: o, emit: s }) {
|
|
946
|
-
ee((e) => ({
|
|
947
|
-
let u = s, { fields:
|
|
948
|
-
get: () =>
|
|
947
|
+
ee((e) => ({ v37071bce: P(k) / 2 }));
|
|
948
|
+
let u = s, d = a, { fields: f, labelWidth: p = "100px", valueWidth: m = "auto", omitFields: g = [], rules: y = S({}), labelPosition: b = "top", valueModel: D = "default", column: k = 24 } = d, A = C(0), N = C(), F = t(() => d.modelValue !== void 0), I = S({}), L = t(() => F.value ? d.modelValue : d.model || I), R = t({
|
|
949
|
+
get: () => L.value,
|
|
949
950
|
set: (e) => {
|
|
950
|
-
|
|
951
|
+
F.value && u("update:modelValue", e);
|
|
951
952
|
}
|
|
952
|
-
}),
|
|
953
|
-
if (
|
|
953
|
+
}), B = t(() => f.filter((e) => typeof e.prop == "string")), te = t(() => {
|
|
954
|
+
if (y && Object.keys(y).length) return y;
|
|
954
955
|
let e = {};
|
|
955
|
-
return
|
|
956
|
+
return f.forEach((t) => {
|
|
956
957
|
t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
|
|
957
958
|
required: !0,
|
|
958
959
|
message: "请输入" + t.label,
|
|
@@ -961,89 +962,89 @@ var nt = { style: {
|
|
|
961
962
|
}), e;
|
|
962
963
|
});
|
|
963
964
|
async function V() {
|
|
964
|
-
await
|
|
965
|
+
await N.value?.validate().catch(() => !1) && u("submit", M(L.value));
|
|
965
966
|
}
|
|
966
967
|
function H() {
|
|
967
968
|
let e = {};
|
|
968
|
-
Object.keys(
|
|
969
|
-
|
|
970
|
-
}), Object.assign(
|
|
969
|
+
Object.keys(L.value).forEach((t) => {
|
|
970
|
+
g.includes(t) || (e[t] = void 0);
|
|
971
|
+
}), Object.assign(L.value, e), A.value += 1, u("reset", M(L.value));
|
|
971
972
|
}
|
|
972
973
|
function U() {
|
|
973
|
-
return M(
|
|
974
|
+
return M(L.value);
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
-
Object.assign(
|
|
976
|
+
function W(e) {
|
|
977
|
+
Object.assign(L.value, e);
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
-
|
|
979
|
+
function ne() {
|
|
980
|
+
N.value?.clearValidate();
|
|
980
981
|
}
|
|
981
|
-
async function
|
|
982
|
+
async function re() {
|
|
982
983
|
return new Promise((e) => {
|
|
983
|
-
|
|
984
|
+
N.value?.validate((t, n) => e(n));
|
|
984
985
|
});
|
|
985
986
|
}
|
|
986
987
|
return o({
|
|
987
988
|
getValues: U,
|
|
988
|
-
setValues:
|
|
989
|
-
clearValidate:
|
|
989
|
+
setValues: W,
|
|
990
|
+
clearValidate: ne,
|
|
990
991
|
onSubmit: V,
|
|
991
|
-
validate:
|
|
992
|
+
validate: re
|
|
992
993
|
}), (t, a) => {
|
|
993
994
|
let o = E("el-input"), s = E("el-form-item"), u = E("el-form"), d = E("el-button");
|
|
994
995
|
return x(), i(e, null, [l(u, h({
|
|
995
996
|
ref_key: "uiFormRef",
|
|
996
|
-
ref:
|
|
997
|
-
model:
|
|
997
|
+
ref: N,
|
|
998
|
+
model: R.value
|
|
998
999
|
}, t.$attrs, {
|
|
999
|
-
rules:
|
|
1000
|
-
inline: P(
|
|
1001
|
-
"label-position": P(
|
|
1000
|
+
rules: te.value,
|
|
1001
|
+
inline: P(b) !== "top",
|
|
1002
|
+
"label-position": P(b),
|
|
1002
1003
|
class: {
|
|
1003
1004
|
"ui-form": !0,
|
|
1004
|
-
horizontal: P(
|
|
1005
|
+
horizontal: P(b) !== "top"
|
|
1005
1006
|
},
|
|
1006
1007
|
"validate-on-rule-change": !1
|
|
1007
1008
|
}), {
|
|
1008
|
-
default: z(() => [(x(!0), i(e, null, w(
|
|
1009
|
+
default: z(() => [(x(!0), i(e, null, w(B.value, (r) => (x(), n(s, {
|
|
1009
1010
|
key: r.prop,
|
|
1010
1011
|
label: r.label,
|
|
1011
|
-
"label-width": P(
|
|
1012
|
-
"value-width": P(
|
|
1012
|
+
"label-width": P(p),
|
|
1013
|
+
"value-width": P(m),
|
|
1013
1014
|
prop: r.prop,
|
|
1014
1015
|
style: v({
|
|
1015
1016
|
width: `${r?.width ? r?.width + "px" : "100%"}`,
|
|
1016
|
-
gridColumn: `span ${(r?.span || P(
|
|
1017
|
+
gridColumn: `span ${(r?.span || P(k)) / 2 || 1}`
|
|
1017
1018
|
})
|
|
1018
1019
|
}, {
|
|
1019
|
-
default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(X)(r,
|
|
1020
|
+
default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(X)(r, R.value).component ? (x(), n(O(P(X)(r, R.value).component), h({
|
|
1020
1021
|
key: 1,
|
|
1021
|
-
modelValue:
|
|
1022
|
-
"onUpdate:modelValue": (e) =>
|
|
1023
|
-
}, { ref_for: !0 }, P(X)(r,
|
|
1022
|
+
modelValue: R.value[r.prop],
|
|
1023
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e
|
|
1024
|
+
}, { ref_for: !0 }, P(X)(r, R.value).props, {
|
|
1024
1025
|
clearable: !0,
|
|
1025
|
-
key: `${r.prop}-${
|
|
1026
|
+
key: `${r.prop}-${A.value}`,
|
|
1026
1027
|
style: { display: "inline-block" },
|
|
1027
|
-
class: { underline: P(
|
|
1028
|
+
class: { underline: P(D) === "underline" }
|
|
1028
1029
|
}), null, 16, [
|
|
1029
1030
|
"modelValue",
|
|
1030
1031
|
"onUpdate:modelValue",
|
|
1031
1032
|
"class"
|
|
1032
|
-
])) : (x(), i("span",
|
|
1033
|
+
])) : (x(), i("span", at, j(P(X)(r, R.value) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: R.value }, () => [P(X)(e, R.value).component ? (x(), n(O(P(X)(e, R.value).component), h({
|
|
1033
1034
|
key: 1,
|
|
1034
|
-
modelValue:
|
|
1035
|
-
"onUpdate:modelValue": (t) =>
|
|
1035
|
+
modelValue: R.value[e.prop],
|
|
1036
|
+
"onUpdate:modelValue": (t) => R.value[e.prop] = t,
|
|
1036
1037
|
"default-value": e.defaultValue,
|
|
1037
1038
|
placeholder: e.placeholder
|
|
1038
|
-
}, { ref_for: !0 }, P(X)(e,
|
|
1039
|
+
}, { ref_for: !0 }, P(X)(e, R.value).props, {
|
|
1039
1040
|
style: {
|
|
1040
1041
|
display: "inline-block",
|
|
1041
1042
|
marginLeft: "10px",
|
|
1042
1043
|
width: `${e.width ? e.width + "px" : "100%"}`
|
|
1043
1044
|
},
|
|
1044
|
-
class: { underline: P(
|
|
1045
|
+
class: { underline: P(D) === "underline" },
|
|
1045
1046
|
clearable: !0,
|
|
1046
|
-
key: `${e.prop}-${
|
|
1047
|
+
key: `${e.prop}-${A.value}`
|
|
1047
1048
|
}), null, 16, [
|
|
1048
1049
|
"modelValue",
|
|
1049
1050
|
"onUpdate:modelValue",
|
|
@@ -1051,13 +1052,13 @@ var nt = { style: {
|
|
|
1051
1052
|
"placeholder",
|
|
1052
1053
|
"style",
|
|
1053
1054
|
"class"
|
|
1054
|
-
])) : (x(), i("span",
|
|
1055
|
+
])) : (x(), i("span", ot, j(P(X)(e, R.value) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
|
|
1055
1056
|
key: 1,
|
|
1056
|
-
modelValue:
|
|
1057
|
-
"onUpdate:modelValue": (e) =>
|
|
1057
|
+
modelValue: R.value[r.prop],
|
|
1058
|
+
"onUpdate:modelValue": (e) => R.value[r.prop] = e,
|
|
1058
1059
|
placeholder: "请输入",
|
|
1059
1060
|
clearable: !0,
|
|
1060
|
-
class: _({ underline: P(
|
|
1061
|
+
class: _({ underline: P(D) === "underline" })
|
|
1061
1062
|
}, null, 8, [
|
|
1062
1063
|
"modelValue",
|
|
1063
1064
|
"onUpdate:modelValue",
|
|
@@ -1078,10 +1079,10 @@ var nt = { style: {
|
|
|
1078
1079
|
"inline",
|
|
1079
1080
|
"label-position",
|
|
1080
1081
|
"class"
|
|
1081
|
-
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div",
|
|
1082
|
-
T(t.$slots, "handle", { form:
|
|
1082
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", st, [
|
|
1083
|
+
T(t.$slots, "handle", { form: R.value }, void 0, !0),
|
|
1083
1084
|
l(d, {
|
|
1084
|
-
icon: P(
|
|
1085
|
+
icon: P(qe),
|
|
1085
1086
|
onClick: H,
|
|
1086
1087
|
size: t.$props.size
|
|
1087
1088
|
}, {
|
|
@@ -1089,7 +1090,7 @@ var nt = { style: {
|
|
|
1089
1090
|
_: 1
|
|
1090
1091
|
}, 8, ["icon", "size"]),
|
|
1091
1092
|
l(d, {
|
|
1092
|
-
icon: P(
|
|
1093
|
+
icon: P(Ze),
|
|
1093
1094
|
type: "primary",
|
|
1094
1095
|
onClick: V,
|
|
1095
1096
|
size: t.$props.size
|
|
@@ -1100,7 +1101,7 @@ var nt = { style: {
|
|
|
1100
1101
|
]))], 64);
|
|
1101
1102
|
};
|
|
1102
1103
|
}
|
|
1103
|
-
}),
|
|
1104
|
+
}), lt = /* @__PURE__ */ W({ default: () => ut }), ut = /* @__PURE__ */ G(ct, [["__scopeId", "data-v-21f3a974"]]), dt = ["disabled"], ft = /* @__PURE__ */ u({
|
|
1104
1105
|
__name: "index",
|
|
1105
1106
|
props: /* @__PURE__ */ m({
|
|
1106
1107
|
defaultValue: { default: "" },
|
|
@@ -1119,7 +1120,7 @@ var nt = { style: {
|
|
|
1119
1120
|
setup(e, { emit: t }) {
|
|
1120
1121
|
let n = C(), r = I(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
|
|
1121
1122
|
return y(() => {
|
|
1122
|
-
o = new
|
|
1123
|
+
o = new H({
|
|
1123
1124
|
element: n.value,
|
|
1124
1125
|
placeholder: "点击输入内容...",
|
|
1125
1126
|
content: r.value || e.defaultValue || "",
|
|
@@ -1138,9 +1139,9 @@ var nt = { style: {
|
|
|
1138
1139
|
ref: n,
|
|
1139
1140
|
style: { height: "500px" },
|
|
1140
1141
|
disabled: e.disabled
|
|
1141
|
-
}, null, 8,
|
|
1142
|
+
}, null, 8, dt));
|
|
1142
1143
|
}
|
|
1143
|
-
}),
|
|
1144
|
+
}), pt = /* @__PURE__ */ W({ default: () => mt }), mt = ft, ht = { class: "ui-tree-wrapper" }, gt = {
|
|
1144
1145
|
key: 0,
|
|
1145
1146
|
style: {
|
|
1146
1147
|
display: "flex",
|
|
@@ -1149,10 +1150,10 @@ var nt = { style: {
|
|
|
1149
1150
|
"align-items": "center",
|
|
1150
1151
|
gap: "10px"
|
|
1151
1152
|
}
|
|
1152
|
-
},
|
|
1153
|
+
}, _t = {
|
|
1153
1154
|
key: 0,
|
|
1154
1155
|
class: "custom-tree-node"
|
|
1155
|
-
},
|
|
1156
|
+
}, vt = { class: "node-label" }, yt = { key: 0 }, bt = ["onClick"], xt = /* @__PURE__ */ u({
|
|
1156
1157
|
__name: "index",
|
|
1157
1158
|
props: {
|
|
1158
1159
|
id: {},
|
|
@@ -1222,8 +1223,8 @@ var nt = { style: {
|
|
|
1222
1223
|
}
|
|
1223
1224
|
return (t, o) => {
|
|
1224
1225
|
let s = E("el-input"), u = E("el-button"), d = E("el-dropdown-item"), f = E("el-dropdown-menu"), g = E("el-dropdown"), v = E("el-tree-v2");
|
|
1225
|
-
return x(), i("div",
|
|
1226
|
-
e.filterable ? (x(), i("div",
|
|
1226
|
+
return x(), i("div", ht, [
|
|
1227
|
+
e.filterable ? (x(), i("div", gt, [l(s, {
|
|
1227
1228
|
modelValue: m.value,
|
|
1228
1229
|
"onUpdate:modelValue": o[0] ||= (e) => m.value = e,
|
|
1229
1230
|
placeholder: e.placeholder ?? "请输入",
|
|
@@ -1253,7 +1254,7 @@ var nt = { style: {
|
|
|
1253
1254
|
"highlight-current": !0,
|
|
1254
1255
|
"filter-method": b
|
|
1255
1256
|
}), {
|
|
1256
|
-
default: z((s) => [s?.data ? (x(), i("div",
|
|
1257
|
+
default: z((s) => [s?.data ? (x(), i("div", _t, [a("div", vt, [s.data?.children?.length ? (x(), i("span", yt, "📁")) : r("", !0), c(" " + j(s.data?.[e.props?.label || "label"]) + " " + j(y.value && s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), p.hideNodeHandle ? r("", !0) : (x(), n(g, {
|
|
1257
1258
|
key: 0,
|
|
1258
1259
|
trigger: "click"
|
|
1259
1260
|
}, {
|
|
@@ -1290,7 +1291,7 @@ var nt = { style: {
|
|
|
1290
1291
|
padding: "4px",
|
|
1291
1292
|
"font-weight": "bold"
|
|
1292
1293
|
}
|
|
1293
|
-
}, "⋮", 8,
|
|
1294
|
+
}, "⋮", 8, bt)]),
|
|
1294
1295
|
_: 2
|
|
1295
1296
|
}, 1024))])) : r("", !0)]),
|
|
1296
1297
|
_: 3
|
|
@@ -1298,13 +1299,13 @@ var nt = { style: {
|
|
|
1298
1299
|
]);
|
|
1299
1300
|
};
|
|
1300
1301
|
}
|
|
1301
|
-
}),
|
|
1302
|
+
}), St = /* @__PURE__ */ W({ default: () => Ct }), Ct = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-7858d79e"]]), wt = { style: { height: "100%" } }, Tt = { style: {
|
|
1302
1303
|
display: "flex",
|
|
1303
1304
|
"flex-direction": "row",
|
|
1304
1305
|
"justify-content": "space-between",
|
|
1305
1306
|
"align-items": "center",
|
|
1306
1307
|
gap: "10px"
|
|
1307
|
-
} },
|
|
1308
|
+
} }, Et = { style: { margin: "10px 0px" } }, Dt = ["onClick"], Ot = { key: 0 }, kt = /* @__PURE__ */ u({
|
|
1308
1309
|
__name: "index",
|
|
1309
1310
|
props: {
|
|
1310
1311
|
loading: { default: () => C(!1) },
|
|
@@ -1325,14 +1326,14 @@ var nt = { style: {
|
|
|
1325
1326
|
}
|
|
1326
1327
|
return (t, s) => {
|
|
1327
1328
|
let c = E("el-input");
|
|
1328
|
-
return x(), i("div",
|
|
1329
|
-
a("div",
|
|
1329
|
+
return x(), i("div", wt, [
|
|
1330
|
+
a("div", Tt, [o.filterable ? (x(), n(c, {
|
|
1330
1331
|
key: 0,
|
|
1331
1332
|
modelValue: l.value,
|
|
1332
1333
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
1333
1334
|
placeholder: o.placeholder ?? "请输入"
|
|
1334
1335
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
|
|
1335
|
-
a("div",
|
|
1336
|
+
a("div", Et, [T(t.$slots, "handle", {}, void 0, !0)]),
|
|
1336
1337
|
B((x(), i("ul", h({
|
|
1337
1338
|
class: "infinite-list",
|
|
1338
1339
|
"infinite-scroll-immediate": !1
|
|
@@ -1343,19 +1344,19 @@ var nt = { style: {
|
|
|
1343
1344
|
active: e === u.value
|
|
1344
1345
|
}),
|
|
1345
1346
|
onClick: (t) => f(e)
|
|
1346
|
-
}, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10,
|
|
1347
|
-
o.loading.value ? (x(), i("p",
|
|
1347
|
+
}, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Dt))), 128))], 16)), [[P(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1348
|
+
o.loading.value ? (x(), i("p", Ot, "loading...")) : r("", !0)
|
|
1348
1349
|
]);
|
|
1349
1350
|
};
|
|
1350
1351
|
}
|
|
1351
|
-
}),
|
|
1352
|
+
}), At = /* @__PURE__ */ W({ default: () => jt }), jt = /* @__PURE__ */ G(kt, [["__scopeId", "data-v-0ab5cd97"]]), Mt = {
|
|
1352
1353
|
key: 0,
|
|
1353
1354
|
style: {
|
|
1354
1355
|
padding: "10px 0px",
|
|
1355
1356
|
"margin-bottom": "10px",
|
|
1356
1357
|
"border-bottom": "1px solid #e5e5e5"
|
|
1357
1358
|
}
|
|
1358
|
-
},
|
|
1359
|
+
}, Nt = { key: 1 }, Pt = /* @__PURE__ */ u({
|
|
1359
1360
|
__name: "index",
|
|
1360
1361
|
props: {
|
|
1361
1362
|
data: {},
|
|
@@ -1373,7 +1374,7 @@ var nt = { style: {
|
|
|
1373
1374
|
return (o, s) => {
|
|
1374
1375
|
let c = E("el-descriptions-item"), u = E("el-descriptions");
|
|
1375
1376
|
return x(), i(e, null, [
|
|
1376
|
-
t.title ? (x(), i("h4",
|
|
1377
|
+
t.title ? (x(), i("h4", Mt, j(t.title), 1)) : r("", !0),
|
|
1377
1378
|
T(o.$slots, "title", {}, void 0, !0),
|
|
1378
1379
|
l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1379
1380
|
default: z(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
|
|
@@ -1389,7 +1390,7 @@ var nt = { style: {
|
|
|
1389
1390
|
clearable: !0,
|
|
1390
1391
|
key: e.prop,
|
|
1391
1392
|
style: { display: "inline-block" }
|
|
1392
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span",
|
|
1393
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Nt, j(t.data[e.prop] || "-"), 1))]),
|
|
1393
1394
|
_: 2
|
|
1394
1395
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1395
1396
|
_: 1
|
|
@@ -1397,14 +1398,14 @@ var nt = { style: {
|
|
|
1397
1398
|
], 64);
|
|
1398
1399
|
};
|
|
1399
1400
|
}
|
|
1400
|
-
}),
|
|
1401
|
+
}), Ft = /* @__PURE__ */ W({ default: () => It }), It = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-f02c30f9"]]), Lt = {
|
|
1401
1402
|
key: 0,
|
|
1402
1403
|
style: {
|
|
1403
1404
|
display: "flex",
|
|
1404
1405
|
"margin-top": "12px",
|
|
1405
1406
|
"justify-content": "end"
|
|
1406
1407
|
}
|
|
1407
|
-
},
|
|
1408
|
+
}, Rt = /* @__PURE__ */ u({
|
|
1408
1409
|
__name: "index",
|
|
1409
1410
|
props: {
|
|
1410
1411
|
visible: { type: Boolean },
|
|
@@ -1444,7 +1445,7 @@ var nt = { style: {
|
|
|
1444
1445
|
}, o.componentProps, {
|
|
1445
1446
|
onClose: u,
|
|
1446
1447
|
onSubmit: d
|
|
1447
|
-
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div",
|
|
1448
|
+
}), null, 16)), o.disabled ? r("", !0) : (x(), i("div", Lt, [l(a, { onClick: u }, {
|
|
1448
1449
|
default: z(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1449
1450
|
_: 1
|
|
1450
1451
|
}), l(a, {
|
|
@@ -1462,11 +1463,11 @@ var nt = { style: {
|
|
|
1462
1463
|
]);
|
|
1463
1464
|
};
|
|
1464
1465
|
}
|
|
1465
|
-
}),
|
|
1466
|
-
function
|
|
1466
|
+
}), zt = /* @__PURE__ */ W({ default: () => Bt }), Bt = Rt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1467
|
+
function Vt(e) {
|
|
1467
1468
|
return Array.from(new Set(e));
|
|
1468
1469
|
}
|
|
1469
|
-
function
|
|
1470
|
+
function Ht(e, t) {
|
|
1470
1471
|
let n = /* @__PURE__ */ new Set();
|
|
1471
1472
|
return e.filter((e) => {
|
|
1472
1473
|
let r = typeof t == "function" ? t(e) : e[t];
|
|
@@ -1475,7 +1476,7 @@ function Ut(e, t) {
|
|
|
1475
1476
|
}
|
|
1476
1477
|
//#endregion
|
|
1477
1478
|
//#region src/components/StaffSelect/default.vue
|
|
1478
|
-
var
|
|
1479
|
+
var Ut = /* @__PURE__ */ u({
|
|
1479
1480
|
__name: "default",
|
|
1480
1481
|
props: {
|
|
1481
1482
|
multiple: { type: Boolean },
|
|
@@ -1529,7 +1530,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1529
1530
|
"remote-method": m
|
|
1530
1531
|
}, t.$attrs), {
|
|
1531
1532
|
prefix: z(() => [l(a, null, {
|
|
1532
|
-
default: z(() => [l(P(
|
|
1533
|
+
default: z(() => [l(P(Ne))]),
|
|
1533
1534
|
_: 1
|
|
1534
1535
|
})]),
|
|
1535
1536
|
default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
|
|
@@ -1541,26 +1542,26 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1541
1542
|
}, 16, ["modelValue"]);
|
|
1542
1543
|
};
|
|
1543
1544
|
}
|
|
1544
|
-
}),
|
|
1545
|
+
}), Wt = { style: {
|
|
1545
1546
|
display: "flex",
|
|
1546
1547
|
"max-width": "100%",
|
|
1547
1548
|
gap: "20px",
|
|
1548
1549
|
"overflow-y": "scroll",
|
|
1549
1550
|
height: "400px"
|
|
1550
|
-
} },
|
|
1551
|
+
} }, Gt = { style: { flex: "1" } }, Kt = { style: { width: "320px" } }, qt = { style: {
|
|
1551
1552
|
display: "flex",
|
|
1552
1553
|
"justify-content": "space-between",
|
|
1553
1554
|
"align-items": "center",
|
|
1554
1555
|
"margin-bottom": "8px",
|
|
1555
1556
|
height: "30px"
|
|
1556
|
-
} },
|
|
1557
|
+
} }, Jt = { key: 0 }, Yt = { style: {
|
|
1557
1558
|
"overflow-y": "auto",
|
|
1558
1559
|
height: "90%"
|
|
1559
|
-
} },
|
|
1560
|
+
} }, Xt = { style: {
|
|
1560
1561
|
display: "flex",
|
|
1561
1562
|
"justify-content": "end",
|
|
1562
1563
|
"align-items": "center"
|
|
1563
|
-
} },
|
|
1564
|
+
} }, Zt = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
1564
1565
|
__name: "dialog",
|
|
1565
1566
|
props: {
|
|
1566
1567
|
modelValue: {},
|
|
@@ -1587,7 +1588,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1587
1588
|
requiredVisible: !1
|
|
1588
1589
|
}), b = C([]), T = C([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
|
|
1589
1590
|
R(() => {
|
|
1590
|
-
T.value =
|
|
1591
|
+
T.value = Vt(f.modelValue || []);
|
|
1591
1592
|
}), R(() => {
|
|
1592
1593
|
_.value && k();
|
|
1593
1594
|
});
|
|
@@ -1617,7 +1618,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1617
1618
|
...e,
|
|
1618
1619
|
code: e.account
|
|
1619
1620
|
}));
|
|
1620
|
-
n ? e.data.children =
|
|
1621
|
+
n ? e.data.children = Ht([...r, ...e.data.children || []], "code") : e.children = Ht([...r, ...e.children || []], "code"), y.loading = !1;
|
|
1621
1622
|
}), t?.(e?.children || []));
|
|
1622
1623
|
}
|
|
1623
1624
|
function N(e, { data: t }) {
|
|
@@ -1625,7 +1626,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1625
1626
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1626
1627
|
width: "14px",
|
|
1627
1628
|
height: "14px"
|
|
1628
|
-
} }, e(
|
|
1629
|
+
} }, e(Ne)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1629
1630
|
}
|
|
1630
1631
|
function ee(e) {
|
|
1631
1632
|
if (T.value = T.value.filter((t) => t !== e), m.value) {
|
|
@@ -1642,7 +1643,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1642
1643
|
pageSize: 9999,
|
|
1643
1644
|
name: y.filterText?.trim()
|
|
1644
1645
|
});
|
|
1645
|
-
if (e.code !== "ok") return
|
|
1646
|
+
if (e.code !== "ok") return K.Message.error(e.message);
|
|
1646
1647
|
y.searchData = (e?.table || []).map((e) => ({
|
|
1647
1648
|
...e,
|
|
1648
1649
|
code: e.account
|
|
@@ -1650,7 +1651,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1650
1651
|
}
|
|
1651
1652
|
function L(e, t) {
|
|
1652
1653
|
let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
|
|
1653
|
-
T.value =
|
|
1654
|
+
T.value = Vt([...T.value, ...n]);
|
|
1654
1655
|
}
|
|
1655
1656
|
function B() {
|
|
1656
1657
|
let e = p === "all" ? T.value : T.value?.map((e) => {
|
|
@@ -1660,15 +1661,15 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1660
1661
|
account: n?.replace(")", "")
|
|
1661
1662
|
}[p] || e.trim();
|
|
1662
1663
|
});
|
|
1663
|
-
u("change", e), u("update:modelValue", e), _.value = !1,
|
|
1664
|
+
u("change", e), u("update:modelValue", e), _.value = !1, U();
|
|
1664
1665
|
}
|
|
1665
|
-
function
|
|
1666
|
+
function H() {
|
|
1666
1667
|
u("update:modelValue", void 0), _.value = !1;
|
|
1667
1668
|
}
|
|
1668
|
-
function
|
|
1669
|
+
function U() {
|
|
1669
1670
|
return y.requiredVisible = O.value && T.value.length === 0, y.requiredVisible;
|
|
1670
1671
|
}
|
|
1671
|
-
return o({ validate:
|
|
1672
|
+
return o({ validate: U }), (t, n) => {
|
|
1672
1673
|
let o = E("el-select"), s = E("el-input"), u = E("el-tree"), d = E("el-icon"), p = E("el-button"), g = E("el-dialog");
|
|
1673
1674
|
return x(), i(e, null, [a("div", {
|
|
1674
1675
|
class: "staff-select-trigger",
|
|
@@ -1706,12 +1707,12 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1706
1707
|
"close-on-click-modal": !1,
|
|
1707
1708
|
"destroy-on-close": ""
|
|
1708
1709
|
}, {
|
|
1709
|
-
default: z(() => [a("div",
|
|
1710
|
+
default: z(() => [a("div", Wt, [a("div", Gt, [l(s, {
|
|
1710
1711
|
placeholder: "请输入",
|
|
1711
1712
|
modelValue: y.filterText,
|
|
1712
1713
|
"onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
|
|
1713
1714
|
clearable: "",
|
|
1714
|
-
"prefix-icon": P(
|
|
1715
|
+
"prefix-icon": P(ke),
|
|
1715
1716
|
onKeydown: te(I, ["enter"])
|
|
1716
1717
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1717
1718
|
loading: y.loading,
|
|
@@ -1728,16 +1729,16 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1728
1729
|
ref_key: "staffDialogRef",
|
|
1729
1730
|
ref: m,
|
|
1730
1731
|
"node-key": "code"
|
|
1731
|
-
}, null, 8, ["loading", "data"])]), a("div",
|
|
1732
|
+
}, null, 8, ["loading", "data"])]), a("div", Kt, [a("div", qt, [n[4] ||= a("h3", null, "已选择", -1), T.value.length ? (x(), i("span", Jt, "已选择" + j(T.value.length) + "个用户", 1)) : r("", !0)]), a("div", Yt, [(x(!0), i(e, null, w(T.value, (e) => (x(), i("li", {
|
|
1732
1733
|
key: e,
|
|
1733
1734
|
class: "staff-item"
|
|
1734
1735
|
}, [a("span", null, j(e), 1), l(d, {
|
|
1735
1736
|
color: "red",
|
|
1736
|
-
onClick:
|
|
1737
|
+
onClick: V((t) => ee(e), ["stop"])
|
|
1737
1738
|
}, {
|
|
1738
|
-
default: z(() => [l(P(
|
|
1739
|
+
default: z(() => [l(P(je))]),
|
|
1739
1740
|
_: 1
|
|
1740
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div",
|
|
1741
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", Xt, [l(p, { onClick: H }, {
|
|
1741
1742
|
default: z(() => [...n[5] ||= [c("取消", -1)]]),
|
|
1742
1743
|
_: 1
|
|
1743
1744
|
}), l(p, {
|
|
@@ -1751,7 +1752,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1751
1752
|
}, 8, ["modelValue"])], 64);
|
|
1752
1753
|
};
|
|
1753
1754
|
}
|
|
1754
|
-
}), [["__scopeId", "data-v-6c972882"]]),
|
|
1755
|
+
}), [["__scopeId", "data-v-6c972882"]]), Qt = /* @__PURE__ */ u({
|
|
1755
1756
|
__name: "index",
|
|
1756
1757
|
props: {
|
|
1757
1758
|
multiple: { type: Boolean },
|
|
@@ -1762,7 +1763,7 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1762
1763
|
},
|
|
1763
1764
|
setup(e, { expose: t }) {
|
|
1764
1765
|
let r = e, i = C();
|
|
1765
|
-
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ?
|
|
1766
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? Zt : Ut), h({
|
|
1766
1767
|
ref_key: "staffSelectRef",
|
|
1767
1768
|
ref: i
|
|
1768
1769
|
}, {
|
|
@@ -1770,13 +1771,14 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1770
1771
|
...r
|
|
1771
1772
|
}), null, 16));
|
|
1772
1773
|
}
|
|
1773
|
-
}),
|
|
1774
|
+
}), $t = /* @__PURE__ */ W({ default: () => en }), en = Qt, tn = /* @__PURE__ */ G(/* @__PURE__ */ u({
|
|
1774
1775
|
__name: "file",
|
|
1775
1776
|
props: {
|
|
1776
1777
|
icon: {},
|
|
1777
1778
|
limit: {},
|
|
1778
1779
|
size: {},
|
|
1779
1780
|
prop: {},
|
|
1781
|
+
data: {},
|
|
1780
1782
|
text: {},
|
|
1781
1783
|
type: {},
|
|
1782
1784
|
defaultValue: {},
|
|
@@ -1784,33 +1786,40 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1784
1786
|
action: {},
|
|
1785
1787
|
onChange: { type: Function }
|
|
1786
1788
|
},
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1789
|
+
setup(e) {
|
|
1790
|
+
let r = e, { text: i = "选择文件", icon: a = void 0, size: o = "default" } = r, u = F(), d = u.disabled, f = C(r.fileList || []);
|
|
1791
|
+
L(() => r.fileList, (e) => {
|
|
1792
|
+
f.value = e || [];
|
|
1793
|
+
}, {
|
|
1794
|
+
immediate: !0,
|
|
1795
|
+
deep: !0
|
|
1796
|
+
});
|
|
1797
|
+
let p = t(() => r.limit && u.count < r.limit), m = t(() => r.limit && u.count >= r.limit), g = t(() => r.limit === void 0 ? !1 : !p.value);
|
|
1790
1798
|
return (e, t) => {
|
|
1791
|
-
let
|
|
1792
|
-
return x(), n(
|
|
1799
|
+
let u = E("el-button"), _ = E("el-upload");
|
|
1800
|
+
return x(), n(_, h(e.$attrs, {
|
|
1793
1801
|
style: { width: "100%" },
|
|
1794
|
-
action:
|
|
1795
|
-
"file-list":
|
|
1796
|
-
|
|
1802
|
+
action: r.action,
|
|
1803
|
+
"file-list": f.value,
|
|
1804
|
+
"onUpdate:fileList": t[0] ||= (e) => f.value = e,
|
|
1805
|
+
limit: r.limit,
|
|
1797
1806
|
class: {
|
|
1798
|
-
"hide-upload-list":
|
|
1799
|
-
"hide-upload-text":
|
|
1807
|
+
"hide-upload-list": p.value,
|
|
1808
|
+
"hide-upload-text": m.value
|
|
1800
1809
|
}
|
|
1801
1810
|
}), s({
|
|
1802
1811
|
default: z(() => [T(e.$slots, "tip", {}, void 0, !0)]),
|
|
1803
1812
|
_: 2
|
|
1804
|
-
}, [
|
|
1813
|
+
}, [g.value ? void 0 : {
|
|
1805
1814
|
name: "trigger",
|
|
1806
|
-
fn: z(() => [l(
|
|
1815
|
+
fn: z(() => [l(u, {
|
|
1807
1816
|
type: "primary",
|
|
1808
1817
|
plain: "",
|
|
1809
|
-
icon: P(
|
|
1810
|
-
size: P(
|
|
1811
|
-
disabled: P(
|
|
1818
|
+
icon: P(a),
|
|
1819
|
+
size: P(o),
|
|
1820
|
+
disabled: P(d)
|
|
1812
1821
|
}, {
|
|
1813
|
-
default: z(() => [c(j(P(
|
|
1822
|
+
default: z(() => [c(j(P(i)), 1)]),
|
|
1814
1823
|
_: 1
|
|
1815
1824
|
}, 8, [
|
|
1816
1825
|
"icon",
|
|
@@ -1826,13 +1835,14 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1826
1835
|
]);
|
|
1827
1836
|
};
|
|
1828
1837
|
}
|
|
1829
|
-
}), [["__scopeId", "data-v-
|
|
1838
|
+
}), [["__scopeId", "data-v-43d34dc4"]]), nn = ["src"], rn = /* @__PURE__ */ u({
|
|
1830
1839
|
__name: "image",
|
|
1831
1840
|
props: {
|
|
1832
1841
|
icon: {},
|
|
1833
1842
|
limit: {},
|
|
1834
1843
|
size: {},
|
|
1835
1844
|
prop: {},
|
|
1845
|
+
data: {},
|
|
1836
1846
|
text: {},
|
|
1837
1847
|
type: {},
|
|
1838
1848
|
defaultValue: {},
|
|
@@ -1840,48 +1850,55 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1840
1850
|
action: {},
|
|
1841
1851
|
onChange: { type: Function }
|
|
1842
1852
|
},
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1853
|
+
emits: ["update:fileList"],
|
|
1854
|
+
setup(n, { emit: r }) {
|
|
1855
|
+
let o = n, s = C({}), c = C(!1), u = r, d = t({
|
|
1856
|
+
get: () => o.fileList || [],
|
|
1857
|
+
set: (e) => u("update:fileList", e)
|
|
1858
|
+
});
|
|
1859
|
+
function f(e) {
|
|
1860
|
+
s.value = e, c.value = !0;
|
|
1847
1861
|
}
|
|
1848
|
-
return (t,
|
|
1849
|
-
let
|
|
1850
|
-
return x(), i(e, null, [l(
|
|
1862
|
+
return (t, n) => {
|
|
1863
|
+
let r = E("el-icon"), u = E("el-upload"), p = E("el-dialog");
|
|
1864
|
+
return x(), i(e, null, [l(u, h({
|
|
1851
1865
|
accept: "image/*",
|
|
1852
|
-
action:
|
|
1866
|
+
action: o.action,
|
|
1853
1867
|
"auto-upload": !1
|
|
1854
1868
|
}, t.$attrs, {
|
|
1855
1869
|
"list-type": "picture-card",
|
|
1856
|
-
"on-preview":
|
|
1870
|
+
"on-preview": f,
|
|
1871
|
+
"file-list": d.value,
|
|
1872
|
+
"onUpdate:fileList": n[0] ||= (e) => d.value = e
|
|
1857
1873
|
}), {
|
|
1858
|
-
default: z(() => [l(
|
|
1859
|
-
default: z(() => [l(P(
|
|
1874
|
+
default: z(() => [l(r, null, {
|
|
1875
|
+
default: z(() => [l(P(Fe))]),
|
|
1860
1876
|
_: 1
|
|
1861
1877
|
})]),
|
|
1862
1878
|
_: 1
|
|
1863
|
-
}, 16, ["action"]), l(
|
|
1864
|
-
modelValue:
|
|
1865
|
-
"onUpdate:modelValue":
|
|
1879
|
+
}, 16, ["action", "file-list"]), l(p, {
|
|
1880
|
+
modelValue: c.value,
|
|
1881
|
+
"onUpdate:modelValue": n[1] ||= (e) => c.value = e
|
|
1866
1882
|
}, {
|
|
1867
1883
|
default: z(() => [a("img", {
|
|
1868
1884
|
"w-full": "",
|
|
1869
|
-
src:
|
|
1885
|
+
src: s.value.url,
|
|
1870
1886
|
alt: "预览"
|
|
1871
|
-
}, null, 8,
|
|
1887
|
+
}, null, 8, nn)]),
|
|
1872
1888
|
_: 1
|
|
1873
1889
|
}, 8, ["modelValue"])], 64);
|
|
1874
1890
|
};
|
|
1875
1891
|
}
|
|
1876
|
-
}),
|
|
1892
|
+
}), an = /* @__PURE__ */ u({
|
|
1877
1893
|
__name: "index",
|
|
1878
1894
|
props: {
|
|
1879
1895
|
icon: {},
|
|
1880
1896
|
limit: {},
|
|
1881
1897
|
size: {},
|
|
1882
|
-
prop: {
|
|
1898
|
+
prop: {},
|
|
1899
|
+
data: {},
|
|
1883
1900
|
text: {},
|
|
1884
|
-
type: {
|
|
1901
|
+
type: {},
|
|
1885
1902
|
defaultValue: {},
|
|
1886
1903
|
fileList: {},
|
|
1887
1904
|
action: {},
|
|
@@ -1897,68 +1914,58 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1897
1914
|
"remove"
|
|
1898
1915
|
],
|
|
1899
1916
|
setup(e, { emit: r }) {
|
|
1900
|
-
let i = r, a = o(
|
|
1901
|
-
|
|
1902
|
-
"
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
"
|
|
1907
|
-
]), s = Z + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
|
|
1908
|
-
get: () => N(e.fileList) || [],
|
|
1909
|
-
set: (e) => i("update:fileList", e)
|
|
1910
|
-
});
|
|
1911
|
-
y(async () => {
|
|
1912
|
-
u.value = N(e.fileList)?.length || 0;
|
|
1913
|
-
});
|
|
1914
|
-
function p(t, n) {
|
|
1915
|
-
let r = Array.isArray(n) ? n : [];
|
|
1916
|
-
e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
|
|
1917
|
+
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, ...p } = a, m = l || Z + "/attachment/uploadAttachment", g = { token: localStorage.getItem("TOKEN") || "" }, _ = t(() => u && d && u[d] ? u[d] : a.fileList || []), v = t(() => _.value.length);
|
|
1918
|
+
function y(e) {
|
|
1919
|
+
i("update:fileList", e);
|
|
1920
|
+
}
|
|
1921
|
+
function b(e, t) {
|
|
1922
|
+
let n = Array.isArray(t) ? t : [];
|
|
1923
|
+
s?.(n, e), i("update:fileList", n), i("update:modelValue", n), i("change", n);
|
|
1917
1924
|
}
|
|
1918
|
-
function
|
|
1919
|
-
|
|
1925
|
+
function S() {
|
|
1926
|
+
c && K.Message.warning(`最多只能上传 ${c} 个文件`);
|
|
1920
1927
|
}
|
|
1921
|
-
function
|
|
1922
|
-
i("update:
|
|
1928
|
+
function C(e, t) {
|
|
1929
|
+
i("update:fileList", t), i("update:modelValue", t), i("remove", t);
|
|
1923
1930
|
}
|
|
1924
|
-
function
|
|
1925
|
-
let n =
|
|
1926
|
-
if (e?.code !== "ok") return
|
|
1927
|
-
let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${
|
|
1928
|
-
n
|
|
1931
|
+
function w(e, t) {
|
|
1932
|
+
let n = [...a.fileList || []];
|
|
1933
|
+
if (e?.code !== "ok") return K.Message.error(e?.message);
|
|
1934
|
+
let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${g.token}`;
|
|
1935
|
+
n.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
1929
1936
|
name: t.name,
|
|
1930
1937
|
uid: t.uid,
|
|
1931
1938
|
size: t.size,
|
|
1932
1939
|
status: "success",
|
|
1933
1940
|
...e.data,
|
|
1934
1941
|
url: r
|
|
1935
|
-
}),
|
|
1942
|
+
}), i("update:fileList", n), i("update:modelValue", n), i("success", n);
|
|
1936
1943
|
}
|
|
1937
|
-
function
|
|
1938
|
-
i("update:modelValue", n);
|
|
1944
|
+
function T(e, t, n) {
|
|
1945
|
+
i("update:fileList", n), i("update:modelValue", n);
|
|
1939
1946
|
}
|
|
1940
|
-
return (
|
|
1941
|
-
|
|
1942
|
-
ref: l,
|
|
1947
|
+
return (e, t) => (x(), n(O(P(o) === "image" ? rn : tn), h({
|
|
1948
|
+
ref: "uploadInstance",
|
|
1943
1949
|
name: "file",
|
|
1944
|
-
action: P(
|
|
1945
|
-
headers:
|
|
1946
|
-
"on-change":
|
|
1947
|
-
"on-exceed":
|
|
1948
|
-
"on-remove":
|
|
1949
|
-
"on-success":
|
|
1950
|
-
"on-error":
|
|
1951
|
-
"file-list":
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1950
|
+
action: P(m),
|
|
1951
|
+
headers: g,
|
|
1952
|
+
"on-change": b,
|
|
1953
|
+
"on-exceed": S,
|
|
1954
|
+
"on-remove": C,
|
|
1955
|
+
"on-success": w,
|
|
1956
|
+
"on-error": T,
|
|
1957
|
+
"file-list": _.value,
|
|
1958
|
+
"onUpdate:fileList": y,
|
|
1959
|
+
count: v.value,
|
|
1960
|
+
limit: P(c)
|
|
1961
|
+
}, p), null, 16, [
|
|
1955
1962
|
"action",
|
|
1956
1963
|
"file-list",
|
|
1957
1964
|
"count",
|
|
1958
1965
|
"limit"
|
|
1959
1966
|
]));
|
|
1960
1967
|
}
|
|
1961
|
-
}),
|
|
1968
|
+
}), on = /* @__PURE__ */ W({ default: () => sn }), sn = an, cn = {
|
|
1962
1969
|
mounted(e, t) {
|
|
1963
1970
|
let n = t.value || {}, r = n.target || "body", i = n.top || 0;
|
|
1964
1971
|
e._stickyOriginalStyles = {
|
|
@@ -1983,15 +1990,15 @@ var Wt = /* @__PURE__ */ u({
|
|
|
1983
1990
|
unmounted(e) {
|
|
1984
1991
|
e._stickyScrollListener && window.removeEventListener("scroll", e._stickyScrollListener), e._stickyOriginalStyles && (e.style.position = e._stickyOriginalStyles.position, e.style.top = e._stickyOriginalStyles.top, e.style.zIndex = e._stickyOriginalStyles.zIndex, e.style.width = e._stickyOriginalStyles.width);
|
|
1985
1992
|
}
|
|
1986
|
-
},
|
|
1993
|
+
}, ln = { mounted(e) {
|
|
1987
1994
|
e.style.boxShadow = "0px 0px 12px rgba(0, 0, 0, 0.12)", e.style.padding = "20px", e.style.borderRadius = "4px", e.style.border = "1px solid #e4e7ed", e.style.backgroundColor = "#fff";
|
|
1988
|
-
} },
|
|
1989
|
-
card: () =>
|
|
1990
|
-
sticky: () =>
|
|
1995
|
+
} }, un = /* @__PURE__ */ W({
|
|
1996
|
+
card: () => ln,
|
|
1997
|
+
sticky: () => cn
|
|
1991
1998
|
});
|
|
1992
1999
|
//#endregion
|
|
1993
2000
|
//#region src/hooks/useFetch.ts
|
|
1994
|
-
function
|
|
2001
|
+
function dn(e, t = {}) {
|
|
1995
2002
|
let { immediate: n = !0, method: r = "GET", onBefore: i, onSuccess: a, onError: o, onFinally: s, ...c } = t, l = localStorage.getItem("TOKEN"), u = {
|
|
1996
2003
|
method: r,
|
|
1997
2004
|
headers: new Headers({
|
|
@@ -2011,7 +2018,7 @@ function fn(e, t = {}) {
|
|
|
2011
2018
|
e && (t = `${t}?${e}`);
|
|
2012
2019
|
} else u.body = JSON.stringify(M(h));
|
|
2013
2020
|
let n = await (await fetch(t, u)).json();
|
|
2014
|
-
return n.code ? ["return.optSuccess", "ok"].includes(n.code) ||
|
|
2021
|
+
return n.code ? ["return.optSuccess", "ok"].includes(n.code) || K.Message.error(n.message || "未知错误!") : n.data?.success || K.Message.error(n.message || "未知错误!"), f.value = n, a?.(n), n;
|
|
2015
2022
|
} catch (e) {
|
|
2016
2023
|
let t = e instanceof Error ? e : Error(String(e));
|
|
2017
2024
|
throw m.value = t, console.error("请求发生错误:", t), o?.(t), t;
|
|
@@ -2041,7 +2048,7 @@ function fn(e, t = {}) {
|
|
|
2041
2048
|
}
|
|
2042
2049
|
//#endregion
|
|
2043
2050
|
//#region src/hooks/useTable/default.ts
|
|
2044
|
-
function
|
|
2051
|
+
function fn(e, t) {
|
|
2045
2052
|
let n = S({
|
|
2046
2053
|
ignoreAttrs: [
|
|
2047
2054
|
"tableName",
|
|
@@ -2065,7 +2072,7 @@ function pn(e, t) {
|
|
|
2065
2072
|
data: r,
|
|
2066
2073
|
pagination: i
|
|
2067
2074
|
};
|
|
2068
|
-
let s =
|
|
2075
|
+
let s = dn(e, {
|
|
2069
2076
|
...t,
|
|
2070
2077
|
defaultParams: o,
|
|
2071
2078
|
onSuccess: (e) => {
|
|
@@ -2110,44 +2117,44 @@ function pn(e, t) {
|
|
|
2110
2117
|
}
|
|
2111
2118
|
//#endregion
|
|
2112
2119
|
//#region src/utils/request.ts
|
|
2113
|
-
var
|
|
2120
|
+
var pn = new Headers({
|
|
2114
2121
|
"Content-Type": "application/json",
|
|
2115
2122
|
token: localStorage.getItem("TOKEN") || ""
|
|
2116
2123
|
});
|
|
2117
|
-
async function
|
|
2124
|
+
async function mn(e, t) {
|
|
2118
2125
|
let n = `${Z}${e}`;
|
|
2119
2126
|
if (t) {
|
|
2120
2127
|
let e = new URLSearchParams(t).toString();
|
|
2121
2128
|
e && (n = `${n}?${e}`);
|
|
2122
2129
|
}
|
|
2123
2130
|
return (await fetch(n, {
|
|
2124
|
-
headers:
|
|
2131
|
+
headers: pn,
|
|
2125
2132
|
method: "GET"
|
|
2126
2133
|
})).json();
|
|
2127
2134
|
}
|
|
2128
|
-
async function
|
|
2135
|
+
async function hn(e, t) {
|
|
2129
2136
|
return (await fetch(`${Z}${e}`, {
|
|
2130
|
-
headers:
|
|
2137
|
+
headers: pn,
|
|
2131
2138
|
method: "POST",
|
|
2132
2139
|
body: JSON.stringify(t)
|
|
2133
2140
|
})).json();
|
|
2134
2141
|
}
|
|
2135
|
-
async function
|
|
2142
|
+
async function gn(e, t) {
|
|
2136
2143
|
return (await fetch(`${Z}${e}`, {
|
|
2137
|
-
headers:
|
|
2144
|
+
headers: pn,
|
|
2138
2145
|
method: "POST",
|
|
2139
2146
|
body: JSON.stringify(t)
|
|
2140
2147
|
})).blob();
|
|
2141
2148
|
}
|
|
2142
2149
|
var Q = {
|
|
2143
|
-
get:
|
|
2144
|
-
post:
|
|
2145
|
-
blob:
|
|
2150
|
+
get: mn,
|
|
2151
|
+
post: hn,
|
|
2152
|
+
blob: gn
|
|
2146
2153
|
};
|
|
2147
2154
|
//#endregion
|
|
2148
2155
|
//#region src/hooks/useTable/common.ts
|
|
2149
|
-
function
|
|
2150
|
-
let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o =
|
|
2156
|
+
function _n(e, n) {
|
|
2157
|
+
let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o = fn(e, {
|
|
2151
2158
|
...i,
|
|
2152
2159
|
ready: t(() => {
|
|
2153
2160
|
let e = p(n.ready) ? n.ready.value : n.ready, t = !!a.value?.tableId;
|
|
@@ -2203,7 +2210,7 @@ function vn(e, n) {
|
|
|
2203
2210
|
tableId: r?.tableId,
|
|
2204
2211
|
type: "all"
|
|
2205
2212
|
}), o = new Blob([i]), s = document.createElement("a");
|
|
2206
|
-
s.href = window.URL.createObjectURL(o), s.download = `${n}.xlsx`, s.click(),
|
|
2213
|
+
s.href = window.URL.createObjectURL(o), s.download = `${n}.xlsx`, s.click(), K.Message.success("导出成功"), window.URL.revokeObjectURL(s.href);
|
|
2207
2214
|
}
|
|
2208
2215
|
let f = S({
|
|
2209
2216
|
loading: !1,
|
|
@@ -2220,49 +2227,49 @@ function vn(e, n) {
|
|
|
2220
2227
|
}
|
|
2221
2228
|
//#endregion
|
|
2222
2229
|
//#region src/hooks/useTable/index.ts
|
|
2223
|
-
function
|
|
2224
|
-
return e?.includes("/common/pageQuery") ?
|
|
2230
|
+
function vn(e, t) {
|
|
2231
|
+
return e?.includes("/common/pageQuery") ? _n(e, t) : fn(e, t);
|
|
2225
2232
|
}
|
|
2226
2233
|
//#endregion
|
|
2227
2234
|
//#region src/hooks/index.ts
|
|
2228
|
-
var
|
|
2229
|
-
useFetch: () =>
|
|
2230
|
-
useTable: () =>
|
|
2231
|
-
}),
|
|
2232
|
-
UiCard:
|
|
2233
|
-
UiTable:
|
|
2234
|
-
UiFilter:
|
|
2235
|
-
UiForm:
|
|
2236
|
-
UiEditor:
|
|
2237
|
-
UiTree:
|
|
2238
|
-
UiInfiniteScroll:
|
|
2239
|
-
UiDescriptions:
|
|
2240
|
-
UiDialog:
|
|
2241
|
-
UiStaffSelect:
|
|
2242
|
-
UiUpload:
|
|
2243
|
-
},
|
|
2244
|
-
function
|
|
2245
|
-
|
|
2235
|
+
var yn = /* @__PURE__ */ W({
|
|
2236
|
+
useFetch: () => dn,
|
|
2237
|
+
useTable: () => vn
|
|
2238
|
+
}), bn = "Yc", xn = {
|
|
2239
|
+
UiCard: ie,
|
|
2240
|
+
UiTable: we,
|
|
2241
|
+
UiFilter: rt,
|
|
2242
|
+
UiForm: lt,
|
|
2243
|
+
UiEditor: pt,
|
|
2244
|
+
UiTree: St,
|
|
2245
|
+
UiInfiniteScroll: At,
|
|
2246
|
+
UiDescriptions: Ft,
|
|
2247
|
+
UiDialog: zt,
|
|
2248
|
+
UiStaffSelect: $t,
|
|
2249
|
+
UiUpload: on
|
|
2250
|
+
}, Sn = null;
|
|
2251
|
+
function Cn(e) {
|
|
2252
|
+
Sn = e;
|
|
2246
2253
|
}
|
|
2247
2254
|
function $() {
|
|
2248
|
-
return
|
|
2255
|
+
return Sn;
|
|
2249
2256
|
}
|
|
2250
|
-
var
|
|
2251
|
-
t?.elementPlus && t.elementPlus.install(e),
|
|
2257
|
+
var wn = { install(e, t) {
|
|
2258
|
+
t?.elementPlus && t.elementPlus.install(e), Sn ||= {
|
|
2252
2259
|
...e,
|
|
2253
2260
|
h: f
|
|
2254
2261
|
};
|
|
2255
|
-
for (let [t, n] of Object.entries(
|
|
2262
|
+
for (let [t, n] of Object.entries(xn)) {
|
|
2256
2263
|
let r = n?.default || n;
|
|
2257
2264
|
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
2258
|
-
let n = t.replace(/^Ui/,
|
|
2265
|
+
let n = t.replace(/^Ui/, bn);
|
|
2259
2266
|
e.component(n, r);
|
|
2260
2267
|
let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
2261
2268
|
i !== n && e.component(i, r);
|
|
2262
2269
|
}
|
|
2263
2270
|
}
|
|
2264
|
-
for (let [t, n] of Object.entries(
|
|
2265
|
-
for (let [t, n] of Object.entries(
|
|
2271
|
+
for (let [t, n] of Object.entries(Qe)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
2272
|
+
for (let [t, n] of Object.entries(un)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
2266
2273
|
} };
|
|
2267
2274
|
//#endregion
|
|
2268
|
-
export {
|
|
2275
|
+
export { ie as _, vn as a, $t as c, At as d, St as f, we as g, rt as h, yn as i, zt as l, lt as m, Cn as n, dn as o, pt as p, wn as r, on as s, $ as t, Ft as u };
|