yc-vep-ui 0.2.1 → 0.2.2

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/vep-ui.es.js CHANGED
@@ -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, mergeModels as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onMounted as v, onUnmounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, resolveDirective as E, resolveDynamicComponent as D, setBlockTracking as O, toDisplayString as k, toValue as A, unref as j, useAttrs as M, useCssVars as N, useModel as P, watch as F, watchEffect as ee, withCtx as I, withDirectives as L, withKeys as te, withModifiers as ne } from "vue";
2
- import { AiEditor as re } from "aieditor";
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 te, watch as I, watchEffect as L, withCtx as R, withDirectives as ne, withKeys as re, withModifiers as ie } from "vue";
2
+ import { AiEditor as ae } from "aieditor";
3
3
  //#region \0rolldown/runtime.js
4
- var R = Object.defineProperty, z = (e, t) => {
4
+ var z = Object.defineProperty, B = (e, t) => {
5
5
  let n = {};
6
- for (var r in e) R(n, r, {
6
+ for (var r in e) z(n, r, {
7
7
  get: e[r],
8
8
  enumerable: !0
9
9
  });
10
- return t || R(n, Symbol.toStringTag, { value: "Module" }), n;
11
- }, ie = { class: /* @__PURE__ */ g({ bodyClass: !0 }) }, B = /* @__PURE__ */ u({
10
+ return t || z(n, Symbol.toStringTag, { value: "Module" }), n;
11
+ }, oe = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, se = /* @__PURE__ */ u({
12
12
  __name: "index",
13
13
  props: {
14
14
  title: {},
@@ -24,19 +24,19 @@ var R = Object.defineProperty, z = (e, t) => {
24
24
  borderBottom: e.hideBorder ? "1px solid #e5e7eb" : "none"
25
25
  }));
26
26
  return (t, o) => {
27
- let l = T("el-icon"), u = T("el-card");
28
- return b(), n(u, m(t.$attrs, { class: {
27
+ let l = E("el-icon"), u = E("el-card");
28
+ return x(), n(u, h(t.$attrs, { class: {
29
29
  "ui-card": !0,
30
30
  hideBorder: e.hideBorder
31
31
  } }), s({
32
- default: I(() => [a("div", ie, [w(t.$slots, "default", {}, void 0, !0)])]),
32
+ default: R(() => [a("div", oe, [T(t.$slots, "default", {}, void 0, !0)])]),
33
33
  _: 2
34
34
  }, [e.title && e.title?.length > 0 ? {
35
35
  name: "header",
36
- fn: I(() => [a("div", { style: _(i.value) }, [e.icon ? (b(), n(l, { key: 0 }, {
37
- default: I(() => [(b(), n(D(e.icon), { color: "#2563eb" }))]),
36
+ fn: R(() => [a("div", { style: v(i.value) }, [e.icon ? (x(), n(l, { key: 0 }, {
37
+ default: R(() => [(x(), n(O(e.icon), { color: "#2563eb" }))]),
38
38
  _: 1
39
- })) : r("", !0), o[0] || (O(-1, !0), (o[0] = a("h4", null, [c(k(e.title), 1)])).cacheIndex = 0, O(1), o[0])], 4)]),
39
+ })) : r("", !0), o[0] || (k(-1, !0), (o[0] = a("h4", null, [c(j(e.title), 1)])).cacheIndex = 0, k(1), o[0])], 4)]),
40
40
  key: "0"
41
41
  } : void 0]), 1040, ["class"]);
42
42
  };
@@ -45,7 +45,7 @@ var R = Object.defineProperty, z = (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
- }, ae = /* @__PURE__ */ z({ default: () => oe }), oe = /* @__PURE__ */ V(B, [["__scopeId", "data-v-6ebb01d7"]]), H = {
48
+ }, ce = /* @__PURE__ */ B({ default: () => le }), le = /* @__PURE__ */ V(se, [["__scopeId", "data-v-6ebb01d7"]]), H = {
49
49
  get Button() {
50
50
  return $()?.resolveComponent?.("el-button") || "el-button";
51
51
  },
@@ -146,7 +146,7 @@ function U() {
146
146
  return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
147
147
  };
148
148
  }
149
- function se(e) {
149
+ function ue(e) {
150
150
  let t = U();
151
151
  return t ? t("div", { style: {
152
152
  display: "flex",
@@ -163,7 +163,7 @@ function se(e) {
163
163
  }, () => n);
164
164
  })) : null;
165
165
  }
166
- function ce(e) {
166
+ function de(e) {
167
167
  let t = U();
168
168
  return t ? Array.isArray(e) ? t("div", { style: {
169
169
  display: "flex",
@@ -184,7 +184,7 @@ function ce(e) {
184
184
  type: e.type || "primary"
185
185
  }, () => e.prop)) : null;
186
186
  }
187
- function le(e) {
187
+ function fe(e) {
188
188
  let t = U();
189
189
  return t ? t("div", { style: {
190
190
  display: "flex",
@@ -193,11 +193,11 @@ function le(e) {
193
193
  flexWrap: "wrap"
194
194
  } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(H.Tag, e, () => n))) : null;
195
195
  }
196
- function ue(e) {
196
+ function pe(e) {
197
197
  let t = U();
198
198
  return t ? t(H.Tag, { ...e }) : null;
199
199
  }
200
- function de(e) {
200
+ function me(e) {
201
201
  let t = U();
202
202
  return t ? t(H.Select, {
203
203
  style: { minWidth: "160px" },
@@ -206,7 +206,7 @@ function de(e) {
206
206
  filterable: !0
207
207
  }) : null;
208
208
  }
209
- function fe(e) {
209
+ function he(e) {
210
210
  let t = U();
211
211
  if (!t) return null;
212
212
  let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
@@ -220,7 +220,7 @@ function fe(e) {
220
220
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
221
221
  });
222
222
  }
223
- function pe(e) {
223
+ function ge(e) {
224
224
  let t = U();
225
225
  if (!t) return null;
226
226
  let { start: n = "00:00", end: r = "23:30", ...i } = e;
@@ -232,14 +232,14 @@ function pe(e) {
232
232
  filterable: !0
233
233
  });
234
234
  }
235
- function me(e) {
235
+ function _e(e) {
236
236
  let t = U();
237
237
  return t ? t(H.Input, {
238
238
  ...e,
239
239
  placeholder: "请输入"
240
240
  }) : null;
241
241
  }
242
- function he(e) {
242
+ function ve(e) {
243
243
  let t = U();
244
244
  if (!t) return null;
245
245
  let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
@@ -254,7 +254,7 @@ function he(e) {
254
254
  ...i
255
255
  });
256
256
  }
257
- function ge(e) {
257
+ function ye(e) {
258
258
  let t = U();
259
259
  if (!t) return null;
260
260
  let { rows: n = 1, ...r } = e;
@@ -265,7 +265,7 @@ function ge(e) {
265
265
  type: "textarea"
266
266
  });
267
267
  }
268
- function _e(e) {
268
+ function be(e) {
269
269
  let t = U();
270
270
  return t ? t(H.InputTag, {
271
271
  placeholder: "请输入",
@@ -273,52 +273,52 @@ function _e(e) {
273
273
  clearable: !1
274
274
  }) : null;
275
275
  }
276
- function ve(e) {
276
+ function xe(e) {
277
277
  let t = U();
278
- return t ? t(ut || Z, e) : null;
278
+ return t ? t(ht || mt, e) : null;
279
279
  }
280
- function ye(e) {
280
+ function Se(e) {
281
281
  let t = U();
282
282
  return t ? t(H.RadioGroup, e) : null;
283
283
  }
284
- function be(e) {
284
+ function Ce(e) {
285
285
  let t = U();
286
286
  return t ? t(H.Text, e, () => e.prop) : null;
287
287
  }
288
- function xe(e) {
288
+ function we(e) {
289
289
  let t = U();
290
- return t ? t(Xt || Yt, {
290
+ return t ? t(tn || en, {
291
291
  placeholder: "请选择",
292
292
  ...e,
293
293
  searchable: !0
294
294
  }) : null;
295
295
  }
296
- function Se(e) {
296
+ function Te(e) {
297
297
  let t = U();
298
- return t ? t(nn || tn, {
298
+ return t ? t(cn || sn, {
299
299
  ...e,
300
300
  "file-list": e.modelValue || e.fileList,
301
301
  "onUpdate:fileList": (t, n) => e.onChange?.(n, t)
302
302
  }) : null;
303
303
  }
304
304
  var W = {
305
- button: se,
306
- link: ce,
307
- tag: le,
308
- switch: ue,
309
- select: de,
310
- datePicker: fe,
311
- timeSelect: pe,
312
- input: me,
313
- inputNumber: he,
314
- textarea: ge,
315
- inputTag: _e,
316
- editor: ve,
317
- radio: ye,
318
- text: be,
319
- staffSelect: xe,
320
- upload: Se
321
- }, Ce = /* @__PURE__ */ u({
305
+ button: ue,
306
+ link: de,
307
+ tag: fe,
308
+ switch: pe,
309
+ select: me,
310
+ datePicker: he,
311
+ timeSelect: ge,
312
+ input: _e,
313
+ inputNumber: ve,
314
+ textarea: ye,
315
+ inputTag: be,
316
+ editor: xe,
317
+ radio: Se,
318
+ text: Ce,
319
+ staffSelect: we,
320
+ upload: Te
321
+ }, Ee = /* @__PURE__ */ u({
322
322
  name: "UiColumn",
323
323
  __name: "UiColumn",
324
324
  props: {
@@ -357,13 +357,13 @@ var W = {
357
357
  return i ? typeof i == "object" ? i : f("div", { innerHTML: String(i) }) : null;
358
358
  }
359
359
  return (r, a) => {
360
- let l = T("UiColumn", !0), u = T("el-table-column"), d = T("el-text");
361
- return t.column?.children && t.column?.children?.length > 0 ? (b(), n(u, {
360
+ let l = E("UiColumn", !0), u = E("el-table-column"), d = E("el-text");
361
+ return t.column?.children && t.column?.children?.length > 0 ? (x(), n(u, {
362
362
  key: 0,
363
363
  label: t.column.label,
364
364
  align: o.align
365
365
  }, {
366
- default: I(() => [(b(!0), i(e, null, C(t.column.children, (e) => (b(), n(l, m({
366
+ default: R(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
367
367
  column: e,
368
368
  data: o.data
369
369
  }, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
@@ -372,7 +372,7 @@ var W = {
372
372
  "align"
373
373
  ]))), 256))]),
374
374
  _: 1
375
- }, 8, ["label", "align"])) : (b(), n(u, {
375
+ }, 8, ["label", "align"])) : (x(), n(u, {
376
376
  key: 1,
377
377
  prop: String(t.column.prop),
378
378
  label: t.column.label,
@@ -381,15 +381,15 @@ var W = {
381
381
  width: t.column.width,
382
382
  "show-overflow-tooltip": t.column.showOverflowTooltip
383
383
  }, {
384
- default: I(({ row: e, $index: r }) => [t.column.render ? (b(), n(D(s(e, r, t.column)), {
384
+ default: R(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
385
385
  key: 0,
386
386
  align: o.align,
387
387
  size: o.size
388
- }, null, 8, ["align", "size"])) : (b(), n(d, {
388
+ }, null, 8, ["align", "size"])) : (x(), n(d, {
389
389
  key: 1,
390
390
  "line-clamp": t.column?.lineClamp || 2
391
391
  }, {
392
- default: I(() => [c(k(e[t.column.prop]), 1)]),
392
+ default: R(() => [c(j(e[t.column.prop]), 1)]),
393
393
  _: 2
394
394
  }, 1032, ["line-clamp"]))]),
395
395
  _: 1
@@ -403,7 +403,7 @@ var W = {
403
403
  ]));
404
404
  };
405
405
  }
406
- }), we = /* @__PURE__ */ u({
406
+ }), De = /* @__PURE__ */ u({
407
407
  __name: "index",
408
408
  props: {
409
409
  loading: {
@@ -415,14 +415,14 @@ var W = {
415
415
  default: !1
416
416
  },
417
417
  size: { default: "default" },
418
- data: { default: () => x([]) },
418
+ data: { default: () => S([]) },
419
419
  columns: {},
420
420
  align: { default: "left" },
421
421
  hidePagination: {
422
422
  type: Boolean,
423
423
  default: !1
424
424
  },
425
- pagination: { default: () => x({
425
+ pagination: { default: () => S({
426
426
  page: 1,
427
427
  pageSize: 10,
428
428
  total: 0,
@@ -448,16 +448,16 @@ var W = {
448
448
  "pagination",
449
449
  "data",
450
450
  "size"
451
- ]), u = S(), d = t(() => A(l.columns)?.some((e) => e.type === "index")), f = t(() => A(l.columns)?.some((e) => e.type === "selection")), p = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
452
- F(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
453
- !e?.length || !t?.length || h(() => {
451
+ ]), u = C(), d = t(() => N(l.columns)?.some((e) => e.type === "index")), f = t(() => N(l.columns)?.some((e) => e.type === "selection")), p = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
452
+ I(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
453
+ !e?.length || !t?.length || g(() => {
454
454
  if (!u.value) return;
455
455
  let n = t.filter((t) => e.includes(t.id));
456
456
  u.value.clearSelection(), n.forEach((e) => u.value?.toggleRowSelection(e, !0));
457
457
  });
458
458
  }, { immediate: !0 });
459
- function g(e, t) {
460
- a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", A(a.pagination));
459
+ function m(e, t) {
460
+ a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", N(a.pagination));
461
461
  }
462
462
  function _(e, t, n) {
463
463
  a.data[e] && (a.data[e] = {
@@ -466,9 +466,9 @@ var W = {
466
466
  });
467
467
  }
468
468
  return (t, o) => {
469
- let s = T("el-table-column"), c = T("el-table"), h = T("el-pagination"), v = E("loading");
470
- return b(), i("div", null, [
471
- L((b(), n(c, m({ border: a.border }, t.$attrs, {
469
+ let s = E("el-table-column"), c = E("el-table"), g = E("el-pagination"), v = D("loading");
470
+ return x(), i("div", null, [
471
+ ne((x(), n(c, h({ border: a.border }, t.$attrs, {
472
472
  data: a.data,
473
473
  lazy: !0,
474
474
  class: "ui-table",
@@ -476,8 +476,8 @@ var W = {
476
476
  ref_key: "tableRef",
477
477
  ref: u
478
478
  }), {
479
- default: I(() => [
480
- f.value ? (b(), n(s, {
479
+ default: R(() => [
480
+ f.value ? (x(), n(s, {
481
481
  key: 0,
482
482
  type: "selection",
483
483
  selectable: l.selectable,
@@ -485,7 +485,7 @@ var W = {
485
485
  align: a.align,
486
486
  fixed: "left"
487
487
  }, null, 8, ["selectable", "align"])) : r("", !0),
488
- d.value ? (b(), n(s, {
488
+ d.value ? (x(), n(s, {
489
489
  key: 1,
490
490
  fixed: "left",
491
491
  type: "index",
@@ -494,7 +494,7 @@ var W = {
494
494
  "column-key": "index_1",
495
495
  align: a.align
496
496
  }, null, 8, ["align"])) : r("", !0),
497
- (b(!0), i(e, null, C(p.value, (e, t) => (b(), n(Ce, {
497
+ (x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Ee, {
498
498
  key: t + "column_" + e?.prop?.toString(),
499
499
  column: e,
500
500
  data: a.data,
@@ -510,7 +510,7 @@ var W = {
510
510
  ]),
511
511
  _: 1
512
512
  }, 16, ["border", "data"])), [[v, a.loading]]),
513
- a.hidePagination ? r("", !0) : (b(), n(h, {
513
+ a.hidePagination ? r("", !0) : (x(), n(g, {
514
514
  key: 0,
515
515
  class: "ui-pagination",
516
516
  size: "small",
@@ -527,18 +527,18 @@ var W = {
527
527
  "onUpdate:currentPage": o[1] ||= (e) => a.pagination.page = e,
528
528
  total: a.pagination.total,
529
529
  "onUpdate:total": o[2] ||= (e) => a.pagination.total = e,
530
- onChange: g
530
+ onChange: m
531
531
  }, null, 8, [
532
532
  "page-sizes",
533
533
  "page-size",
534
534
  "current-page",
535
535
  "total"
536
536
  ])),
537
- w(t.$slots, "default", {}, void 0, !0)
537
+ T(t.$slots, "default", {}, void 0, !0)
538
538
  ]);
539
539
  };
540
540
  }
541
- }), Te = /* @__PURE__ */ z({ default: () => Ee }), Ee = /* @__PURE__ */ V(we, [["__scopeId", "data-v-adf869c1"]]), De = ["src"], Oe = /* @__PURE__ */ u({
541
+ }), Oe = /* @__PURE__ */ B({ default: () => ke }), ke = /* @__PURE__ */ V(De, [["__scopeId", "data-v-adf869c1"]]), Ae = ["src"], je = /* @__PURE__ */ u({
542
542
  __name: "Icon",
543
543
  props: {
544
544
  name: {},
@@ -546,19 +546,19 @@ var W = {
546
546
  size: {}
547
547
  },
548
548
  setup(e) {
549
- return (t, a) => e.name ? (b(), n(D(t.$attrs.component || e.name), m({ key: 0 }, t.$attrs, { style: {
549
+ return (t, a) => e.name ? (x(), n(O(t.$attrs.component || e.name), h({ key: 0 }, t.$attrs, { style: {
550
550
  width: "100%",
551
551
  height: "100%"
552
- } }), null, 16)) : e.url ? (b(), i("img", {
552
+ } }), null, 16)) : e.url ? (x(), i("img", {
553
553
  key: 1,
554
554
  src: e.url,
555
- style: _({
555
+ style: v({
556
556
  width: e.size,
557
557
  height: e.size
558
558
  })
559
- }, null, 12, De)) : r("", !0);
559
+ }, null, 12, Ae)) : r("", !0);
560
560
  }
561
- }), ke = {
561
+ }), Me = {
562
562
  style: {
563
563
  width: "100%",
564
564
  height: "100%"
@@ -572,27 +572,27 @@ var W = {
572
572
  }, G = /* @__PURE__ */ u({
573
573
  __name: "Search",
574
574
  setup(e) {
575
- return (e, t) => (b(), i("svg", ke, [...t[0] ||= [a("path", {
575
+ return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
576
576
  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
577
  "p-id": "8980"
578
578
  }, null, -1)]]));
579
579
  }
580
- }), Ae = {
580
+ }), Ne = {
581
581
  style: {
582
582
  width: "100%",
583
583
  height: "100%"
584
584
  },
585
585
  viewBox: "0 0 1024 1024",
586
586
  xmlns: "http://www.w3.org/2000/svg"
587
- }, je = /* @__PURE__ */ u({
587
+ }, Pe = /* @__PURE__ */ u({
588
588
  __name: "CloseBold",
589
589
  setup(e) {
590
- return (e, t) => (b(), i("svg", Ae, [...t[0] ||= [a("path", {
590
+ return (e, t) => (x(), i("svg", Ne, [...t[0] ||= [a("path", {
591
591
  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
592
  fill: "currentColor"
593
593
  }, null, -1)]]));
594
594
  }
595
- }), Me = {
595
+ }), Fe = {
596
596
  style: {
597
597
  width: "100%",
598
598
  height: "100%"
@@ -606,7 +606,7 @@ var W = {
606
606
  }, K = /* @__PURE__ */ u({
607
607
  __name: "User",
608
608
  setup(e) {
609
- return (e, t) => (b(), i("svg", Me, [...t[0] ||= [a("path", {
609
+ return (e, t) => (x(), i("svg", Fe, [...t[0] ||= [a("path", {
610
610
  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
611
  fill: "#999999",
612
612
  "p-id": "10093"
@@ -616,7 +616,7 @@ var W = {
616
616
  "p-id": "10094"
617
617
  }, null, -1)]]));
618
618
  }
619
- }), Ne = {
619
+ }), Ie = {
620
620
  style: {
621
621
  width: "100%",
622
622
  height: "100%"
@@ -627,16 +627,16 @@ var W = {
627
627
  version: "1.1",
628
628
  xmlns: "http://www.w3.org/2000/svg",
629
629
  "p-id": "11055"
630
- }, Pe = /* @__PURE__ */ u({
630
+ }, Le = /* @__PURE__ */ u({
631
631
  __name: "Plus",
632
632
  setup(e) {
633
- return (e, t) => (b(), i("svg", Ne, [...t[0] ||= [a("path", {
633
+ return (e, t) => (x(), i("svg", Ie, [...t[0] ||= [a("path", {
634
634
  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
635
  fill: "#323233",
636
636
  "p-id": "11056"
637
637
  }, null, -1)]]));
638
638
  }
639
- }), Fe = {}, Ie = {
639
+ }), Re = {}, ze = {
640
640
  style: {
641
641
  width: "100%",
642
642
  height: "100%"
@@ -648,14 +648,14 @@ var W = {
648
648
  xmlns: "http://www.w3.org/2000/svg",
649
649
  "p-id": "4859"
650
650
  };
651
- function Le(e, t) {
652
- return b(), i("svg", Ie, [...t[0] ||= [a("path", {
651
+ function Be(e, t) {
652
+ return x(), i("svg", ze, [...t[0] ||= [a("path", {
653
653
  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
654
  fill: "#666666",
655
655
  "p-id": "4860"
656
656
  }, null, -1)]]);
657
657
  }
658
- var Re = /* @__PURE__ */ V(Fe, [["render", Le]]), ze = {}, Be = {
658
+ var Ve = /* @__PURE__ */ V(Re, [["render", Be]]), He = {}, Ue = {
659
659
  style: {
660
660
  width: "100%",
661
661
  height: "100%"
@@ -667,13 +667,13 @@ var Re = /* @__PURE__ */ V(Fe, [["render", Le]]), ze = {}, Be = {
667
667
  xmlns: "http://www.w3.org/2000/svg",
668
668
  "p-id": "6029"
669
669
  };
670
- function Ve(e, t) {
671
- return b(), i("svg", Be, [...t[0] ||= [a("path", {
670
+ function We(e, t) {
671
+ return x(), i("svg", Ue, [...t[0] ||= [a("path", {
672
672
  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
673
  "p-id": "6030"
674
674
  }, null, -1)]]);
675
675
  }
676
- var He = /* @__PURE__ */ V(ze, [["render", Ve]]), Ue = {}, We = {
676
+ var Ge = /* @__PURE__ */ V(He, [["render", We]]), Ke = {}, qe = {
677
677
  style: {
678
678
  width: "100%",
679
679
  height: "100%"
@@ -685,8 +685,8 @@ var He = /* @__PURE__ */ V(ze, [["render", Ve]]), Ue = {}, We = {
685
685
  xmlns: "http://www.w3.org/2000/svg",
686
686
  "p-id": "6997"
687
687
  };
688
- function Ge(e, t) {
689
- return b(), i("svg", We, [...t[0] ||= [a("path", {
688
+ function Je(e, t) {
689
+ return x(), i("svg", qe, [...t[0] ||= [a("path", {
690
690
  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
691
  "p-id": "6998"
692
692
  }, null, -1), a("path", {
@@ -694,7 +694,7 @@ function Ge(e, t) {
694
694
  "p-id": "6999"
695
695
  }, null, -1)]]);
696
696
  }
697
- var q = /* @__PURE__ */ V(Ue, [["render", Ge]]), Ke = {}, qe = {
697
+ var q = /* @__PURE__ */ V(Ke, [["render", Je]]), Ye = {}, Xe = {
698
698
  style: {
699
699
  width: "100%",
700
700
  height: "100%"
@@ -706,32 +706,32 @@ var q = /* @__PURE__ */ V(Ue, [["render", Ge]]), Ke = {}, qe = {
706
706
  xmlns: "http://www.w3.org/2000/svg",
707
707
  "p-id": "9850"
708
708
  };
709
- function Je(e, t) {
710
- return b(), i("svg", qe, [...t[0] ||= [a("path", {
709
+ function Ze(e, t) {
710
+ return x(), i("svg", Xe, [...t[0] ||= [a("path", {
711
711
  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
712
  "p-id": "9851"
713
713
  }, null, -1)]]);
714
714
  }
715
- var Ye = /* @__PURE__ */ V(Ke, [["render", Je]]), Xe = /* @__PURE__ */ z({
716
- ArrowRight: () => Re,
717
- ArrowUp: () => He,
718
- CloseBold: () => je,
719
- Plus: () => Pe,
720
- Promotion: () => Ye,
715
+ var Qe = /* @__PURE__ */ V(Ye, [["render", Ze]]), $e = /* @__PURE__ */ B({
716
+ ArrowRight: () => Ve,
717
+ ArrowUp: () => Ge,
718
+ CloseBold: () => Pe,
719
+ Plus: () => Le,
720
+ Promotion: () => Qe,
721
721
  Refresh: () => q,
722
722
  Search: () => G,
723
723
  User: () => K,
724
- YcIcon: () => Oe
724
+ YcIcon: () => je
725
725
  });
726
726
  //#endregion
727
727
  //#region src/components/utils/tools.ts
728
- function Ze(e) {
728
+ function et(e) {
729
729
  return typeof e == "number" ? e + "px" : e || "100px";
730
730
  }
731
- function J(e) {
731
+ function tt(e) {
732
732
  return typeof e == "number" ? e + "px" : e || "180px";
733
733
  }
734
- function Y(e, t) {
734
+ function J(e, t) {
735
735
  let n = {};
736
736
  return Object.keys(W).forEach((r) => {
737
737
  let i = r;
@@ -750,8 +750,8 @@ function Y(e, t) {
750
750
  data: t
751
751
  }) : n.input(n.props || {}))(n);
752
752
  }
753
- function X(e, t) {
754
- let n = Y(e, t);
753
+ function Y(e, t) {
754
+ let n = J(e, t);
755
755
  return typeof n == "object" ? n.type && typeof n.type == "object" ? {
756
756
  component: n.type,
757
757
  props: n.props
@@ -759,12 +759,12 @@ function X(e, t) {
759
759
  }
760
760
  //#endregion
761
761
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
762
- var Qe = { style: {
762
+ var nt = { style: {
763
763
  display: "flex",
764
764
  "justify-content": "end",
765
765
  "align-items": "center",
766
766
  width: "100%"
767
- } }, $e = /* @__PURE__ */ u({
767
+ } }, rt = /* @__PURE__ */ u({
768
768
  name: "UiDefaultFilter",
769
769
  __name: "index",
770
770
  props: {
@@ -794,21 +794,21 @@ var Qe = { style: {
794
794
  "column",
795
795
  "size",
796
796
  "filterFixedValues"
797
- ]), p = x({
797
+ ]), p = S({
798
798
  expandNum: 0,
799
799
  expand: !1
800
- }), h = x({}), g = t(() => s.fields.slice(0, p.expand ? s.fields.length : p.expandNum)), y = t(() => 24 - g.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
801
- v(() => {
800
+ }), m = S({}), g = t(() => s.fields.slice(0, p.expand ? s.fields.length : p.expandNum)), _ = t(() => 24 - g.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
801
+ y(() => {
802
802
  p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
803
- let t = Y(e, h)?.props?.defaultValue;
804
- t !== void 0 && (h[e.prop] = t);
803
+ let t = J(e, m)?.props?.defaultValue;
804
+ t !== void 0 && (m[e.prop] = t);
805
805
  });
806
806
  });
807
- function S() {
807
+ function b() {
808
808
  let e = {};
809
- Object.keys(h).forEach((t) => {
810
- if (h[t] !== void 0) {
811
- let n = A(h[t]);
809
+ Object.keys(m).forEach((t) => {
810
+ if (m[t] !== void 0) {
811
+ let n = N(m[t]);
812
812
  e[t] = typeof n == "string" ? n.trim() : n;
813
813
  }
814
814
  }), d("submit", {
@@ -819,47 +819,47 @@ var Qe = { style: {
819
819
  ...s.filterFixedValues
820
820
  });
821
821
  }
822
- function E() {
823
- Object.keys(h).forEach((e) => {
824
- s.omitFields.includes(e) || (h[e] = void 0);
825
- }), d("reset", h);
822
+ function C() {
823
+ Object.keys(m).forEach((e) => {
824
+ s.omitFields.includes(e) || (m[e] = void 0);
825
+ }), d("reset", m);
826
826
  }
827
827
  return (t, o) => {
828
- let u = T("el-input"), d = T("el-form-item"), f = T("el-col"), v = T("el-button"), x = T("el-row"), O = T("el-form");
829
- return b(), n(O, m({
830
- model: h,
828
+ let u = E("el-input"), d = E("el-form-item"), f = E("el-col"), y = E("el-button"), S = E("el-row"), D = E("el-form");
829
+ return x(), n(D, h({
830
+ model: m,
831
831
  class: "ui-filter",
832
832
  size: s.size
833
833
  }, t.$attrs), {
834
- default: I(() => [l(x, {
834
+ default: R(() => [l(S, {
835
835
  gutter: 20,
836
836
  style: { "margin-bottom": "-15px" }
837
837
  }, {
838
- default: I(() => [(b(!0), i(e, null, C(g.value, (e) => (b(), n(f, { span: e.span || 24 / s.column }, {
839
- default: I(() => [(b(), n(d, {
838
+ default: R(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
839
+ default: R(() => [(x(), n(d, {
840
840
  key: e.prop,
841
841
  label: e.label,
842
- "label-width": j(Ze)(e?.labelWidth || s.labelWidth),
843
- "value-width": j(J)(e?.valueWidth || s.valueWidth)
842
+ "label-width": P(et)(e?.labelWidth || s.labelWidth),
843
+ "value-width": P(tt)(e?.valueWidth || s.valueWidth)
844
844
  }, {
845
- default: I(() => [e.render ? (b(), n(D(j(Y)(e, h).component), m({
845
+ default: R(() => [e.render ? (x(), n(O(P(J)(e, m).component), h({
846
846
  key: 0,
847
- modelValue: h[e.prop],
848
- "onUpdate:modelValue": (t) => h[e.prop] = t
849
- }, { ref_for: !0 }, j(Y)(e, h).props, {
847
+ modelValue: m[e.prop],
848
+ "onUpdate:modelValue": (t) => m[e.prop] = t
849
+ }, { ref_for: !0 }, P(J)(e, m).props, {
850
850
  clearable: !0,
851
- style: { width: j(J)(e?.valueWidth || s.valueWidth) }
851
+ style: { width: P(tt)(e?.valueWidth || s.valueWidth) }
852
852
  }), null, 16, [
853
853
  "modelValue",
854
854
  "onUpdate:modelValue",
855
855
  "style"
856
- ])) : (b(), n(u, {
856
+ ])) : (x(), n(u, {
857
857
  key: 1,
858
- modelValue: h[e.prop],
859
- "onUpdate:modelValue": (t) => h[e.prop] = t,
858
+ modelValue: m[e.prop],
859
+ "onUpdate:modelValue": (t) => m[e.prop] = t,
860
860
  placeholder: "请输入",
861
861
  clearable: !0,
862
- style: _({ width: j(J)(e?.valueWidth || s.valueWidth) })
862
+ style: v({ width: P(tt)(e?.valueWidth || s.valueWidth) })
863
863
  }, null, 8, [
864
864
  "modelValue",
865
865
  "onUpdate:modelValue",
@@ -874,40 +874,40 @@ var Qe = { style: {
874
874
  _: 2
875
875
  }, 1032, ["span"]))), 256)), l(f, {
876
876
  span: 24 / s.column,
877
- offset: y.value
877
+ offset: _.value
878
878
  }, {
879
- default: I(() => [l(d, {
879
+ default: R(() => [l(d, {
880
880
  label: "",
881
881
  "label-width": "30px"
882
882
  }, {
883
- default: I(() => [a("div", Qe, [
884
- w(t.$slots, "left", { form: h }, void 0, !0),
885
- s.fields.length >= 2 * s.column ? (b(), n(v, {
883
+ default: R(() => [a("div", nt, [
884
+ T(t.$slots, "left", { form: m }, void 0, !0),
885
+ s.fields.length >= 2 * s.column ? (x(), n(y, {
886
886
  key: 0,
887
887
  text: "",
888
- icon: p.expand ? j(He) : j(Re),
888
+ icon: p.expand ? P(Ge) : P(Ve),
889
889
  onClick: o[0] ||= (e) => p.expand = !p.expand
890
890
  }, {
891
- default: I(() => [c(k(p.expand ? "收起" : "展开"), 1)]),
891
+ default: R(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
892
892
  _: 1
893
893
  }, 8, ["icon"])) : r("", !0),
894
- l(v, {
895
- icon: j(G),
894
+ l(y, {
895
+ icon: P(G),
896
896
  type: "primary",
897
- onClick: S
897
+ onClick: b
898
898
  }, {
899
- default: I(() => [...o[1] ||= [c("查询", -1)]]),
899
+ default: R(() => [...o[1] ||= [c("查询", -1)]]),
900
900
  _: 1
901
901
  }, 8, ["icon"]),
902
- l(v, {
903
- icon: j(q),
904
- onClick: E
902
+ l(y, {
903
+ icon: P(q),
904
+ onClick: C
905
905
  }, {
906
- default: I(() => [...o[2] ||= [c("重置", -1)]]),
906
+ default: R(() => [...o[2] ||= [c("重置", -1)]]),
907
907
  _: 1
908
908
  }, 8, ["icon"]),
909
- w(t.$slots, "handle", { form: h }, void 0, !0),
910
- w(t.$slots, "right", { form: h }, void 0, !0)
909
+ T(t.$slots, "handle", { form: m }, void 0, !0),
910
+ T(t.$slots, "right", { form: m }, void 0, !0)
911
911
  ])]),
912
912
  _: 3
913
913
  })]),
@@ -919,16 +919,16 @@ var Qe = { style: {
919
919
  }, 16, ["model", "size"]);
920
920
  };
921
921
  }
922
- }), et = /* @__PURE__ */ z({ default: () => tt }), tt = /* @__PURE__ */ V($e, [["__scopeId", "data-v-0e3c7086"]]), nt = {
922
+ }), it = /* @__PURE__ */ B({ default: () => at }), at = /* @__PURE__ */ V(rt, [["__scopeId", "data-v-0e3c7086"]]), ot = {
923
923
  key: 0,
924
924
  style: { display: "inline-block" }
925
- }, rt = {
925
+ }, st = {
926
926
  key: 0,
927
927
  style: { display: "inline-block" }
928
- }, it = {
928
+ }, ct = {
929
929
  key: 0,
930
930
  class: "ui-form-buttons"
931
- }, at = /* @__PURE__ */ u({
931
+ }, lt = /* @__PURE__ */ u({
932
932
  __name: "index",
933
933
  props: {
934
934
  fields: {},
@@ -937,7 +937,7 @@ var Qe = { style: {
937
937
  labelWidth: { default: "100px" },
938
938
  labelPosition: { default: "top" },
939
939
  omitFields: { default: () => [] },
940
- rules: { default: () => x({}) },
940
+ rules: { default: () => S({}) },
941
941
  required: { type: Boolean },
942
942
  column: { default: 24 },
943
943
  defaultValues: {},
@@ -951,7 +951,7 @@ var Qe = { style: {
951
951
  "update:model"
952
952
  ],
953
953
  setup(a, { expose: s, emit: u }) {
954
- N((e) => ({ fc2b2f2a: e.column / 2 }));
954
+ ee((e) => ({ fc2b2f2a: e.column / 2 }));
955
955
  let d = u;
956
956
  o(a, [
957
957
  "fields",
@@ -964,19 +964,19 @@ var Qe = { style: {
964
964
  "column",
965
965
  "model"
966
966
  ]);
967
- let f = S(0), p = S(), h = x({}), v = t(() => {
968
- let e = A(h);
967
+ let f = C(0), p = C(), m = S({}), g = t(() => {
968
+ let e = N(m);
969
969
  return a.fields.forEach((t) => {
970
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, h)?.props?.defaultValue;
971
- h[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
972
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, h)?.props?.defaultValue;
973
- h[t.prop] = n ?? r ?? void 0;
970
+ let n = t.prop ? e?.[t.prop] : void 0, r = Y(t, m)?.props?.defaultValue;
971
+ m[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
972
+ let n = t.prop ? e?.[t.prop] : void 0, r = Y(t, m)?.props?.defaultValue;
973
+ m[t.prop] = n ?? r ?? void 0;
974
974
  });
975
975
  }), a.fields.filter((e) => typeof e.prop == "string");
976
976
  }), y = t(() => {
977
977
  if (a.rules && Object.keys(a.rules).length) return a.rules;
978
978
  let e = {};
979
- return v.value.forEach((t) => {
979
+ return g.value.forEach((t) => {
980
980
  t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
981
981
  required: !0,
982
982
  message: "请输入" + t.label,
@@ -984,52 +984,52 @@ var Qe = { style: {
984
984
  }]);
985
985
  }), e;
986
986
  });
987
- ee(() => {
988
- Object.assign(h, a.model);
987
+ L(() => {
988
+ Object.assign(m, a.model);
989
989
  });
990
- async function E(e) {
990
+ async function b(e) {
991
991
  let t = !0;
992
992
  if (await e.validate((e) => {
993
993
  t = e;
994
994
  }), !t) return;
995
995
  let n = {};
996
- Object.keys(h).forEach((e) => {
997
- h[e] !== void 0 && (n[e] = A(h[e]));
996
+ Object.keys(m).forEach((e) => {
997
+ m[e] !== void 0 && (n[e] = N(m[e]));
998
998
  }), d("submit", n);
999
999
  }
1000
- function O() {
1000
+ function D() {
1001
1001
  p && p.value?.clearValidate();
1002
1002
  }
1003
- function M(e) {
1004
- Object.keys(h).forEach((e) => {
1005
- a.omitFields.includes(e) || (h[e] = void 0);
1006
- }), f.value += 1, d("reset", h);
1003
+ function k(e) {
1004
+ Object.keys(m).forEach((e) => {
1005
+ a.omitFields.includes(e) || (m[e] = void 0);
1006
+ }), f.value += 1, d("reset", m);
1007
1007
  }
1008
- function P() {
1009
- return h;
1008
+ function A() {
1009
+ return m;
1010
1010
  }
1011
- function F(e) {
1011
+ function M(e) {
1012
1012
  Object.keys(e).forEach((t) => {
1013
- h[t] = e[t];
1013
+ m[t] = e[t];
1014
1014
  });
1015
1015
  }
1016
- async function L() {
1016
+ async function F() {
1017
1017
  return new Promise((e) => {
1018
1018
  p.value?.validate((t, n) => e(n));
1019
1019
  });
1020
1020
  }
1021
1021
  return s({
1022
- getValues: P,
1023
- setValues: F,
1024
- clearValidate: O,
1025
- onSubmit: E,
1026
- validate: L
1022
+ getValues: A,
1023
+ setValues: M,
1024
+ clearValidate: D,
1025
+ onSubmit: b,
1026
+ validate: F
1027
1027
  }), (t, o) => {
1028
- let s = T("el-input"), u = T("el-form-item"), d = T("el-form"), x = T("el-button");
1029
- return b(), i(e, null, [l(d, m({
1028
+ let s = E("el-input"), u = E("el-form-item"), d = E("el-form"), S = E("el-button");
1029
+ return x(), i(e, null, [l(d, h({
1030
1030
  ref_key: "uiFormRef",
1031
1031
  ref: p,
1032
- model: h
1032
+ model: m
1033
1033
  }, t.$attrs, {
1034
1034
  rules: y.value,
1035
1035
  inline: a.labelPosition !== "top",
@@ -1040,22 +1040,22 @@ var Qe = { style: {
1040
1040
  },
1041
1041
  "validate-on-rule-change": !1
1042
1042
  }), {
1043
- default: I(() => [(b(!0), i(e, null, C(v.value, (r) => (b(), n(u, {
1043
+ default: R(() => [(x(!0), i(e, null, w(g.value, (r) => (x(), n(u, {
1044
1044
  key: r.prop,
1045
1045
  label: r.label,
1046
1046
  "label-width": a.labelWidth,
1047
1047
  "value-width": a.valueWidth,
1048
1048
  prop: r.prop,
1049
- style: _({
1049
+ style: v({
1050
1050
  width: `${r?.width ? r?.width + "px" : "100%"}`,
1051
1051
  gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
1052
1052
  })
1053
1053
  }, {
1054
- default: I(() => [r.render ? (b(), i(e, { key: 0 }, [j(X)(r, h).component ? (b(), n(D(j(X)(r, h).component), m({
1054
+ default: R(() => [r.render ? (x(), i(e, { key: 0 }, [P(Y)(r, m).component ? (x(), n(O(P(Y)(r, m).component), h({
1055
1055
  key: 1,
1056
- modelValue: h[r.prop],
1057
- "onUpdate:modelValue": (e) => h[r.prop] = e
1058
- }, { ref_for: !0 }, j(X)(r, h).props, {
1056
+ modelValue: m[r.prop],
1057
+ "onUpdate:modelValue": (e) => m[r.prop] = e
1058
+ }, { ref_for: !0 }, P(Y)(r, m).props, {
1059
1059
  clearable: !0,
1060
1060
  key: `${r.prop}-${f.value}`,
1061
1061
  style: { display: "inline-block" },
@@ -1064,13 +1064,13 @@ var Qe = { style: {
1064
1064
  "modelValue",
1065
1065
  "onUpdate:modelValue",
1066
1066
  "class"
1067
- ])) : (b(), i("span", nt, k(j(X)(r, h) || "-"), 1)), (b(!0), i(e, null, C(r.slots, (e) => w(t.$slots, "default", { form: h }, () => [j(X)(e, h).component ? (b(), n(D(j(X)(e, h).component), m({
1067
+ ])) : (x(), i("span", ot, j(P(Y)(r, m) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: m }, () => [P(Y)(e, m).component ? (x(), n(O(P(Y)(e, m).component), h({
1068
1068
  key: 1,
1069
- modelValue: h[e.prop],
1070
- "onUpdate:modelValue": (t) => h[e.prop] = t,
1069
+ modelValue: m[e.prop],
1070
+ "onUpdate:modelValue": (t) => m[e.prop] = t,
1071
1071
  "default-value": e.defaultValue,
1072
1072
  placeholder: e.placeholder
1073
- }, { ref_for: !0 }, j(X)(e, h).props, {
1073
+ }, { ref_for: !0 }, P(Y)(e, m).props, {
1074
1074
  style: {
1075
1075
  display: "inline-block",
1076
1076
  marginLeft: "10px",
@@ -1086,13 +1086,13 @@ var Qe = { style: {
1086
1086
  "placeholder",
1087
1087
  "style",
1088
1088
  "class"
1089
- ])) : (b(), i("span", rt, k(j(X)(e, h) || "-"), 1))], !0)), 256))], 64)) : (b(), n(s, {
1089
+ ])) : (x(), i("span", st, j(P(Y)(e, m) || "-"), 1))], !0)), 256))], 64)) : (x(), n(s, {
1090
1090
  key: 1,
1091
- modelValue: h[r.prop],
1092
- "onUpdate:modelValue": (e) => h[r.prop] = e,
1091
+ modelValue: m[r.prop],
1092
+ "onUpdate:modelValue": (e) => m[r.prop] = e,
1093
1093
  placeholder: "请输入",
1094
1094
  clearable: !0,
1095
- class: g({ underline: a.valueModel === "underline" })
1095
+ class: _({ underline: a.valueModel === "underline" })
1096
1096
  }, null, 8, [
1097
1097
  "modelValue",
1098
1098
  "onUpdate:modelValue",
@@ -1113,31 +1113,31 @@ var Qe = { style: {
1113
1113
  "inline",
1114
1114
  "label-position",
1115
1115
  "class"
1116
- ]), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", it, [
1117
- w(t.$slots, "handle", { form: h }, void 0, !0),
1118
- l(x, {
1119
- icon: j(q),
1120
- onClick: o[0] ||= (e) => p.value && M(p.value),
1116
+ ]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
1117
+ T(t.$slots, "handle", { form: m }, void 0, !0),
1118
+ l(S, {
1119
+ icon: P(q),
1120
+ onClick: o[0] ||= (e) => p.value && k(p.value),
1121
1121
  size: t.$props.size
1122
1122
  }, {
1123
- default: I(() => [...o[2] ||= [c("重置", -1)]]),
1123
+ default: R(() => [...o[2] ||= [c("重置", -1)]]),
1124
1124
  _: 1
1125
1125
  }, 8, ["icon", "size"]),
1126
- l(x, {
1127
- icon: j(Ye),
1126
+ l(S, {
1127
+ icon: P(Qe),
1128
1128
  type: "primary",
1129
- onClick: o[1] ||= (e) => p.value && E(p.value),
1129
+ onClick: o[1] ||= (e) => p.value && b(p.value),
1130
1130
  size: t.$props.size
1131
1131
  }, {
1132
- default: I(() => [...o[3] ||= [c("提交", -1)]]),
1132
+ default: R(() => [...o[3] ||= [c("提交", -1)]]),
1133
1133
  _: 1
1134
1134
  }, 8, ["icon", "size"])
1135
1135
  ]))], 64);
1136
1136
  };
1137
1137
  }
1138
- }), ot = /* @__PURE__ */ z({ default: () => st }), st = /* @__PURE__ */ V(at, [["__scopeId", "data-v-5e602fff"]]), ct = ["disabled"], lt = /* @__PURE__ */ u({
1138
+ }), ut = /* @__PURE__ */ B({ default: () => dt }), dt = /* @__PURE__ */ V(lt, [["__scopeId", "data-v-5e602fff"]]), ft = ["disabled"], pt = /* @__PURE__ */ u({
1139
1139
  __name: "index",
1140
- props: /* @__PURE__ */ p({
1140
+ props: /* @__PURE__ */ m({
1141
1141
  defaultValue: { default: "" },
1142
1142
  disabled: {
1143
1143
  type: Boolean,
@@ -1150,11 +1150,11 @@ var Qe = { style: {
1150
1150
  },
1151
1151
  modelModifiers: {}
1152
1152
  }),
1153
- emits: /* @__PURE__ */ p(["change"], ["update:modelValue"]),
1153
+ emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
1154
1154
  setup(e, { emit: t }) {
1155
- let n = S(), r = P(e, "modelValue"), a = S(r.value || e.defaultValue || ""), o = null, s = t;
1156
- return v(() => {
1157
- o = new re({
1155
+ let n = C(), r = te(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
1156
+ return y(() => {
1157
+ o = new ae({
1158
1158
  element: n.value,
1159
1159
  placeholder: "点击输入内容...",
1160
1160
  content: r.value || e.defaultValue || "",
@@ -1164,18 +1164,18 @@ var Qe = { style: {
1164
1164
  r.value = t, a.value = t, s("change", t);
1165
1165
  }
1166
1166
  }), o.setEditable(!e.disabled);
1167
- }), F(r, (e) => {
1167
+ }), I(r, (e) => {
1168
1168
  o && e !== o.getHtml() && o.setContent(e);
1169
- }), y(() => {
1169
+ }), b(() => {
1170
1170
  o && o.destroy();
1171
- }), (t, r) => (b(), i("div", {
1171
+ }), (t, r) => (x(), i("div", {
1172
1172
  ref_key: "editorRef",
1173
1173
  ref: n,
1174
1174
  style: { height: "500px" },
1175
1175
  disabled: e.disabled
1176
- }, null, 8, ct));
1176
+ }, null, 8, ft));
1177
1177
  }
1178
- }), Z = /* @__PURE__ */ z({ default: () => ut }), ut = lt, dt = { class: "ui-tree-wrapper" }, ft = {
1178
+ }), mt = /* @__PURE__ */ B({ default: () => ht }), ht = pt, gt = { class: "ui-tree-wrapper" }, _t = {
1179
1179
  key: 0,
1180
1180
  style: {
1181
1181
  display: "flex",
@@ -1184,10 +1184,10 @@ var Qe = { style: {
1184
1184
  "align-items": "center",
1185
1185
  gap: "10px"
1186
1186
  }
1187
- }, pt = {
1187
+ }, vt = {
1188
1188
  key: 0,
1189
1189
  class: "custom-tree-node"
1190
- }, mt = { class: "node-label" }, ht = { key: 0 }, gt = ["onClick"], _t = /* @__PURE__ */ u({
1190
+ }, yt = { class: "node-label" }, bt = { key: 0 }, xt = ["onClick"], St = /* @__PURE__ */ u({
1191
1191
  __name: "index",
1192
1192
  props: {
1193
1193
  id: {},
@@ -1213,23 +1213,23 @@ var Qe = { style: {
1213
1213
  "delete"
1214
1214
  ],
1215
1215
  setup(e, { emit: s }) {
1216
- let u = s, f = M(), p = o(e, [
1216
+ let u = s, f = F(), p = o(e, [
1217
1217
  "filterable",
1218
1218
  "placeholder",
1219
1219
  "data",
1220
1220
  "props"
1221
- ]), h = S(""), g = S(), _ = S(), v = d()?.appContext.config.globalProperties.$messageBox;
1222
- F(h, (t) => {
1221
+ ]), m = C(""), g = C(), _ = C(), v = d()?.appContext.config.globalProperties.$messageBox;
1222
+ I(m, (t) => {
1223
1223
  e.filterable && _.value?.filter(t);
1224
1224
  });
1225
1225
  let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
1226
- function x(t, n) {
1226
+ function b(t, n) {
1227
1227
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
1228
1228
  }
1229
- function C(e, t) {
1229
+ function S(e, t) {
1230
1230
  e?.stopPropagation(), g.value = t.id;
1231
1231
  }
1232
- function E(e) {
1232
+ function w(e) {
1233
1233
  v?.prompt("请输入新的名称", "添加节点", {
1234
1234
  confirmButtonText: "确定",
1235
1235
  cancelButtonText: "取消"
@@ -1256,27 +1256,27 @@ var Qe = { style: {
1256
1256
  e.id && u("delete", e);
1257
1257
  }
1258
1258
  return (t, o) => {
1259
- let s = T("el-input"), u = T("el-button"), d = T("el-dropdown-item"), f = T("el-dropdown-menu"), g = T("el-dropdown"), v = T("el-tree-v2");
1260
- return b(), i("div", dt, [
1261
- e.filterable ? (b(), i("div", ft, [l(s, {
1262
- modelValue: h.value,
1263
- "onUpdate:modelValue": o[0] ||= (e) => h.value = e,
1259
+ 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");
1260
+ return x(), i("div", gt, [
1261
+ e.filterable ? (x(), i("div", _t, [l(s, {
1262
+ modelValue: m.value,
1263
+ "onUpdate:modelValue": o[0] ||= (e) => m.value = e,
1264
1264
  placeholder: e.placeholder ?? "请输入",
1265
1265
  clearable: ""
1266
- }, null, 8, ["modelValue", "placeholder"]), p?.hidePlusHandle ? r("", !0) : (b(), n(u, {
1266
+ }, null, 8, ["modelValue", "placeholder"]), p?.hidePlusHandle ? r("", !0) : (x(), n(u, {
1267
1267
  key: 0,
1268
1268
  style: {
1269
1269
  margin: "0px",
1270
1270
  padding: "0px"
1271
1271
  },
1272
1272
  link: "",
1273
- onClick: o[1] ||= (e) => E()
1273
+ onClick: o[1] ||= (e) => w()
1274
1274
  }, {
1275
- default: I(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1275
+ default: R(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1276
1276
  _: 1
1277
1277
  }))])) : r("", !0),
1278
- w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
1279
- l(v, m({
1278
+ T(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
1279
+ l(v, h({
1280
1280
  ref_key: "treeRef",
1281
1281
  ref: _,
1282
1282
  style: { "margin-top": "8px" }
@@ -1286,46 +1286,46 @@ var Qe = { style: {
1286
1286
  }, {
1287
1287
  "node-key": p?.nodeKey || "id",
1288
1288
  "highlight-current": !0,
1289
- "filter-method": x
1289
+ "filter-method": b
1290
1290
  }), {
1291
- default: I((s) => [s?.data ? (b(), i("div", pt, [a("div", mt, [s.data?.children?.length ? (b(), i("span", ht, "📁")) : r("", !0), c(" " + k(s.data?.[e.props?.label || "label"]) + " " + k(y.value && s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), p.hideNodeHandle ? r("", !0) : (b(), n(g, {
1291
+ default: R((s) => [s?.data ? (x(), i("div", vt, [a("div", yt, [s.data?.children?.length ? (x(), i("span", bt, "📁")) : 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, {
1292
1292
  key: 0,
1293
1293
  trigger: "click"
1294
1294
  }, {
1295
- dropdown: I(() => [l(f, null, {
1296
- default: I(() => [
1297
- p?.hideNodeAdd ? r("", !0) : (b(), n(d, {
1295
+ dropdown: R(() => [l(f, null, {
1296
+ default: R(() => [
1297
+ p?.hideNodeAdd ? r("", !0) : (x(), n(d, {
1298
1298
  key: 0,
1299
- onClick: (e) => E(s.data)
1299
+ onClick: (e) => w(s.data)
1300
1300
  }, {
1301
- default: I(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1301
+ default: R(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1302
1302
  _: 1
1303
1303
  }, 8, ["onClick"])),
1304
- p?.hideNodeEdit ? r("", !0) : (b(), n(d, {
1304
+ p?.hideNodeEdit ? r("", !0) : (x(), n(d, {
1305
1305
  key: 1,
1306
1306
  onClick: (e) => D(s.data)
1307
1307
  }, {
1308
- default: I(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1308
+ default: R(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1309
1309
  _: 1
1310
1310
  }, 8, ["onClick"])),
1311
- p?.hideNodeDel ? r("", !0) : (b(), n(d, {
1311
+ p?.hideNodeDel ? r("", !0) : (x(), n(d, {
1312
1312
  key: 2,
1313
1313
  onClick: (e) => O(s.data)
1314
1314
  }, {
1315
- default: I(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1315
+ default: R(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1316
1316
  _: 1
1317
1317
  }, 8, ["onClick"])),
1318
- w(t.$slots, "node-handle", { data: s.data }, void 0, !0)
1318
+ T(t.$slots, "node-handle", { data: s.data }, void 0, !0)
1319
1319
  ]),
1320
1320
  _: 2
1321
1321
  }, 1024)]),
1322
- default: I(() => [a("span", {
1323
- onClick: (e) => C(e, s.data),
1322
+ default: R(() => [a("span", {
1323
+ onClick: (e) => S(e, s.data),
1324
1324
  style: {
1325
1325
  padding: "4px",
1326
1326
  "font-weight": "bold"
1327
1327
  }
1328
- }, "⋮", 8, gt)]),
1328
+ }, "⋮", 8, xt)]),
1329
1329
  _: 2
1330
1330
  }, 1024))])) : r("", !0)]),
1331
1331
  _: 3
@@ -1333,16 +1333,16 @@ var Qe = { style: {
1333
1333
  ]);
1334
1334
  };
1335
1335
  }
1336
- }), vt = /* @__PURE__ */ z({ default: () => yt }), yt = /* @__PURE__ */ V(_t, [["__scopeId", "data-v-7858d79e"]]), bt = { style: { height: "100%" } }, xt = { style: {
1336
+ }), Ct = /* @__PURE__ */ B({ default: () => wt }), wt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-7858d79e"]]), Tt = { style: { height: "100%" } }, Et = { style: {
1337
1337
  display: "flex",
1338
1338
  "flex-direction": "row",
1339
1339
  "justify-content": "space-between",
1340
1340
  "align-items": "center",
1341
1341
  gap: "10px"
1342
- } }, St = { style: { margin: "10px 0px" } }, Ct = ["onClick"], wt = { key: 0 }, Tt = /* @__PURE__ */ u({
1342
+ } }, Dt = { style: { margin: "10px 0px" } }, Ot = ["onClick"], kt = { key: 0 }, At = /* @__PURE__ */ u({
1343
1343
  __name: "index",
1344
1344
  props: {
1345
- loading: { default: () => S(!1) },
1345
+ loading: { default: () => C(!1) },
1346
1346
  data: {},
1347
1347
  placeholder: {},
1348
1348
  props: {},
@@ -1351,46 +1351,46 @@ var Qe = { style: {
1351
1351
  },
1352
1352
  emits: ["node-click"],
1353
1353
  setup(o, { emit: s }) {
1354
- let c = s, l = S(""), u = S(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
1355
- F(() => [u.value, o.data?.[0]], (e) => {
1354
+ let c = s, l = C(""), u = C(), d = t(() => l.value ? o.data.filter((e) => e[o.props?.label || "label"]?.includes(l.value)) : o.data);
1355
+ I(() => [u.value, o.data?.[0]], (e) => {
1356
1356
  !e[0] && e[1] && (u.value = o.data?.[0]);
1357
1357
  }, { immediate: !0 });
1358
1358
  function f(e) {
1359
1359
  u.value = e, c("node-click", e);
1360
1360
  }
1361
1361
  return (t, s) => {
1362
- let c = T("el-input");
1363
- return b(), i("div", bt, [
1364
- a("div", xt, [o.filterable ? (b(), n(c, {
1362
+ let c = E("el-input");
1363
+ return x(), i("div", Tt, [
1364
+ a("div", Et, [o.filterable ? (x(), n(c, {
1365
1365
  key: 0,
1366
1366
  modelValue: l.value,
1367
1367
  "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
1368
1368
  placeholder: o.placeholder ?? "请输入"
1369
- }, null, 8, ["modelValue", "placeholder"])) : r("", !0), w(t.$slots, "plus", {}, void 0, !0)]),
1370
- a("div", St, [w(t.$slots, "handle", {}, void 0, !0)]),
1371
- L((b(), i("ul", m({
1369
+ }, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
1370
+ a("div", Dt, [T(t.$slots, "handle", {}, void 0, !0)]),
1371
+ ne((x(), i("ul", h({
1372
1372
  class: "infinite-list",
1373
1373
  "infinite-scroll-immediate": !1
1374
- }, t.$attrs), [(b(!0), i(e, null, C(d.value, (e, n) => (b(), i("li", {
1374
+ }, t.$attrs), [(x(!0), i(e, null, w(d.value, (e, n) => (x(), i("li", {
1375
1375
  key: "infinite-list-" + n,
1376
- class: g({
1376
+ class: _({
1377
1377
  "infinite-list-item": !0,
1378
1378
  active: e === u.value
1379
1379
  }),
1380
1380
  onClick: (t) => f(e)
1381
- }, [a("span", null, k(e[o.props?.label || "label"]), 1), w(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Ct))), 128))], 16)), [[j(o.vInfiniteScroll), o.vInfiniteScroll]]),
1382
- o.loading.value ? (b(), i("p", wt, "loading...")) : r("", !0)
1381
+ }, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, Ot))), 128))], 16)), [[P(o.vInfiniteScroll), o.vInfiniteScroll]]),
1382
+ o.loading.value ? (x(), i("p", kt, "loading...")) : r("", !0)
1383
1383
  ]);
1384
1384
  };
1385
1385
  }
1386
- }), Et = /* @__PURE__ */ z({ default: () => Dt }), Dt = /* @__PURE__ */ V(Tt, [["__scopeId", "data-v-0ab5cd97"]]), Ot = {
1386
+ }), jt = /* @__PURE__ */ B({ default: () => Mt }), Mt = /* @__PURE__ */ V(At, [["__scopeId", "data-v-0ab5cd97"]]), Nt = {
1387
1387
  key: 0,
1388
1388
  style: {
1389
1389
  padding: "10px 0px",
1390
1390
  "margin-bottom": "10px",
1391
1391
  "border-bottom": "1px solid #e5e5e5"
1392
1392
  }
1393
- }, kt = { key: 1 }, At = /* @__PURE__ */ u({
1393
+ }, Pt = { key: 1 }, Ft = /* @__PURE__ */ u({
1394
1394
  __name: "index",
1395
1395
  props: {
1396
1396
  data: {},
@@ -1406,25 +1406,25 @@ var Qe = { style: {
1406
1406
  "data"
1407
1407
  ]);
1408
1408
  return (o, s) => {
1409
- let c = T("el-descriptions-item"), u = T("el-descriptions");
1410
- return b(), i(e, null, [
1411
- t.title ? (b(), i("h4", Ot, k(t.title), 1)) : r("", !0),
1412
- w(o.$slots, "title", {}, void 0, !0),
1413
- l(u, m({ column: t.column }, a, { class: "ui-descriptions" }), {
1414
- default: I(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(c, {
1409
+ let c = E("el-descriptions-item"), u = E("el-descriptions");
1410
+ return x(), i(e, null, [
1411
+ t.title ? (x(), i("h4", Nt, j(t.title), 1)) : r("", !0),
1412
+ T(o.$slots, "title", {}, void 0, !0),
1413
+ l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
1414
+ default: R(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
1415
1415
  key: e.prop,
1416
1416
  label: e.label,
1417
1417
  span: e.span || 2
1418
1418
  }, {
1419
- default: I(() => [e.render ? (b(), n(D(j(Y)(e, t.data).component), m({
1419
+ default: R(() => [e.render ? (x(), n(O(P(J)(e, t.data).component), h({
1420
1420
  key: 0,
1421
1421
  modelValue: t.data[e.prop],
1422
1422
  "onUpdate:modelValue": (n) => t.data[e.prop] = n
1423
- }, { ref_for: !0 }, j(Y)(e, t.data).props, {
1423
+ }, { ref_for: !0 }, P(J)(e, t.data).props, {
1424
1424
  clearable: !0,
1425
1425
  key: e.prop,
1426
1426
  style: { display: "inline-block" }
1427
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (b(), i("span", kt, k(t.data[e.prop] || "-"), 1))]),
1427
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Pt, j(t.data[e.prop] || "-"), 1))]),
1428
1428
  _: 2
1429
1429
  }, 1032, ["label", "span"]))), 128))]),
1430
1430
  _: 1
@@ -1432,14 +1432,14 @@ var Qe = { style: {
1432
1432
  ], 64);
1433
1433
  };
1434
1434
  }
1435
- }), jt = /* @__PURE__ */ z({ default: () => Mt }), Mt = /* @__PURE__ */ V(At, [["__scopeId", "data-v-f02c30f9"]]), Nt = {
1435
+ }), It = /* @__PURE__ */ B({ default: () => Lt }), Lt = /* @__PURE__ */ V(Ft, [["__scopeId", "data-v-f02c30f9"]]), Rt = {
1436
1436
  key: 0,
1437
1437
  style: {
1438
1438
  display: "flex",
1439
1439
  "margin-top": "12px",
1440
1440
  "justify-content": "end"
1441
1441
  }
1442
- }, Pt = /* @__PURE__ */ u({
1442
+ }, zt = /* @__PURE__ */ u({
1443
1443
  __name: "index",
1444
1444
  props: {
1445
1445
  visible: { type: Boolean },
@@ -1454,16 +1454,16 @@ var Qe = { style: {
1454
1454
  "submit"
1455
1455
  ],
1456
1456
  setup(e, { emit: t }) {
1457
- let a = t, o = e, s = S();
1457
+ let a = t, o = e, s = C();
1458
1458
  function u() {
1459
1459
  a("close"), a("update:visible", !1);
1460
1460
  }
1461
1461
  function d() {
1462
- a("submit", A(s?.value || {})), a("update:visible", !1);
1462
+ a("submit", N(s?.value || {})), a("update:visible", !1);
1463
1463
  }
1464
1464
  return (e, t) => {
1465
- let a = T("el-button"), f = T("el-dialog");
1466
- return b(), n(f, m(e.$attrs, {
1465
+ let a = E("el-button"), f = E("el-dialog");
1466
+ return x(), n(f, h(e.$attrs, {
1467
1467
  "model-value": o.visible,
1468
1468
  "show-close": o.disabled,
1469
1469
  fullscreen: !o.width,
@@ -1473,20 +1473,20 @@ var Qe = { style: {
1473
1473
  "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1474
1474
  onClose: u
1475
1475
  }), {
1476
- default: I(() => [(b(), n(D(o.component), m({
1476
+ default: R(() => [(x(), n(O(o.component), h({
1477
1477
  ref_key: "slotRef",
1478
1478
  ref: s
1479
1479
  }, o.componentProps, {
1480
1480
  onClose: u,
1481
1481
  onSubmit: d
1482
- }), null, 16)), o.disabled ? r("", !0) : (b(), i("div", Nt, [l(a, { onClick: u }, {
1483
- default: I(() => [...t[1] ||= [c("取消", -1)]]),
1482
+ }), null, 16)), o.disabled ? r("", !0) : (x(), i("div", Rt, [l(a, { onClick: u }, {
1483
+ default: R(() => [...t[1] ||= [c("取消", -1)]]),
1484
1484
  _: 1
1485
1485
  }), l(a, {
1486
1486
  type: "primary",
1487
1487
  onClick: d
1488
1488
  }, {
1489
- default: I(() => [...t[2] ||= [c("确定", -1)]]),
1489
+ default: R(() => [...t[2] ||= [c("确定", -1)]]),
1490
1490
  _: 1
1491
1491
  })]))]),
1492
1492
  _: 1
@@ -1497,11 +1497,11 @@ var Qe = { style: {
1497
1497
  ]);
1498
1498
  };
1499
1499
  }
1500
- }), Ft = /* @__PURE__ */ z({ default: () => It }), It = Pt, Q = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1501
- function Lt(e) {
1500
+ }), Bt = /* @__PURE__ */ B({ default: () => Vt }), Vt = zt, X = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1501
+ function Ht(e) {
1502
1502
  return Array.from(new Set(e));
1503
1503
  }
1504
- function Rt(e, t) {
1504
+ function Ut(e, t) {
1505
1505
  let n = /* @__PURE__ */ new Set();
1506
1506
  return e.filter((e) => {
1507
1507
  let r = typeof t == "function" ? t(e) : e[t];
@@ -1510,7 +1510,7 @@ function Rt(e, t) {
1510
1510
  }
1511
1511
  //#endregion
1512
1512
  //#region src/components/StaffSelect/default.vue
1513
- var zt = /* @__PURE__ */ u({
1513
+ var Wt = /* @__PURE__ */ u({
1514
1514
  __name: "default",
1515
1515
  props: {
1516
1516
  multiple: { type: Boolean },
@@ -1529,12 +1529,12 @@ var zt = /* @__PURE__ */ u({
1529
1529
  }), d = t({
1530
1530
  get: () => o.modelValue || "",
1531
1531
  set: (e) => s("update:modelValue", e)
1532
- }), f = S([]);
1533
- v(() => {
1532
+ }), f = C([]);
1533
+ y(() => {
1534
1534
  o.modelValue && p(o.modelValue);
1535
1535
  });
1536
1536
  async function p(e = "") {
1537
- f.value = ((await fetch(Q + "/user/pageQueryUser", {
1537
+ f.value = ((await fetch(X + "/user/pageQueryUser", {
1538
1538
  method: "POST",
1539
1539
  headers: u,
1540
1540
  body: JSON.stringify({
@@ -1551,23 +1551,23 @@ var zt = /* @__PURE__ */ u({
1551
1551
  };
1552
1552
  });
1553
1553
  }
1554
- async function h(e) {
1554
+ async function m(e) {
1555
1555
  e.length < 1 || (d.value = e, await p(e));
1556
1556
  }
1557
1557
  return (t, r) => {
1558
- let a = T("el-icon"), o = T("el-option"), s = T("el-select");
1559
- return b(), n(s, m({
1558
+ let a = E("el-icon"), o = E("el-option"), s = E("el-select");
1559
+ return x(), n(s, h({
1560
1560
  remote: "",
1561
1561
  filterable: "",
1562
1562
  modelValue: d.value,
1563
1563
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
1564
- "remote-method": h
1564
+ "remote-method": m
1565
1565
  }, t.$attrs), {
1566
- prefix: I(() => [l(a, null, {
1567
- default: I(() => [l(j(K))]),
1566
+ prefix: R(() => [l(a, null, {
1567
+ default: R(() => [l(P(K))]),
1568
1568
  _: 1
1569
1569
  })]),
1570
- default: I(() => [(b(!0), i(e, null, C(f.value, (e) => (b(), n(o, {
1570
+ default: R(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
1571
1571
  key: `${e.employeeCode}-${e.employeeName}`,
1572
1572
  label: e.label,
1573
1573
  value: e.value
@@ -1576,26 +1576,26 @@ var zt = /* @__PURE__ */ u({
1576
1576
  }, 16, ["modelValue"]);
1577
1577
  };
1578
1578
  }
1579
- }), Bt = { style: {
1579
+ }), Gt = { style: {
1580
1580
  display: "flex",
1581
1581
  "max-width": "100%",
1582
1582
  gap: "20px",
1583
1583
  "overflow-y": "scroll",
1584
1584
  height: "400px"
1585
- } }, Vt = { style: { flex: "1" } }, Ht = { style: { width: "320px" } }, Ut = { style: {
1585
+ } }, Kt = { style: { flex: "1" } }, qt = { style: { width: "320px" } }, Jt = { style: {
1586
1586
  display: "flex",
1587
1587
  "justify-content": "space-between",
1588
1588
  "align-items": "center",
1589
1589
  "margin-bottom": "8px",
1590
1590
  height: "30px"
1591
- } }, Wt = { key: 0 }, Gt = { style: {
1591
+ } }, Yt = { key: 0 }, Xt = { style: {
1592
1592
  "overflow-y": "auto",
1593
1593
  height: "90%"
1594
- } }, Kt = { style: {
1594
+ } }, Zt = { style: {
1595
1595
  display: "flex",
1596
1596
  "justify-content": "end",
1597
1597
  "align-items": "center"
1598
- } }, qt = /* @__PURE__ */ V(/* @__PURE__ */ u({
1598
+ } }, Qt = /* @__PURE__ */ V(/* @__PURE__ */ u({
1599
1599
  __name: "dialog",
1600
1600
  props: {
1601
1601
  modelValue: {},
@@ -1609,40 +1609,40 @@ var zt = /* @__PURE__ */ u({
1609
1609
  },
1610
1610
  emits: ["update:modelValue", "change"],
1611
1611
  setup(n, { expose: o, emit: s }) {
1612
- let u = s, d = M(), f = n, p = f.valueAt ?? "all", g = S(), _ = S(!1), v = new Headers({
1612
+ let u = s, d = F(), f = n, p = f.valueAt ?? "all", m = C(), _ = C(!1), v = new Headers({
1613
1613
  "Content-Type": "application/json",
1614
1614
  "X-Requested-With": "XMLHttpRequest",
1615
1615
  token: localStorage.getItem("TOKEN") ?? "",
1616
1616
  Accept: "application/json"
1617
- }), y = x({
1617
+ }), y = S({
1618
1618
  searchData: [],
1619
1619
  staffData: [],
1620
1620
  loading: !1,
1621
1621
  filterText: "",
1622
1622
  requiredVisible: !1
1623
- }), w = S([]), E = S([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
1624
- ee(() => {
1625
- E.value = Lt(f.modelValue || []);
1626
- }), ee(() => {
1627
- _.value && A();
1623
+ }), b = C([]), T = C([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
1624
+ L(() => {
1625
+ T.value = Ht(f.modelValue || []);
1626
+ }), L(() => {
1627
+ _.value && k();
1628
1628
  });
1629
- async function A() {
1630
- let e = await fetch(Q + "/department/queryDepartmentTree", {
1629
+ async function k() {
1630
+ let e = await fetch(X + "/department/queryDepartmentTree", {
1631
1631
  method: "GET",
1632
1632
  headers: v
1633
1633
  }).then((e) => e.json());
1634
- y.staffData = e.data || [], e.data?.[0] && P(e.data?.[0]);
1634
+ y.staffData = e.data || [], e.data?.[0] && M(e.data?.[0]);
1635
1635
  }
1636
- async function N(e) {
1637
- return fetch(Q + "/user/pageQueryUser", {
1636
+ async function A(e) {
1637
+ return fetch(X + "/user/pageQueryUser", {
1638
1638
  method: "POST",
1639
1639
  headers: v,
1640
1640
  body: JSON.stringify(e)
1641
1641
  }).then((e) => e.json());
1642
1642
  }
1643
- async function P(e, t) {
1643
+ async function M(e, t) {
1644
1644
  let n = !!e?.data?.code, r = e?.data?.code || e?.code;
1645
- return !r || e?.data?.account ? t?.([]) : (y.loading = !0, N({
1645
+ return !r || e?.data?.account ? t?.([]) : (y.loading = !0, A({
1646
1646
  page: 1,
1647
1647
  pageSize: 9999,
1648
1648
  departmentCode: r
@@ -1652,27 +1652,27 @@ var zt = /* @__PURE__ */ u({
1652
1652
  ...e,
1653
1653
  code: e.account
1654
1654
  }));
1655
- n ? e.data.children = Rt([...r, ...e.data.children || []], "code") : e.children = Rt([...r, ...e.children || []], "code"), y.loading = !1;
1655
+ n ? e.data.children = Ut([...r, ...e.data.children || []], "code") : e.children = Ut([...r, ...e.children || []], "code"), y.loading = !1;
1656
1656
  }), t?.(e?.children || []));
1657
1657
  }
1658
- function F(e, { data: t }) {
1658
+ function N(e, { data: t }) {
1659
1659
  let n = y.searchData?.length > 0;
1660
1660
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1661
1661
  width: "14px",
1662
1662
  height: "14px"
1663
1663
  } }, e(K)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1664
1664
  }
1665
- function L(e) {
1666
- if (E.value = E.value.filter((t) => t !== e), g.value) {
1665
+ function ee(e) {
1666
+ if (T.value = T.value.filter((t) => t !== e), m.value) {
1667
1667
  let t = e.match(/\((.*?)\)/)?.[1];
1668
- h(() => {
1669
- g.value?.setChecked(t, !1);
1668
+ g(() => {
1669
+ m.value?.setChecked(t, !1);
1670
1670
  });
1671
1671
  }
1672
1672
  }
1673
- async function re() {
1673
+ async function te() {
1674
1674
  if (!y.filterText?.trim()) return y.searchData = [];
1675
- let e = await N({
1675
+ let e = await A({
1676
1676
  page: 1,
1677
1677
  pageSize: 9999,
1678
1678
  name: y.filterText?.trim()
@@ -1683,39 +1683,39 @@ var zt = /* @__PURE__ */ u({
1683
1683
  code: e.account
1684
1684
  }));
1685
1685
  }
1686
- function R(e, t) {
1686
+ function I(e, t) {
1687
1687
  let n = (t?.checkedNodes.filter((e) => e.account)).map((e) => `${e.name}(${e.account})`);
1688
- E.value = Lt(E.value.concat(n));
1688
+ T.value = Ht(T.value.concat(n));
1689
1689
  }
1690
- function z() {
1691
- let e = p === "all" ? E.value : E.value?.map((e) => {
1690
+ function ne() {
1691
+ let e = p === "all" ? T.value : T.value?.map((e) => {
1692
1692
  let [t, n] = e.split("(");
1693
1693
  return {
1694
1694
  name: t.trim(),
1695
1695
  account: n?.replace(")", "")
1696
1696
  }[p] || e.trim();
1697
1697
  });
1698
- u("change", e), u("update:modelValue", e), _.value = !1, B();
1698
+ u("change", e), u("update:modelValue", e), _.value = !1, z();
1699
1699
  }
1700
- function ie() {
1700
+ function ae() {
1701
1701
  u("update:modelValue", void 0), _.value = !1;
1702
1702
  }
1703
- function B() {
1704
- return y.requiredVisible = O.value && E.value.length === 0, y.requiredVisible;
1703
+ function z() {
1704
+ return y.requiredVisible = O.value && T.value.length === 0, y.requiredVisible;
1705
1705
  }
1706
- return o({ validate: B }), (t, n) => {
1707
- let o = T("el-select"), s = T("el-input"), u = T("el-tree"), d = T("el-icon"), p = T("el-button"), h = T("el-dialog");
1708
- return b(), i(e, null, [a("div", {
1706
+ return o({ validate: z }), (t, n) => {
1707
+ 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");
1708
+ return x(), i(e, null, [a("div", {
1709
1709
  class: "staff-select-trigger",
1710
1710
  onClick: n[1] ||= (e) => !f.disabled && (_.value = !0)
1711
- }, [l(o, m({
1711
+ }, [l(o, h({
1712
1712
  ...t.$attrs,
1713
1713
  ...t.$props
1714
1714
  }, {
1715
- modelValue: E.value,
1716
- "onUpdate:modelValue": n[0] ||= (e) => E.value = e,
1715
+ modelValue: T.value,
1716
+ "onUpdate:modelValue": n[0] ||= (e) => T.value = e,
1717
1717
  class: { "is-required": y.requiredVisible },
1718
- options: w.value,
1718
+ options: b.value,
1719
1719
  placeholder: "请选择",
1720
1720
  multiple: "",
1721
1721
  disabled: f.disabled,
@@ -1728,7 +1728,7 @@ var zt = /* @__PURE__ */ u({
1728
1728
  "class",
1729
1729
  "options",
1730
1730
  "disabled"
1731
- ])]), l(h, {
1731
+ ])]), l(g, {
1732
1732
  modelValue: _.value,
1733
1733
  "onUpdate:modelValue": n[3] ||= (e) => _.value = e,
1734
1734
  style: {
@@ -1740,51 +1740,51 @@ var zt = /* @__PURE__ */ u({
1740
1740
  "append-to-body": "",
1741
1741
  "close-on-click-modal": !1
1742
1742
  }, {
1743
- default: I(() => [a("div", Bt, [a("div", Vt, [l(s, {
1743
+ default: R(() => [a("div", Gt, [a("div", Kt, [l(s, {
1744
1744
  placeholder: "请输入",
1745
1745
  modelValue: y.filterText,
1746
1746
  "onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
1747
1747
  clearable: "",
1748
- "prefix-icon": j(G),
1749
- onKeydown: te(re, ["enter"])
1748
+ "prefix-icon": P(G),
1749
+ onKeydown: re(te, ["enter"])
1750
1750
  }, null, 8, ["modelValue", "prefix-icon"]), l(u, {
1751
1751
  loading: y.loading,
1752
1752
  data: D.value,
1753
1753
  props: { label: "fullName" },
1754
1754
  "highlight-current": !0,
1755
- "render-content": F,
1756
- load: P,
1757
- onCheck: R,
1755
+ "render-content": N,
1756
+ load: M,
1757
+ onCheck: I,
1758
1758
  "show-checkbox": "",
1759
1759
  lazy: "",
1760
1760
  class: "staff-tree",
1761
1761
  ref_key: "staffDialogRef",
1762
- ref: g,
1762
+ ref: m,
1763
1763
  "node-key": "code"
1764
- }, null, 8, ["loading", "data"])]), a("div", Ht, [a("div", Ut, [n[4] ||= a("h3", null, "已选择", -1), E.value.length ? (b(), i("span", Wt, "已选择" + k(E.value.length) + "个用户", 1)) : r("", !0)]), a("div", Gt, [(b(!0), i(e, null, C(E.value, (e) => (b(), i("li", {
1764
+ }, null, 8, ["loading", "data"])]), a("div", qt, [a("div", Jt, [n[4] ||= a("h3", null, "已选择", -1), T.value.length ? (x(), i("span", Yt, "已选择" + j(T.value.length) + "个用户", 1)) : r("", !0)]), a("div", Xt, [(x(!0), i(e, null, w(T.value, (e) => (x(), i("li", {
1765
1765
  key: e,
1766
1766
  class: "staff-item"
1767
- }, [a("span", null, k(e), 1), l(d, {
1767
+ }, [a("span", null, j(e), 1), l(d, {
1768
1768
  color: "red",
1769
- onClick: ne((t) => L(e), ["stop"])
1769
+ onClick: ie((t) => ee(e), ["stop"])
1770
1770
  }, {
1771
- default: I(() => [l(j(je))]),
1771
+ default: R(() => [l(P(Pe))]),
1772
1772
  _: 1
1773
- }, 8, ["onClick"])]))), 128))])])]), a("div", Kt, [l(p, { onClick: ie }, {
1774
- default: I(() => [...n[5] ||= [c("取消", -1)]]),
1773
+ }, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: ae }, {
1774
+ default: R(() => [...n[5] ||= [c("取消", -1)]]),
1775
1775
  _: 1
1776
1776
  }), l(p, {
1777
1777
  type: "primary",
1778
- onClick: z
1778
+ onClick: ne
1779
1779
  }, {
1780
- default: I(() => [...n[6] ||= [c("确定", -1)]]),
1780
+ default: R(() => [...n[6] ||= [c("确定", -1)]]),
1781
1781
  _: 1
1782
1782
  })])]),
1783
1783
  _: 1
1784
1784
  }, 8, ["modelValue"])], 64);
1785
1785
  };
1786
1786
  }
1787
- }), [["__scopeId", "data-v-7ec618a3"]]), Jt = /* @__PURE__ */ u({
1787
+ }), [["__scopeId", "data-v-5c901fff"]]), $t = /* @__PURE__ */ u({
1788
1788
  __name: "index",
1789
1789
  props: {
1790
1790
  multiple: { type: Boolean },
@@ -1794,8 +1794,8 @@ var zt = /* @__PURE__ */ u({
1794
1794
  token: {}
1795
1795
  },
1796
1796
  setup(e, { expose: t }) {
1797
- let r = e, i = S();
1798
- return t({ validate: () => i.value?.validate?.() }), (e, t) => (b(), n(D(r?.type === "dialog" ? qt : zt), m({
1797
+ let r = e, i = C();
1798
+ return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? Qt : Wt), h({
1799
1799
  ref_key: "staffSelectRef",
1800
1800
  ref: i
1801
1801
  }, {
@@ -1803,7 +1803,7 @@ var zt = /* @__PURE__ */ u({
1803
1803
  ...r
1804
1804
  }), null, 16));
1805
1805
  }
1806
- }), Yt = /* @__PURE__ */ z({ default: () => Xt }), Xt = Jt, Zt = /* @__PURE__ */ V(/* @__PURE__ */ u({
1806
+ }), en = /* @__PURE__ */ B({ default: () => tn }), tn = $t, nn = /* @__PURE__ */ V(/* @__PURE__ */ u({
1807
1807
  __name: "file",
1808
1808
  props: {
1809
1809
  icon: {},
@@ -1819,31 +1819,31 @@ var zt = /* @__PURE__ */ u({
1819
1819
  },
1820
1820
  emits: ["change"],
1821
1821
  setup(e, { emit: r }) {
1822
- let i = e, { text: a = "选择文件", icon: o = void 0, size: u = "default" } = i, d = i, f = M(), p = f.disabled, h = t(() => d.limit && f.count < d?.limit), g = t(() => d.limit && f.count >= d?.limit), _ = t(() => d.limit === void 0 ? !1 : !h.value);
1822
+ let i = e, { text: a = "选择文件", icon: o = void 0, size: u = "default" } = i, d = i, f = F(), p = f.disabled, m = t(() => d.limit && f.count < d?.limit), g = t(() => d.limit && f.count >= d?.limit), _ = t(() => d.limit === void 0 ? !1 : !m.value);
1823
1823
  return (e, t) => {
1824
- let r = T("el-button"), i = T("el-upload");
1825
- return b(), n(i, m(e.$attrs, {
1824
+ let r = E("el-button"), i = E("el-upload");
1825
+ return x(), n(i, h(e.$attrs, {
1826
1826
  style: { width: "100%" },
1827
- action: j(d).action,
1828
- "file-list": j(d).fileList,
1829
- limit: j(d).limit,
1827
+ action: P(d).action,
1828
+ "file-list": P(d).fileList,
1829
+ limit: P(d).limit,
1830
1830
  class: {
1831
- "hide-upload-list": h.value,
1831
+ "hide-upload-list": m.value,
1832
1832
  "hide-upload-text": g.value
1833
1833
  }
1834
1834
  }), s({
1835
- default: I(() => [w(e.$slots, "tip", {}, void 0, !0)]),
1835
+ default: R(() => [T(e.$slots, "tip", {}, void 0, !0)]),
1836
1836
  _: 2
1837
1837
  }, [_.value ? void 0 : {
1838
1838
  name: "trigger",
1839
- fn: I(() => [l(r, {
1839
+ fn: R(() => [l(r, {
1840
1840
  type: "primary",
1841
1841
  plain: "",
1842
- icon: j(o),
1843
- size: j(u),
1844
- disabled: j(p)
1842
+ icon: P(o),
1843
+ size: P(u),
1844
+ disabled: P(p)
1845
1845
  }, {
1846
- default: I(() => [c(k(j(a)), 1)]),
1846
+ default: R(() => [c(j(P(a)), 1)]),
1847
1847
  _: 1
1848
1848
  }, 8, [
1849
1849
  "icon",
@@ -1859,7 +1859,7 @@ var zt = /* @__PURE__ */ u({
1859
1859
  ]);
1860
1860
  };
1861
1861
  }
1862
- }), [["__scopeId", "data-v-ee74ad23"]]), Qt = ["src"], $t = /* @__PURE__ */ u({
1862
+ }), [["__scopeId", "data-v-ee74ad23"]]), rn = ["src"], an = /* @__PURE__ */ u({
1863
1863
  __name: "image",
1864
1864
  props: {
1865
1865
  icon: {},
@@ -1874,13 +1874,13 @@ var zt = /* @__PURE__ */ u({
1874
1874
  onChange: { type: Function }
1875
1875
  },
1876
1876
  setup(t) {
1877
- let n = t, r = S({}), o = S(!1);
1877
+ let n = t, r = C({}), o = C(!1);
1878
1878
  function s(e) {
1879
1879
  r.value = e, o.value = !0;
1880
1880
  }
1881
1881
  return (t, c) => {
1882
- let u = T("el-icon"), d = T("el-upload"), f = T("el-dialog");
1883
- return b(), i(e, null, [l(d, m({
1882
+ let u = E("el-icon"), d = E("el-upload"), f = E("el-dialog");
1883
+ return x(), i(e, null, [l(d, h({
1884
1884
  accept: "image/*",
1885
1885
  action: n.action,
1886
1886
  "auto-upload": !1
@@ -1888,8 +1888,8 @@ var zt = /* @__PURE__ */ u({
1888
1888
  "list-type": "picture-card",
1889
1889
  "on-preview": s
1890
1890
  }), {
1891
- default: I(() => [l(u, null, {
1892
- default: I(() => [l(j(Pe))]),
1891
+ default: R(() => [l(u, null, {
1892
+ default: R(() => [l(P(Le))]),
1893
1893
  _: 1
1894
1894
  })]),
1895
1895
  _: 1
@@ -1897,16 +1897,16 @@ var zt = /* @__PURE__ */ u({
1897
1897
  modelValue: o.value,
1898
1898
  "onUpdate:modelValue": c[0] ||= (e) => o.value = e
1899
1899
  }, {
1900
- default: I(() => [a("img", {
1900
+ default: R(() => [a("img", {
1901
1901
  "w-full": "",
1902
1902
  src: r.value.url,
1903
1903
  alt: "预览"
1904
- }, null, 8, Qt)]),
1904
+ }, null, 8, rn)]),
1905
1905
  _: 1
1906
1906
  }, 8, ["modelValue"])], 64);
1907
1907
  };
1908
1908
  }
1909
- }), en = /* @__PURE__ */ u({
1909
+ }), on = /* @__PURE__ */ u({
1910
1910
  __name: "index",
1911
1911
  props: {
1912
1912
  icon: {},
@@ -1937,27 +1937,27 @@ var zt = /* @__PURE__ */ u({
1937
1937
  "fileList",
1938
1938
  "limit",
1939
1939
  "action"
1940
- ]), s = Q + "/attachment/uploadAttachment", c = e.action || s, l = S(), u = S(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1941
- get: () => A(e.fileList) || [],
1940
+ ]), s = X + "/attachment/uploadAttachment", c = e.action || s, l = C(), u = C(0), d = { token: localStorage.getItem("TOKEN") || "" }, f = t({
1941
+ get: () => N(e.fileList) || [],
1942
1942
  set: (e) => i("update:fileList", e)
1943
1943
  });
1944
- v(async () => {
1945
- u.value = A(e.fileList)?.length || 0;
1944
+ y(async () => {
1945
+ u.value = N(e.fileList)?.length || 0;
1946
1946
  });
1947
1947
  function p(t, n) {
1948
1948
  let r = Array.isArray(n) ? n : [];
1949
1949
  e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
1950
1950
  }
1951
- function h() {
1951
+ function m() {
1952
1952
  e.limit && H.Message.warning(`最多只能上传 ${e.limit} 个文件`);
1953
1953
  }
1954
1954
  function g(e, t) {
1955
- i("update:modelValue", A(t)), i("remove", A(t)), u.value = t.length;
1955
+ i("update:modelValue", N(t)), i("remove", N(t)), u.value = t.length;
1956
1956
  }
1957
1957
  function _(e, t) {
1958
- let n = A(f);
1958
+ let n = N(f);
1959
1959
  if (e?.code !== "ok") return H.Message.error(e?.message);
1960
- let r = Q + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1960
+ let r = X + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1961
1961
  n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
1962
1962
  name: t.name,
1963
1963
  uid: t.uid,
@@ -1965,22 +1965,22 @@ var zt = /* @__PURE__ */ u({
1965
1965
  status: "success",
1966
1966
  ...e.data,
1967
1967
  url: r
1968
- }), f.value = [...n], i("update:modelValue", A(f)), i("success", A(f)), u.value = n.length;
1968
+ }), f.value = [...n], i("update:modelValue", N(f)), i("success", N(f)), u.value = n.length;
1969
1969
  }
1970
- function y(e, t, n) {
1970
+ function v(e, t, n) {
1971
1971
  i("update:modelValue", n);
1972
1972
  }
1973
- return (t, r) => (b(), n(D(e.type === "image" ? $t : Zt), m({
1973
+ return (t, r) => (x(), n(O(e.type === "image" ? an : nn), h({
1974
1974
  ref_key: "uploadInstance",
1975
1975
  ref: l,
1976
1976
  name: "file",
1977
- action: j(c),
1977
+ action: P(c),
1978
1978
  headers: d,
1979
1979
  "on-change": p,
1980
- "on-exceed": h,
1980
+ "on-exceed": m,
1981
1981
  "on-remove": g,
1982
1982
  "on-success": _,
1983
- "on-error": y,
1983
+ "on-error": v,
1984
1984
  "file-list": f.value,
1985
1985
  count: u.value,
1986
1986
  limit: e.limit
@@ -1991,7 +1991,7 @@ var zt = /* @__PURE__ */ u({
1991
1991
  "limit"
1992
1992
  ]));
1993
1993
  }
1994
- }), tn = /* @__PURE__ */ z({ default: () => nn }), nn = en, rn = {
1994
+ }), sn = /* @__PURE__ */ B({ default: () => cn }), cn = on, ln = {
1995
1995
  mounted(e, t) {
1996
1996
  let n = t.value || {}, r = n.target || "body", i = n.top || 0;
1997
1997
  e._stickyOriginalStyles = {
@@ -2016,46 +2016,290 @@ var zt = /* @__PURE__ */ u({
2016
2016
  unmounted(e) {
2017
2017
  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);
2018
2018
  }
2019
- }, an = { mounted(e) {
2019
+ }, un = { mounted(e) {
2020
2020
  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";
2021
- } }, on = /* @__PURE__ */ z({
2022
- card: () => an,
2023
- sticky: () => rn
2024
- }), sn = "Yc", cn = {
2025
- UiCard: ae,
2026
- UiTable: Te,
2027
- UiFilter: et,
2028
- UiForm: ot,
2029
- UiEditor: Z,
2030
- UiTree: vt,
2031
- UiInfiniteScroll: Et,
2032
- UiDescriptions: jt,
2033
- UiDialog: Ft,
2034
- UiStaffSelect: Yt,
2035
- UiUpload: tn
2036
- }, ln = null;
2037
- function un(e) {
2038
- ln = e;
2021
+ } }, dn = /* @__PURE__ */ B({
2022
+ card: () => un,
2023
+ sticky: () => ln
2024
+ }), Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
2025
+ //#endregion
2026
+ //#region src/hooks/useFetch.ts
2027
+ function fn(e, t = {}) {
2028
+ let { immediate: n = !0, method: r = "GET", onBefore: i, onSuccess: a, onError: o, onFinally: s, ...c } = t, l = localStorage.getItem("TOKEN"), u = {
2029
+ method: r,
2030
+ headers: new Headers({
2031
+ "Content-Type": "application/json",
2032
+ token: l ?? "",
2033
+ ...c.headers || {}
2034
+ })
2035
+ }, d = C(!1), f = C(null), m = C(null), h = S({}), _ = !1;
2036
+ async function v() {
2037
+ if (_) return Promise.reject(/* @__PURE__ */ Error("请求正在进行中,请勿重复触发"));
2038
+ _ = !0, d.value = !0, m.value = null;
2039
+ try {
2040
+ let t = Z + e;
2041
+ if (i?.(u) === !1) return Promise.reject(/* @__PURE__ */ Error("请求被 onBefore 钩子取消"));
2042
+ if (r === "GET") {
2043
+ let e = new URLSearchParams(M(h)).toString();
2044
+ e && (t = `${t}?${e}`);
2045
+ } else u.body = JSON.stringify(M(h));
2046
+ let n = await (await fetch(t, u)).json();
2047
+ return n.code ? ["return.optSuccess", "ok"].includes(n.code) || H.Message.error(n.message || "未知错误!") : n.data?.success || H.Message.error(n.message || "未知错误!"), f.value = n, a?.(n), n;
2048
+ } catch (e) {
2049
+ let t = e instanceof Error ? e : Error(String(e));
2050
+ throw m.value = t, console.error("请求发生错误:", t), o?.(t), t;
2051
+ } finally {
2052
+ d.value = !1, _ = !1, s?.();
2053
+ }
2054
+ }
2055
+ let y = null;
2056
+ L(() => {
2057
+ Object.assign(h, N(c.defaultParams) || {}), y && clearTimeout(y), y = setTimeout(() => {
2058
+ let e = p(t.ready) ? t.ready.value : t.ready ?? !0;
2059
+ n && e && !_ && g(() => v());
2060
+ }, 10);
2061
+ });
2062
+ function b(e) {
2063
+ for (let e in h) h[e] = void 0;
2064
+ Object.assign(h, e);
2065
+ }
2066
+ return {
2067
+ execute: v,
2068
+ loading: d,
2069
+ data: f,
2070
+ error: m,
2071
+ params: h,
2072
+ setParams: b
2073
+ };
2074
+ }
2075
+ //#endregion
2076
+ //#region src/hooks/useTable/default.ts
2077
+ function pn(e, t) {
2078
+ let n = S({
2079
+ ignoreAttrs: [
2080
+ "tableName",
2081
+ "sort",
2082
+ ...t?.ignoreAttrs || []
2083
+ ],
2084
+ replaceAttrs: t?.replaceAttrs || {
2085
+ table: "table",
2086
+ total: "total"
2087
+ }
2088
+ }), r = A([]), i = S({
2089
+ total: 0,
2090
+ page: 1,
2091
+ pageSize: 10
2092
+ }), a = C([]), o = S({
2093
+ page: 1,
2094
+ pageSize: 10
2095
+ });
2096
+ if (t?.onBefore?.(o) === !1) return {
2097
+ loading: C(!1),
2098
+ data: r,
2099
+ pagination: i
2100
+ };
2101
+ let s = fn(e, {
2102
+ ...t,
2103
+ defaultParams: o,
2104
+ onSuccess: (e) => {
2105
+ t?.onSuccess?.(e), i.total = e[n?.replaceAttrs?.total] || 0, r.value = e[n?.replaceAttrs?.table] || [];
2106
+ }
2107
+ });
2108
+ L(() => {
2109
+ let e = N(t.defaultParams || {});
2110
+ i.page = 1, i.pageSize = 10, Object.assign(o, {
2111
+ ...e,
2112
+ page: 1,
2113
+ pageSize: 10
2114
+ });
2115
+ });
2116
+ function c(e = {}) {
2117
+ i.page = 1, i.pageSize = 10, e && (Object.keys(o).forEach((t) => {
2118
+ n.ignoreAttrs?.includes(t) || Object.keys(e).includes(t) || delete o[t];
2119
+ }), Object.assign(o, {
2120
+ ...e,
2121
+ page: 1,
2122
+ pageSize: 10
2123
+ }));
2124
+ }
2125
+ function l({ page: e, pageSize: t }) {
2126
+ i.page = e, i.pageSize = t, Object.assign(o, {
2127
+ page: e,
2128
+ pageSize: t
2129
+ });
2130
+ }
2131
+ function u(e) {
2132
+ a.value = e;
2133
+ }
2134
+ return S({
2135
+ ...s,
2136
+ data: r,
2137
+ pagination: i,
2138
+ selection: a,
2139
+ reset: c,
2140
+ updatePagination: l,
2141
+ selectionChange: u
2142
+ });
2143
+ }
2144
+ //#endregion
2145
+ //#region src/utils/request.ts
2146
+ var mn = new Headers({
2147
+ "Content-Type": "application/json",
2148
+ token: localStorage.getItem("TOKEN") || ""
2149
+ });
2150
+ async function hn(e, t) {
2151
+ let n = `${Z}${e}`;
2152
+ if (t) {
2153
+ let e = new URLSearchParams(t).toString();
2154
+ e && (n = `${n}?${e}`);
2155
+ }
2156
+ return (await fetch(n, {
2157
+ headers: mn,
2158
+ method: "GET"
2159
+ })).json();
2160
+ }
2161
+ async function gn(e, t) {
2162
+ return (await fetch(`${Z}${e}`, {
2163
+ headers: mn,
2164
+ method: "POST",
2165
+ body: JSON.stringify(t)
2166
+ })).json();
2167
+ }
2168
+ async function _n(e, t) {
2169
+ return (await fetch(`${Z}${e}`, {
2170
+ headers: mn,
2171
+ method: "POST",
2172
+ body: JSON.stringify(t)
2173
+ })).blob();
2174
+ }
2175
+ var Q = {
2176
+ get: hn,
2177
+ post: gn,
2178
+ blob: _n
2179
+ };
2180
+ //#endregion
2181
+ //#region src/hooks/useTable/common.ts
2182
+ function vn(e, n) {
2183
+ let { defaultParams: r, ...i } = n, a = (e) => {
2184
+ let { tableId: t, page: n, pageSize: r, sort: i, ...a } = JSON.parse(JSON.stringify(e || {}));
2185
+ return {
2186
+ tableId: t,
2187
+ page: n || 1,
2188
+ pageSize: r || 10,
2189
+ params: {
2190
+ ...a,
2191
+ sort: i
2192
+ }
2193
+ };
2194
+ }, o = pn(e, {
2195
+ ...i,
2196
+ ready: t(() => {
2197
+ let e = p(n.ready) ? n.ready.value : n.ready, t = !!N(r)?.tableId;
2198
+ return (e === void 0 || e) && t;
2199
+ }),
2200
+ defaultParams: t(() => a(N(r))),
2201
+ ignoreAttrs: [
2202
+ "tableName",
2203
+ "sort",
2204
+ ...n?.ignoreAttrs || []
2205
+ ]
2206
+ });
2207
+ function s(e = {}) {
2208
+ if (e) {
2209
+ let e = N(r), t = e?.sort ? { sort: e.sort } : {};
2210
+ Object.assign(e, {
2211
+ ...t,
2212
+ page: 1,
2213
+ pageSize: 10
2214
+ });
2215
+ }
2216
+ }
2217
+ async function c(e) {
2218
+ let t = N(r);
2219
+ return Q.post("/common/insert", {
2220
+ params: { ...e },
2221
+ tableId: t?.tableId
2222
+ });
2223
+ }
2224
+ async function l(e) {
2225
+ let t = N(r);
2226
+ return Q.post("/common/update", {
2227
+ params: { ...e },
2228
+ tableId: t?.tableId
2229
+ });
2230
+ }
2231
+ async function u(e) {
2232
+ let t = N(r);
2233
+ return Q.post("/common/delete", {
2234
+ idList: e,
2235
+ tableId: t?.tableId
2236
+ });
2237
+ }
2238
+ async function d(e, t) {
2239
+ let { title: n = "export" } = e || {}, i = N(r), a = await Q.blob(t ?? "/common/exportExcel", {
2240
+ tableId: i?.tableId,
2241
+ type: "all"
2242
+ }), o = document.createElement("a");
2243
+ o.href = window.URL.createObjectURL(a), o.download = `${n}.xlsx`, o.click(), H.Message.success("导出成功"), window.URL.revokeObjectURL(o.href);
2244
+ }
2245
+ let f = S({
2246
+ loading: !1,
2247
+ data: [],
2248
+ insert: c,
2249
+ update: l,
2250
+ remove: u,
2251
+ delete: u,
2252
+ exportData: d
2253
+ });
2254
+ return L(() => {
2255
+ Object.assign(f, o, { reset: s });
2256
+ }), f;
2257
+ }
2258
+ //#endregion
2259
+ //#region src/hooks/useTable/index.ts
2260
+ function yn(e, t) {
2261
+ return e?.includes("/common/pageQuery") ? vn(e, t) : pn(e, t);
2262
+ }
2263
+ //#endregion
2264
+ //#region src/hooks/index.ts
2265
+ var bn = /* @__PURE__ */ B({
2266
+ useFetch: () => fn,
2267
+ useTable: () => yn
2268
+ }), xn = "Yc", Sn = {
2269
+ UiCard: ce,
2270
+ UiTable: Oe,
2271
+ UiFilter: it,
2272
+ UiForm: ut,
2273
+ UiEditor: mt,
2274
+ UiTree: Ct,
2275
+ UiInfiniteScroll: jt,
2276
+ UiDescriptions: It,
2277
+ UiDialog: Bt,
2278
+ UiStaffSelect: en,
2279
+ UiUpload: sn
2280
+ }, Cn = null;
2281
+ function wn(e) {
2282
+ Cn = e;
2039
2283
  }
2040
2284
  function $() {
2041
- return ln;
2285
+ return Cn;
2042
2286
  }
2043
- var dn = { install(e, t) {
2044
- t?.elementPlus && t.elementPlus.install(e), ln ||= {
2287
+ var Tn = { install(e, t) {
2288
+ t?.elementPlus && t.elementPlus.install(e), Cn ||= {
2045
2289
  ...e,
2046
2290
  h: f
2047
2291
  };
2048
- for (let [t, n] of Object.entries(cn)) {
2292
+ for (let [t, n] of Object.entries(Sn)) {
2049
2293
  let r = n?.default || n;
2050
2294
  if (r && (typeof r == "function" || typeof r == "object")) {
2051
- let n = t.replace(/^Ui/, sn);
2295
+ let n = t.replace(/^Ui/, xn);
2052
2296
  e.component(n, r);
2053
2297
  let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2054
2298
  i !== n && e.component(i, r);
2055
2299
  }
2056
2300
  }
2057
- for (let [t, n] of Object.entries(Xe)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
2058
- for (let [t, n] of Object.entries(on)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2301
+ for (let [t, n] of Object.entries($e)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
2302
+ for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2059
2303
  } };
2060
2304
  //#endregion
2061
- export { ae as UiCard, jt as UiDescriptions, Ft as UiDialog, Z as UiEditor, et as UiFilter, ot as UiForm, Et as UiInfiniteScroll, Yt as UiStaffSelect, Te as UiTable, vt as UiTree, tn as UiUpload, dn as default, dn as ycPlugin, $ as getHostVue, un as setHostVue };
2305
+ export { ce as UiCard, It as UiDescriptions, Bt as UiDialog, mt as UiEditor, it as UiFilter, ut as UiForm, jt as UiInfiniteScroll, en as UiStaffSelect, Oe as UiTable, Ct as UiTree, sn as UiUpload, Tn as default, Tn as ycPlugin, $ as getHostVue, bn as hooks, wn as setHostVue };