yc-vep-ui 0.1.8 → 0.2.0

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 ee, useModel as N, watch as P, watchEffect as F, 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, 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 I, withCtx as L, withDirectives as R, withKeys as ee, withModifiers as te } from "vue";
2
+ import { AiEditor as ne } 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
+ }, re = { class: /* @__PURE__ */ g({ bodyClass: !0 }) }, V = /* @__PURE__ */ u({
12
12
  __name: "index",
13
13
  props: {
14
14
  title: {},
@@ -29,23 +29,23 @@ var R = Object.defineProperty, z = (e, t) => {
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: L(() => [a("div", re, [w(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: L(() => [a("div", { style: _(i.value) }, [e.icon ? (b(), n(l, { key: 0 }, {
37
+ default: L(() => [(b(), n(D(e.icon), { color: "#2563eb" }))]),
38
38
  _: 1
39
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)]),
40
40
  key: "0"
41
41
  } : void 0]), 1040, ["class"]);
42
42
  };
43
43
  }
44
- }), V = (e, t) => {
44
+ }), H = (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
+ }, ie = /* @__PURE__ */ B({ default: () => ae }), ae = /* @__PURE__ */ H(V, [["__scopeId", "data-v-6ebb01d7"]]), U = {
49
49
  get Button() {
50
50
  return $()?.resolveComponent?.("el-button") || "el-button";
51
51
  },
@@ -140,14 +140,14 @@ var R = Object.defineProperty, z = (e, t) => {
140
140
  };
141
141
  //#endregion
142
142
  //#region src/components/utils/render.ts
143
- function U() {
143
+ function W() {
144
144
  let e = $();
145
145
  return e?.h ? e.h : function(e, t, n) {
146
146
  return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
147
147
  };
148
148
  }
149
- function se(e) {
150
- let t = U();
149
+ function oe(e) {
150
+ let t = W();
151
151
  return t ? t("div", { style: {
152
152
  display: "flex",
153
153
  flexDirection: "row",
@@ -155,7 +155,7 @@ function se(e) {
155
155
  gap: "8px"
156
156
  } }, (Array.isArray(e) ? e : [e]).map((e) => {
157
157
  let { text: n, ...r } = e;
158
- return t(H.Button, {
158
+ return t(U.Button, {
159
159
  ...r,
160
160
  link: !0,
161
161
  size: "small",
@@ -163,54 +163,54 @@ function se(e) {
163
163
  }, () => n);
164
164
  })) : null;
165
165
  }
166
- function ce(e) {
167
- let t = U();
166
+ function se(e) {
167
+ let t = W();
168
168
  return t ? Array.isArray(e) ? t("div", { style: {
169
169
  display: "flex",
170
170
  gap: "8px",
171
171
  flexDirection: "row",
172
172
  flexWrap: "wrap"
173
- } }, e.map((e) => t(H.Link, {
173
+ } }, e.map((e) => t(U.Link, {
174
174
  ...e,
175
175
  type: e.type || "primary"
176
- }, () => t(H.Text, {
176
+ }, () => t(U.Text, {
177
177
  lineClamp: e?.lineClamp,
178
178
  type: e.type || "primary"
179
- }, () => e.prop)))) : t(H.Link, {
179
+ }, () => e.prop)))) : t(U.Link, {
180
180
  ...e,
181
181
  type: e.type || "primary"
182
- }, () => t(H.Text, {
182
+ }, () => t(U.Text, {
183
183
  lineClamp: e?.lineClamp,
184
184
  type: e.type || "primary"
185
185
  }, () => e.prop)) : null;
186
186
  }
187
- function le(e) {
188
- let t = U();
187
+ function ce(e) {
188
+ let t = W();
189
189
  return t ? t("div", { style: {
190
190
  display: "flex",
191
191
  gap: "4px",
192
192
  flexDirection: "row",
193
193
  flexWrap: "wrap"
194
- } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(H.Tag, e, () => n))) : null;
194
+ } }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(U.Tag, e, () => n))) : null;
195
195
  }
196
- function ue(e) {
197
- let t = U();
198
- return t ? t(H.Tag, { ...e }) : null;
196
+ function le(e) {
197
+ let t = W();
198
+ return t ? t(U.Tag, { ...e }) : null;
199
199
  }
200
- function de(e) {
201
- let t = U();
202
- return t ? t(H.Select, {
200
+ function ue(e) {
201
+ let t = W();
202
+ return t ? t(U.Select, {
203
203
  style: { minWidth: "160px" },
204
204
  ...e,
205
205
  placeholder: "请选择",
206
206
  filterable: !0
207
207
  }) : null;
208
208
  }
209
- function fe(e) {
210
- let t = U();
209
+ function de(e) {
210
+ let t = W();
211
211
  if (!t) return null;
212
212
  let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
213
- return t(H.DatePicker, {
213
+ return t(U.DatePicker, {
214
214
  format: n,
215
215
  valueFormat: n,
216
216
  startPlaceholder: "开始时间",
@@ -220,11 +220,11 @@ function fe(e) {
220
220
  "onUpdate:modelValue": (t) => e?.onChange?.(t)
221
221
  });
222
222
  }
223
- function pe(e) {
224
- let t = U();
223
+ function fe(e) {
224
+ let t = W();
225
225
  if (!t) return null;
226
226
  let { start: n = "00:00", end: r = "23:30", ...i } = e;
227
- return t(H.TimeSelect, {
227
+ return t(U.TimeSelect, {
228
228
  start: n,
229
229
  end: r,
230
230
  ...i,
@@ -232,21 +232,21 @@ function pe(e) {
232
232
  filterable: !0
233
233
  });
234
234
  }
235
- function me(e) {
236
- let t = U();
237
- return t ? t(H.Input, {
235
+ function pe(e) {
236
+ let t = W();
237
+ return t ? t(U.Input, {
238
238
  ...e,
239
239
  placeholder: "请输入"
240
240
  }) : null;
241
241
  }
242
- function he(e) {
243
- let t = U();
242
+ function me(e) {
243
+ let t = W();
244
244
  if (!t) return null;
245
245
  let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
246
246
  ...e?.style || {},
247
247
  width: "100%"
248
248
  };
249
- return t(H.InputNumber, {
249
+ return t(U.InputNumber, {
250
250
  align: n,
251
251
  style: a,
252
252
  controlsPosition: r,
@@ -254,70 +254,70 @@ function he(e) {
254
254
  ...i
255
255
  });
256
256
  }
257
- function ge(e) {
258
- let t = U();
257
+ function he(e) {
258
+ let t = W();
259
259
  if (!t) return null;
260
260
  let { rows: n = 1, ...r } = e;
261
- return t(H.Input, {
261
+ return t(U.Input, {
262
262
  placeholder: "请输入",
263
263
  rows: n,
264
264
  ...r,
265
265
  type: "textarea"
266
266
  });
267
267
  }
268
- function _e(e) {
269
- let t = U();
270
- return t ? t(H.InputTag, {
268
+ function ge(e) {
269
+ let t = W();
270
+ return t ? t(U.InputTag, {
271
271
  placeholder: "请输入",
272
272
  ...e,
273
273
  clearable: !1
274
274
  }) : null;
275
275
  }
276
+ function _e(e) {
277
+ let t = W();
278
+ return t ? t(ut || lt, e) : null;
279
+ }
276
280
  function ve(e) {
277
- let t = U();
278
- return t ? t(ut || Z, e) : null;
281
+ let t = W();
282
+ return t ? t(U.RadioGroup, e) : null;
279
283
  }
280
284
  function ye(e) {
281
- let t = U();
282
- return t ? t(H.RadioGroup, e) : null;
285
+ let t = W();
286
+ return t ? t(U.Text, e, () => e.prop) : null;
283
287
  }
284
288
  function be(e) {
285
- let t = U();
286
- return t ? t(H.Text, e, () => e.prop) : null;
287
- }
288
- function xe(e) {
289
- let t = U();
289
+ let t = W();
290
290
  return t ? t(Xt || Yt, {
291
291
  placeholder: "请选择",
292
292
  ...e,
293
293
  searchable: !0
294
294
  }) : null;
295
295
  }
296
- function Se(e) {
297
- let t = U();
296
+ function xe(e) {
297
+ let t = W();
298
298
  return t ? t(nn || tn, {
299
299
  ...e,
300
300
  "onUpdate:fileList": (t, n) => e.onChange?.(n, t)
301
301
  }) : null;
302
302
  }
303
- var W = {
304
- button: se,
305
- link: ce,
306
- tag: le,
307
- switch: ue,
308
- select: de,
309
- datePicker: fe,
310
- timeSelect: pe,
311
- input: me,
312
- inputNumber: he,
313
- textarea: ge,
314
- inputTag: _e,
315
- editor: ve,
316
- radio: ye,
317
- text: be,
318
- staffSelect: xe,
319
- upload: Se
320
- }, Ce = /* @__PURE__ */ u({
303
+ var G = {
304
+ button: oe,
305
+ link: se,
306
+ tag: ce,
307
+ switch: le,
308
+ select: ue,
309
+ datePicker: de,
310
+ timeSelect: fe,
311
+ input: pe,
312
+ inputNumber: me,
313
+ textarea: he,
314
+ inputTag: ge,
315
+ editor: _e,
316
+ radio: ve,
317
+ text: ye,
318
+ staffSelect: be,
319
+ upload: xe
320
+ }, Se = /* @__PURE__ */ u({
321
321
  name: "UiColumn",
322
322
  __name: "UiColumn",
323
323
  props: {
@@ -332,7 +332,7 @@ var W = {
332
332
  let a = r, o = t;
333
333
  function s(e, t, n) {
334
334
  let r = {};
335
- Object.keys(W).forEach((i) => {
335
+ Object.keys(G).forEach((i) => {
336
336
  let o = i;
337
337
  r[o] = (r) => {
338
338
  let i = Array.isArray(r) ? r : {
@@ -344,7 +344,7 @@ var W = {
344
344
  onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
345
345
  onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
346
346
  };
347
- return W[o](i);
347
+ return G[o](i);
348
348
  };
349
349
  });
350
350
  let i = n.render ? n.render({
@@ -362,7 +362,7 @@ var W = {
362
362
  label: t.column.label,
363
363
  align: o.align
364
364
  }, {
365
- default: I(() => [(b(!0), i(e, null, C(t.column.children, (e) => (b(), n(l, m({
365
+ default: L(() => [(b(!0), i(e, null, C(t.column.children, (e) => (b(), n(l, m({
366
366
  column: e,
367
367
  data: o.data
368
368
  }, { ref_for: !0 }, r.$attrs, { align: o.align }), null, 16, [
@@ -380,7 +380,7 @@ var W = {
380
380
  width: t.column.width,
381
381
  "show-overflow-tooltip": t.column.showOverflowTooltip
382
382
  }, {
383
- default: I(({ row: e, $index: r }) => [t.column.render ? (b(), n(D(s(e, r, t.column)), {
383
+ default: L(({ row: e, $index: r }) => [t.column.render ? (b(), n(D(s(e, r, t.column)), {
384
384
  key: 0,
385
385
  align: o.align,
386
386
  size: o.size
@@ -388,7 +388,7 @@ var W = {
388
388
  key: 1,
389
389
  "line-clamp": t.column?.lineClamp || 2
390
390
  }, {
391
- default: I(() => [c(k(e[t.column.prop]), 1)]),
391
+ default: L(() => [c(k(e[t.column.prop]), 1)]),
392
392
  _: 2
393
393
  }, 1032, ["line-clamp"]))]),
394
394
  _: 1
@@ -402,7 +402,7 @@ var W = {
402
402
  ]));
403
403
  };
404
404
  }
405
- }), we = /* @__PURE__ */ u({
405
+ }), Ce = /* @__PURE__ */ u({
406
406
  __name: "index",
407
407
  props: {
408
408
  loading: {
@@ -448,7 +448,7 @@ var W = {
448
448
  "data",
449
449
  "size"
450
450
  ]), 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"));
451
- P(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
451
+ F(() => [l.defaultCheckedKeys, a.data], ([e, t]) => {
452
452
  !e?.length || !t?.length || h(() => {
453
453
  if (!u.value) return;
454
454
  let n = t.filter((t) => e.includes(t.id));
@@ -467,7 +467,7 @@ var W = {
467
467
  return (t, o) => {
468
468
  let s = T("el-table-column"), c = T("el-table"), h = T("el-pagination"), v = E("loading");
469
469
  return b(), i("div", null, [
470
- L((b(), n(c, m({ border: a.border }, t.$attrs, {
470
+ R((b(), n(c, m({ border: a.border }, t.$attrs, {
471
471
  data: a.data,
472
472
  lazy: !0,
473
473
  class: "ui-table",
@@ -475,7 +475,7 @@ var W = {
475
475
  ref_key: "tableRef",
476
476
  ref: u
477
477
  }), {
478
- default: I(() => [
478
+ default: L(() => [
479
479
  f.value ? (b(), n(s, {
480
480
  key: 0,
481
481
  type: "selection",
@@ -493,7 +493,7 @@ var W = {
493
493
  "column-key": "index_1",
494
494
  align: a.align
495
495
  }, null, 8, ["align"])) : r("", !0),
496
- (b(!0), i(e, null, C(p.value, (e, t) => (b(), n(Ce, {
496
+ (b(!0), i(e, null, C(p.value, (e, t) => (b(), n(Se, {
497
497
  key: t + "column_" + e?.prop?.toString(),
498
498
  column: e,
499
499
  data: a.data,
@@ -537,7 +537,7 @@ var W = {
537
537
  ]);
538
538
  };
539
539
  }
540
- }), Te = /* @__PURE__ */ z({ default: () => Ee }), Ee = /* @__PURE__ */ V(we, [["__scopeId", "data-v-adf869c1"]]), De = ["src"], Oe = /* @__PURE__ */ u({
540
+ }), we = /* @__PURE__ */ B({ default: () => Te }), Te = /* @__PURE__ */ H(Ce, [["__scopeId", "data-v-adf869c1"]]), Ee = ["src"], De = /* @__PURE__ */ u({
541
541
  __name: "Icon",
542
542
  props: {
543
543
  name: {},
@@ -555,9 +555,9 @@ var W = {
555
555
  width: e.size,
556
556
  height: e.size
557
557
  })
558
- }, null, 12, De)) : r("", !0);
558
+ }, null, 12, Ee)) : r("", !0);
559
559
  }
560
- }), ke = {
560
+ }), Oe = {
561
561
  style: {
562
562
  width: "100%",
563
563
  height: "100%"
@@ -568,30 +568,30 @@ var W = {
568
568
  version: "1.1",
569
569
  xmlns: "http://www.w3.org/2000/svg",
570
570
  "p-id": "8979"
571
- }, G = /* @__PURE__ */ u({
571
+ }, K = /* @__PURE__ */ u({
572
572
  __name: "Search",
573
573
  setup(e) {
574
- return (e, t) => (b(), i("svg", ke, [...t[0] ||= [a("path", {
574
+ return (e, t) => (b(), i("svg", Oe, [...t[0] ||= [a("path", {
575
575
  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",
576
576
  "p-id": "8980"
577
577
  }, null, -1)]]));
578
578
  }
579
- }), Ae = {
579
+ }), ke = {
580
580
  style: {
581
581
  width: "100%",
582
582
  height: "100%"
583
583
  },
584
584
  viewBox: "0 0 1024 1024",
585
585
  xmlns: "http://www.w3.org/2000/svg"
586
- }, je = /* @__PURE__ */ u({
586
+ }, Ae = /* @__PURE__ */ u({
587
587
  __name: "CloseBold",
588
588
  setup(e) {
589
- return (e, t) => (b(), i("svg", Ae, [...t[0] ||= [a("path", {
589
+ return (e, t) => (b(), i("svg", ke, [...t[0] ||= [a("path", {
590
590
  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",
591
591
  fill: "currentColor"
592
592
  }, null, -1)]]));
593
593
  }
594
- }), Me = {
594
+ }), je = {
595
595
  style: {
596
596
  width: "100%",
597
597
  height: "100%"
@@ -602,10 +602,10 @@ var W = {
602
602
  version: "1.1",
603
603
  xmlns: "http://www.w3.org/2000/svg",
604
604
  "p-id": "10092"
605
- }, K = /* @__PURE__ */ u({
605
+ }, q = /* @__PURE__ */ u({
606
606
  __name: "User",
607
607
  setup(e) {
608
- return (e, t) => (b(), i("svg", Me, [...t[0] ||= [a("path", {
608
+ return (e, t) => (b(), i("svg", je, [...t[0] ||= [a("path", {
609
609
  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",
610
610
  fill: "#999999",
611
611
  "p-id": "10093"
@@ -615,7 +615,7 @@ var W = {
615
615
  "p-id": "10094"
616
616
  }, null, -1)]]));
617
617
  }
618
- }), Ne = {
618
+ }), Me = {
619
619
  style: {
620
620
  width: "100%",
621
621
  height: "100%"
@@ -626,16 +626,16 @@ var W = {
626
626
  version: "1.1",
627
627
  xmlns: "http://www.w3.org/2000/svg",
628
628
  "p-id": "11055"
629
- }, Pe = /* @__PURE__ */ u({
629
+ }, Ne = /* @__PURE__ */ u({
630
630
  __name: "Plus",
631
631
  setup(e) {
632
- return (e, t) => (b(), i("svg", Ne, [...t[0] ||= [a("path", {
632
+ return (e, t) => (b(), i("svg", Me, [...t[0] ||= [a("path", {
633
633
  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",
634
634
  fill: "#323233",
635
635
  "p-id": "11056"
636
636
  }, null, -1)]]));
637
637
  }
638
- }), Fe = {}, Ie = {
638
+ }), Pe = {}, Fe = {
639
639
  style: {
640
640
  width: "100%",
641
641
  height: "100%"
@@ -647,14 +647,14 @@ var W = {
647
647
  xmlns: "http://www.w3.org/2000/svg",
648
648
  "p-id": "4859"
649
649
  };
650
- function Le(e, t) {
651
- return b(), i("svg", Ie, [...t[0] ||= [a("path", {
650
+ function Ie(e, t) {
651
+ return b(), i("svg", Fe, [...t[0] ||= [a("path", {
652
652
  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",
653
653
  fill: "#666666",
654
654
  "p-id": "4860"
655
655
  }, null, -1)]]);
656
656
  }
657
- var Re = /* @__PURE__ */ V(Fe, [["render", Le]]), ze = {}, Be = {
657
+ var Le = /* @__PURE__ */ H(Pe, [["render", Ie]]), Re = {}, ze = {
658
658
  style: {
659
659
  width: "100%",
660
660
  height: "100%"
@@ -666,13 +666,13 @@ var Re = /* @__PURE__ */ V(Fe, [["render", Le]]), ze = {}, Be = {
666
666
  xmlns: "http://www.w3.org/2000/svg",
667
667
  "p-id": "6029"
668
668
  };
669
- function Ve(e, t) {
670
- return b(), i("svg", Be, [...t[0] ||= [a("path", {
669
+ function Be(e, t) {
670
+ return b(), i("svg", ze, [...t[0] ||= [a("path", {
671
671
  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",
672
672
  "p-id": "6030"
673
673
  }, null, -1)]]);
674
674
  }
675
- var He = /* @__PURE__ */ V(ze, [["render", Ve]]), Ue = {}, We = {
675
+ var Ve = /* @__PURE__ */ H(Re, [["render", Be]]), He = {}, Ue = {
676
676
  style: {
677
677
  width: "100%",
678
678
  height: "100%"
@@ -684,8 +684,8 @@ var He = /* @__PURE__ */ V(ze, [["render", Ve]]), Ue = {}, We = {
684
684
  xmlns: "http://www.w3.org/2000/svg",
685
685
  "p-id": "6997"
686
686
  };
687
- function Ge(e, t) {
688
- return b(), i("svg", We, [...t[0] ||= [a("path", {
687
+ function We(e, t) {
688
+ return b(), i("svg", Ue, [...t[0] ||= [a("path", {
689
689
  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",
690
690
  "p-id": "6998"
691
691
  }, null, -1), a("path", {
@@ -693,7 +693,7 @@ function Ge(e, t) {
693
693
  "p-id": "6999"
694
694
  }, null, -1)]]);
695
695
  }
696
- var q = /* @__PURE__ */ V(Ue, [["render", Ge]]), Ke = {}, qe = {
696
+ var J = /* @__PURE__ */ H(He, [["render", We]]), Ge = {}, Ke = {
697
697
  style: {
698
698
  width: "100%",
699
699
  height: "100%"
@@ -705,34 +705,34 @@ var q = /* @__PURE__ */ V(Ue, [["render", Ge]]), Ke = {}, qe = {
705
705
  xmlns: "http://www.w3.org/2000/svg",
706
706
  "p-id": "9850"
707
707
  };
708
- function Je(e, t) {
709
- return b(), i("svg", qe, [...t[0] ||= [a("path", {
708
+ function qe(e, t) {
709
+ return b(), i("svg", Ke, [...t[0] ||= [a("path", {
710
710
  d: "M64 448l832-320-128 704-446.016-243.008L832 192 243.008 544.96 64 448z m256 512v-303.04L512 768l-192 192z",
711
711
  "p-id": "9851"
712
712
  }, null, -1)]]);
713
713
  }
714
- var Ye = /* @__PURE__ */ V(Ke, [["render", Je]]), Xe = /* @__PURE__ */ z({
715
- ArrowRight: () => Re,
716
- ArrowUp: () => He,
717
- CloseBold: () => je,
718
- Plus: () => Pe,
719
- Promotion: () => Ye,
720
- Refresh: () => q,
721
- Search: () => G,
722
- User: () => K,
723
- YcIcon: () => Oe
714
+ var Je = /* @__PURE__ */ H(Ge, [["render", qe]]), Ye = /* @__PURE__ */ B({
715
+ ArrowRight: () => Le,
716
+ ArrowUp: () => Ve,
717
+ CloseBold: () => Ae,
718
+ Plus: () => Ne,
719
+ Promotion: () => Je,
720
+ Refresh: () => J,
721
+ Search: () => K,
722
+ User: () => q,
723
+ YcIcon: () => De
724
724
  });
725
725
  //#endregion
726
726
  //#region src/components/utils/tools.ts
727
- function Ze(e) {
727
+ function Xe(e) {
728
728
  return typeof e == "number" ? e + "px" : e || "100px";
729
729
  }
730
- function J(e) {
730
+ function Y(e) {
731
731
  return typeof e == "number" ? e + "px" : e || "180px";
732
732
  }
733
- function Y(e, t) {
733
+ function X(e, t) {
734
734
  let n = {};
735
- return Object.keys(W).forEach((r) => {
735
+ return Object.keys(G).forEach((r) => {
736
736
  let i = r;
737
737
  n[i] = (n = {}) => ({
738
738
  props: {
@@ -742,25 +742,25 @@ function Y(e, t) {
742
742
  onChange: (r) => n.onChange?.(r) || (t[e.prop] = r)
743
743
  },
744
744
  type: i,
745
- component: W[i]
745
+ component: G[i]
746
746
  });
747
747
  }), ((n) => typeof e.render == "function" ? e.render({
748
748
  h: n,
749
749
  data: t
750
750
  }) : n.input(n.props || {}))(n);
751
751
  }
752
- function X(e, t) {
753
- let n = Y(e, t);
752
+ function Z(e, t) {
753
+ let n = X(e, t);
754
754
  return typeof n == "object" && (n.component ||= n), n;
755
755
  }
756
756
  //#endregion
757
757
  //#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
758
- var Qe = { style: {
758
+ var Ze = { style: {
759
759
  display: "flex",
760
760
  "justify-content": "end",
761
761
  "align-items": "center",
762
762
  width: "100%"
763
- } }, $e = /* @__PURE__ */ u({
763
+ } }, Qe = /* @__PURE__ */ u({
764
764
  name: "UiDefaultFilter",
765
765
  __name: "index",
766
766
  props: {
@@ -796,7 +796,7 @@ var Qe = { style: {
796
796
  }), 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);
797
797
  v(() => {
798
798
  p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
799
- let t = Y(e, h)?.props?.defaultValue;
799
+ let t = X(e, h)?.props?.defaultValue;
800
800
  t !== void 0 && (h[e.prop] = t);
801
801
  });
802
802
  });
@@ -827,24 +827,24 @@ var Qe = { style: {
827
827
  class: "ui-filter",
828
828
  size: s.size
829
829
  }, t.$attrs), {
830
- default: I(() => [l(x, {
830
+ default: L(() => [l(x, {
831
831
  gutter: 20,
832
832
  style: { "margin-bottom": "-15px" }
833
833
  }, {
834
- default: I(() => [(b(!0), i(e, null, C(g.value, (e) => (b(), n(f, { span: e.span || 24 / s.column }, {
835
- default: I(() => [(b(), n(d, {
834
+ default: L(() => [(b(!0), i(e, null, C(g.value, (e) => (b(), n(f, { span: e.span || 24 / s.column }, {
835
+ default: L(() => [(b(), n(d, {
836
836
  key: e.prop,
837
837
  label: e.label,
838
- "label-width": j(Ze)(e?.labelWidth || s.labelWidth),
839
- "value-width": j(J)(e?.valueWidth || s.valueWidth)
838
+ "label-width": j(Xe)(e?.labelWidth || s.labelWidth),
839
+ "value-width": j(Y)(e?.valueWidth || s.valueWidth)
840
840
  }, {
841
- default: I(() => [e.render ? (b(), n(D(j(Y)(e, h).component), m({
841
+ default: L(() => [e.render ? (b(), n(D(j(X)(e, h).component), m({
842
842
  key: 0,
843
843
  modelValue: h[e.prop],
844
844
  "onUpdate:modelValue": (t) => h[e.prop] = t
845
- }, { ref_for: !0 }, j(Y)(e, h).props, {
845
+ }, { ref_for: !0 }, j(X)(e, h).props, {
846
846
  clearable: !0,
847
- style: { width: j(J)(e?.valueWidth || s.valueWidth) }
847
+ style: { width: j(Y)(e?.valueWidth || s.valueWidth) }
848
848
  }), null, 16, [
849
849
  "modelValue",
850
850
  "onUpdate:modelValue",
@@ -855,7 +855,7 @@ var Qe = { style: {
855
855
  "onUpdate:modelValue": (t) => h[e.prop] = t,
856
856
  placeholder: "请输入",
857
857
  clearable: !0,
858
- style: _({ width: j(J)(e?.valueWidth || s.valueWidth) })
858
+ style: _({ width: j(Y)(e?.valueWidth || s.valueWidth) })
859
859
  }, null, 8, [
860
860
  "modelValue",
861
861
  "onUpdate:modelValue",
@@ -872,34 +872,34 @@ var Qe = { style: {
872
872
  span: 24 / s.column,
873
873
  offset: y.value
874
874
  }, {
875
- default: I(() => [l(d, {
875
+ default: L(() => [l(d, {
876
876
  label: "",
877
877
  "label-width": "30px"
878
878
  }, {
879
- default: I(() => [a("div", Qe, [
879
+ default: L(() => [a("div", Ze, [
880
880
  w(t.$slots, "left", { form: h }, void 0, !0),
881
881
  s.fields.length >= 2 * s.column ? (b(), n(v, {
882
882
  key: 0,
883
883
  text: "",
884
- icon: p.expand ? j(He) : j(Re),
884
+ icon: p.expand ? j(Ve) : j(Le),
885
885
  onClick: o[0] ||= (e) => p.expand = !p.expand
886
886
  }, {
887
- default: I(() => [c(k(p.expand ? "收起" : "展开"), 1)]),
887
+ default: L(() => [c(k(p.expand ? "收起" : "展开"), 1)]),
888
888
  _: 1
889
889
  }, 8, ["icon"])) : r("", !0),
890
890
  l(v, {
891
- icon: j(G),
891
+ icon: j(K),
892
892
  type: "primary",
893
893
  onClick: S
894
894
  }, {
895
- default: I(() => [...o[1] ||= [c("查询", -1)]]),
895
+ default: L(() => [...o[1] ||= [c("查询", -1)]]),
896
896
  _: 1
897
897
  }, 8, ["icon"]),
898
898
  l(v, {
899
- icon: j(q),
899
+ icon: j(J),
900
900
  onClick: E
901
901
  }, {
902
- default: I(() => [...o[2] ||= [c("重置", -1)]]),
902
+ default: L(() => [...o[2] ||= [c("重置", -1)]]),
903
903
  _: 1
904
904
  }, 8, ["icon"]),
905
905
  w(t.$slots, "handle", { form: h }, void 0, !0),
@@ -915,16 +915,16 @@ var Qe = { style: {
915
915
  }, 16, ["model", "size"]);
916
916
  };
917
917
  }
918
- }), et = /* @__PURE__ */ z({ default: () => tt }), tt = /* @__PURE__ */ V($e, [["__scopeId", "data-v-0e3c7086"]]), nt = {
918
+ }), $e = /* @__PURE__ */ B({ default: () => et }), et = /* @__PURE__ */ H(Qe, [["__scopeId", "data-v-0e3c7086"]]), tt = {
919
919
  key: 0,
920
920
  style: { display: "inline-block" }
921
- }, rt = {
921
+ }, nt = {
922
922
  key: 0,
923
923
  style: { display: "inline-block" }
924
- }, it = {
924
+ }, rt = {
925
925
  key: 0,
926
926
  class: "ui-form-buttons"
927
- }, at = /* @__PURE__ */ u({
927
+ }, it = /* @__PURE__ */ u({
928
928
  __name: "index",
929
929
  props: {
930
930
  fields: {},
@@ -943,7 +943,7 @@ var Qe = { style: {
943
943
  },
944
944
  emits: ["submit", "reset"],
945
945
  setup(a, { expose: s, emit: u }) {
946
- ee((e) => ({ v5d51dde6: e.column / 2 }));
946
+ N((e) => ({ v5d51dde6: e.column / 2 }));
947
947
  let d = u, f = o(a, [
948
948
  "fields",
949
949
  "labelWidth",
@@ -956,9 +956,9 @@ var Qe = { style: {
956
956
  ]), p = S(0), h = S(), v = x({}), y = t(() => {
957
957
  let e = A(v);
958
958
  return a.fields.forEach((t) => {
959
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
959
+ let n = t.prop ? e?.[t.prop] : void 0, r = Z(t, v)?.props?.defaultValue;
960
960
  v[t.prop] = n ?? r ?? void 0, t?.slots && t?.slots?.length > 0 && t.slots.forEach((t) => {
961
- let n = t.prop ? e?.[t.prop] : void 0, r = X(t, v)?.props?.defaultValue;
961
+ let n = t.prop ? e?.[t.prop] : void 0, r = Z(t, v)?.props?.defaultValue;
962
962
  v[t.prop] = n ?? r ?? void 0;
963
963
  });
964
964
  }), a.fields.filter((e) => typeof e.prop == "string");
@@ -973,7 +973,7 @@ var Qe = { style: {
973
973
  }]);
974
974
  }), e;
975
975
  });
976
- F(() => {
976
+ I(() => {
977
977
  Object.assign(v, f?.form);
978
978
  });
979
979
  async function O(e) {
@@ -989,30 +989,30 @@ var Qe = { style: {
989
989
  function M() {
990
990
  h && h.value?.clearValidate();
991
991
  }
992
- function N(e) {
992
+ function P(e) {
993
993
  Object.keys(v).forEach((e) => {
994
994
  a.omitFields.includes(e) || (v[e] = void 0);
995
995
  }), p.value += 1, d("reset", v);
996
996
  }
997
- function P() {
997
+ function F() {
998
998
  return v;
999
999
  }
1000
- function L(e) {
1000
+ function R(e) {
1001
1001
  Object.keys(e).forEach((t) => {
1002
1002
  v[t] = e[t];
1003
1003
  });
1004
1004
  }
1005
- async function te() {
1005
+ async function ee() {
1006
1006
  return new Promise((e) => {
1007
1007
  h.value?.validate((t, n) => e(n));
1008
1008
  });
1009
1009
  }
1010
1010
  return s({
1011
- getValues: P,
1012
- setValues: L,
1011
+ getValues: F,
1012
+ setValues: R,
1013
1013
  clearValidate: M,
1014
1014
  onSubmit: O,
1015
- validate: te
1015
+ validate: ee
1016
1016
  }), (t, o) => {
1017
1017
  let s = T("el-input"), u = T("el-form-item"), d = T("el-form"), f = T("el-button");
1018
1018
  return b(), i(e, null, [l(d, m({
@@ -1029,7 +1029,7 @@ var Qe = { style: {
1029
1029
  },
1030
1030
  "validate-on-rule-change": !1
1031
1031
  }), {
1032
- default: I(() => [(b(!0), i(e, null, C(y.value, (r) => (b(), n(u, {
1032
+ default: L(() => [(b(!0), i(e, null, C(y.value, (r) => (b(), n(u, {
1033
1033
  key: r.prop,
1034
1034
  label: r.label,
1035
1035
  "label-width": a.labelWidth,
@@ -1040,11 +1040,11 @@ var Qe = { style: {
1040
1040
  gridColumn: `span ${(r?.span || a.column) / 2 || 1}`
1041
1041
  })
1042
1042
  }, {
1043
- default: I(() => [r.render ? (b(), i(e, { key: 0 }, [j(X)(r, v).component ? (b(), n(D(j(X)(r, v).component), m({
1043
+ default: L(() => [r.render ? (b(), i(e, { key: 0 }, [j(Z)(r, v).component ? (b(), n(D(j(Z)(r, v).component), m({
1044
1044
  key: 1,
1045
1045
  modelValue: v[r.prop],
1046
1046
  "onUpdate:modelValue": (e) => v[r.prop] = e
1047
- }, { ref_for: !0 }, j(X)(r, v).props, {
1047
+ }, { ref_for: !0 }, j(Z)(r, v).props, {
1048
1048
  clearable: !0,
1049
1049
  key: `${r.prop}-${p.value}`,
1050
1050
  style: { display: "inline-block" },
@@ -1053,13 +1053,13 @@ var Qe = { style: {
1053
1053
  "modelValue",
1054
1054
  "onUpdate:modelValue",
1055
1055
  "class"
1056
- ])) : (b(), i("span", nt, k(j(X)(r, v) || "-"), 1)), (b(!0), i(e, null, C(r.slots, (e) => w(t.$slots, "default", { form: v }, () => [j(X)(e, v).component ? (b(), n(D(j(X)(e, v).component), m({
1056
+ ])) : (b(), i("span", tt, k(j(Z)(r, v) || "-"), 1)), (b(!0), i(e, null, C(r.slots, (e) => w(t.$slots, "default", { form: v }, () => [j(Z)(e, v).component ? (b(), n(D(j(Z)(e, v).component), m({
1057
1057
  key: 1,
1058
1058
  modelValue: v[e.prop],
1059
1059
  "onUpdate:modelValue": (t) => v[e.prop] = t,
1060
1060
  "default-value": e.defaultValue,
1061
1061
  placeholder: e.placeholder
1062
- }, { ref_for: !0 }, j(X)(e, v).props, {
1062
+ }, { ref_for: !0 }, j(Z)(e, v).props, {
1063
1063
  style: {
1064
1064
  display: "inline-block",
1065
1065
  marginLeft: "10px",
@@ -1075,7 +1075,7 @@ var Qe = { style: {
1075
1075
  "placeholder",
1076
1076
  "style",
1077
1077
  "class"
1078
- ])) : (b(), i("span", rt, k(j(X)(e, v) || "-"), 1))], !0)), 256))], 64)) : (b(), n(s, {
1078
+ ])) : (b(), i("span", nt, k(j(Z)(e, v) || "-"), 1))], !0)), 256))], 64)) : (b(), n(s, {
1079
1079
  key: 1,
1080
1080
  modelValue: v[r.prop],
1081
1081
  "onUpdate:modelValue": (e) => v[r.prop] = e,
@@ -1102,29 +1102,29 @@ var Qe = { style: {
1102
1102
  "inline",
1103
1103
  "label-position",
1104
1104
  "class"
1105
- ]), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", it, [
1105
+ ]), t.$attrs?.hideHandle ? r("", !0) : (b(), i("div", rt, [
1106
1106
  w(t.$slots, "handle", { form: v }, void 0, !0),
1107
1107
  l(f, {
1108
- icon: j(q),
1109
- onClick: o[0] ||= (e) => h.value && N(h.value),
1108
+ icon: j(J),
1109
+ onClick: o[0] ||= (e) => h.value && P(h.value),
1110
1110
  size: t.$props.size
1111
1111
  }, {
1112
- default: I(() => [...o[2] ||= [c("重置", -1)]]),
1112
+ default: L(() => [...o[2] ||= [c("重置", -1)]]),
1113
1113
  _: 1
1114
1114
  }, 8, ["icon", "size"]),
1115
1115
  l(f, {
1116
- icon: j(Ye),
1116
+ icon: j(Je),
1117
1117
  type: "primary",
1118
1118
  onClick: o[1] ||= (e) => h.value && O(h.value),
1119
1119
  size: t.$props.size
1120
1120
  }, {
1121
- default: I(() => [...o[3] ||= [c("提交", -1)]]),
1121
+ default: L(() => [...o[3] ||= [c("提交", -1)]]),
1122
1122
  _: 1
1123
1123
  }, 8, ["icon", "size"])
1124
1124
  ]))], 64);
1125
1125
  };
1126
1126
  }
1127
- }), ot = /* @__PURE__ */ z({ default: () => st }), st = /* @__PURE__ */ V(at, [["__scopeId", "data-v-3d29eddf"]]), ct = ["disabled"], lt = /* @__PURE__ */ u({
1127
+ }), at = /* @__PURE__ */ B({ default: () => ot }), ot = /* @__PURE__ */ H(it, [["__scopeId", "data-v-3d29eddf"]]), st = ["disabled"], ct = /* @__PURE__ */ u({
1128
1128
  __name: "index",
1129
1129
  props: /* @__PURE__ */ p({
1130
1130
  defaultValue: { default: "" },
@@ -1141,9 +1141,9 @@ var Qe = { style: {
1141
1141
  }),
1142
1142
  emits: /* @__PURE__ */ p(["change"], ["update:modelValue"]),
1143
1143
  setup(e, { emit: t }) {
1144
- let n = S(), r = N(e, "modelValue"), a = S(r.value || e.defaultValue || ""), o = null, s = t;
1144
+ let n = S(), r = P(e, "modelValue"), a = S(r.value || e.defaultValue || ""), o = null, s = t;
1145
1145
  return v(() => {
1146
- o = new re({
1146
+ o = new ne({
1147
1147
  element: n.value,
1148
1148
  placeholder: "点击输入内容...",
1149
1149
  content: r.value || e.defaultValue || "",
@@ -1153,7 +1153,7 @@ var Qe = { style: {
1153
1153
  r.value = t, a.value = t, s("change", t);
1154
1154
  }
1155
1155
  }), o.setEditable(!e.disabled);
1156
- }), P(r, (e) => {
1156
+ }), F(r, (e) => {
1157
1157
  o && e !== o.getHtml() && o.setContent(e);
1158
1158
  }), y(() => {
1159
1159
  o && o.destroy();
@@ -1162,9 +1162,9 @@ var Qe = { style: {
1162
1162
  ref: n,
1163
1163
  style: { height: "500px" },
1164
1164
  disabled: e.disabled
1165
- }, null, 8, ct));
1165
+ }, null, 8, st));
1166
1166
  }
1167
- }), Z = /* @__PURE__ */ z({ default: () => ut }), ut = lt, dt = { class: "ui-tree-wrapper" }, ft = {
1167
+ }), lt = /* @__PURE__ */ B({ default: () => ut }), ut = ct, dt = { class: "ui-tree-wrapper" }, ft = {
1168
1168
  key: 0,
1169
1169
  style: {
1170
1170
  display: "flex",
@@ -1191,6 +1191,8 @@ var Qe = { style: {
1191
1191
  onNodeAdd: { type: Function },
1192
1192
  onNodeEdit: { type: Function },
1193
1193
  onNodeDel: { type: Function },
1194
+ showTotal: { type: Boolean },
1195
+ "show-total": { type: Boolean },
1194
1196
  nodeKey: {},
1195
1197
  props: { default: () => ({ label: "label" }) }
1196
1198
  },
@@ -1199,114 +1201,115 @@ var Qe = { style: {
1199
1201
  "edit",
1200
1202
  "delete"
1201
1203
  ],
1202
- setup(e, { emit: t }) {
1203
- let s = t, u = o(e, [
1204
+ setup(e, { emit: s }) {
1205
+ let u = s, f = M(), p = o(e, [
1204
1206
  "filterable",
1205
1207
  "placeholder",
1206
1208
  "data",
1207
1209
  "props"
1208
- ]), f = S(""), p = S(), h = S(), g = d()?.appContext.config.globalProperties.$messageBox;
1209
- P(f, (t) => {
1210
- e.filterable && h.value?.filter(t);
1210
+ ]), h = S(""), g = S(), _ = S(), v = d()?.appContext.config.globalProperties.$messageBox;
1211
+ F(h, (t) => {
1212
+ e.filterable && _.value?.filter(t);
1211
1213
  });
1212
- function _(t, n) {
1214
+ let y = t(() => f?.["show-total"] ?? p?.showTotal ?? !0);
1215
+ function x(t, n) {
1213
1216
  return t ? n?.[e.props?.label || "label"]?.includes(t) ?? !1 : !0;
1214
1217
  }
1215
- function v(e, t) {
1216
- e?.stopPropagation(), p.value = t.id;
1218
+ function C(e, t) {
1219
+ e?.stopPropagation(), g.value = t.id;
1217
1220
  }
1218
- function y(e) {
1219
- g?.prompt("请输入新的名称", "添加节点", {
1221
+ function E(e) {
1222
+ v?.prompt("请输入新的名称", "添加节点", {
1220
1223
  confirmButtonText: "确定",
1221
1224
  cancelButtonText: "取消"
1222
1225
  }).then(({ value: t }) => {
1223
- s("add", {
1226
+ u("add", {
1224
1227
  node: e,
1225
1228
  value: t
1226
1229
  });
1227
1230
  });
1228
1231
  }
1229
- function x(t) {
1230
- g?.prompt("请输入新的名称", "重命名", {
1232
+ function D(t) {
1233
+ v?.prompt("请输入新的名称", "重命名", {
1231
1234
  confirmButtonText: "确定",
1232
1235
  cancelButtonText: "取消",
1233
1236
  inputValue: e.props?.label ? t[e.props?.label] : ""
1234
1237
  }).then(({ value: e }) => {
1235
- s("edit", {
1238
+ u("edit", {
1236
1239
  node: t,
1237
1240
  value: e
1238
1241
  });
1239
1242
  });
1240
1243
  }
1241
- async function C(e) {
1242
- e.id && s("delete", e);
1244
+ async function O(e) {
1245
+ e.id && u("delete", e);
1243
1246
  }
1244
1247
  return (t, o) => {
1245
- let s = T("el-input"), d = T("el-button"), p = T("el-dropdown-item"), g = T("el-dropdown-menu"), S = T("el-dropdown"), E = T("el-tree-v2");
1248
+ 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");
1246
1249
  return b(), i("div", dt, [
1247
1250
  e.filterable ? (b(), i("div", ft, [l(s, {
1248
- modelValue: f.value,
1249
- "onUpdate:modelValue": o[0] ||= (e) => f.value = e,
1251
+ modelValue: h.value,
1252
+ "onUpdate:modelValue": o[0] ||= (e) => h.value = e,
1250
1253
  placeholder: e.placeholder ?? "请输入",
1251
1254
  clearable: ""
1252
- }, null, 8, ["modelValue", "placeholder"]), u?.hidePlusHandle ? r("", !0) : (b(), n(d, {
1255
+ }, null, 8, ["modelValue", "placeholder"]), p?.hidePlusHandle ? r("", !0) : (b(), n(u, {
1253
1256
  key: 0,
1254
1257
  style: {
1255
1258
  margin: "0px",
1256
1259
  padding: "0px"
1257
1260
  },
1258
1261
  link: "",
1259
- onClick: o[1] ||= (e) => y()
1262
+ onClick: o[1] ||= (e) => E()
1260
1263
  }, {
1261
- default: I(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1264
+ default: L(() => [...o[2] ||= [a("span", { style: { padding: "4px" } }, "+", -1)]]),
1262
1265
  _: 1
1263
1266
  }))])) : r("", !0),
1264
1267
  w(t.$slots, "handle", { style: "margin-top: 8px" }, void 0, !0),
1265
- l(E, m({
1268
+ l(v, m({
1266
1269
  ref_key: "treeRef",
1267
- ref: h,
1270
+ ref: _,
1268
1271
  style: { "margin-top": "8px" }
1269
1272
  }, {
1270
1273
  ...t.$props,
1271
1274
  ...t.$attrs
1272
1275
  }, {
1273
- "node-key": u?.nodeKey || "id",
1276
+ "node-key": p?.nodeKey || "id",
1274
1277
  "highlight-current": !0,
1275
- "filter-method": _
1278
+ "filter-method": x
1276
1279
  }), {
1277
- 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(s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), u.hideNodeHandle ? r("", !0) : (b(), n(S, {
1280
+ default: L((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, {
1278
1281
  key: 0,
1279
1282
  trigger: "click"
1280
1283
  }, {
1281
- dropdown: I(() => [l(g, null, {
1282
- default: I(() => [
1283
- u?.hideNodeAdd ? r("", !0) : (b(), n(p, {
1284
+ dropdown: L(() => [l(f, null, {
1285
+ default: L(() => [
1286
+ p?.hideNodeAdd ? r("", !0) : (b(), n(d, {
1284
1287
  key: 0,
1285
- onClick: (e) => y(s.data)
1288
+ onClick: (e) => E(s.data)
1286
1289
  }, {
1287
- default: I(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1290
+ default: L(() => [...o[3] ||= [c(" 添加 ", -1)]]),
1288
1291
  _: 1
1289
1292
  }, 8, ["onClick"])),
1290
- u?.hideNodeEdit ? r("", !0) : (b(), n(p, {
1293
+ p?.hideNodeEdit ? r("", !0) : (b(), n(d, {
1291
1294
  key: 1,
1292
- onClick: (e) => x(s.data)
1295
+ onClick: (e) => D(s.data)
1293
1296
  }, {
1294
- default: I(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1297
+ default: L(() => [...o[4] ||= [c(" 编辑 ", -1)]]),
1295
1298
  _: 1
1296
1299
  }, 8, ["onClick"])),
1297
- u?.hideNodeDel ? r("", !0) : (b(), n(p, {
1300
+ p?.hideNodeDel ? r("", !0) : (b(), n(d, {
1298
1301
  key: 2,
1299
- onClick: (e) => C(s.data)
1302
+ onClick: (e) => O(s.data)
1300
1303
  }, {
1301
- default: I(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1304
+ default: L(() => [...o[5] ||= [a("span", { style: { color: "#ef4444" } }, "删除", -1)]]),
1302
1305
  _: 1
1303
1306
  }, 8, ["onClick"])),
1304
1307
  w(t.$slots, "node-handle", { data: s.data }, void 0, !0)
1305
1308
  ]),
1306
1309
  _: 2
1307
1310
  }, 1024)]),
1308
- default: I(() => [a("span", {
1309
- onClick: (e) => v(e, s.data),
1311
+ default: L(() => [a("span", {
1312
+ onClick: (e) => C(e, s.data),
1310
1313
  style: {
1311
1314
  padding: "4px",
1312
1315
  "font-weight": "bold"
@@ -1319,7 +1322,7 @@ var Qe = { style: {
1319
1322
  ]);
1320
1323
  };
1321
1324
  }
1322
- }), vt = /* @__PURE__ */ z({ default: () => yt }), yt = /* @__PURE__ */ V(_t, [["__scopeId", "data-v-b34ebffa"]]), bt = { style: { height: "100%" } }, xt = { style: {
1325
+ }), vt = /* @__PURE__ */ B({ default: () => yt }), yt = /* @__PURE__ */ H(_t, [["__scopeId", "data-v-7858d79e"]]), bt = { style: { height: "100%" } }, xt = { style: {
1323
1326
  display: "flex",
1324
1327
  "flex-direction": "row",
1325
1328
  "justify-content": "space-between",
@@ -1338,7 +1341,7 @@ var Qe = { style: {
1338
1341
  emits: ["node-click"],
1339
1342
  setup(o, { emit: s }) {
1340
1343
  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);
1341
- P(() => [u.value, o.data?.[0]], (e) => {
1344
+ F(() => [u.value, o.data?.[0]], (e) => {
1342
1345
  !e[0] && e[1] && (u.value = o.data?.[0]);
1343
1346
  }, { immediate: !0 });
1344
1347
  function f(e) {
@@ -1354,7 +1357,7 @@ var Qe = { style: {
1354
1357
  placeholder: o.placeholder ?? "请输入"
1355
1358
  }, null, 8, ["modelValue", "placeholder"])) : r("", !0), w(t.$slots, "plus", {}, void 0, !0)]),
1356
1359
  a("div", St, [w(t.$slots, "handle", {}, void 0, !0)]),
1357
- L((b(), i("ul", m({
1360
+ R((b(), i("ul", m({
1358
1361
  class: "infinite-list",
1359
1362
  "infinite-scroll-immediate": !1
1360
1363
  }, t.$attrs), [(b(!0), i(e, null, C(d.value, (e, n) => (b(), i("li", {
@@ -1369,7 +1372,7 @@ var Qe = { style: {
1369
1372
  ]);
1370
1373
  };
1371
1374
  }
1372
- }), Et = /* @__PURE__ */ z({ default: () => Dt }), Dt = /* @__PURE__ */ V(Tt, [["__scopeId", "data-v-0ab5cd97"]]), Ot = {
1375
+ }), Et = /* @__PURE__ */ B({ default: () => Dt }), Dt = /* @__PURE__ */ H(Tt, [["__scopeId", "data-v-0ab5cd97"]]), Ot = {
1373
1376
  key: 0,
1374
1377
  style: {
1375
1378
  padding: "10px 0px",
@@ -1397,16 +1400,16 @@ var Qe = { style: {
1397
1400
  t.title ? (b(), i("h4", Ot, k(t.title), 1)) : r("", !0),
1398
1401
  w(o.$slots, "title", {}, void 0, !0),
1399
1402
  l(u, m({ column: t.column }, a, { class: "ui-descriptions" }), {
1400
- default: I(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(c, {
1403
+ default: L(() => [(b(!0), i(e, null, C(t.fields, (e) => (b(), n(c, {
1401
1404
  key: e.prop,
1402
1405
  label: e.label,
1403
1406
  span: e.span || 2
1404
1407
  }, {
1405
- default: I(() => [e.render ? (b(), n(D(j(Y)(e, t.data).component), m({
1408
+ default: L(() => [e.render ? (b(), n(D(j(X)(e, t.data).component), m({
1406
1409
  key: 0,
1407
1410
  modelValue: t.data[e.prop],
1408
1411
  "onUpdate:modelValue": (n) => t.data[e.prop] = n
1409
- }, { ref_for: !0 }, j(Y)(e, t.data).props, {
1412
+ }, { ref_for: !0 }, j(X)(e, t.data).props, {
1410
1413
  clearable: !0,
1411
1414
  key: e.prop,
1412
1415
  style: { display: "inline-block" }
@@ -1418,7 +1421,7 @@ var Qe = { style: {
1418
1421
  ], 64);
1419
1422
  };
1420
1423
  }
1421
- }), jt = /* @__PURE__ */ z({ default: () => Mt }), Mt = /* @__PURE__ */ V(At, [["__scopeId", "data-v-f02c30f9"]]), Nt = {
1424
+ }), jt = /* @__PURE__ */ B({ default: () => Mt }), Mt = /* @__PURE__ */ H(At, [["__scopeId", "data-v-f02c30f9"]]), Nt = {
1422
1425
  key: 0,
1423
1426
  style: {
1424
1427
  display: "flex",
@@ -1459,17 +1462,20 @@ var Qe = { style: {
1459
1462
  "onUpdate:modelValue": t[0] ||= (e) => !e && u(),
1460
1463
  onClose: u
1461
1464
  }), {
1462
- default: I(() => [(b(), n(D(o.component), m({
1465
+ default: L(() => [(b(), n(D(o.component), m({
1463
1466
  ref_key: "slotRef",
1464
1467
  ref: s
1465
- }, o.componentProps), null, 16)), o.disabled ? r("", !0) : (b(), i("div", Nt, [l(a, { onClick: u }, {
1466
- default: I(() => [...t[1] ||= [c("取消", -1)]]),
1468
+ }, o.componentProps, {
1469
+ onClose: u,
1470
+ onSubmit: d
1471
+ }), null, 16)), o.disabled ? r("", !0) : (b(), i("div", Nt, [l(a, { onClick: u }, {
1472
+ default: L(() => [...t[1] ||= [c("取消", -1)]]),
1467
1473
  _: 1
1468
1474
  }), l(a, {
1469
1475
  type: "primary",
1470
1476
  onClick: d
1471
1477
  }, {
1472
- default: I(() => [...t[2] ||= [c("确定", -1)]]),
1478
+ default: L(() => [...t[2] ||= [c("确定", -1)]]),
1473
1479
  _: 1
1474
1480
  })]))]),
1475
1481
  _: 1
@@ -1480,7 +1486,7 @@ var Qe = { style: {
1480
1486
  ]);
1481
1487
  };
1482
1488
  }
1483
- }), Ft = /* @__PURE__ */ z({ default: () => It }), It = Pt, Q = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "";
1489
+ }), Ft = /* @__PURE__ */ B({ default: () => It }), It = Pt, Q = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
1484
1490
  function Lt(e) {
1485
1491
  return Array.from(new Set(e));
1486
1492
  }
@@ -1546,11 +1552,11 @@ var zt = /* @__PURE__ */ u({
1546
1552
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
1547
1553
  "remote-method": h
1548
1554
  }, t.$attrs), {
1549
- prefix: I(() => [l(a, null, {
1550
- default: I(() => [l(j(K))]),
1555
+ prefix: L(() => [l(a, null, {
1556
+ default: L(() => [l(j(q))]),
1551
1557
  _: 1
1552
1558
  })]),
1553
- default: I(() => [(b(!0), i(e, null, C(f.value, (e) => (b(), n(o, {
1559
+ default: L(() => [(b(!0), i(e, null, C(f.value, (e) => (b(), n(o, {
1554
1560
  key: `${e.employeeCode}-${e.employeeName}`,
1555
1561
  label: e.label,
1556
1562
  value: e.value
@@ -1578,7 +1584,7 @@ var zt = /* @__PURE__ */ u({
1578
1584
  display: "flex",
1579
1585
  "justify-content": "end",
1580
1586
  "align-items": "center"
1581
- } }, qt = /* @__PURE__ */ V(/* @__PURE__ */ u({
1587
+ } }, qt = /* @__PURE__ */ H(/* @__PURE__ */ u({
1582
1588
  __name: "dialog",
1583
1589
  props: {
1584
1590
  modelValue: {},
@@ -1604,9 +1610,9 @@ var zt = /* @__PURE__ */ u({
1604
1610
  filterText: "",
1605
1611
  requiredVisible: !1
1606
1612
  }), w = S([]), E = S([]), D = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
1607
- F(() => {
1613
+ I(() => {
1608
1614
  E.value = Lt(f.modelValue || []);
1609
- }), F(() => {
1615
+ }), I(() => {
1610
1616
  _.value && A();
1611
1617
  });
1612
1618
  async function A() {
@@ -1614,18 +1620,18 @@ var zt = /* @__PURE__ */ u({
1614
1620
  method: "GET",
1615
1621
  headers: v
1616
1622
  }).then((e) => e.json());
1617
- y.staffData = e.data || [], e.data?.[0] && N(e.data?.[0]);
1623
+ y.staffData = e.data || [], e.data?.[0] && P(e.data?.[0]);
1618
1624
  }
1619
- async function ee(e) {
1625
+ async function N(e) {
1620
1626
  return fetch(Q + "/user/pageQueryUser", {
1621
1627
  method: "POST",
1622
1628
  headers: v,
1623
1629
  body: JSON.stringify(e)
1624
1630
  }).then((e) => e.json());
1625
1631
  }
1626
- async function N(e, t) {
1632
+ async function P(e, t) {
1627
1633
  let n = !!e?.data?.code, r = e?.data?.code || e?.code;
1628
- return !r || e?.data?.account ? t?.([]) : (y.loading = !0, ee({
1634
+ return !r || e?.data?.account ? t?.([]) : (y.loading = !0, N({
1629
1635
  page: 1,
1630
1636
  pageSize: 9999,
1631
1637
  departmentCode: r
@@ -1638,14 +1644,14 @@ var zt = /* @__PURE__ */ u({
1638
1644
  n ? e.data.children = Rt([...r, ...e.data.children || []], "code") : e.children = Rt([...r, ...e.children || []], "code"), y.loading = !1;
1639
1645
  }), t?.(e?.children || []));
1640
1646
  }
1641
- function P(e, { data: t }) {
1647
+ function F(e, { data: t }) {
1642
1648
  let n = y.searchData?.length > 0;
1643
1649
  return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
1644
1650
  width: "14px",
1645
1651
  height: "14px"
1646
- } }, e(K)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1652
+ } }, e(q)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
1647
1653
  }
1648
- function L(e) {
1654
+ function R(e) {
1649
1655
  if (E.value = E.value.filter((t) => t !== e), g.value) {
1650
1656
  let t = e.match(/\((.*?)\)/)?.[1];
1651
1657
  h(() => {
@@ -1653,24 +1659,24 @@ var zt = /* @__PURE__ */ u({
1653
1659
  });
1654
1660
  }
1655
1661
  }
1656
- async function re() {
1662
+ async function ne() {
1657
1663
  if (!y.filterText?.trim()) return y.searchData = [];
1658
- let e = await ee({
1664
+ let e = await N({
1659
1665
  page: 1,
1660
1666
  pageSize: 9999,
1661
1667
  name: y.filterText?.trim()
1662
1668
  });
1663
- if (e.code !== "ok") return H.Message.error(e.message);
1669
+ if (e.code !== "ok") return U.Message.error(e.message);
1664
1670
  y.searchData = (e?.table || []).map((e) => ({
1665
1671
  ...e,
1666
1672
  code: e.account
1667
1673
  }));
1668
1674
  }
1669
- function R(e, t) {
1675
+ function z(e, t) {
1670
1676
  let n = (t?.checkedNodes.filter((e) => e.account)).map((e) => `${e.name}(${e.account})`);
1671
1677
  E.value = Lt(E.value.concat(n));
1672
1678
  }
1673
- function z() {
1679
+ function B() {
1674
1680
  let e = p === "all" ? E.value : E.value?.map((e) => {
1675
1681
  let [t, n] = e.split("(");
1676
1682
  return {
@@ -1678,15 +1684,15 @@ var zt = /* @__PURE__ */ u({
1678
1684
  account: n?.replace(")", "")
1679
1685
  }[p] || e.trim();
1680
1686
  });
1681
- u("change", e), u("update:modelValue", e), _.value = !1, B();
1687
+ u("change", e), u("update:modelValue", e), _.value = !1, V();
1682
1688
  }
1683
- function ie() {
1689
+ function re() {
1684
1690
  u("update:modelValue", void 0), _.value = !1;
1685
1691
  }
1686
- function B() {
1692
+ function V() {
1687
1693
  return y.requiredVisible = O.value && E.value.length === 0, y.requiredVisible;
1688
1694
  }
1689
- return o({ validate: B }), (t, n) => {
1695
+ return o({ validate: V }), (t, n) => {
1690
1696
  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");
1691
1697
  return b(), i(e, null, [a("div", {
1692
1698
  class: "staff-select-trigger",
@@ -1723,21 +1729,21 @@ var zt = /* @__PURE__ */ u({
1723
1729
  "append-to-body": "",
1724
1730
  "close-on-click-modal": !1
1725
1731
  }, {
1726
- default: I(() => [a("div", Bt, [a("div", Vt, [l(s, {
1732
+ default: L(() => [a("div", Bt, [a("div", Vt, [l(s, {
1727
1733
  placeholder: "请输入",
1728
1734
  modelValue: y.filterText,
1729
1735
  "onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
1730
1736
  clearable: "",
1731
- "prefix-icon": j(G),
1732
- onKeydown: te(re, ["enter"])
1737
+ "prefix-icon": j(K),
1738
+ onKeydown: ee(ne, ["enter"])
1733
1739
  }, null, 8, ["modelValue", "prefix-icon"]), l(u, {
1734
1740
  loading: y.loading,
1735
1741
  data: D.value,
1736
1742
  props: { label: "fullName" },
1737
1743
  "highlight-current": !0,
1738
- "render-content": P,
1739
- load: N,
1740
- onCheck: R,
1744
+ "render-content": F,
1745
+ load: P,
1746
+ onCheck: z,
1741
1747
  "show-checkbox": "",
1742
1748
  lazy: "",
1743
1749
  class: "staff-tree",
@@ -1749,18 +1755,18 @@ var zt = /* @__PURE__ */ u({
1749
1755
  class: "staff-item"
1750
1756
  }, [a("span", null, k(e), 1), l(d, {
1751
1757
  color: "red",
1752
- onClick: ne((t) => L(e), ["stop"])
1758
+ onClick: te((t) => R(e), ["stop"])
1753
1759
  }, {
1754
- default: I(() => [l(j(je))]),
1760
+ default: L(() => [l(j(Ae))]),
1755
1761
  _: 1
1756
- }, 8, ["onClick"])]))), 128))])])]), a("div", Kt, [l(p, { onClick: ie }, {
1757
- default: I(() => [...n[5] ||= [c("取消", -1)]]),
1762
+ }, 8, ["onClick"])]))), 128))])])]), a("div", Kt, [l(p, { onClick: re }, {
1763
+ default: L(() => [...n[5] ||= [c("取消", -1)]]),
1758
1764
  _: 1
1759
1765
  }), l(p, {
1760
1766
  type: "primary",
1761
- onClick: z
1767
+ onClick: B
1762
1768
  }, {
1763
- default: I(() => [...n[6] ||= [c("确定", -1)]]),
1769
+ default: L(() => [...n[6] ||= [c("确定", -1)]]),
1764
1770
  _: 1
1765
1771
  })])]),
1766
1772
  _: 1
@@ -1786,7 +1792,7 @@ var zt = /* @__PURE__ */ u({
1786
1792
  ...r
1787
1793
  }), null, 16));
1788
1794
  }
1789
- }), Yt = /* @__PURE__ */ z({ default: () => Xt }), Xt = Jt, Zt = /* @__PURE__ */ V(/* @__PURE__ */ u({
1795
+ }), Yt = /* @__PURE__ */ B({ default: () => Xt }), Xt = Jt, Zt = /* @__PURE__ */ H(/* @__PURE__ */ u({
1790
1796
  __name: "file",
1791
1797
  props: {
1792
1798
  icon: {},
@@ -1815,18 +1821,18 @@ var zt = /* @__PURE__ */ u({
1815
1821
  "hide-upload-text": g.value
1816
1822
  }
1817
1823
  }), s({
1818
- default: I(() => [w(e.$slots, "tip", {}, void 0, !0)]),
1824
+ default: L(() => [w(e.$slots, "tip", {}, void 0, !0)]),
1819
1825
  _: 2
1820
1826
  }, [_.value ? void 0 : {
1821
1827
  name: "trigger",
1822
- fn: I(() => [l(r, {
1828
+ fn: L(() => [l(r, {
1823
1829
  type: "primary",
1824
1830
  plain: "",
1825
1831
  icon: j(o),
1826
1832
  size: j(u),
1827
1833
  disabled: j(p)
1828
1834
  }, {
1829
- default: I(() => [c(k(j(a)), 1)]),
1835
+ default: L(() => [c(k(j(a)), 1)]),
1830
1836
  _: 1
1831
1837
  }, 8, [
1832
1838
  "icon",
@@ -1871,8 +1877,8 @@ var zt = /* @__PURE__ */ u({
1871
1877
  "list-type": "picture-card",
1872
1878
  "on-preview": s
1873
1879
  }), {
1874
- default: I(() => [l(u, null, {
1875
- default: I(() => [l(j(Pe))]),
1880
+ default: L(() => [l(u, null, {
1881
+ default: L(() => [l(j(Ne))]),
1876
1882
  _: 1
1877
1883
  })]),
1878
1884
  _: 1
@@ -1880,7 +1886,7 @@ var zt = /* @__PURE__ */ u({
1880
1886
  modelValue: o.value,
1881
1887
  "onUpdate:modelValue": c[0] ||= (e) => o.value = e
1882
1888
  }, {
1883
- default: I(() => [a("img", {
1889
+ default: L(() => [a("img", {
1884
1890
  "w-full": "",
1885
1891
  src: r.value.url,
1886
1892
  alt: "预览"
@@ -1932,14 +1938,14 @@ var zt = /* @__PURE__ */ u({
1932
1938
  e.onChange?.(r, t), f.value = r, i("update:modelValue", r), i("change", r), u.value = r.length;
1933
1939
  }
1934
1940
  function h() {
1935
- e.limit && H.Message.warning(`最多只能上传 ${e.limit} 个文件`);
1941
+ e.limit && U.Message.warning(`最多只能上传 ${e.limit} 个文件`);
1936
1942
  }
1937
1943
  function g(e, t) {
1938
1944
  i("update:modelValue", A(t)), i("remove", A(t)), u.value = t.length;
1939
1945
  }
1940
1946
  function _(e, t) {
1941
1947
  let n = A(f);
1942
- if (e?.code !== "ok") return H.Message.error(e?.message);
1948
+ if (e?.code !== "ok") return U.Message.error(e?.message);
1943
1949
  let r = Q + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${d.token}`;
1944
1950
  n?.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
1945
1951
  name: t.name,
@@ -1974,7 +1980,7 @@ var zt = /* @__PURE__ */ u({
1974
1980
  "limit"
1975
1981
  ]));
1976
1982
  }
1977
- }), tn = /* @__PURE__ */ z({ default: () => nn }), nn = en, rn = {
1983
+ }), tn = /* @__PURE__ */ B({ default: () => nn }), nn = en, rn = {
1978
1984
  mounted(e, t) {
1979
1985
  let n = t.value || {}, r = n.target || "body", i = n.top || 0;
1980
1986
  e._stickyOriginalStyles = {
@@ -2001,15 +2007,15 @@ var zt = /* @__PURE__ */ u({
2001
2007
  }
2002
2008
  }, an = { mounted(e) {
2003
2009
  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";
2004
- } }, on = /* @__PURE__ */ z({
2010
+ } }, on = /* @__PURE__ */ B({
2005
2011
  card: () => an,
2006
2012
  sticky: () => rn
2007
2013
  }), sn = "Yc", cn = {
2008
- UiCard: ae,
2009
- UiTable: Te,
2010
- UiFilter: et,
2011
- UiForm: ot,
2012
- UiEditor: Z,
2014
+ UiCard: ie,
2015
+ UiTable: we,
2016
+ UiFilter: $e,
2017
+ UiForm: at,
2018
+ UiEditor: lt,
2013
2019
  UiTree: vt,
2014
2020
  UiInfiniteScroll: Et,
2015
2021
  UiDescriptions: jt,
@@ -2034,8 +2040,8 @@ var dn = { install(e, t) {
2034
2040
  i !== n && e.component(i, r);
2035
2041
  }
2036
2042
  }
2037
- 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);
2043
+ for (let [t, n] of Object.entries(Ye)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
2038
2044
  for (let [t, n] of Object.entries(on)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
2039
2045
  } };
2040
2046
  //#endregion
2041
- 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 };
2047
+ export { ie as UiCard, jt as UiDescriptions, Ft as UiDialog, lt as UiEditor, $e as UiFilter, at as UiForm, Et as UiInfiniteScroll, Yt as UiStaffSelect, we as UiTable, vt as UiTree, tn as UiUpload, dn as default, dn as ycPlugin, $ as getHostVue, un as setHostVue };