yc-vep-ui 0.3.5 → 0.3.6

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.
@@ -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 ne } from "vue";
2
- import { AiEditor as V } 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, toRef as N, toValue as P, unref as F, useAttrs as I, useCssVars as ee, useModel as L, watch as R, watchEffect as z, withCtx as B, withDirectives as V, withKeys as te, withModifiers as ne } from "vue";
2
+ import { AiEditor as H } from "aieditor";
3
3
  //#region \0rolldown/runtime.js
4
- var H = Object.defineProperty, U = (e, t) => {
4
+ var re = Object.defineProperty, U = (e, t) => {
5
5
  let n = {};
6
- for (var r in e) H(n, r, {
6
+ for (var r in e) re(n, r, {
7
7
  get: e[r],
8
8
  enumerable: !0
9
9
  });
10
- return t || H(n, Symbol.toStringTag, { value: "Module" }), n;
11
- }, re = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, ie = /* @__PURE__ */ u({
10
+ return t || re(n, Symbol.toStringTag, { value: "Module" }), n;
11
+ }, ie = { class: /* @__PURE__ */ _({ bodyClass: !0 }) }, ae = /* @__PURE__ */ u({
12
12
  __name: "index",
13
13
  props: {
14
14
  title: {},
@@ -29,12 +29,12 @@ 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", re, [T(t.$slots, "default", {}, void 0, !0)])]),
32
+ default: B(() => [a("div", ie, [T(t.$slots, "default", {}, void 0, !0)])]),
33
33
  _: 2
34
34
  }, [e.title && e.title?.length > 0 ? {
35
35
  name: "header",
36
- fn: z(() => [a("div", { style: v(i.value) }, [e.icon ? (x(), n(l, { key: 0 }, {
37
- default: z(() => [(x(), n(O(e.icon), { color: "#2563eb" }))]),
36
+ fn: B(() => [a("div", { style: v(i.value) }, [e.icon ? (x(), n(l, { key: 0 }, {
37
+ default: B(() => [(x(), n(O(e.icon), { color: "#2563eb" }))]),
38
38
  _: 1
39
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"
@@ -45,7 +45,7 @@ var H = Object.defineProperty, U = (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__ */ U({ default: () => oe }), oe = /* @__PURE__ */ W(ie, [["__scopeId", "data-v-6ebb01d7"]]), G = {
48
+ }, oe = /* @__PURE__ */ U({ default: () => se }), se = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-6ebb01d7"]]), G = {
49
49
  get Button() {
50
50
  return $()?.resolveComponent?.("el-button") || "el-button";
51
51
  },
@@ -146,7 +146,7 @@ function K() {
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 ce(e) {
150
150
  let t = K();
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 le(e) {
167
167
  let t = K();
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 ue(e) {
188
188
  let t = K();
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(G.Tag, e, () => n))) : null;
195
195
  }
196
- function ue(e) {
196
+ function de(e) {
197
197
  let t = K();
198
198
  return t ? t(G.Tag, { ...e }) : null;
199
199
  }
200
- function de(e) {
200
+ function fe(e) {
201
201
  let t = K();
202
202
  return t ? t(G.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 pe(e) {
210
210
  let t = K();
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 me(e) {
224
224
  let t = K();
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 he(e) {
236
236
  let t = K();
237
237
  return t ? t(G.Input, {
238
238
  ...e,
239
239
  placeholder: "请输入"
240
240
  }) : null;
241
241
  }
242
- function he(e) {
242
+ function ge(e) {
243
243
  let t = K();
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 _e(e) {
258
258
  let t = K();
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 ve(e) {
269
269
  let t = K();
270
270
  return t ? t(G.InputTag, {
271
271
  placeholder: "请输入",
@@ -273,52 +273,74 @@ function _e(e) {
273
273
  clearable: !1
274
274
  }) : null;
275
275
  }
276
- function ve(e) {
276
+ function ye(e) {
277
277
  let t = K();
278
- return t ? t(ht || mt, e) : null;
278
+ return t ? t(gt || ht, e) : null;
279
279
  }
280
- function ye(e) {
280
+ function be(e) {
281
281
  let t = K();
282
282
  return t ? t(G.RadioGroup, e) : null;
283
283
  }
284
- function be(e) {
284
+ function xe(e) {
285
285
  let t = K();
286
286
  return t ? t(G.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
287
287
  }
288
- function xe(e) {
288
+ function Se(e) {
289
289
  let t = K();
290
- return t ? t(tn || en, {
290
+ return t ? t(nn || tn, {
291
291
  placeholder: "请选择",
292
292
  ...e,
293
293
  searchable: !0
294
294
  }) : null;
295
295
  }
296
- function Se(e) {
296
+ var Ce = u({
297
+ props: [
298
+ "fileList",
299
+ "modelValue",
300
+ "onChange",
301
+ "size",
302
+ "limit",
303
+ "action",
304
+ "type",
305
+ "data",
306
+ "prop"
307
+ ],
308
+ setup(e) {
309
+ let n = e.prop && e.data ? N(e.data, e.prop) : t(() => e.modelValue || e.fileList || []);
310
+ return () => {
311
+ let t = K();
312
+ if (!t) return null;
313
+ let r = ln || cn, i = "value" in n ? n.value : n;
314
+ return t(r, {
315
+ ...e,
316
+ fileList: i || [],
317
+ "onUpdate:fileList": (t, n) => e.onChange?.(n, t)
318
+ });
319
+ };
320
+ }
321
+ });
322
+ function we(e) {
297
323
  let t = K();
298
- return t ? t(cn || sn, {
299
- ...e,
300
- fileList: e.modelValue || e.fileList,
301
- "onUpdate:fileList": (t, n) => e.onChange?.(n, t)
302
- }) : null;
324
+ return t ? t(Ce, e) : null;
303
325
  }
304
- var Ce = {
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
- }, we = /* @__PURE__ */ u({
326
+ var Te = {
327
+ button: ce,
328
+ link: le,
329
+ tag: ue,
330
+ switch: de,
331
+ select: fe,
332
+ datePicker: pe,
333
+ timeSelect: me,
334
+ input: he,
335
+ inputNumber: ge,
336
+ textarea: _e,
337
+ inputTag: ve,
338
+ editor: ye,
339
+ radio: be,
340
+ text: xe,
341
+ staffSelect: Se,
342
+ upload: we
343
+ }, Ee = /* @__PURE__ */ u({
322
344
  name: "UiColumn",
323
345
  __name: "UiColumn",
324
346
  props: {
@@ -333,7 +355,7 @@ var Ce = {
333
355
  let a = r, o = t;
334
356
  function s(e, t, n) {
335
357
  let r = {};
336
- Object.keys(Ce).forEach((i) => {
358
+ Object.keys(Te).forEach((i) => {
337
359
  let o = i;
338
360
  r[o] = (r) => {
339
361
  let i = Array.isArray(r) ? r : {
@@ -345,7 +367,7 @@ var Ce = {
345
367
  onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
346
368
  onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
347
369
  };
348
- return Ce[o](i);
370
+ return Te[o](i);
349
371
  };
350
372
  });
351
373
  let i = n.render ? n.render({
@@ -363,7 +385,7 @@ var Ce = {
363
385
  label: t.column.label,
364
386
  align: o.align
365
387
  }, {
366
- default: z(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
388
+ default: B(() => [(x(!0), i(e, null, w(t.column.children, (e) => (x(), n(l, h({
367
389
  column: e,
368
390
  data: o.data
369
391
  }, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
@@ -381,7 +403,7 @@ var Ce = {
381
403
  width: t.column.width,
382
404
  "show-overflow-tooltip": t.column.showOverflowTooltip
383
405
  }, {
384
- default: z(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
406
+ default: B(({ row: e, $index: r }) => [t.column.render ? (x(), n(O(s(e, r, t.column)), {
385
407
  key: 0,
386
408
  align: o.align,
387
409
  size: o.size
@@ -389,7 +411,7 @@ var Ce = {
389
411
  key: 1,
390
412
  "line-clamp": t.column?.lineClamp || 2
391
413
  }, {
392
- default: z(() => [c(j(e[t.column.prop]), 1)]),
414
+ default: B(() => [c(j(e[t.column.prop]), 1)]),
393
415
  _: 2
394
416
  }, 1032, ["line-clamp"]))]),
395
417
  _: 1
@@ -403,7 +425,7 @@ var Ce = {
403
425
  ]));
404
426
  };
405
427
  }
406
- }), Te = /* @__PURE__ */ u({
428
+ }), De = /* @__PURE__ */ u({
407
429
  __name: "index",
408
430
  props: {
409
431
  loading: {
@@ -448,8 +470,8 @@ var Ce = {
448
470
  "pagination",
449
471
  "data",
450
472
  "size"
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
- L(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
473
+ ]), u = C(), d = t(() => P(l.columns)?.some((e) => e.type === "index")), f = t(() => P(l.columns)?.some((e) => e.type === "selection")), p = t(() => !l.columns || !l.columns.length ? [] : l.columns.filter((e) => e.type !== "index" && e.type !== "selection"));
474
+ R(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
453
475
  !e?.length || !t?.length || g(() => {
454
476
  if (!u.value) return;
455
477
  let n = t.filter((t) => e.includes(t.id));
@@ -457,7 +479,7 @@ var Ce = {
457
479
  });
458
480
  }, { immediate: !0 });
459
481
  function m(e, t) {
460
- a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", N(a.pagination));
482
+ a.pagination.page = e || a.pagination.page, a.pagination.pageSize = t || a.pagination.pageSize, c("pagination", P(a.pagination));
461
483
  }
462
484
  function _(e, t, n) {
463
485
  a.data[e] && (a.data[e] = {
@@ -468,7 +490,7 @@ var Ce = {
468
490
  return (t, o) => {
469
491
  let s = E("el-table-column"), c = E("el-table"), g = E("el-pagination"), v = D("loading");
470
492
  return x(), i("div", null, [
471
- B((x(), n(c, h({ border: a.border }, t.$attrs, {
493
+ V((x(), n(c, h({ border: a.border }, t.$attrs, {
472
494
  data: a.data,
473
495
  lazy: !0,
474
496
  class: "ui-table",
@@ -476,7 +498,7 @@ var Ce = {
476
498
  ref_key: "tableRef",
477
499
  ref: u
478
500
  }), {
479
- default: z(() => [
501
+ default: B(() => [
480
502
  f.value ? (x(), n(s, {
481
503
  key: 0,
482
504
  type: "selection",
@@ -494,7 +516,7 @@ var Ce = {
494
516
  "column-key": "index_1",
495
517
  align: a.align
496
518
  }, null, 8, ["align"])) : r("", !0),
497
- (x(!0), i(e, null, w(p.value, (e, t) => (x(), n(we, {
519
+ (x(!0), i(e, null, w(p.value, (e, t) => (x(), n(Ee, {
498
520
  key: t + "column_" + e?.prop?.toString(),
499
521
  column: e,
500
522
  data: a.data,
@@ -538,7 +560,7 @@ var Ce = {
538
560
  ]);
539
561
  };
540
562
  }
541
- }), Ee = /* @__PURE__ */ U({ default: () => De }), De = /* @__PURE__ */ W(Te, [["__scopeId", "data-v-adf869c1"]]), Oe = ["src"], ke = /* @__PURE__ */ u({
563
+ }), Oe = /* @__PURE__ */ U({ default: () => ke }), ke = /* @__PURE__ */ W(De, [["__scopeId", "data-v-adf869c1"]]), Ae = ["src"], je = /* @__PURE__ */ u({
542
564
  __name: "Icon",
543
565
  props: {
544
566
  name: {},
@@ -556,9 +578,9 @@ var Ce = {
556
578
  width: e.size,
557
579
  height: e.size
558
580
  })
559
- }, null, 12, Oe)) : r("", !0);
581
+ }, null, 12, Ae)) : r("", !0);
560
582
  }
561
- }), Ae = {
583
+ }), Me = {
562
584
  style: {
563
585
  width: "100%",
564
586
  height: "100%"
@@ -569,30 +591,30 @@ var Ce = {
569
591
  version: "1.1",
570
592
  xmlns: "http://www.w3.org/2000/svg",
571
593
  "p-id": "8979"
572
- }, je = /* @__PURE__ */ u({
594
+ }, q = /* @__PURE__ */ u({
573
595
  __name: "Search",
574
596
  setup(e) {
575
- return (e, t) => (x(), i("svg", Ae, [...t[0] ||= [a("path", {
597
+ return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
576
598
  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
599
  "p-id": "8980"
578
600
  }, null, -1)]]));
579
601
  }
580
- }), Me = {
602
+ }), Ne = {
581
603
  style: {
582
604
  width: "100%",
583
605
  height: "100%"
584
606
  },
585
607
  viewBox: "0 0 1024 1024",
586
608
  xmlns: "http://www.w3.org/2000/svg"
587
- }, Ne = /* @__PURE__ */ u({
609
+ }, Pe = /* @__PURE__ */ u({
588
610
  __name: "CloseBold",
589
611
  setup(e) {
590
- return (e, t) => (x(), i("svg", Me, [...t[0] ||= [a("path", {
612
+ return (e, t) => (x(), i("svg", Ne, [...t[0] ||= [a("path", {
591
613
  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
614
  fill: "currentColor"
593
615
  }, null, -1)]]));
594
616
  }
595
- }), Pe = {
617
+ }), Fe = {
596
618
  style: {
597
619
  width: "100%",
598
620
  height: "100%"
@@ -603,10 +625,10 @@ var Ce = {
603
625
  version: "1.1",
604
626
  xmlns: "http://www.w3.org/2000/svg",
605
627
  "p-id": "10092"
606
- }, Fe = /* @__PURE__ */ u({
628
+ }, Ie = /* @__PURE__ */ u({
607
629
  __name: "User",
608
630
  setup(e) {
609
- return (e, t) => (x(), i("svg", Pe, [...t[0] ||= [a("path", {
631
+ return (e, t) => (x(), i("svg", Fe, [...t[0] ||= [a("path", {
610
632
  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
633
  fill: "#999999",
612
634
  "p-id": "10093"
@@ -616,7 +638,7 @@ var Ce = {
616
638
  "p-id": "10094"
617
639
  }, null, -1)]]));
618
640
  }
619
- }), Ie = {
641
+ }), Le = {
620
642
  style: {
621
643
  width: "100%",
622
644
  height: "100%"
@@ -627,16 +649,16 @@ var Ce = {
627
649
  version: "1.1",
628
650
  xmlns: "http://www.w3.org/2000/svg",
629
651
  "p-id": "11055"
630
- }, Le = /* @__PURE__ */ u({
652
+ }, Re = /* @__PURE__ */ u({
631
653
  __name: "Plus",
632
654
  setup(e) {
633
- return (e, t) => (x(), i("svg", Ie, [...t[0] ||= [a("path", {
655
+ return (e, t) => (x(), i("svg", Le, [...t[0] ||= [a("path", {
634
656
  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
657
  fill: "#323233",
636
658
  "p-id": "11056"
637
659
  }, null, -1)]]));
638
660
  }
639
- }), Re = {}, ze = {
661
+ }), ze = {}, Be = {
640
662
  style: {
641
663
  width: "100%",
642
664
  height: "100%"
@@ -648,14 +670,14 @@ var Ce = {
648
670
  xmlns: "http://www.w3.org/2000/svg",
649
671
  "p-id": "4859"
650
672
  };
651
- function Be(e, t) {
652
- return x(), i("svg", ze, [...t[0] ||= [a("path", {
673
+ function Ve(e, t) {
674
+ return x(), i("svg", Be, [...t[0] ||= [a("path", {
653
675
  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
676
  fill: "#666666",
655
677
  "p-id": "4860"
656
678
  }, null, -1)]]);
657
679
  }
658
- var Ve = /* @__PURE__ */ W(Re, [["render", Be]]), He = {}, Ue = {
680
+ var He = /* @__PURE__ */ W(ze, [["render", Ve]]), Ue = {}, We = {
659
681
  style: {
660
682
  width: "100%",
661
683
  height: "100%"
@@ -667,13 +689,13 @@ var Ve = /* @__PURE__ */ W(Re, [["render", Be]]), He = {}, Ue = {
667
689
  xmlns: "http://www.w3.org/2000/svg",
668
690
  "p-id": "6029"
669
691
  };
670
- function We(e, t) {
671
- return x(), i("svg", Ue, [...t[0] ||= [a("path", {
692
+ function Ge(e, t) {
693
+ return x(), i("svg", We, [...t[0] ||= [a("path", {
672
694
  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
695
  "p-id": "6030"
674
696
  }, null, -1)]]);
675
697
  }
676
- var Ge = /* @__PURE__ */ W(He, [["render", We]]), Ke = {}, qe = {
698
+ var Ke = /* @__PURE__ */ W(Ue, [["render", Ge]]), qe = {}, Je = {
677
699
  style: {
678
700
  width: "100%",
679
701
  height: "100%"
@@ -685,8 +707,8 @@ var Ge = /* @__PURE__ */ W(He, [["render", We]]), Ke = {}, qe = {
685
707
  xmlns: "http://www.w3.org/2000/svg",
686
708
  "p-id": "6997"
687
709
  };
688
- function Je(e, t) {
689
- return x(), i("svg", qe, [...t[0] ||= [a("path", {
710
+ function Ye(e, t) {
711
+ return x(), i("svg", Je, [...t[0] ||= [a("path", {
690
712
  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
713
  "p-id": "6998"
692
714
  }, null, -1), a("path", {
@@ -694,7 +716,7 @@ function Je(e, t) {
694
716
  "p-id": "6999"
695
717
  }, null, -1)]]);
696
718
  }
697
- var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
719
+ var J = /* @__PURE__ */ W(qe, [["render", Ye]]), Xe = {}, Ze = {
698
720
  style: {
699
721
  width: "100%",
700
722
  height: "100%"
@@ -706,41 +728,45 @@ var q = /* @__PURE__ */ W(Ke, [["render", Je]]), Ye = {}, Xe = {
706
728
  xmlns: "http://www.w3.org/2000/svg",
707
729
  "p-id": "9850"
708
730
  };
709
- function Ze(e, t) {
710
- return x(), i("svg", Xe, [...t[0] ||= [a("path", {
731
+ function Qe(e, t) {
732
+ return x(), i("svg", Ze, [...t[0] ||= [a("path", {
711
733
  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
734
  "p-id": "9851"
713
735
  }, null, -1)]]);
714
736
  }
715
- var Qe = /* @__PURE__ */ W(Ye, [["render", Ze]]), $e = /* @__PURE__ */ U({
716
- ArrowRight: () => Ve,
717
- ArrowUp: () => Ge,
718
- CloseBold: () => Ne,
719
- Plus: () => Le,
720
- Promotion: () => Qe,
721
- Refresh: () => q,
722
- Search: () => je,
723
- User: () => Fe,
724
- YcIcon: () => ke
737
+ var $e = /* @__PURE__ */ W(Xe, [["render", Qe]]), et = /* @__PURE__ */ U({
738
+ ArrowRight: () => He,
739
+ ArrowUp: () => Ke,
740
+ CloseBold: () => Pe,
741
+ Plus: () => Re,
742
+ Promotion: () => $e,
743
+ Refresh: () => J,
744
+ Search: () => q,
745
+ User: () => Ie,
746
+ YcIcon: () => je
725
747
  });
726
748
  //#endregion
727
749
  //#region src/components/utils/tools.ts
728
- function et(e) {
750
+ function tt(e) {
729
751
  return typeof e == "number" ? e + "px" : e || "100px";
730
752
  }
731
- function J(e) {
753
+ function nt(e) {
732
754
  return typeof e == "number" ? e + "px" : e || "180px";
733
755
  }
734
- var tt = Object.fromEntries(Object.entries(Ce).map(([e, t]) => [e, (n = {}) => ({
735
- props: n,
736
- type: e,
737
- component: t
738
- })]));
739
756
  function Y(e, t) {
757
+ let n = Object.fromEntries(Object.entries(Te).map(([n, r]) => [n, (i = {}) => ({
758
+ props: {
759
+ ...i,
760
+ data: t,
761
+ prop: e.prop
762
+ },
763
+ type: n,
764
+ component: r
765
+ })]));
740
766
  return typeof e.render == "function" ? e.render({
741
- h: tt,
767
+ h: n,
742
768
  data: t
743
- }) : tt.input({ prop: e.prop });
769
+ }) : n.input({ prop: e.prop });
744
770
  }
745
771
  function X(e, t, n) {
746
772
  n && typeof t == "object" && t && t[n];
@@ -749,12 +775,12 @@ function X(e, t, n) {
749
775
  }
750
776
  //#endregion
751
777
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
752
- var nt = { style: {
778
+ var rt = { style: {
753
779
  display: "flex",
754
780
  "justify-content": "end",
755
781
  "align-items": "center",
756
782
  width: "100%"
757
- } }, rt = /* @__PURE__ */ u({
783
+ } }, it = /* @__PURE__ */ u({
758
784
  name: "UiDefaultFilter",
759
785
  __name: "index",
760
786
  props: {
@@ -798,7 +824,7 @@ var nt = { style: {
798
824
  let e = {};
799
825
  Object.keys(m).forEach((t) => {
800
826
  if (m[t] !== void 0) {
801
- let n = N(m[t]);
827
+ let n = P(m[t]);
802
828
  e[t] = typeof n == "string" ? n.trim() : n;
803
829
  }
804
830
  }), d("submit", {
@@ -821,24 +847,24 @@ var nt = { style: {
821
847
  class: "ui-filter",
822
848
  size: s.size
823
849
  }, t.$attrs), {
824
- default: z(() => [l(S, {
850
+ default: B(() => [l(S, {
825
851
  gutter: 20,
826
852
  style: { "margin-bottom": "-15px" }
827
853
  }, {
828
- default: z(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
829
- default: z(() => [(x(), n(d, {
854
+ default: B(() => [(x(!0), i(e, null, w(g.value, (e) => (x(), n(f, { span: e.span || 24 / s.column }, {
855
+ default: B(() => [(x(), n(d, {
830
856
  key: e.prop,
831
857
  label: e.label,
832
- "label-width": P(et)(e?.labelWidth || s.labelWidth),
833
- "value-width": P(J)(e?.valueWidth || s.valueWidth)
858
+ "label-width": F(tt)(e?.labelWidth || s.labelWidth),
859
+ "value-width": F(nt)(e?.valueWidth || s.valueWidth)
834
860
  }, {
835
- default: z(() => [e.render ? (x(), n(O(P(Y)(e, m).component), h({
861
+ default: B(() => [e.render ? (x(), n(O(F(Y)(e, m).component), h({
836
862
  key: 0,
837
863
  modelValue: m[e.prop],
838
864
  "onUpdate:modelValue": (t) => m[e.prop] = t
839
- }, { ref_for: !0 }, P(Y)(e, m).props, {
865
+ }, { ref_for: !0 }, F(Y)(e, m).props, {
840
866
  clearable: !0,
841
- style: { width: P(J)(e?.valueWidth || s.valueWidth) }
867
+ style: { width: F(nt)(e?.valueWidth || s.valueWidth) }
842
868
  }), null, 16, [
843
869
  "modelValue",
844
870
  "onUpdate:modelValue",
@@ -849,7 +875,7 @@ var nt = { style: {
849
875
  "onUpdate:modelValue": (t) => m[e.prop] = t,
850
876
  placeholder: "请输入",
851
877
  clearable: !0,
852
- style: v({ width: P(J)(e?.valueWidth || s.valueWidth) })
878
+ style: v({ width: F(nt)(e?.valueWidth || s.valueWidth) })
853
879
  }, null, 8, [
854
880
  "modelValue",
855
881
  "onUpdate:modelValue",
@@ -866,34 +892,34 @@ var nt = { style: {
866
892
  span: 24 / s.column,
867
893
  offset: _.value
868
894
  }, {
869
- default: z(() => [l(d, {
895
+ default: B(() => [l(d, {
870
896
  label: "",
871
897
  "label-width": "30px"
872
898
  }, {
873
- default: z(() => [a("div", nt, [
899
+ default: B(() => [a("div", rt, [
874
900
  T(t.$slots, "left", { form: m }, void 0, !0),
875
901
  s.fields.length >= 2 * s.column ? (x(), n(y, {
876
902
  key: 0,
877
903
  text: "",
878
- icon: p.expand ? P(Ge) : P(Ve),
904
+ icon: p.expand ? F(Ke) : F(He),
879
905
  onClick: o[0] ||= (e) => p.expand = !p.expand
880
906
  }, {
881
- default: z(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
907
+ default: B(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
882
908
  _: 1
883
909
  }, 8, ["icon"])) : r("", !0),
884
910
  l(y, {
885
- icon: P(je),
911
+ icon: F(q),
886
912
  type: "primary",
887
913
  onClick: b
888
914
  }, {
889
- default: z(() => [...o[1] ||= [c("查询", -1)]]),
915
+ default: B(() => [...o[1] ||= [c("查询", -1)]]),
890
916
  _: 1
891
917
  }, 8, ["icon"]),
892
918
  l(y, {
893
- icon: P(q),
919
+ icon: F(J),
894
920
  onClick: C
895
921
  }, {
896
- default: z(() => [...o[2] ||= [c("重置", -1)]]),
922
+ default: B(() => [...o[2] ||= [c("重置", -1)]]),
897
923
  _: 1
898
924
  }, 8, ["icon"]),
899
925
  T(t.$slots, "handle", { form: m }, void 0, !0),
@@ -909,16 +935,16 @@ var nt = { style: {
909
935
  }, 16, ["model", "size"]);
910
936
  };
911
937
  }
912
- }), it = /* @__PURE__ */ U({ default: () => at }), at = /* @__PURE__ */ W(rt, [["__scopeId", "data-v-0e3c7086"]]), ot = {
938
+ }), at = /* @__PURE__ */ U({ default: () => ot }), ot = /* @__PURE__ */ W(it, [["__scopeId", "data-v-0e3c7086"]]), st = {
913
939
  key: 0,
914
940
  style: { display: "inline-block" }
915
- }, st = {
941
+ }, ct = {
916
942
  key: 0,
917
943
  style: { display: "inline-block" }
918
- }, ct = {
944
+ }, lt = {
919
945
  key: 0,
920
946
  class: "ui-form-buttons"
921
- }, lt = /* @__PURE__ */ u({
947
+ }, ut = /* @__PURE__ */ u({
922
948
  __name: "index",
923
949
  props: {
924
950
  fields: {},
@@ -943,16 +969,16 @@ var nt = { style: {
943
969
  "update:modelValue"
944
970
  ],
945
971
  setup(a, { expose: o, emit: s }) {
946
- ee((e) => ({ v008b8157: P(D) / 2 }));
947
- let u = s, { fields: d, labelWidth: f = "100px", valueWidth: p = "auto", omitFields: m = [], rules: g = S({}), labelPosition: y = "top", valueModel: b = "default", column: D = 24, model: k, modelValue: A } = a, N = C(0), F = C(), I = t(() => A !== void 0), L = S({}), R = t(() => I.value ? A : k || L), B = t({
948
- get: () => R.value,
972
+ ee((e) => ({ v03457dd8: F(k) / 2 }));
973
+ 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(), P = t(() => d.modelValue !== void 0), I = S({}), L = t(() => P.value ? d.modelValue : d.model || I), R = t({
974
+ get: () => L.value,
949
975
  set: (e) => {
950
- I.value && u("update:modelValue", e);
976
+ P.value && u("update:modelValue", e);
951
977
  }
952
- }), te = t(() => d.filter((e) => typeof e.prop == "string")), ne = t(() => {
953
- if (g && Object.keys(g).length) return g;
978
+ }), z = t(() => f.filter((e) => typeof e.prop == "string")), V = t(() => {
979
+ if (y && Object.keys(y).length) return y;
954
980
  let e = {};
955
- return d.forEach((t) => {
981
+ return f.forEach((t) => {
956
982
  t.rules && Object.keys(t.rules).length ? e[t.prop] = t.rules : t.required && (e[t.prop] = [{
957
983
  required: !0,
958
984
  message: "请输入" + t.label,
@@ -960,90 +986,90 @@ var nt = { style: {
960
986
  }]);
961
987
  }), e;
962
988
  });
963
- async function V() {
964
- await F.value?.validate().catch(() => !1) && u("submit", M(R.value));
989
+ async function te() {
990
+ await N.value?.validate().catch(() => !1) && u("submit", M(L.value));
965
991
  }
966
- function H() {
992
+ function ne() {
967
993
  let e = {};
968
- Object.keys(R.value).forEach((t) => {
969
- m.includes(t) || (e[t] = void 0);
970
- }), Object.assign(R.value, e), N.value += 1, u("reset", M(R.value));
994
+ Object.keys(L.value).forEach((t) => {
995
+ g.includes(t) || (e[t] = void 0);
996
+ }), Object.assign(L.value, e), A.value += 1, u("reset", M(L.value));
971
997
  }
972
- function U() {
973
- return M(R.value);
998
+ function H() {
999
+ return M(L.value);
974
1000
  }
975
1001
  function re(e) {
976
- Object.assign(R.value, e);
1002
+ Object.assign(L.value, e);
977
1003
  }
978
- function ie() {
979
- F.value?.clearValidate();
1004
+ function U() {
1005
+ N.value?.clearValidate();
980
1006
  }
981
- async function W() {
1007
+ async function ie() {
982
1008
  return new Promise((e) => {
983
- F.value?.validate((t, n) => e(n));
1009
+ N.value?.validate((t, n) => e(n));
984
1010
  });
985
1011
  }
986
1012
  return o({
987
- getValues: U,
1013
+ getValues: H,
988
1014
  setValues: re,
989
- clearValidate: ie,
990
- onSubmit: V,
991
- validate: W
1015
+ clearValidate: U,
1016
+ onSubmit: te,
1017
+ validate: ie
992
1018
  }), (t, a) => {
993
1019
  let o = E("el-input"), s = E("el-form-item"), u = E("el-form"), d = E("el-button");
994
1020
  return x(), i(e, null, [l(u, h({
995
1021
  ref_key: "uiFormRef",
996
- ref: F,
997
- model: B.value
1022
+ ref: N,
1023
+ model: R.value
998
1024
  }, t.$attrs, {
999
- rules: ne.value,
1000
- inline: P(y) !== "top",
1001
- "label-position": P(y),
1025
+ rules: V.value,
1026
+ inline: F(b) !== "top",
1027
+ "label-position": F(b),
1002
1028
  class: {
1003
1029
  "ui-form": !0,
1004
- horizontal: P(y) !== "top"
1030
+ horizontal: F(b) !== "top"
1005
1031
  },
1006
1032
  "validate-on-rule-change": !1
1007
1033
  }), {
1008
- default: z(() => [(x(!0), i(e, null, w(te.value, (r) => (x(), n(s, {
1034
+ default: B(() => [(x(!0), i(e, null, w(z.value, (r) => (x(), n(s, {
1009
1035
  key: r.prop,
1010
1036
  label: r.label,
1011
- "label-width": P(f),
1012
- "value-width": P(p),
1037
+ "label-width": F(p),
1038
+ "value-width": F(m),
1013
1039
  prop: r.prop,
1014
1040
  style: v({
1015
1041
  width: `${r?.width ? r?.width + "px" : "100%"}`,
1016
- gridColumn: `span ${(r?.span || P(D)) / 2 || 1}`
1042
+ gridColumn: `span ${(r?.span || F(k)) / 2 || 1}`
1017
1043
  })
1018
1044
  }, {
1019
- default: z(() => [r.render ? (x(), i(e, { key: 0 }, [P(X)(r, B.value, r.prop).component ? (x(), n(O(P(X)(r, B.value, r.prop).component), h({
1045
+ default: B(() => [r.render ? (x(), i(e, { key: 0 }, [F(X)(r, R.value, r.prop).component ? (x(), n(O(F(X)(r, R.value, r.prop).component), h({
1020
1046
  key: 1,
1021
- modelValue: B.value[r.prop],
1022
- "onUpdate:modelValue": (e) => B.value[r.prop] = e
1023
- }, { ref_for: !0 }, P(X)(r, B.value, r.prop).props, {
1047
+ modelValue: R.value[r.prop],
1048
+ "onUpdate:modelValue": (e) => R.value[r.prop] = e
1049
+ }, { ref_for: !0 }, F(X)(r, R.value, r.prop).props, {
1024
1050
  clearable: !0,
1025
- key: `${r.prop}-${N.value}`,
1051
+ key: `${r.prop}-${A.value}`,
1026
1052
  style: { display: "inline-block" },
1027
- class: { underline: P(b) === "underline" }
1053
+ class: { underline: F(D) === "underline" }
1028
1054
  }), null, 16, [
1029
1055
  "modelValue",
1030
1056
  "onUpdate:modelValue",
1031
1057
  "class"
1032
- ])) : (x(), i("span", ot, j(P(X)(r, B.value, r.prop) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: B.value }, () => [P(X)(e, B.value, e.prop).component ? (x(), n(O(P(X)(e, B.value, e.prop).component), h({
1058
+ ])) : (x(), i("span", st, j(F(X)(r, R.value, r.prop) || "-"), 1)), (x(!0), i(e, null, w(r.slots, (e) => T(t.$slots, "default", { form: R.value }, () => [F(X)(e, R.value, e.prop).component ? (x(), n(O(F(X)(e, R.value, e.prop).component), h({
1033
1059
  key: 1,
1034
- modelValue: B.value[e.prop],
1035
- "onUpdate:modelValue": (t) => B.value[e.prop] = t,
1060
+ modelValue: R.value[e.prop],
1061
+ "onUpdate:modelValue": (t) => R.value[e.prop] = t,
1036
1062
  "default-value": e.defaultValue,
1037
1063
  placeholder: e.placeholder
1038
- }, { ref_for: !0 }, P(X)(e, B.value, e.prop).props, {
1064
+ }, { ref_for: !0 }, F(X)(e, R.value, e.prop).props, {
1039
1065
  style: {
1040
1066
  display: "inline-block",
1041
1067
  marginLeft: "10px",
1042
1068
  width: `${e.width ? e.width + "px" : "100%"}`
1043
1069
  },
1044
- class: { underline: P(b) === "underline" },
1070
+ class: { underline: F(D) === "underline" },
1045
1071
  clearable: !0,
1046
- key: `${e.prop}-${N.value}`
1072
+ key: `${e.prop}-${A.value}`
1047
1073
  }), null, 16, [
1048
1074
  "modelValue",
1049
1075
  "onUpdate:modelValue",
@@ -1051,13 +1077,13 @@ var nt = { style: {
1051
1077
  "placeholder",
1052
1078
  "style",
1053
1079
  "class"
1054
- ])) : (x(), i("span", st, j(P(X)(e, B.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1080
+ ])) : (x(), i("span", ct, j(F(X)(e, R.value, e.prop) || "-"), 1))], !0)), 256))], 64)) : (x(), n(o, {
1055
1081
  key: 1,
1056
- modelValue: B.value[r.prop],
1057
- "onUpdate:modelValue": (e) => B.value[r.prop] = e,
1082
+ modelValue: R.value[r.prop],
1083
+ "onUpdate:modelValue": (e) => R.value[r.prop] = e,
1058
1084
  placeholder: "请输入",
1059
1085
  clearable: !0,
1060
- class: _({ underline: P(b) === "underline" })
1086
+ class: _({ underline: F(D) === "underline" })
1061
1087
  }, null, 8, [
1062
1088
  "modelValue",
1063
1089
  "onUpdate:modelValue",
@@ -1078,29 +1104,29 @@ var nt = { style: {
1078
1104
  "inline",
1079
1105
  "label-position",
1080
1106
  "class"
1081
- ]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", ct, [
1082
- T(t.$slots, "handle", { form: B.value }, void 0, !0),
1107
+ ]), t.$attrs?.hideHandle ? r("", !0) : (x(), i("div", lt, [
1108
+ T(t.$slots, "handle", { form: R.value }, void 0, !0),
1083
1109
  l(d, {
1084
- icon: P(q),
1085
- onClick: H,
1110
+ icon: F(J),
1111
+ onClick: ne,
1086
1112
  size: t.$props.size
1087
1113
  }, {
1088
- default: z(() => [...a[0] ||= [c("重置", -1)]]),
1114
+ default: B(() => [...a[0] ||= [c("重置", -1)]]),
1089
1115
  _: 1
1090
1116
  }, 8, ["icon", "size"]),
1091
1117
  l(d, {
1092
- icon: P(Qe),
1118
+ icon: F($e),
1093
1119
  type: "primary",
1094
- onClick: V,
1120
+ onClick: te,
1095
1121
  size: t.$props.size
1096
1122
  }, {
1097
- default: z(() => [...a[1] ||= [c("提交", -1)]]),
1123
+ default: B(() => [...a[1] ||= [c("提交", -1)]]),
1098
1124
  _: 1
1099
1125
  }, 8, ["icon", "size"])
1100
1126
  ]))], 64);
1101
1127
  };
1102
1128
  }
1103
- }), ut = /* @__PURE__ */ U({ default: () => dt }), dt = /* @__PURE__ */ W(lt, [["__scopeId", "data-v-4113cce0"]]), ft = ["disabled"], pt = /* @__PURE__ */ u({
1129
+ }), dt = /* @__PURE__ */ U({ default: () => ft }), ft = /* @__PURE__ */ W(ut, [["__scopeId", "data-v-b5839f9e"]]), pt = ["disabled"], mt = /* @__PURE__ */ u({
1104
1130
  __name: "index",
1105
1131
  props: /* @__PURE__ */ m({
1106
1132
  defaultValue: { default: "" },
@@ -1117,9 +1143,9 @@ var nt = { style: {
1117
1143
  }),
1118
1144
  emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
1119
1145
  setup(e, { emit: t }) {
1120
- let n = C(), r = I(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
1146
+ let n = C(), r = L(e, "modelValue"), a = C(r.value || e.defaultValue || ""), o = null, s = t;
1121
1147
  return y(() => {
1122
- o = new V({
1148
+ o = new H({
1123
1149
  element: n.value,
1124
1150
  placeholder: "点击输入内容...",
1125
1151
  content: r.value || e.defaultValue || "",
@@ -1129,7 +1155,7 @@ var nt = { style: {
1129
1155
  r.value = t, a.value = t, s("change", t);
1130
1156
  }
1131
1157
  }), o.setEditable(!e.disabled);
1132
- }), L(r, (e) => {
1158
+ }), R(r, (e) => {
1133
1159
  o && e !== o.getHtml() && o.setContent(e);
1134
1160
  }), b(() => {
1135
1161
  o && o.destroy();
@@ -1138,9 +1164,9 @@ var nt = { style: {
1138
1164
  ref: n,
1139
1165
  style: { height: "500px" },
1140
1166
  disabled: e.disabled
1141
- }, null, 8, ft));
1167
+ }, null, 8, pt));
1142
1168
  }
1143
- }), mt = /* @__PURE__ */ U({ default: () => ht }), ht = pt, gt = { class: "ui-tree-wrapper" }, _t = {
1169
+ }), ht = /* @__PURE__ */ U({ default: () => gt }), gt = mt, _t = { class: "ui-tree-wrapper" }, vt = {
1144
1170
  key: 0,
1145
1171
  style: {
1146
1172
  display: "flex",
@@ -1149,10 +1175,10 @@ var nt = { style: {
1149
1175
  "align-items": "center",
1150
1176
  gap: "10px"
1151
1177
  }
1152
- }, vt = {
1178
+ }, yt = {
1153
1179
  key: 0,
1154
1180
  class: "custom-tree-node"
1155
- }, yt = { class: "node-label" }, bt = { key: 0 }, xt = ["onClick"], St = /* @__PURE__ */ u({
1181
+ }, bt = { class: "node-label" }, xt = { key: 0 }, St = ["onClick"], Ct = /* @__PURE__ */ u({
1156
1182
  __name: "index",
1157
1183
  props: {
1158
1184
  id: {},
@@ -1178,13 +1204,13 @@ var nt = { style: {
1178
1204
  "delete"
1179
1205
  ],
1180
1206
  setup(e, { emit: s }) {
1181
- let u = s, f = F(), p = o(e, [
1207
+ let u = s, f = I(), p = o(e, [
1182
1208
  "filterable",
1183
1209
  "placeholder",
1184
1210
  "data",
1185
1211
  "props"
1186
1212
  ]), m = C(""), g = C(), _ = C(), v = d()?.appContext.config.globalProperties.$messageBox;
1187
- L(m, (t) => {
1213
+ R(m, (t) => {
1188
1214
  e.filterable && _.value?.filter(t);
1189
1215
  });
1190
1216
  let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
@@ -1222,8 +1248,8 @@ var nt = { style: {
1222
1248
  }
1223
1249
  return (t, o) => {
1224
1250
  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", gt, [
1226
- e.filterable ? (x(), i("div", _t, [l(s, {
1251
+ return x(), i("div", _t, [
1252
+ e.filterable ? (x(), i("div", vt, [l(s, {
1227
1253
  modelValue: m.value,
1228
1254
  "onUpdate:modelValue": o[0] ||= (e) => m.value = e,
1229
1255
  placeholder: e.placeholder ?? "请输入",
@@ -1237,7 +1263,7 @@ var nt = { style: {
1237
1263
  link: "",
1238
1264
  onClick: o[1] ||= (e) => w()
1239
1265
  }, {
1240
- default: z(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1266
+ default: B(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1241
1267
  _: 1
1242
1268
  }))])) : r("", !0),
1243
1269
  T(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
@@ -1253,44 +1279,44 @@ var nt = { style: {
1253
1279
  "highlight-current": !0,
1254
1280
  "filter-method": b
1255
1281
  }), {
1256
- default: z((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, {
1282
+ default: B((s) => [s?.data ? (x(), i("div", yt, [a("div", bt, [s.data?.children?.length ? (x(), i("span", xt, "📁")) : 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
1283
  key: 0,
1258
1284
  trigger: "click"
1259
1285
  }, {
1260
- dropdown: z(() => [l(f, null, {
1261
- default: z(() => [
1286
+ dropdown: B(() => [l(f, null, {
1287
+ default: B(() => [
1262
1288
  p?.hideNodeAdd ? r("", !0) : (x(), n(d, {
1263
1289
  key: 0,
1264
1290
  onClick: (e) => w(s.data)
1265
1291
  }, {
1266
- default: z(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1292
+ default: B(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1267
1293
  _: 1
1268
1294
  }, 8, ["onClick"])),
1269
1295
  p?.hideNodeEdit ? r("", !0) : (x(), n(d, {
1270
1296
  key: 1,
1271
1297
  onClick: (e) => D(s.data)
1272
1298
  }, {
1273
- default: z(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1299
+ default: B(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1274
1300
  _: 1
1275
1301
  }, 8, ["onClick"])),
1276
1302
  p?.hideNodeDel ? r("", !0) : (x(), n(d, {
1277
1303
  key: 2,
1278
1304
  onClick: (e) => O(s.data)
1279
1305
  }, {
1280
- default: z(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1306
+ default: B(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1281
1307
  _: 1
1282
1308
  }, 8, ["onClick"])),
1283
1309
  T(t.$slots, "node-handle", { data: s.data }, void 0, !0)
1284
1310
  ]),
1285
1311
  _: 2
1286
1312
  }, 1024)]),
1287
- default: z(() => [a("span", {
1313
+ default: B(() => [a("span", {
1288
1314
  onClick: (e) => S(e, s.data),
1289
1315
  style: {
1290
1316
  padding: "4px",
1291
1317
  "font-weight": "bold"
1292
1318
  }
1293
- }, "⋮", 8, xt)]),
1319
+ }, "⋮", 8, St)]),
1294
1320
  _: 2
1295
1321
  }, 1024))])) : r("", !0)]),
1296
1322
  _: 3
@@ -1298,13 +1324,13 @@ var nt = { style: {
1298
1324
  ]);
1299
1325
  };
1300
1326
  }
1301
- }), Ct = /* @__PURE__ */ U({ default: () => wt }), wt = /* @__PURE__ */ W(St, [["__scopeId", "data-v-7858d79e"]]), Tt = { style: { height: "100%" } }, Et = { style: {
1327
+ }), wt = /* @__PURE__ */ U({ default: () => Tt }), Tt = /* @__PURE__ */ W(Ct, [["__scopeId", "data-v-7858d79e"]]), Et = { style: { height: "100%" } }, Dt = { style: {
1302
1328
  display: "flex",
1303
1329
  "flex-direction": "row",
1304
1330
  "justify-content": "space-between",
1305
1331
  "align-items": "center",
1306
1332
  gap: "10px"
1307
- } }, Dt = { style: { margin: "10px 0px" } }, Ot = ["onClick"], kt = { key: 0 }, At = /* @__PURE__ */ u({
1333
+ } }, Ot = { style: { margin: "10px 0px" } }, kt = ["onClick"], At = { key: 0 }, jt = /* @__PURE__ */ u({
1308
1334
  __name: "index",
1309
1335
  props: {
1310
1336
  loading: { default: () => C(!1) },
@@ -1317,7 +1343,7 @@ var nt = { style: {
1317
1343
  emits: ["node-click"],
1318
1344
  setup(o, { emit: s }) {
1319
1345
  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);
1320
- L(() => [u.value, o.data?.[0]], (e) => {
1346
+ R(() => [u.value, o.data?.[0]], (e) => {
1321
1347
  !e[0] && e[1] && (u.value = o.data?.[0]);
1322
1348
  }, { immediate: !0 });
1323
1349
  function f(e) {
@@ -1325,15 +1351,15 @@ var nt = { style: {
1325
1351
  }
1326
1352
  return (t, s) => {
1327
1353
  let c = E("el-input");
1328
- return x(), i("div", Tt, [
1329
- a("div", Et, [o.filterable ? (x(), n(c, {
1354
+ return x(), i("div", Et, [
1355
+ a("div", Dt, [o.filterable ? (x(), n(c, {
1330
1356
  key: 0,
1331
1357
  modelValue: l.value,
1332
1358
  "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
1333
1359
  placeholder: o.placeholder ?? "请输入"
1334
1360
  }, null, 8, ["modelValue", "placeholder"])) : r("", !0), T(t.$slots, "plus", {}, void 0, !0)]),
1335
- a("div", Dt, [T(t.$slots, "handle", {}, void 0, !0)]),
1336
- B((x(), i("ul", h({
1361
+ a("div", Ot, [T(t.$slots, "handle", {}, void 0, !0)]),
1362
+ V((x(), i("ul", h({
1337
1363
  class: "infinite-list",
1338
1364
  "infinite-scroll-immediate": !1
1339
1365
  }, t.$attrs), [(x(!0), i(e, null, w(d.value, (e, n) => (x(), i("li", {
@@ -1343,19 +1369,19 @@ var nt = { style: {
1343
1369
  active: e === u.value
1344
1370
  }),
1345
1371
  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, Ot))), 128))], 16)), [[P(o.vInfiniteScroll), o.vInfiniteScroll]]),
1347
- o.loading.value ? (x(), i("p", kt, "loading...")) : r("", !0)
1372
+ }, [a("span", null, j(e[o.props?.label || "label"]), 1), T(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, kt))), 128))], 16)), [[F(o.vInfiniteScroll), o.vInfiniteScroll]]),
1373
+ o.loading.value ? (x(), i("p", At, "loading...")) : r("", !0)
1348
1374
  ]);
1349
1375
  };
1350
1376
  }
1351
- }), jt = /* @__PURE__ */ U({ default: () => Mt }), Mt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-0ab5cd97"]]), Nt = {
1377
+ }), Mt = /* @__PURE__ */ U({ default: () => Nt }), Nt = /* @__PURE__ */ W(jt, [["__scopeId", "data-v-0ab5cd97"]]), Pt = {
1352
1378
  key: 0,
1353
1379
  style: {
1354
1380
  padding: "10px 0px",
1355
1381
  "margin-bottom": "10px",
1356
1382
  "border-bottom": "1px solid #e5e5e5"
1357
1383
  }
1358
- }, Pt = { key: 1 }, Ft = /* @__PURE__ */ u({
1384
+ }, Ft = { key: 1 }, It = /* @__PURE__ */ u({
1359
1385
  __name: "index",
1360
1386
  props: {
1361
1387
  data: {},
@@ -1373,23 +1399,23 @@ var nt = { style: {
1373
1399
  return (o, s) => {
1374
1400
  let c = E("el-descriptions-item"), u = E("el-descriptions");
1375
1401
  return x(), i(e, null, [
1376
- t.title ? (x(), i("h4", Nt, j(t.title), 1)) : r("", !0),
1402
+ t.title ? (x(), i("h4", Pt, j(t.title), 1)) : r("", !0),
1377
1403
  T(o.$slots, "title", {}, void 0, !0),
1378
1404
  l(u, h({ column: t.column }, a, { class: "ui-descriptions" }), {
1379
- default: z(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
1405
+ default: B(() => [(x(!0), i(e, null, w(t.fields, (e) => (x(), n(c, {
1380
1406
  key: e.prop,
1381
1407
  label: e.label,
1382
1408
  span: e.span || 2
1383
1409
  }, {
1384
- default: z(() => [e.render ? (x(), n(O(P(Y)(e, t.data).component), h({
1410
+ default: B(() => [e.render ? (x(), n(O(F(Y)(e, t.data).component), h({
1385
1411
  key: 0,
1386
1412
  modelValue: t.data[e.prop],
1387
1413
  "onUpdate:modelValue": (n) => t.data[e.prop] = n
1388
- }, { ref_for: !0 }, P(Y)(e, t.data).props, {
1414
+ }, { ref_for: !0 }, F(Y)(e, t.data).props, {
1389
1415
  clearable: !0,
1390
1416
  key: e.prop,
1391
1417
  style: { display: "inline-block" }
1392
- }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Pt, j(t.data[e.prop] || "-"), 1))]),
1418
+ }), null, 16, ["modelValue", "onUpdate:modelValue"])) : (x(), i("span", Ft, j(t.data[e.prop] || "-"), 1))]),
1393
1419
  _: 2
1394
1420
  }, 1032, ["label", "span"]))), 128))]),
1395
1421
  _: 1
@@ -1397,14 +1423,14 @@ var nt = { style: {
1397
1423
  ], 64);
1398
1424
  };
1399
1425
  }
1400
- }), It = /* @__PURE__ */ U({ default: () => Lt }), Lt = /* @__PURE__ */ W(Ft, [["__scopeId", "data-v-f02c30f9"]]), Rt = {
1426
+ }), Lt = /* @__PURE__ */ U({ default: () => Rt }), Rt = /* @__PURE__ */ W(It, [["__scopeId", "data-v-f02c30f9"]]), zt = {
1401
1427
  key: 0,
1402
1428
  style: {
1403
1429
  display: "flex",
1404
1430
  "margin-top": "12px",
1405
1431
  "justify-content": "end"
1406
1432
  }
1407
- }, zt = /* @__PURE__ */ u({
1433
+ }, Bt = /* @__PURE__ */ u({
1408
1434
  __name: "index",
1409
1435
  props: {
1410
1436
  visible: { type: Boolean },
@@ -1424,7 +1450,7 @@ var nt = { style: {
1424
1450
  a("close"), a("update:visible", !1);
1425
1451
  }
1426
1452
  function d() {
1427
- a("submit", N(s?.value || {})), a("update:visible", !1);
1453
+ a("submit", P(s?.value || {})), a("update:visible", !1);
1428
1454
  }
1429
1455
  return (e, t) => {
1430
1456
  let a = E("el-button"), f = E("el-dialog");
@@ -1438,20 +1464,20 @@ var nt = { style: {
1438
1464
  "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1439
1465
  onClose: u
1440
1466
  }), {
1441
- default: z(() => [(x(), n(O(o.component), h({
1467
+ default: B(() => [(x(), n(O(o.component), h({
1442
1468
  ref_key: "slotRef",
1443
1469
  ref: s
1444
1470
  }, o.componentProps, {
1445
1471
  onClose: u,
1446
1472
  onSubmit: d
1447
- }), null, 16)), o.disabled ? r("", !0) : (x(), i("div", Rt, [l(a, { onClick: u }, {
1448
- default: z(() => [...t[1] ||= [c("取消", -1)]]),
1473
+ }), null, 16)), o.disabled ? r("", !0) : (x(), i("div", zt, [l(a, { onClick: u }, {
1474
+ default: B(() => [...t[1] ||= [c("取消", -1)]]),
1449
1475
  _: 1
1450
1476
  }), l(a, {
1451
1477
  type: "primary",
1452
1478
  onClick: d
1453
1479
  }, {
1454
- default: z(() => [...t[2] ||= [c("确定", -1)]]),
1480
+ default: B(() => [...t[2] ||= [c("确定", -1)]]),
1455
1481
  _: 1
1456
1482
  })]))]),
1457
1483
  _: 1
@@ -1462,11 +1488,11 @@ var nt = { style: {
1462
1488
  ]);
1463
1489
  };
1464
1490
  }
1465
- }), Bt = /* @__PURE__ */ U({ default: () => Vt }), Vt = zt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1466
- function Ht(e) {
1491
+ }), Vt = /* @__PURE__ */ U({ default: () => Ht }), Ht = Bt, Z = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1492
+ function Ut(e) {
1467
1493
  return Array.from(new Set(e));
1468
1494
  }
1469
- function Ut(e, t) {
1495
+ function Wt(e, t) {
1470
1496
  let n = /* @__PURE__ */ new Set();
1471
1497
  return e.filter((e) => {
1472
1498
  let r = typeof t == "function" ? t(e) : e[t];
@@ -1475,7 +1501,7 @@ function Ut(e, t) {
1475
1501
  }
1476
1502
  //#endregion
1477
1503
  //#region src/components/StaffSelect/default.vue
1478
- var Wt = /* @__PURE__ */ u({
1504
+ var Gt = /* @__PURE__ */ u({
1479
1505
  __name: "default",
1480
1506
  props: {
1481
1507
  multiple: { type: Boolean },
@@ -1528,11 +1554,11 @@ var Wt = /* @__PURE__ */ u({
1528
1554
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
1529
1555
  "remote-method": m
1530
1556
  }, t.$attrs), {
1531
- prefix: z(() => [l(a, null, {
1532
- default: z(() => [l(P(Fe))]),
1557
+ prefix: B(() => [l(a, null, {
1558
+ default: B(() => [l(F(Ie))]),
1533
1559
  _: 1
1534
1560
  })]),
1535
- default: z(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
1561
+ default: B(() => [(x(!0), i(e, null, w(f.value, (e) => (x(), n(o, {
1536
1562
  key: `${e.employeeCode}-${e.employeeName}`,
1537
1563
  label: e.label,
1538
1564
  value: e.value
@@ -1541,26 +1567,26 @@ var Wt = /* @__PURE__ */ u({
1541
1567
  }, 16, ["modelValue"]);
1542
1568
  };
1543
1569
  }
1544
- }), Gt = { style: {
1570
+ }), Kt = { style: {
1545
1571
  display: "flex",
1546
1572
  "max-width": "100%",
1547
1573
  gap: "20px",
1548
1574
  "overflow-y": "scroll",
1549
1575
  height: "400px"
1550
- } }, Kt = { style: { flex: "1" } }, qt = { style: { width: "320px" } }, Jt = { style: {
1576
+ } }, qt = { style: { flex: "1" } }, Jt = { style: { width: "320px" } }, Yt = { style: {
1551
1577
  display: "flex",
1552
1578
  "justify-content": "space-between",
1553
1579
  "align-items": "center",
1554
1580
  "margin-bottom": "8px",
1555
1581
  height: "30px"
1556
- } }, Yt = { key: 0 }, Xt = { style: {
1582
+ } }, Xt = { key: 0 }, Zt = { style: {
1557
1583
  "overflow-y": "auto",
1558
1584
  height: "90%"
1559
- } }, Zt = { style: {
1585
+ } }, Qt = { style: {
1560
1586
  display: "flex",
1561
1587
  "justify-content": "end",
1562
1588
  "align-items": "center"
1563
- } }, Qt = /* @__PURE__ */ W(/* @__PURE__ */ u({
1589
+ } }, $t = /* @__PURE__ */ W(/* @__PURE__ */ u({
1564
1590
  __name: "dialog",
1565
1591
  props: {
1566
1592
  modelValue: {},
@@ -1574,7 +1600,7 @@ var Wt = /* @__PURE__ */ u({
1574
1600
  },
1575
1601
  emits: ["update:modelValue", "change"],
1576
1602
  setup(n, { expose: o, emit: s }) {
1577
- let u = s, d = F(), f = n, p = f.valueAt ?? "all", m = C(), _ = C(!1), v = new Headers({
1603
+ let u = s, d = I(), f = n, p = f.valueAt ?? "all", m = C(), _ = C(!1), v = new Headers({
1578
1604
  "Content-Type": "application/json",
1579
1605
  "X-Requested-With": "XMLHttpRequest",
1580
1606
  token: localStorage.getItem("TOKEN") ?? "",
@@ -1586,9 +1612,9 @@ var Wt = /* @__PURE__ */ u({
1586
1612
  filterText: "",
1587
1613
  requiredVisible: !1
1588
1614
  }), b = C([]), T = C([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
1589
- R(() => {
1590
- T.value = Ht(f.modelValue || []);
1591
- }), R(() => {
1615
+ z(() => {
1616
+ T.value = Ut(f.modelValue || []);
1617
+ }), z(() => {
1592
1618
  _.value && k();
1593
1619
  });
1594
1620
  async function k() {
@@ -1617,7 +1643,7 @@ var Wt = /* @__PURE__ */ u({
1617
1643
  ...e,
1618
1644
  code: e.account
1619
1645
  }));
1620
- n ? e.data.children = Ut([...r, ...e.data.children || []], "code") : e.children = Ut([...r, ...e.children || []], "code"), y.loading = !1;
1646
+ n ? e.data.children = Wt([...r, ...e.data.children || []], "code") : e.children = Wt([...r, ...e.children || []], "code"), y.loading = !1;
1621
1647
  }), t?.(e?.children || []));
1622
1648
  }
1623
1649
  function N(e, { data: t }) {
@@ -1625,9 +1651,9 @@ var Wt = /* @__PURE__ */ u({
1625
1651
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1626
1652
  width: "14px",
1627
1653
  height: "14px"
1628
- } }, e(Fe)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1654
+ } }, e(Ie)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1629
1655
  }
1630
- function ee(e) {
1656
+ function P(e) {
1631
1657
  if (T.value = T.value.filter((t) => t !== e), m.value) {
1632
1658
  let t = e.match(/\((.*?)\)/)?.[1];
1633
1659
  g(() => {
@@ -1635,7 +1661,7 @@ var Wt = /* @__PURE__ */ u({
1635
1661
  });
1636
1662
  }
1637
1663
  }
1638
- async function I() {
1664
+ async function ee() {
1639
1665
  if (!y.filterText?.trim()) return y.searchData = [];
1640
1666
  let e = await A({
1641
1667
  page: 1,
@@ -1650,9 +1676,9 @@ var Wt = /* @__PURE__ */ u({
1650
1676
  }
1651
1677
  function L(e, t) {
1652
1678
  let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
1653
- T.value = Ht([...T.value, ...n]);
1679
+ T.value = Ut([...T.value, ...n]);
1654
1680
  }
1655
- function B() {
1681
+ function R() {
1656
1682
  let e = p === "all" ? T.value : T.value?.map((e) => {
1657
1683
  let [t, n] = e.split("(");
1658
1684
  return {
@@ -1706,13 +1732,13 @@ var Wt = /* @__PURE__ */ u({
1706
1732
  "close-on-click-modal": !1,
1707
1733
  "destroy-on-close": ""
1708
1734
  }, {
1709
- default: z(() => [a("div", Gt, [a("div", Kt, [l(s, {
1735
+ default: B(() => [a("div", Kt, [a("div", qt, [l(s, {
1710
1736
  placeholder: "请输入",
1711
1737
  modelValue: y.filterText,
1712
1738
  "onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
1713
1739
  clearable: "",
1714
- "prefix-icon": P(je),
1715
- onKeydown: te(I, ["enter"])
1740
+ "prefix-icon": F(q),
1741
+ onKeydown: te(ee, ["enter"])
1716
1742
  }, null, 8, ["modelValue", "prefix-icon"]), l(u, {
1717
1743
  loading: y.loading,
1718
1744
  data: D.value,
@@ -1728,30 +1754,30 @@ var Wt = /* @__PURE__ */ u({
1728
1754
  ref_key: "staffDialogRef",
1729
1755
  ref: m,
1730
1756
  "node-key": "code"
1731
- }, 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", {
1757
+ }, null, 8, ["loading", "data"])]), a("div", Jt, [a("div", Yt, [n[4] ||= a("h3", null, "已选择", -1), T.value.length ? (x(), i("span", Xt, "已选择" + j(T.value.length) + "个用户", 1)) : r("", !0)]), a("div", Zt, [(x(!0), i(e, null, w(T.value, (e) => (x(), i("li", {
1732
1758
  key: e,
1733
1759
  class: "staff-item"
1734
1760
  }, [a("span", null, j(e), 1), l(d, {
1735
1761
  color: "red",
1736
- onClick: ne((t) => ee(e), ["stop"])
1762
+ onClick: ne((t) => P(e), ["stop"])
1737
1763
  }, {
1738
- default: z(() => [l(P(Ne))]),
1764
+ default: B(() => [l(F(Pe))]),
1739
1765
  _: 1
1740
- }, 8, ["onClick"])]))), 128))])])]), a("div", Zt, [l(p, { onClick: V }, {
1741
- default: z(() => [...n[5] ||= [c("取消", -1)]]),
1766
+ }, 8, ["onClick"])]))), 128))])])]), a("div", Qt, [l(p, { onClick: V }, {
1767
+ default: B(() => [...n[5] ||= [c("取消", -1)]]),
1742
1768
  _: 1
1743
1769
  }), l(p, {
1744
1770
  type: "primary",
1745
- onClick: B
1771
+ onClick: R
1746
1772
  }, {
1747
- default: z(() => [...n[6] ||= [c("确定", -1)]]),
1773
+ default: B(() => [...n[6] ||= [c("确定", -1)]]),
1748
1774
  _: 1
1749
1775
  })])]),
1750
1776
  _: 1
1751
1777
  }, 8, ["modelValue"])], 64);
1752
1778
  };
1753
1779
  }
1754
- }), [["__scopeId", "data-v-6c972882"]]), $t = /* @__PURE__ */ u({
1780
+ }), [["__scopeId", "data-v-6c972882"]]), en = /* @__PURE__ */ u({
1755
1781
  __name: "index",
1756
1782
  props: {
1757
1783
  multiple: { type: Boolean },
@@ -1762,7 +1788,7 @@ var Wt = /* @__PURE__ */ u({
1762
1788
  },
1763
1789
  setup(e, { expose: t }) {
1764
1790
  let r = e, i = C();
1765
- return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? Qt : Wt), h({
1791
+ return t({ validate: () => i.value?.validate?.() }), (e, t) => (x(), n(O(r?.type === "dialog" ? $t : Gt), h({
1766
1792
  ref_key: "staffSelectRef",
1767
1793
  ref: i
1768
1794
  }, {
@@ -1770,7 +1796,7 @@ var Wt = /* @__PURE__ */ u({
1770
1796
  ...r
1771
1797
  }), null, 16));
1772
1798
  }
1773
- }), en = /* @__PURE__ */ U({ default: () => tn }), tn = $t, nn = /* @__PURE__ */ W(/* @__PURE__ */ u({
1799
+ }), tn = /* @__PURE__ */ U({ default: () => nn }), nn = en, rn = /* @__PURE__ */ W(/* @__PURE__ */ u({
1774
1800
  __name: "file",
1775
1801
  props: {
1776
1802
  icon: {},
@@ -1786,31 +1812,31 @@ var Wt = /* @__PURE__ */ u({
1786
1812
  },
1787
1813
  emits: ["change"],
1788
1814
  setup(e, { emit: r }) {
1789
- 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);
1815
+ let i = e, { text: a = "选择文件", icon: o = void 0, size: u = "default" } = i, d = i, f = I(), 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);
1790
1816
  return (e, t) => {
1791
1817
  let r = E("el-button"), i = E("el-upload");
1792
1818
  return x(), n(i, h(e.$attrs, {
1793
1819
  style: { width: "100%" },
1794
- action: P(d).action,
1795
- "file-list": P(d).fileList,
1796
- limit: P(d).limit,
1820
+ action: F(d).action,
1821
+ "file-list": F(d).fileList,
1822
+ limit: F(d).limit,
1797
1823
  class: {
1798
1824
  "hide-upload-list": m.value,
1799
1825
  "hide-upload-text": g.value
1800
1826
  }
1801
1827
  }), s({
1802
- default: z(() => [T(e.$slots, "tip", {}, void 0, !0)]),
1828
+ default: B(() => [T(e.$slots, "tip", {}, void 0, !0)]),
1803
1829
  _: 2
1804
1830
  }, [_.value ? void 0 : {
1805
1831
  name: "trigger",
1806
- fn: z(() => [l(r, {
1832
+ fn: B(() => [l(r, {
1807
1833
  type: "primary",
1808
1834
  plain: "",
1809
- icon: P(o),
1810
- size: P(u),
1811
- disabled: P(p)
1835
+ icon: F(o),
1836
+ size: F(u),
1837
+ disabled: F(p)
1812
1838
  }, {
1813
- default: z(() => [c(j(P(a)), 1)]),
1839
+ default: B(() => [c(j(F(a)), 1)]),
1814
1840
  _: 1
1815
1841
  }, 8, [
1816
1842
  "icon",
@@ -1826,7 +1852,7 @@ var Wt = /* @__PURE__ */ u({
1826
1852
  ]);
1827
1853
  };
1828
1854
  }
1829
- }), [["__scopeId", "data-v-ee74ad23"]]), rn = ["src"], an = /* @__PURE__ */ u({
1855
+ }), [["__scopeId", "data-v-ee74ad23"]]), an = ["src"], on = /* @__PURE__ */ u({
1830
1856
  __name: "image",
1831
1857
  props: {
1832
1858
  icon: {},
@@ -1855,8 +1881,8 @@ var Wt = /* @__PURE__ */ u({
1855
1881
  "list-type": "picture-card",
1856
1882
  "on-preview": s
1857
1883
  }), {
1858
- default: z(() => [l(u, null, {
1859
- default: z(() => [l(P(Le))]),
1884
+ default: B(() => [l(u, null, {
1885
+ default: B(() => [l(F(Re))]),
1860
1886
  _: 1
1861
1887
  })]),
1862
1888
  _: 1
@@ -1864,16 +1890,16 @@ var Wt = /* @__PURE__ */ u({
1864
1890
  modelValue: o.value,
1865
1891
  "onUpdate:modelValue": c[0] ||= (e) => o.value = e
1866
1892
  }, {
1867
- default: z(() => [a("img", {
1893
+ default: B(() => [a("img", {
1868
1894
  "w-full": "",
1869
1895
  src: r.value.url,
1870
1896
  alt: "预览"
1871
- }, null, 8, rn)]),
1897
+ }, null, 8, an)]),
1872
1898
  _: 1
1873
1899
  }, 8, ["modelValue"])], 64);
1874
1900
  };
1875
1901
  }
1876
- }), on = /* @__PURE__ */ u({
1902
+ }), sn = /* @__PURE__ */ u({
1877
1903
  __name: "index",
1878
1904
  props: {
1879
1905
  icon: {},
@@ -1905,12 +1931,9 @@ var Wt = /* @__PURE__ */ u({
1905
1931
  "limit",
1906
1932
  "action"
1907
1933
  ]), 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) || [],
1934
+ get: () => e.fileList || [],
1909
1935
  set: (e) => i("update:fileList", e)
1910
1936
  });
1911
- y(async () => {
1912
- u.value = N(e.fileList)?.length || 0;
1913
- });
1914
1937
  function p(t, n) {
1915
1938
  let r = Array.isArray(n) ? n : [];
1916
1939
  e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
@@ -1919,10 +1942,10 @@ var Wt = /* @__PURE__ */ u({
1919
1942
  e.limit && G.Message.warning(`最多只能上传 ${e.limit} 个文件`);
1920
1943
  }
1921
1944
  function g(e, t) {
1922
- i("update:modelValue", N(t)), i("remove", N(t)), u.value = t.length;
1945
+ f.value = t, i("update:modelValue", t), i("remove", t), u.value = t.length;
1923
1946
  }
1924
1947
  function _(e, t) {
1925
- let n = N(f);
1948
+ let n = f.value;
1926
1949
  if (e?.code !== "ok") return G.Message.error(e?.message);
1927
1950
  let r = Z + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1928
1951
  n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
@@ -1932,16 +1955,16 @@ var Wt = /* @__PURE__ */ u({
1932
1955
  status: "success",
1933
1956
  ...e.data,
1934
1957
  url: r
1935
- }), f.value = [...n], i("update:modelValue", N(f)), i("success", N(f)), u.value = n.length;
1958
+ }), f.value = [...n], i("update:modelValue", f.value), i("success", f.value), u.value = n.length;
1936
1959
  }
1937
1960
  function v(e, t, n) {
1938
- i("update:modelValue", n);
1961
+ f.value = n, i("update:modelValue", n);
1939
1962
  }
1940
- return (t, r) => (x(), n(O(e.type === "image" ? an : nn), h({
1963
+ return (t, r) => (x(), n(O(e.type === "image" ? on : rn), h({
1941
1964
  ref_key: "uploadInstance",
1942
1965
  ref: l,
1943
1966
  name: "file",
1944
- action: P(c),
1967
+ action: F(c),
1945
1968
  headers: d,
1946
1969
  "on-change": p,
1947
1970
  "on-exceed": m,
@@ -1958,7 +1981,7 @@ var Wt = /* @__PURE__ */ u({
1958
1981
  "limit"
1959
1982
  ]));
1960
1983
  }
1961
- }), sn = /* @__PURE__ */ U({ default: () => cn }), cn = on, ln = {
1984
+ }), cn = /* @__PURE__ */ U({ default: () => ln }), ln = sn, un = {
1962
1985
  mounted(e, t) {
1963
1986
  let n = t.value || {}, r = n.target || "body", i = n.top || 0;
1964
1987
  e._stickyOriginalStyles = {
@@ -1983,15 +2006,15 @@ var Wt = /* @__PURE__ */ u({
1983
2006
  unmounted(e) {
1984
2007
  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
2008
  }
1986
- }, un = { mounted(e) {
2009
+ }, dn = { mounted(e) {
1987
2010
  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
- } }, dn = /* @__PURE__ */ U({
1989
- card: () => un,
1990
- sticky: () => ln
2011
+ } }, fn = /* @__PURE__ */ U({
2012
+ card: () => dn,
2013
+ sticky: () => un
1991
2014
  });
1992
2015
  //#endregion
1993
2016
  //#region src/hooks/useFetch.ts
1994
- function fn(e, t = {}) {
2017
+ function pn(e, t = {}) {
1995
2018
  let { immediate: n = !0, method: r = "GET", onBefore: i, onSuccess: a, onError: o, onFinally: s, ...c } = t, l = localStorage.getItem("TOKEN"), u = {
1996
2019
  method: r,
1997
2020
  headers: new Headers({
@@ -2020,8 +2043,8 @@ function fn(e, t = {}) {
2020
2043
  }
2021
2044
  }
2022
2045
  let y = null;
2023
- R(() => {
2024
- Object.assign(h, N(c.defaultParams) || {}), y && clearTimeout(y), y = setTimeout(() => {
2046
+ z(() => {
2047
+ Object.assign(h, P(c.defaultParams) || {}), y && clearTimeout(y), y = setTimeout(() => {
2025
2048
  let e = p(t.ready) ? t.ready.value : t.ready ?? !0;
2026
2049
  n && e && !_ && g(() => v());
2027
2050
  }, 10);
@@ -2041,7 +2064,7 @@ function fn(e, t = {}) {
2041
2064
  }
2042
2065
  //#endregion
2043
2066
  //#region src/hooks/useTable/default.ts
2044
- function pn(e, t) {
2067
+ function mn(e, t) {
2045
2068
  let n = S({
2046
2069
  ignoreAttrs: [
2047
2070
  "tableName",
@@ -2065,15 +2088,15 @@ function pn(e, t) {
2065
2088
  data: r,
2066
2089
  pagination: i
2067
2090
  };
2068
- let s = fn(e, {
2091
+ let s = pn(e, {
2069
2092
  ...t,
2070
2093
  defaultParams: o,
2071
2094
  onSuccess: (e) => {
2072
2095
  t?.onSuccess?.(e), i.total = e[n?.replaceAttrs?.total] || 0, r.value = e[n?.replaceAttrs?.table] || [];
2073
2096
  }
2074
2097
  });
2075
- R(() => {
2076
- let e = N(t.defaultParams || {});
2098
+ z(() => {
2099
+ let e = P(t.defaultParams || {});
2077
2100
  i.page = 1, i.pageSize = 10, Object.assign(o, {
2078
2101
  ...e,
2079
2102
  page: 1,
@@ -2110,51 +2133,51 @@ function pn(e, t) {
2110
2133
  }
2111
2134
  //#endregion
2112
2135
  //#region src/utils/request.ts
2113
- var mn = new Headers({
2136
+ var hn = new Headers({
2114
2137
  "Content-Type": "application/json",
2115
2138
  token: localStorage.getItem("TOKEN") || ""
2116
2139
  });
2117
- async function hn(e, t) {
2140
+ async function gn(e, t) {
2118
2141
  let n = `${Z}${e}`;
2119
2142
  if (t) {
2120
2143
  let e = new URLSearchParams(t).toString();
2121
2144
  e && (n = `${n}?${e}`);
2122
2145
  }
2123
2146
  return (await fetch(n, {
2124
- headers: mn,
2147
+ headers: hn,
2125
2148
  method: "GET"
2126
2149
  })).json();
2127
2150
  }
2128
- async function gn(e, t) {
2151
+ async function _n(e, t) {
2129
2152
  return (await fetch(`${Z}${e}`, {
2130
- headers: mn,
2153
+ headers: hn,
2131
2154
  method: "POST",
2132
2155
  body: JSON.stringify(t)
2133
2156
  })).json();
2134
2157
  }
2135
- async function _n(e, t) {
2158
+ async function vn(e, t) {
2136
2159
  return (await fetch(`${Z}${e}`, {
2137
- headers: mn,
2160
+ headers: hn,
2138
2161
  method: "POST",
2139
2162
  body: JSON.stringify(t)
2140
2163
  })).blob();
2141
2164
  }
2142
2165
  var Q = {
2143
- get: hn,
2144
- post: gn,
2145
- blob: _n
2166
+ get: gn,
2167
+ post: _n,
2168
+ blob: vn
2146
2169
  };
2147
2170
  //#endregion
2148
2171
  //#region src/hooks/useTable/common.ts
2149
- function vn(e, n) {
2150
- let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o = pn(e, {
2172
+ function yn(e, n) {
2173
+ let { defaultParams: r, ...i } = n, a = p(r) ? r : C(r || {}), o = mn(e, {
2151
2174
  ...i,
2152
2175
  ready: t(() => {
2153
2176
  let e = p(n.ready) ? n.ready.value : n.ready, t = !!a.value?.tableId;
2154
2177
  return (e === void 0 || e) && t;
2155
2178
  }),
2156
2179
  defaultParams: t(() => {
2157
- let { tableId: e, page: t, pageSize: n, sort: r, ...i } = N(a) || {};
2180
+ let { tableId: e, page: t, pageSize: n, sort: r, ...i } = P(a) || {};
2158
2181
  return {
2159
2182
  tableId: e,
2160
2183
  page: t || 1,
@@ -2178,28 +2201,28 @@ function vn(e, n) {
2178
2201
  });
2179
2202
  }
2180
2203
  async function c(e) {
2181
- let t = N(a);
2204
+ let t = P(a);
2182
2205
  return Q.post("/common/insert", {
2183
2206
  params: { ...e },
2184
2207
  tableId: t?.tableId
2185
2208
  });
2186
2209
  }
2187
2210
  async function l(e) {
2188
- let t = N(a);
2211
+ let t = P(a);
2189
2212
  return Q.post("/common/update", {
2190
2213
  params: { ...e },
2191
2214
  tableId: t?.tableId
2192
2215
  });
2193
2216
  }
2194
2217
  async function u(e) {
2195
- let t = N(a);
2218
+ let t = P(a);
2196
2219
  return Q.post("/common/delete", {
2197
2220
  idList: e,
2198
2221
  tableId: t?.tableId
2199
2222
  });
2200
2223
  }
2201
2224
  async function d(t) {
2202
- let { title: n = "export" } = t || {}, r = N(a), i = await Q.blob(e ?? "/common/exportExcel", {
2225
+ let { title: n = "export" } = t || {}, r = P(a), i = await Q.blob(e ?? "/common/exportExcel", {
2203
2226
  tableId: r?.tableId,
2204
2227
  type: "all"
2205
2228
  }), o = new Blob([i]), s = document.createElement("a");
@@ -2214,55 +2237,55 @@ function vn(e, n) {
2214
2237
  delete: u,
2215
2238
  exportData: d
2216
2239
  });
2217
- return R(() => {
2240
+ return z(() => {
2218
2241
  Object.assign(f, o, { reset: s });
2219
2242
  }), f;
2220
2243
  }
2221
2244
  //#endregion
2222
2245
  //#region src/hooks/useTable/index.ts
2223
- function yn(e, t) {
2224
- return e?.includes("/common/pageQuery") ? vn(e, t) : pn(e, t);
2246
+ function bn(e, t) {
2247
+ return e?.includes("/common/pageQuery") ? yn(e, t) : mn(e, t);
2225
2248
  }
2226
2249
  //#endregion
2227
2250
  //#region src/hooks/index.ts
2228
- var bn = /* @__PURE__ */ U({
2229
- useFetch: () => fn,
2230
- useTable: () => yn
2231
- }), xn = "Yc", Sn = {
2232
- UiCard: ae,
2233
- UiTable: Ee,
2234
- UiFilter: it,
2235
- UiForm: ut,
2236
- UiEditor: mt,
2237
- UiTree: Ct,
2238
- UiInfiniteScroll: jt,
2239
- UiDescriptions: It,
2240
- UiDialog: Bt,
2241
- UiStaffSelect: en,
2242
- UiUpload: sn
2243
- }, Cn = null;
2244
- function wn(e) {
2245
- Cn = e;
2251
+ var xn = /* @__PURE__ */ U({
2252
+ useFetch: () => pn,
2253
+ useTable: () => bn
2254
+ }), Sn = "Yc", Cn = {
2255
+ UiCard: oe,
2256
+ UiTable: Oe,
2257
+ UiFilter: at,
2258
+ UiForm: dt,
2259
+ UiEditor: ht,
2260
+ UiTree: wt,
2261
+ UiInfiniteScroll: Mt,
2262
+ UiDescriptions: Lt,
2263
+ UiDialog: Vt,
2264
+ UiStaffSelect: tn,
2265
+ UiUpload: cn
2266
+ }, wn = null;
2267
+ function Tn(e) {
2268
+ wn = e;
2246
2269
  }
2247
2270
  function $() {
2248
- return Cn;
2271
+ return wn;
2249
2272
  }
2250
- var Tn = { install(e, t) {
2251
- t?.elementPlus && t.elementPlus.install(e), Cn ||= {
2273
+ var En = { install(e, t) {
2274
+ t?.elementPlus && t.elementPlus.install(e), wn ||= {
2252
2275
  ...e,
2253
2276
  h: f
2254
2277
  };
2255
- for (let [t, n] of Object.entries(Sn)) {
2278
+ for (let [t, n] of Object.entries(Cn)) {
2256
2279
  let r = n?.default || n;
2257
2280
  if (r && (typeof r == "function" || typeof r == "object")) {
2258
- let n = t.replace(/^Ui/, xn);
2281
+ let n = t.replace(/^Ui/, Sn);
2259
2282
  e.component(n, r);
2260
2283
  let i = n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2261
2284
  i !== n && e.component(i, r);
2262
2285
  }
2263
2286
  }
2264
- 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);
2265
- for (let [t, n] of Object.entries(dn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2287
+ for (let [t, n] of Object.entries(et)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
2288
+ for (let [t, n] of Object.entries(fn)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2266
2289
  } };
2267
2290
  //#endregion
2268
- export { ae as _, yn as a, en as c, jt as d, Ct as f, Ee as g, it as h, bn as i, Bt as l, ut as m, wn as n, fn as o, mt as p, Tn as r, sn as s, $ as t, It as u };
2291
+ export { oe as _, bn as a, tn as c, Mt as d, wt as f, Oe as g, at as h, xn as i, Vt as l, dt as m, Tn as n, pn as o, ht as p, En as r, cn as s, $ as t, Lt as u };