cd-form 2.0.17 → 2.0.18

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/cd-form.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as Ge, computed as me, resolveComponent as M, createBlock as Y, openBlock as l, normalizeClass as Ve, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as H, normalizeStyle as Qe, toDisplayString as V, createTextVNode as U, withModifiers as Ze, Fragment as fe, renderList as _e, ref as D, watch as De, nextTick as na, createVNode as s, withDirectives as ha, withKeys as za, vModelText as Ca, vShow as Cl, createSlots as ya, useCssVars as Ol, onMounted as Da, onUnmounted as gl, Teleport as vl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as fl, resolveDynamicComponent as Tl, mergeProps as Aa, provide as wa, watchEffect as xl, h as ml, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
1
+ import { defineComponent as Ge, computed as me, resolveComponent as M, createBlock as Y, openBlock as l, normalizeClass as Ve, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as H, normalizeStyle as Qe, toDisplayString as V, createTextVNode as U, withModifiers as Ze, Fragment as fe, renderList as _e, ref as z, watch as ze, nextTick as na, createVNode as s, withDirectives as ha, withKeys as Fa, vModelText as Ca, vShow as Cl, createSlots as ya, useCssVars as Ol, onMounted as za, onUnmounted as gl, Teleport as vl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as fl, resolveDynamicComponent as Tl, mergeProps as Aa, provide as wa, watchEffect as xl, h as ml, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
2
2
  import { MessagePlugin as Te, DialogPlugin as Ll } from "tdesign-vue-next";
3
3
  import ja from "vxe-table";
4
- const Fa = /* @__PURE__ */ Ge({
4
+ const Da = /* @__PURE__ */ Ge({
5
5
  __name: "CdFormCol",
6
6
  props: {
7
7
  span: { default: 12 },
@@ -11,7 +11,7 @@ const Fa = /* @__PURE__ */ Ge({
11
11
  className: { default: "" }
12
12
  },
13
13
  setup(a) {
14
- const ae = a, n = me(() => Math.max(1, Math.min(24, ae.span)));
14
+ const le = a, n = me(() => Math.max(1, Math.min(24, le.span)));
15
15
  return (y, u) => {
16
16
  const c = M("t-col");
17
17
  return l(), Y(c, {
@@ -30,9 +30,9 @@ const Fa = /* @__PURE__ */ Ge({
30
30
  }
31
31
  });
32
32
  function ta(a) {
33
- return a.install = (ae) => {
33
+ return a.install = (le) => {
34
34
  const n = a.name || a.__name;
35
- n && ae.component(n, a);
35
+ n && le.component(n, a);
36
36
  }, a;
37
37
  }
38
38
  const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-wrapper" }, Yl = ["src", "alt"], Hl = { class: "cd-usercard__info" }, Jl = { class: "cd-usercard__name" }, Kl = {
@@ -110,8 +110,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
110
110
  maxTags: { default: 4 }
111
111
  },
112
112
  emits: ["click", "chat", "phone", "email", "more"],
113
- setup(a, { emit: ae }) {
114
- const n = a, y = ae, u = me(() => n.tags ? n.tags.slice(0, n.maxTags) : []), c = () => {
113
+ setup(a, { emit: le }) {
114
+ const n = a, y = le, u = me(() => n.tags ? n.tags.slice(0, n.maxTags) : []), c = () => {
115
115
  n.clickable && y("click", n);
116
116
  }, m = () => {
117
117
  y("chat", n);
@@ -282,9 +282,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
282
282
  ], 2);
283
283
  };
284
284
  }
285
- }), aa = (a, ae) => {
285
+ }), aa = (a, le) => {
286
286
  const n = a.__vccOpts || a;
287
- for (const [y, u] of ae)
287
+ for (const [y, u] of le)
288
288
  n[y] = u;
289
289
  return n;
290
290
  }, yt = /* @__PURE__ */ aa(bt, [["__scopeId", "data-v-df37fd5c"]]), _t = { class: "avatar-crop-container" }, kt = ["src"], Ct = { class: "crop-preview" }, wt = { class: "crop-footer" }, xt = /* @__PURE__ */ Ge({
@@ -295,26 +295,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
295
295
  imageSrc: {}
296
296
  },
297
297
  emits: ["update:visible", "confirm", "cancel"],
298
- setup(a, { emit: ae }) {
299
- const n = a, y = ae, u = D(n.visible), c = D(null), m = D(null), R = D(null), k = D(null), w = D({
298
+ setup(a, { emit: le }) {
299
+ const n = a, y = le, u = z(n.visible), c = z(null), m = z(null), R = z(null), k = z(null), w = z({
300
300
  x: 0,
301
301
  y: 0,
302
302
  width: 200,
303
303
  height: 200
304
- }), d = D({
304
+ }), d = z({
305
305
  width: 0,
306
306
  height: 0,
307
307
  naturalWidth: 0,
308
308
  naturalHeight: 0
309
- }), I = D({
309
+ }), I = z({
310
310
  left: 0,
311
311
  top: 0
312
- }), A = D(!1), L = D(!1), Q = D(""), B = D({ x: 0, y: 0 }), G = D({ x: 0, y: 0, width: 0, height: 0 });
313
- De(() => n.visible, (_) => {
312
+ }), A = z(!1), L = z(!1), Q = z(""), B = z({ x: 0, y: 0 }), G = z({ x: 0, y: 0, width: 0, height: 0 });
313
+ ze(() => n.visible, (_) => {
314
314
  u.value = _, _ && na(() => {
315
315
  r();
316
316
  });
317
- }), De(u, (_) => {
317
+ }), ze(u, (_) => {
318
318
  y("update:visible", _);
319
319
  });
320
320
  const he = me(() => ({
@@ -328,16 +328,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
328
328
  left: `${I.value.left}px`,
329
329
  top: `${I.value.top}px`
330
330
  })), P = me(() => {
331
- const { x: _, y: z, width: ue, height: se } = w.value;
331
+ const { x: _, y: F, width: ue, height: se } = w.value;
332
332
  return {
333
333
  clipPath: `polygon(
334
334
  0% 0%,
335
335
  0% 100%,
336
336
  ${_}px 100%,
337
- ${_}px ${z}px,
338
- ${_ + ue}px ${z}px,
339
- ${_ + ue}px ${z + se}px,
340
- ${_}px ${z + se}px,
337
+ ${_}px ${F}px,
338
+ ${_ + ue}px ${F}px,
339
+ ${_ + ue}px ${F + se}px,
340
+ ${_}px ${F + se}px,
341
341
  ${_}px 100%,
342
342
  100% 100%,
343
343
  100% 0%
@@ -345,9 +345,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
345
345
  };
346
346
  }), j = () => {
347
347
  if (!c.value || !m.value) return;
348
- const _ = c.value, z = m.value, ue = z.offsetWidth, se = z.offsetHeight, le = _.naturalWidth / _.naturalHeight, F = ue / se;
348
+ const _ = c.value, F = m.value, ue = F.offsetWidth, se = F.offsetHeight, te = _.naturalWidth / _.naturalHeight, D = ue / se;
349
349
  let T, b;
350
- le > F ? (T = ue, b = ue / le) : (b = se, T = se * le), d.value = {
350
+ te > D ? (T = ue, b = ue / te) : (b = se, T = se * te), d.value = {
351
351
  width: T,
352
352
  height: b,
353
353
  naturalWidth: _.naturalWidth,
@@ -369,27 +369,27 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
369
369
  A.value = !0, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
370
370
  }, g = (_) => {
371
371
  if (A.value) {
372
- const z = _.clientX - B.value.x, ue = _.clientY - B.value.y;
373
- let se = G.value.x + z, le = G.value.y + ue;
374
- se = Math.max(0, Math.min(se, d.value.width - w.value.width)), le = Math.max(0, Math.min(le, d.value.height - w.value.height)), w.value.x = se, w.value.y = le, de();
372
+ const F = _.clientX - B.value.x, ue = _.clientY - B.value.y;
373
+ let se = G.value.x + F, te = G.value.y + ue;
374
+ se = Math.max(0, Math.min(se, d.value.width - w.value.width)), te = Math.max(0, Math.min(te, d.value.height - w.value.height)), w.value.x = se, w.value.y = te, de();
375
375
  } else L.value && re(_);
376
376
  }, E = () => {
377
377
  A.value = !1, L.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", E);
378
- }, O = (_, z) => {
379
- L.value = !0, Q.value = z, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
378
+ }, O = (_, F) => {
379
+ L.value = !0, Q.value = F, B.value = { x: _.clientX, y: _.clientY }, G.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", E);
380
380
  }, re = (_) => {
381
- const z = _.clientX - B.value.x, ue = _.clientY - B.value.y, se = Q.value;
382
- let le = { ...G.value };
383
- const F = Math.max(Math.abs(z), Math.abs(ue)) * (z < 0 || ue < 0 ? -1 : 1);
384
- se.includes("n") && (le.y = G.value.y + F, le.height = G.value.height - F), se.includes("s") && (le.height = G.value.height + F), se.includes("w") && (le.x = G.value.x + F, le.width = G.value.width - F), se.includes("e") && (le.width = G.value.width + F);
385
- const T = Math.max(50, Math.min(le.width, le.height));
386
- se.includes("n") && (le.y = G.value.y + G.value.height - T), se.includes("w") && (le.x = G.value.x + G.value.width - T), le.width = T, le.height = T, le.x = Math.max(0, Math.min(le.x, d.value.width - le.width)), le.y = Math.max(0, Math.min(le.y, d.value.height - le.height)), w.value = le, de();
381
+ const F = _.clientX - B.value.x, ue = _.clientY - B.value.y, se = Q.value;
382
+ let te = { ...G.value };
383
+ const D = Math.max(Math.abs(F), Math.abs(ue)) * (F < 0 || ue < 0 ? -1 : 1);
384
+ se.includes("n") && (te.y = G.value.y + D, te.height = G.value.height - D), se.includes("s") && (te.height = G.value.height + D), se.includes("w") && (te.x = G.value.x + D, te.width = G.value.width - D), se.includes("e") && (te.width = G.value.width + D);
385
+ const T = Math.max(50, Math.min(te.width, te.height));
386
+ se.includes("n") && (te.y = G.value.y + G.value.height - T), se.includes("w") && (te.x = G.value.x + G.value.width - T), te.width = T, te.height = T, te.x = Math.max(0, Math.min(te.x, d.value.width - te.width)), te.y = Math.max(0, Math.min(te.y, d.value.height - te.height)), w.value = te, de();
387
387
  }, de = () => {
388
388
  if (!k.value || !c.value) return;
389
- const z = k.value.getContext("2d");
390
- if (!z) return;
389
+ const F = k.value.getContext("2d");
390
+ if (!F) return;
391
391
  const ue = d.value.naturalWidth / d.value.width;
392
- z.clearRect(0, 0, 80, 80), z.drawImage(
392
+ F.clearRect(0, 0, 80, 80), F.drawImage(
393
393
  c.value,
394
394
  w.value.x * ue,
395
395
  w.value.y * ue,
@@ -402,8 +402,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
402
402
  );
403
403
  }, W = () => {
404
404
  if (!c.value) return;
405
- const _ = document.createElement("canvas"), z = 300;
406
- _.width = z, _.height = z;
405
+ const _ = document.createElement("canvas"), F = 300;
406
+ _.width = F, _.height = F;
407
407
  const ue = _.getContext("2d");
408
408
  if (!ue) return;
409
409
  const se = d.value.naturalWidth / d.value.width;
@@ -415,19 +415,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
415
415
  w.value.height * se,
416
416
  0,
417
417
  0,
418
- z,
419
- z
420
- ), _.toBlob((le) => {
421
- le && (y("confirm", le), u.value = !1);
418
+ F,
419
+ F
420
+ ), _.toBlob((te) => {
421
+ te && (y("confirm", te), u.value = !1);
422
422
  }, "image/jpeg", 0.9);
423
423
  }, x = () => {
424
424
  y("cancel");
425
425
  };
426
- return (_, z) => {
426
+ return (_, F) => {
427
427
  const ue = M("t-button"), se = M("t-dialog");
428
428
  return l(), Y(se, {
429
429
  visible: u.value,
430
- "onUpdate:visible": z[10] || (z[10] = (le) => u.value = le),
430
+ "onUpdate:visible": F[10] || (F[10] = (te) => u.value = te),
431
431
  header: "裁剪头像",
432
432
  width: 500,
433
433
  footer: !1,
@@ -453,9 +453,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
453
453
  class: "crop-image",
454
454
  draggable: "false",
455
455
  onLoad: j,
456
- onDragstart: z[0] || (z[0] = Ze(() => {
456
+ onDragstart: F[0] || (F[0] = Ze(() => {
457
457
  }, ["prevent"])),
458
- onContextmenu: z[1] || (z[1] = Ze(() => {
458
+ onContextmenu: F[1] || (F[1] = Ze(() => {
459
459
  }, ["prevent"]))
460
460
  }, null, 40, kt),
461
461
  e("div", {
@@ -467,8 +467,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
467
467
  style: Qe(he.value),
468
468
  onMousedown: S
469
469
  }, [
470
- z[11] || (z[11] = e("div", { class: "crop-box-border" }, null, -1)),
471
- z[12] || (z[12] = e("div", { class: "crop-box-grid" }, [
470
+ F[11] || (F[11] = e("div", { class: "crop-box-border" }, null, -1)),
471
+ F[12] || (F[12] = e("div", { class: "crop-box-grid" }, [
472
472
  e("div", {
473
473
  class: "grid-line grid-line-h",
474
474
  style: { top: "33.33%" }
@@ -488,41 +488,41 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
488
488
  ], -1)),
489
489
  e("div", {
490
490
  class: "resize-handle handle-nw",
491
- onMousedown: z[2] || (z[2] = Ze((le) => O(le, "nw"), ["stop"]))
491
+ onMousedown: F[2] || (F[2] = Ze((te) => O(te, "nw"), ["stop"]))
492
492
  }, null, 32),
493
493
  e("div", {
494
494
  class: "resize-handle handle-n",
495
- onMousedown: z[3] || (z[3] = Ze((le) => O(le, "n"), ["stop"]))
495
+ onMousedown: F[3] || (F[3] = Ze((te) => O(te, "n"), ["stop"]))
496
496
  }, null, 32),
497
497
  e("div", {
498
498
  class: "resize-handle handle-ne",
499
- onMousedown: z[4] || (z[4] = Ze((le) => O(le, "ne"), ["stop"]))
499
+ onMousedown: F[4] || (F[4] = Ze((te) => O(te, "ne"), ["stop"]))
500
500
  }, null, 32),
501
501
  e("div", {
502
502
  class: "resize-handle handle-e",
503
- onMousedown: z[5] || (z[5] = Ze((le) => O(le, "e"), ["stop"]))
503
+ onMousedown: F[5] || (F[5] = Ze((te) => O(te, "e"), ["stop"]))
504
504
  }, null, 32),
505
505
  e("div", {
506
506
  class: "resize-handle handle-se",
507
- onMousedown: z[6] || (z[6] = Ze((le) => O(le, "se"), ["stop"]))
507
+ onMousedown: F[6] || (F[6] = Ze((te) => O(te, "se"), ["stop"]))
508
508
  }, null, 32),
509
509
  e("div", {
510
510
  class: "resize-handle handle-s",
511
- onMousedown: z[7] || (z[7] = Ze((le) => O(le, "s"), ["stop"]))
511
+ onMousedown: F[7] || (F[7] = Ze((te) => O(te, "s"), ["stop"]))
512
512
  }, null, 32),
513
513
  e("div", {
514
514
  class: "resize-handle handle-sw",
515
- onMousedown: z[8] || (z[8] = Ze((le) => O(le, "sw"), ["stop"]))
515
+ onMousedown: F[8] || (F[8] = Ze((te) => O(te, "sw"), ["stop"]))
516
516
  }, null, 32),
517
517
  e("div", {
518
518
  class: "resize-handle handle-w",
519
- onMousedown: z[9] || (z[9] = Ze((le) => O(le, "w"), ["stop"]))
519
+ onMousedown: F[9] || (F[9] = Ze((te) => O(te, "w"), ["stop"]))
520
520
  }, null, 32)
521
521
  ], 36)
522
522
  ], 4)
523
523
  ], 512),
524
524
  e("div", Ct, [
525
- z[13] || (z[13] = e("div", { class: "preview-title" }, "预览", -1)),
525
+ F[13] || (F[13] = e("div", { class: "preview-title" }, "预览", -1)),
526
526
  e("canvas", {
527
527
  ref_key: "previewCanvasRef",
528
528
  ref: k,
@@ -537,7 +537,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
537
537
  variant: "outline",
538
538
  onClick: x
539
539
  }, {
540
- default: i(() => [...z[14] || (z[14] = [
540
+ default: i(() => [...F[14] || (F[14] = [
541
541
  U("取消", -1)
542
542
  ])]),
543
543
  _: 1
@@ -546,7 +546,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
546
546
  theme: "primary",
547
547
  onClick: W
548
548
  }, {
549
- default: i(() => [...z[15] || (z[15] = [
549
+ default: i(() => [...F[15] || (F[15] = [
550
550
  U("确认", -1)
551
551
  ])]),
552
552
  _: 1
@@ -558,7 +558,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
558
558
  }, 8, ["visible"]);
559
559
  };
560
560
  }
561
- }), $t = /* @__PURE__ */ aa(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Mt = { class: "profile__header" }, zt = { class: "profile__avatar-wrapper" }, Ft = ["src"], Dt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
561
+ }), $t = /* @__PURE__ */ aa(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Mt = { class: "profile__header" }, Ft = { class: "profile__avatar-wrapper" }, Dt = ["src"], zt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
562
562
  key: 0,
563
563
  class: "profile__alias editable"
564
564
  }, Rt = {
@@ -592,8 +592,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
592
592
  inlineEdit: { type: Boolean, default: !1 }
593
593
  },
594
594
  emits: ["edit", "email", "update:modelValue", "field-change", "avatar-upload"],
595
- setup(a, { emit: ae }) {
596
- const n = a, y = ae, u = D(null), c = D(""), m = D(null), R = D(null), k = D(!1), w = D(""), d = (j, r) => {
595
+ setup(a, { emit: le }) {
596
+ const n = a, y = le, u = z(null), c = z(""), m = z(null), R = z(null), k = z(!1), w = z(""), d = (j, r) => {
597
597
  u.value = j, c.value = r, na(() => {
598
598
  var S;
599
599
  return (S = m.value) == null ? void 0 : S.focus();
@@ -647,13 +647,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
647
647
  ]),
648
648
  e("div", St, [
649
649
  e("div", Mt, [
650
- e("div", zt, [
650
+ e("div", Ft, [
651
651
  a.modelValue.avatar ? (l(), o("img", {
652
652
  key: 0,
653
653
  class: "profile__avatar",
654
654
  src: a.modelValue.avatar,
655
655
  alt: "avatar"
656
- }, null, 8, Ft)) : (l(), o("div", {
656
+ }, null, 8, Dt)) : (l(), o("div", {
657
657
  key: 1,
658
658
  class: "profile__avatar profile__avatar-placeholder",
659
659
  style: Qe({ backgroundColor: P.value })
@@ -675,7 +675,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
675
675
  onChange: L
676
676
  }, null, 544)
677
677
  ]),
678
- e("div", Dt, [
678
+ e("div", zt, [
679
679
  e("div", At, [
680
680
  U(V(a.modelValue.displayName) + " ", 1),
681
681
  a.inlineEdit ? (l(), o(fe, { key: 0 }, [
@@ -685,7 +685,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
685
685
  "onUpdate:modelValue": r[0] || (r[0] = (O) => c.value = O),
686
686
  class: "inline-input inline-input--sm",
687
687
  onBlur: I,
688
- onKeyup: za(I, ["enter"]),
688
+ onKeyup: Fa(I, ["enter"]),
689
689
  ref_key: "editInput",
690
690
  ref: m
691
691
  }, null, 544), [
@@ -747,7 +747,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
747
747
  "onUpdate:modelValue": r[3] || (r[3] = (O) => c.value = O),
748
748
  class: "inline-input",
749
749
  onBlur: I,
750
- onKeyup: za(I, ["enter"]),
750
+ onKeyup: Fa(I, ["enter"]),
751
751
  ref_key: "editInput",
752
752
  ref: m
753
753
  }, null, 544)), [
@@ -773,7 +773,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
773
773
  "onUpdate:modelValue": r[6] || (r[6] = (O) => c.value = O),
774
774
  class: "inline-input",
775
775
  onBlur: I,
776
- onKeyup: za(I, ["enter"]),
776
+ onKeyup: Fa(I, ["enter"]),
777
777
  ref_key: "editInput",
778
778
  ref: m
779
779
  }, null, 544)), [
@@ -795,7 +795,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
795
795
  "onUpdate:modelValue": r[8] || (r[8] = (O) => c.value = O),
796
796
  class: "inline-input",
797
797
  onBlur: I,
798
- onKeyup: za(I, ["enter"]),
798
+ onKeyup: Fa(I, ["enter"]),
799
799
  ref_key: "editInput",
800
800
  ref: m
801
801
  }, null, 544)), [
@@ -830,7 +830,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
830
830
  "onUpdate:modelValue": r[10] || (r[10] = (O) => c.value = O),
831
831
  class: "inline-input inline-input--full",
832
832
  onBlur: I,
833
- onKeyup: za(I, ["enter"]),
833
+ onKeyup: Fa(I, ["enter"]),
834
834
  ref_key: "editInput",
835
835
  ref: m
836
836
  }, null, 544)), [
@@ -899,11 +899,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
899
899
  inlineEdit: { type: Boolean, default: !1 }
900
900
  },
901
901
  emits: ["update:visible", "close", "nav-click", "edit", "field-change", "avatar-upload", "logout"],
902
- setup(a, { emit: ae }) {
903
- const n = a, y = ae, u = D(n.visible), c = D(n.defaultPanel);
904
- De(() => n.visible, (I) => {
902
+ setup(a, { emit: le }) {
903
+ const n = a, y = le, u = z(n.visible), c = z(n.defaultPanel);
904
+ ze(() => n.visible, (I) => {
905
905
  u.value = I, I && (c.value = n.defaultPanel);
906
- }), De(u, (I) => {
906
+ }), ze(u, (I) => {
907
907
  y("update:visible", I);
908
908
  });
909
909
  const m = () => {
@@ -1008,8 +1008,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1008
1008
  inlineEdit: { type: Boolean, default: !1 }
1009
1009
  },
1010
1010
  emits: ["status-change", "menu-click", "edit", "field-change", "avatar-upload", "logout"],
1011
- setup(a, { emit: ae }) {
1012
- const n = a, y = ae, u = D(!1), c = D(!1), m = D("profile"), R = D(!1), k = D(n.status), w = me(() => k.value === "dnd" ? "status-badge--dnd" : k.value === "mute" ? "status-badge--mute" : "status-badge--online"), d = me(() => k.value === "dnd" ? "请勿打扰" : k.value === "mute" ? "静音" : "在线"), I = me(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), A = me(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), L = me(() => n.theme !== "light" ? "#fff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), Q = me(() => getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), B = () => {
1011
+ setup(a, { emit: le }) {
1012
+ const n = a, y = le, u = z(!1), c = z(!1), m = z("profile"), R = z(!1), k = z(n.status), w = me(() => k.value === "dnd" ? "status-badge--dnd" : k.value === "mute" ? "status-badge--mute" : "status-badge--online"), d = me(() => k.value === "dnd" ? "请勿打扰" : k.value === "mute" ? "静音" : "在线"), I = me(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), A = me(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), L = me(() => n.theme !== "light" ? "#fff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), Q = me(() => getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), B = () => {
1013
1013
  R.value = !R.value;
1014
1014
  }, G = (g) => {
1015
1015
  k.value = g, R.value = !1, y("status-change", g);
@@ -1168,10 +1168,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1168
1168
  }, Mn = {
1169
1169
  key: 1,
1170
1170
  class: "cd-ps-search"
1171
- }, zn = {
1171
+ }, Fn = {
1172
1172
  key: 0,
1173
1173
  class: "cd-ps-org-select"
1174
- }, Fn = { class: "cd-ps-search-input" }, Dn = { class: "cd-ps-content" }, An = { class: "cd-ps-left" }, Un = {
1174
+ }, Dn = { class: "cd-ps-search-input" }, zn = { class: "cd-ps-content" }, An = { class: "cd-ps-left" }, Un = {
1175
1175
  key: 0,
1176
1176
  class: "cd-ps-search-results"
1177
1177
  }, Rn = { class: "cd-ps-search-header" }, En = {
@@ -1212,10 +1212,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1212
1212
  multiple: { type: Boolean, default: !0 }
1213
1213
  },
1214
1214
  emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
1215
- setup(a, { expose: ae, emit: n }) {
1215
+ setup(a, { expose: le, emit: n }) {
1216
1216
  var y, u;
1217
- const c = a, m = n, R = D(c.visible), k = D(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = D(null), d = D(""), I = D([]), A = D(/* @__PURE__ */ new Map()), L = D({}), Q = D(!1), B = D(!1), G = D([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), S = me(() => c.dialogWidth), g = D({});
1218
- De(() => c.tabs, (ce) => {
1217
+ const c = a, m = n, R = z(c.visible), k = z(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = z(null), d = z(""), I = z([]), A = z(/* @__PURE__ */ new Map()), L = z({}), Q = z(!1), B = z(!1), G = z([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), S = me(() => c.dialogWidth), g = z({});
1218
+ ze(() => c.tabs, (ce) => {
1219
1219
  if (ce && ce.length > 0) {
1220
1220
  const N = {};
1221
1221
  ce.forEach((h) => {
@@ -1232,11 +1232,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1232
1232
  } else
1233
1233
  I.value = [], A.value.clear();
1234
1234
  }
1235
- De(() => c.modelValue, (ce) => {
1235
+ ze(() => c.modelValue, (ce) => {
1236
1236
  R.value && ce && E();
1237
- }, { deep: !0 }), De(() => c.visible, (ce) => {
1237
+ }, { deep: !0 }), ze(() => c.visible, (ce) => {
1238
1238
  R.value = ce, ce && (E(), c.organizations.length > 0 && !w.value && (w.value = c.organizations[0].id));
1239
- }), De(R, (ce) => {
1239
+ }), ze(R, (ce) => {
1240
1240
  m("update:visible", ce);
1241
1241
  });
1242
1242
  function O(ce, N) {
@@ -1246,8 +1246,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1246
1246
  for (const h of ce) {
1247
1247
  if (h.id === N) return h;
1248
1248
  if (h.children) {
1249
- const ze = re(h.children, N);
1250
- if (ze) return ze;
1249
+ const Fe = re(h.children, N);
1250
+ if (Fe) return Fe;
1251
1251
  }
1252
1252
  }
1253
1253
  return null;
@@ -1261,7 +1261,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1261
1261
  }
1262
1262
  const _ = () => {
1263
1263
  d.value = "";
1264
- }, z = (ce) => {
1264
+ }, F = (ce) => {
1265
1265
  const N = {};
1266
1266
  c.tabs.forEach((h) => {
1267
1267
  N[h.key] = [];
@@ -1270,30 +1270,30 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1270
1270
  let ue = null;
1271
1271
  const se = () => {
1272
1272
  if (ue && clearTimeout(ue), !d.value.trim()) {
1273
- F();
1273
+ D();
1274
1274
  return;
1275
1275
  }
1276
- Q.value = !0, B.value = !0, ue = setTimeout(() => le(), 300);
1277
- }, le = () => {
1276
+ Q.value = !0, B.value = !0, ue = setTimeout(() => te(), 300);
1277
+ }, te = () => {
1278
1278
  G.value = [];
1279
1279
  const ce = (N) => {
1280
1280
  G.value = N.map((h) => ({ ...h, isUser: !0 })), B.value = !1;
1281
1281
  };
1282
1282
  m("search", { keyword: d.value, orgId: w.value || void 0, callback: ce });
1283
- }, F = () => {
1283
+ }, D = () => {
1284
1284
  ue && (clearTimeout(ue), ue = null), Q.value = !1, d.value = "", G.value = [], B.value = !1;
1285
1285
  }, T = (ce) => {
1286
1286
  I.value.indexOf(ce.id) > -1 ? x(ce.id) : (c.multiple || (I.value = [], A.value.clear()), W(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId: w.value }), c.multiple || ge());
1287
1287
  };
1288
1288
  function b(ce) {
1289
- const N = [], h = (ze) => {
1290
- for (const Ye of ze)
1289
+ const N = [], h = (Fe) => {
1290
+ for (const Ye of Fe)
1291
1291
  N.push(Ye.id), Ye.children && h(Ye.children);
1292
1292
  };
1293
1293
  return h(ce), N;
1294
1294
  }
1295
1295
  const q = (ce, N) => {
1296
- var h, ze;
1296
+ var h, Fe;
1297
1297
  const Ye = N == null ? void 0 : N.node;
1298
1298
  if (Ye) {
1299
1299
  const Ue = Ye.value ?? ((h = Ye.data) == null ? void 0 : h.id);
@@ -1301,7 +1301,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1301
1301
  if (Ye.checked) {
1302
1302
  c.multiple || (I.value = [], A.value.clear());
1303
1303
  const Ne = c.tabs.find((Ee) => Ee.key === k.value), Me = Ne ? Ne.name.replace(/^按/, "") : "";
1304
- W(Ue, { ...Ye.data, typeName: Me, orgId: w.value }), !c.multiple && (ze = Ye.data) != null && ze.isUser && ge();
1304
+ W(Ue, { ...Ye.data, typeName: Me, orgId: w.value }), !c.multiple && (Fe = Ye.data) != null && Fe.isUser && ge();
1305
1305
  } else
1306
1306
  x(Ue);
1307
1307
  return;
@@ -1311,26 +1311,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1311
1311
  I.value = [...ee, ...ce];
1312
1312
  };
1313
1313
  function ie(ce, N, h) {
1314
- for (const ze of ce) {
1315
- if (ze.id === N)
1316
- return ze.children = ze.children || [], ze.children.push(...h), ze.loaded = !0, !0;
1317
- if (ze.children && ie(ze.children, N, h))
1314
+ for (const Fe of ce) {
1315
+ if (Fe.id === N)
1316
+ return Fe.children = Fe.children || [], Fe.children.push(...h), Fe.loaded = !0, !0;
1317
+ if (Fe.children && ie(Fe.children, N, h))
1318
1318
  return !0;
1319
1319
  }
1320
1320
  return !1;
1321
1321
  }
1322
1322
  async function be(ce, N) {
1323
- const h = ce.value, ze = L.value[N];
1323
+ const h = ce.value, Fe = L.value[N];
1324
1324
  m("load-users", { tabKey: N, nodeId: h, node: ce, callback: async (Ye) => {
1325
1325
  if (Ye.length > 0) {
1326
1326
  const ke = Ye.map((ee) => {
1327
1327
  const { id: Ue, name: Ne, ...Me } = ee;
1328
1328
  return { ...Me, id: Ue, name: ee.displayName || Ne, isUser: !0 };
1329
1329
  }), X = g.value[N];
1330
- if (X && ie(X, h, ke), ze) {
1331
- ze.appendTo(h, ke), ce.data.loaded = !0, await na();
1330
+ if (X && ie(X, h, ke), Fe) {
1331
+ Fe.appendTo(h, ke), ce.data.loaded = !0, await na();
1332
1332
  try {
1333
- ze.setItem(h, { expanded: !0 });
1333
+ Fe.setItem(h, { expanded: !0 });
1334
1334
  } catch {
1335
1335
  }
1336
1336
  }
@@ -1353,20 +1353,20 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1353
1353
  }, Ae = () => {
1354
1354
  R.value = !1;
1355
1355
  };
1356
- return ae({
1356
+ return le({
1357
1357
  clearSelection: Ce,
1358
1358
  appendUsers: (ce, N, h) => {
1359
- const ze = L.value[ce];
1360
- if (ze && h.length > 0) {
1359
+ const Fe = L.value[ce];
1360
+ if (Fe && h.length > 0) {
1361
1361
  const Ye = h.map((ke) => {
1362
1362
  const { id: X, name: ee, ...Ue } = ke;
1363
1363
  return { ...Ue, id: X, name: ke.displayName || ee, isUser: !0 };
1364
1364
  });
1365
- ze.appendTo(N, Ye);
1365
+ Fe.appendTo(N, Ye);
1366
1366
  }
1367
1367
  }
1368
1368
  }), (ce, N) => {
1369
- const h = M("t-icon"), ze = M("t-option"), Ye = M("t-select"), ke = M("t-input"), X = M("t-button"), ee = M("t-loading"), Ue = M("t-checkbox"), Ne = M("t-tree"), Me = M("t-tab-panel"), Ee = M("t-tabs"), ra = M("t-dialog");
1369
+ const h = M("t-icon"), Fe = M("t-option"), Ye = M("t-select"), ke = M("t-input"), X = M("t-button"), ee = M("t-loading"), Ue = M("t-checkbox"), Ne = M("t-tree"), Me = M("t-tab-panel"), Ee = M("t-tabs"), ra = M("t-dialog");
1370
1370
  return l(), Y(ra, {
1371
1371
  visible: R.value,
1372
1372
  "onUpdate:visible": N[4] || (N[4] = (oe) => R.value = oe),
@@ -1385,16 +1385,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1385
1385
  e("span", null, V(P.value), 1)
1386
1386
  ])) : H("", !0),
1387
1387
  j.value ? (l(), o("div", Mn, [
1388
- r.value && J.value.length > 0 ? (l(), o("div", zn, [
1388
+ r.value && J.value.length > 0 ? (l(), o("div", Fn, [
1389
1389
  s(Ye, {
1390
1390
  modelValue: w.value,
1391
1391
  "onUpdate:modelValue": N[0] || (N[0] = (oe) => w.value = oe),
1392
1392
  placeholder: "选择组织",
1393
1393
  style: { width: "200px" },
1394
- onChange: z
1394
+ onChange: F
1395
1395
  }, {
1396
1396
  default: i(() => [
1397
- (l(!0), o(fe, null, _e(J.value, (oe) => (l(), Y(ze, {
1397
+ (l(!0), o(fe, null, _e(J.value, (oe) => (l(), Y(Fe, {
1398
1398
  key: oe.id,
1399
1399
  value: oe.id,
1400
1400
  label: oe.displayName || oe.name
@@ -1403,14 +1403,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1403
1403
  _: 1
1404
1404
  }, 8, ["modelValue"])
1405
1405
  ])) : H("", !0),
1406
- e("div", Fn, [
1406
+ e("div", Dn, [
1407
1407
  s(ke, {
1408
1408
  modelValue: d.value,
1409
1409
  "onUpdate:modelValue": N[1] || (N[1] = (oe) => d.value = oe),
1410
1410
  placeholder: "输入手机号/工号/姓名/部门/职位搜索",
1411
1411
  clearable: "",
1412
1412
  onInput: se,
1413
- onClear: F
1413
+ onClear: D
1414
1414
  }, {
1415
1415
  "prefix-icon": i(() => [
1416
1416
  s(h, { name: "search" })
@@ -1419,7 +1419,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1419
1419
  }, 8, ["modelValue"])
1420
1420
  ])
1421
1421
  ])) : H("", !0),
1422
- e("div", Dn, [
1422
+ e("div", zn, [
1423
1423
  e("div", An, [
1424
1424
  Q.value ? (l(), o("div", Un, [
1425
1425
  e("div", Rn, [
@@ -1427,7 +1427,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1427
1427
  s(X, {
1428
1428
  size: "small",
1429
1429
  variant: "text",
1430
- onClick: F
1430
+ onClick: D
1431
1431
  }, {
1432
1432
  default: i(() => [...N[5] || (N[5] = [
1433
1433
  U("返回", -1)
@@ -1488,7 +1488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1488
1488
  ((ia = g.value[oe.key]) == null ? void 0 : ia.length) > 0 ? (l(), Y(Ne, {
1489
1489
  key: 0,
1490
1490
  ref_for: !0,
1491
- ref: (Fe) => O(oe.key, Fe),
1491
+ ref: (De) => O(oe.key, De),
1492
1492
  data: g.value[oe.key],
1493
1493
  keys: { value: "id", label: "name", children: "children" },
1494
1494
  hover: "",
@@ -1497,26 +1497,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1497
1497
  value: I.value,
1498
1498
  onChange: q
1499
1499
  }, {
1500
- label: i(({ node: Fe }) => {
1500
+ label: i(({ node: De }) => {
1501
1501
  var sa;
1502
1502
  return [
1503
1503
  e("div", {
1504
- class: Ve(["cd-ps-node", { "cd-ps-node-user": Fe.data.isUser }])
1504
+ class: Ve(["cd-ps-node", { "cd-ps-node-user": De.data.isUser }])
1505
1505
  }, [
1506
1506
  s(h, {
1507
- name: Fe.data.isUser ? "user" : oe.icon || "folder"
1507
+ name: De.data.isUser ? "user" : oe.icon || "folder"
1508
1508
  }, null, 8, ["name"]),
1509
1509
  e("span", Hn, [
1510
- U(V(Fe.label) + " ", 1),
1511
- Fe.data.isUser && Fe.data.position ? (l(), o("span", Jn, V(Fe.data.position), 1)) : H("", !0)
1510
+ U(V(De.label) + " ", 1),
1511
+ De.data.isUser && De.data.position ? (l(), o("span", Jn, V(De.data.position), 1)) : H("", !0)
1512
1512
  ]),
1513
- Fe.data.userCount && !Fe.data.isUser ? (l(), o("span", Kn, "(" + V(Fe.data.userCount) + ")", 1)) : H("", !0),
1514
- !Fe.data.isUser && !((sa = Fe.data.children) != null && sa.length) && !Fe.data.loaded ? (l(), Y(X, {
1513
+ De.data.userCount && !De.data.isUser ? (l(), o("span", Kn, "(" + V(De.data.userCount) + ")", 1)) : H("", !0),
1514
+ !De.data.isUser && !((sa = De.data.children) != null && sa.length) && !De.data.loaded ? (l(), Y(X, {
1515
1515
  key: 1,
1516
1516
  size: "small",
1517
1517
  variant: "text",
1518
1518
  class: "cd-ps-load-btn",
1519
- onClick: Ze((Le) => be(Fe, oe.key), ["stop"])
1519
+ onClick: Ze((Le) => be(De, oe.key), ["stop"])
1520
1520
  }, {
1521
1521
  default: i(() => [...N[9] || (N[9] = [
1522
1522
  U("显示人员", -1)
@@ -1613,9 +1613,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1613
1613
  }, 8, ["visible", "width"]);
1614
1614
  };
1615
1615
  }
1616
- }), Sl = (a, ae) => {
1616
+ }), Sl = (a, le) => {
1617
1617
  const n = a.__vccOpts || a;
1618
- for (const [y, u] of ae)
1618
+ for (const [y, u] of le)
1619
1619
  n[y] = u;
1620
1620
  return n;
1621
1621
  }, Ml = /* @__PURE__ */ Sl(fo, [["__scopeId", "data-v-1e0585c3"]]), mo = { class: "cd-input-select" }, vo = { class: "cd-input-select__option-content" }, po = {
@@ -1639,8 +1639,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1639
1639
  showSelector: { type: Boolean, default: !0 }
1640
1640
  },
1641
1641
  emits: ["update:modelValue", "search", "load-users"],
1642
- setup(a, { emit: ae }) {
1643
- const n = a, y = ae, u = D(!1), c = D([]), m = D(void 0), R = D(!1), k = D([]), w = D([]), d = D(!1), I = me(() => {
1642
+ setup(a, { emit: le }) {
1643
+ const n = a, y = le, u = z(!1), c = z([]), m = z(void 0), R = z(!1), k = z([]), w = z([]), d = z(!1), I = me(() => {
1644
1644
  const g = new Set(w.value.map((E) => E.id));
1645
1645
  return [
1646
1646
  ...w.value,
@@ -1720,7 +1720,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1720
1720
  callback: g.callback
1721
1721
  });
1722
1722
  };
1723
- return De(() => n.modelValue, (g) => {
1723
+ return ze(() => n.modelValue, (g) => {
1724
1724
  n.multiple ? m.value = g.map((E) => E.id) : m.value = g.length > 0 ? g[0].id : void 0, k.value = g.map((E) => E.id), w.value = g;
1725
1725
  }, { immediate: !0, deep: !0 }), (g, E) => {
1726
1726
  const O = M("t-icon"), re = M("t-tag"), de = M("t-option"), W = M("t-select");
@@ -1840,7 +1840,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1840
1840
  }, So = {
1841
1841
  key: 0,
1842
1842
  class: "cd-users-list-dialog"
1843
- }, Mo = { class: "cd-users-list-dialog__header" }, zo = ["src", "alt"], Fo = { class: "cd-users-list-dialog__name" }, Do = { class: "cd-users-list-dialog__actions" }, Ao = { class: "cd-users-list-dialog__details" }, Uo = {
1843
+ }, Mo = { class: "cd-users-list-dialog__header" }, Fo = ["src", "alt"], Do = { class: "cd-users-list-dialog__name" }, zo = { class: "cd-users-list-dialog__actions" }, Ao = { class: "cd-users-list-dialog__details" }, Uo = {
1844
1844
  key: 0,
1845
1845
  class: "cd-users-list-dialog__item"
1846
1846
  }, Ro = { class: "cd-users-list-dialog__value" }, Eo = {
@@ -1887,12 +1887,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1887
1887
  deptMembersData: {}
1888
1888
  },
1889
1889
  emits: ["user-click", "action", "email-click", "mobile-view", "person-select", "load-users", "search", "dept-click"],
1890
- setup(a, { emit: ae }) {
1890
+ setup(a, { emit: le }) {
1891
1891
  Ol((T) => ({
1892
1892
  v2e8fe560: `${G.value}px`,
1893
1893
  v959986c2: `-${G.value}px`
1894
1894
  }));
1895
- const n = a, y = ae, u = D(!1), c = D(null), m = D("bottom"), R = D({}), k = D(!1), w = D(!1), d = D([]), I = D(!1), A = D(null), L = D({}), Q = D([]), B = me(() => ({
1895
+ const n = a, y = le, u = z(!1), c = z(null), m = z("bottom"), R = z({}), k = z(!1), w = z(!1), d = z([]), I = z(!1), A = z(null), L = z({}), Q = z([]), B = me(() => ({
1896
1896
  width: `${n.avatarSize}px`,
1897
1897
  height: `${n.avatarSize}px`,
1898
1898
  fontSize: `${Math.floor(n.avatarSize / 3)}px`
@@ -1957,20 +1957,20 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1957
1957
  overflow: "auto",
1958
1958
  zIndex: 9999
1959
1959
  }, I.value = !0, y("dept-click", T);
1960
- }, z = () => {
1960
+ }, F = () => {
1961
1961
  I.value = !1, Q.value = [];
1962
1962
  }, ue = () => {
1963
1963
  w.value = !0;
1964
1964
  }, se = (T) => {
1965
1965
  y("person-select", T), w.value = !1;
1966
- }, le = (T) => {
1966
+ }, te = (T) => {
1967
1967
  y("load-users", T);
1968
- }, F = (T) => {
1968
+ }, D = (T) => {
1969
1969
  y("search", T);
1970
1970
  };
1971
- return De(() => n.deptMembersData, (T) => {
1971
+ return ze(() => n.deptMembersData, (T) => {
1972
1972
  T && (Q.value = T);
1973
- }), Da(() => {
1973
+ }), za(() => {
1974
1974
  document.addEventListener("click", x);
1975
1975
  }), gl(() => {
1976
1976
  document.removeEventListener("click", x);
@@ -2114,14 +2114,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2114
2114
  src: c.value.avatar,
2115
2115
  class: "cd-users-list-dialog__avatar",
2116
2116
  alt: c.value.name
2117
- }, null, 8, zo)) : (l(), o("div", {
2117
+ }, null, 8, Fo)) : (l(), o("div", {
2118
2118
  key: 1,
2119
2119
  class: "cd-users-list-dialog__avatar cd-users-list-dialog__avatar--placeholder",
2120
2120
  style: Qe({ backgroundColor: W(c.value.name) })
2121
2121
  }, V(de(c.value.name)), 5)),
2122
- e("h3", Fo, V(c.value.name), 1)
2122
+ e("h3", Do, V(c.value.name), 1)
2123
2123
  ]),
2124
- e("div", Do, [
2124
+ e("div", zo, [
2125
2125
  e("div", {
2126
2126
  class: "cd-users-list-dialog__action-btn",
2127
2127
  onClick: b[3] || (b[3] = (ge) => S("message"))
@@ -2220,7 +2220,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2220
2220
  I.value ? (l(), o("div", {
2221
2221
  key: 0,
2222
2222
  class: "cd-users-list-overlay",
2223
- onClick: z
2223
+ onClick: F
2224
2224
  }, [
2225
2225
  e("div", {
2226
2226
  class: "cd-users-list-popup-wrapper",
@@ -2280,8 +2280,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2280
2280
  "show-search": !0,
2281
2281
  tips: "选择要添加的人员",
2282
2282
  onConfirm: se,
2283
- onLoadUsers: le,
2284
- onSearch: F
2283
+ onLoadUsers: te,
2284
+ onSearch: D
2285
2285
  }, null, 8, ["visible", "modelValue", "tabs", "organizations"])) : H("", !0)
2286
2286
  ]);
2287
2287
  };
@@ -2305,9 +2305,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2305
2305
  style: { default: () => ({}) }
2306
2306
  },
2307
2307
  emits: ["update:modelValue", "change"],
2308
- setup(a, { emit: ae }) {
2309
- const n = a, y = ae, u = D(!1), c = D(null), m = D(n.modelValue);
2310
- Da(() => {
2308
+ setup(a, { emit: le }) {
2309
+ const n = a, y = le, u = z(!1), c = z(null), m = z(n.modelValue);
2310
+ za(() => {
2311
2311
  n.languages.forEach((A) => {
2312
2312
  new Image().src = A.icon;
2313
2313
  });
@@ -2319,7 +2319,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2319
2319
  }, I = (A) => {
2320
2320
  c.value && !c.value.contains(A.target) && (u.value = !1);
2321
2321
  };
2322
- return Da(() => {
2322
+ return za(() => {
2323
2323
  document.addEventListener("click", I);
2324
2324
  }), gl(() => {
2325
2325
  document.removeEventListener("click", I);
@@ -2374,7 +2374,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2374
2374
  ])) : H("", !0)
2375
2375
  ], 4));
2376
2376
  }
2377
- }), zl = /* @__PURE__ */ aa(fi, [["__scopeId", "data-v-de3f6343"]]), mi = { class: "password-dialog-content" }, vi = { class: "method-tabs" }, pi = {
2377
+ }), Fl = /* @__PURE__ */ aa(fi, [["__scopeId", "data-v-de3f6343"]]), mi = { class: "password-dialog-content" }, vi = { class: "method-tabs" }, pi = {
2378
2378
  key: 0,
2379
2379
  class: "form-content"
2380
2380
  }, gi = { class: "form-item" }, hi = { class: "form-item" }, bi = { class: "form-item" }, yi = {
@@ -2390,19 +2390,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2390
2390
  phoneReadonly: { type: Boolean, default: !0 }
2391
2391
  },
2392
2392
  emits: ["update:visible", "submit", "send-code"],
2393
- setup(a, { emit: ae }) {
2394
- const n = a, y = ae, u = D(n.visible), c = D("password"), m = D(0), R = pa({
2393
+ setup(a, { emit: le }) {
2394
+ const n = a, y = le, u = z(n.visible), c = z("password"), m = z(0), R = pa({
2395
2395
  oldPassword: "",
2396
2396
  newPassword: "",
2397
2397
  confirmPassword: "",
2398
2398
  phone: n.phone,
2399
2399
  verifyCode: ""
2400
2400
  });
2401
- De(() => n.visible, (I) => {
2401
+ ze(() => n.visible, (I) => {
2402
2402
  u.value = I, I && (R.oldPassword = "", R.newPassword = "", R.confirmPassword = "", R.phone = n.phone, R.verifyCode = "", c.value = "password", m.value = 0);
2403
- }), De(u, (I) => {
2403
+ }), ze(u, (I) => {
2404
2404
  y("update:visible", I);
2405
- }), De(() => n.phone, (I) => {
2405
+ }), ze(() => n.phone, (I) => {
2406
2406
  R.phone = I;
2407
2407
  });
2408
2408
  const k = () => {
@@ -2589,10 +2589,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2589
2589
  }, 8, ["visible", "header"]);
2590
2590
  };
2591
2591
  }
2592
- }), Si = /* @__PURE__ */ aa(Vi, [["__scopeId", "data-v-dcb0708e"]]), Mi = { class: "token-dialog-content" }, zi = {
2592
+ }), Si = /* @__PURE__ */ aa(Vi, [["__scopeId", "data-v-dcb0708e"]]), Mi = { class: "token-dialog-content" }, Fi = {
2593
2593
  key: 0,
2594
2594
  class: "enable-section"
2595
- }, Fi = { class: "qrcode-section" }, Di = { class: "qrcode-box" }, Ai = ["src"], Ui = {
2595
+ }, Di = { class: "qrcode-section" }, zi = { class: "qrcode-box" }, Ai = ["src"], Ui = {
2596
2596
  key: 1,
2597
2597
  class: "qrcode-placeholder"
2598
2598
  }, Ri = { class: "form-item" }, Ei = { class: "dialog-actions" }, Pi = {
@@ -2608,11 +2608,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2608
2608
  qrcodeUrl: { default: "" }
2609
2609
  },
2610
2610
  emits: ["update:visible", "enable", "disable"],
2611
- setup(a, { emit: ae }) {
2612
- const n = a, y = ae, u = D(n.visible), c = D("");
2613
- De(() => n.visible, (w) => {
2611
+ setup(a, { emit: le }) {
2612
+ const n = a, y = le, u = z(n.visible), c = z("");
2613
+ ze(() => n.visible, (w) => {
2614
2614
  u.value = w, w && (c.value = "");
2615
- }), De(u, (w) => {
2615
+ }), ze(u, (w) => {
2616
2616
  y("update:visible", w);
2617
2617
  });
2618
2618
  const m = () => {
@@ -2691,7 +2691,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2691
2691
  _: 1
2692
2692
  })
2693
2693
  ])
2694
- ])) : (l(), o("div", zi, [
2694
+ ])) : (l(), o("div", Fi, [
2695
2695
  d[10] || (d[10] = e("div", { class: "info-box" }, [
2696
2696
  e("i", { class: "ri-information-line" }),
2697
2697
  e("div", { class: "info-text" }, [
@@ -2699,9 +2699,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2699
2699
  e("div", { class: "info-desc" }, "动态口令是一种基于时间的一次性密码(TOTP),可以为您的账号提供额外的安全保护。启用后,登录时需要输入动态口令进行二次验证。")
2700
2700
  ])
2701
2701
  ], -1)),
2702
- e("div", Fi, [
2702
+ e("div", Di, [
2703
2703
  d[4] || (d[4] = e("div", { class: "qrcode-title" }, "扫描二维码绑定", -1)),
2704
- e("div", Di, [
2704
+ e("div", zi, [
2705
2705
  a.qrcodeUrl ? (l(), o("img", {
2706
2706
  key: 0,
2707
2707
  src: a.qrcodeUrl,
@@ -2761,11 +2761,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2761
2761
  defaultLockMethods: { default: () => ["password"] }
2762
2762
  },
2763
2763
  emits: ["update:visible", "submit"],
2764
- setup(a, { emit: ae }) {
2765
- const n = a, y = ae, u = D(n.visible), c = D(n.defaultLockTime), m = D([...n.defaultLockMethods]);
2766
- De(() => n.visible, (w) => {
2764
+ setup(a, { emit: le }) {
2765
+ const n = a, y = le, u = z(n.visible), c = z(n.defaultLockTime), m = z([...n.defaultLockMethods]);
2766
+ ze(() => n.visible, (w) => {
2767
2767
  u.value = w, w && (c.value = n.defaultLockTime, m.value = [...n.defaultLockMethods]);
2768
- }), De(u, (w) => {
2768
+ }), ze(u, (w) => {
2769
2769
  y("update:visible", w);
2770
2770
  });
2771
2771
  const R = () => {
@@ -2904,11 +2904,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2904
2904
  shortcutData: {}
2905
2905
  },
2906
2906
  emits: ["update:visible", "submit", "update"],
2907
- setup(a, { emit: ae }) {
2908
- const n = a, y = ae, u = D(n.visible), c = D(!1), m = D([]);
2909
- De(() => n.visible, (Q) => {
2907
+ setup(a, { emit: le }) {
2908
+ const n = a, y = le, u = z(n.visible), c = z(!1), m = z([]);
2909
+ ze(() => n.visible, (Q) => {
2910
2910
  u.value = Q, Q && (m.value = [], c.value = !1);
2911
- }), De(u, (Q) => {
2911
+ }), ze(u, (Q) => {
2912
2912
  y("update:visible", Q);
2913
2913
  });
2914
2914
  const R = () => {
@@ -3041,8 +3041,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3041
3041
  showLegend: { type: Boolean, default: !0 }
3042
3042
  },
3043
3043
  emits: ["item-click", "more"],
3044
- setup(a, { emit: ae }) {
3045
- const n = ae, y = { meeting: "会议", task: "待办", reminder: "提醒" }, u = { meeting: "primary", task: "success", reminder: "warning" }, c = (m) => {
3044
+ setup(a, { emit: le }) {
3045
+ const n = le, y = { meeting: "会议", task: "待办", reminder: "提醒" }, u = { meeting: "primary", task: "success", reminder: "warning" }, c = (m) => {
3046
3046
  n("item-click", m);
3047
3047
  };
3048
3048
  return (m, R) => {
@@ -3115,10 +3115,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3115
3115
  }, Ms = {
3116
3116
  key: 0,
3117
3117
  class: "task__progress"
3118
- }, zs = {
3118
+ }, Fs = {
3119
3119
  key: 0,
3120
3120
  class: "tasks__empty"
3121
- }, Fs = /* @__PURE__ */ Ge({
3121
+ }, Ds = /* @__PURE__ */ Ge({
3122
3122
  name: "CdTasksPanel",
3123
3123
  __name: "TasksPanel",
3124
3124
  props: {
@@ -3128,8 +3128,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3128
3128
  showProgress: { type: Boolean, default: !0 }
3129
3129
  },
3130
3130
  emits: ["item-click", "toggle"],
3131
- setup(a, { emit: ae }) {
3132
- const n = a, y = ae, u = D("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, m = { todo: "default", doing: "warning", done: "success" }, R = { high: "高", medium: "中", low: "低" }, k = me(() => u.value === "all" ? n.data : n.data.filter((A) => A.status === u.value)), w = (A) => {
3131
+ setup(a, { emit: le }) {
3132
+ const n = a, y = le, u = z("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, m = { todo: "default", doing: "warning", done: "success" }, R = { high: "高", medium: "中", low: "低" }, k = me(() => u.value === "all" ? n.data : n.data.filter((A) => A.status === u.value)), w = (A) => {
3133
3133
  y("item-click", A);
3134
3134
  }, d = (A) => {
3135
3135
  y("toggle", A);
@@ -3230,7 +3230,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3230
3230
  ])) : H("", !0)
3231
3231
  ])
3232
3232
  ], 8, ks))), 128)),
3233
- k.value.length ? H("", !0) : (l(), o("div", zs, [...L[8] || (L[8] = [
3233
+ k.value.length ? H("", !0) : (l(), o("div", Fs, [...L[8] || (L[8] = [
3234
3234
  e("i", { class: "ri-checkbox-circle-line" }, null, -1),
3235
3235
  e("span", null, "暂无任务", -1)
3236
3236
  ])]))
@@ -3239,7 +3239,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3239
3239
  ]);
3240
3240
  };
3241
3241
  }
3242
- }), Ds = /* @__PURE__ */ aa(Fs, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
3242
+ }), zs = /* @__PURE__ */ aa(Ds, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
3243
3243
  key: 0,
3244
3244
  class: "favorites-tabs"
3245
3245
  }, Rs = ["onClick"], Es = { class: "favorites-list" }, Ps = ["onClick"], Is = { class: "item-info" }, Os = { class: "item-title" }, Ts = { class: "item-desc" }, Ns = { class: "item-time" }, Bs = ["onClick"], qs = {
@@ -3261,7 +3261,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3261
3261
  },
3262
3262
  emits: ["item-click", "more"],
3263
3263
  setup(a) {
3264
- const ae = a, n = D("all"), y = me(() => n.value === "all" ? ae.data : ae.data.filter((u) => u.type === n.value));
3264
+ const le = a, n = z("all"), y = me(() => n.value === "all" ? le.data : le.data.filter((u) => u.type === n.value));
3265
3265
  return (u, c) => (l(), o("div", As, [
3266
3266
  e("h3", null, [
3267
3267
  c[0] || (c[0] = e("i", { class: "ri-star-line" }, null, -1)),
@@ -3316,7 +3316,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3316
3316
  },
3317
3317
  emits: ["download", "share", "copy"],
3318
3318
  setup(a) {
3319
- return (ae, n) => {
3319
+ return (le, n) => {
3320
3320
  var y;
3321
3321
  return l(), o("div", Ws, [
3322
3322
  e("h3", null, [
@@ -3342,14 +3342,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3342
3342
  e("div", Zs, [
3343
3343
  e("button", {
3344
3344
  class: "btn-outline",
3345
- onClick: (c) => ae.$emit("download", u)
3345
+ onClick: (c) => le.$emit("download", u)
3346
3346
  }, [...n[1] || (n[1] = [
3347
3347
  e("i", { class: "ri-download-line" }, null, -1),
3348
3348
  U("下载", -1)
3349
3349
  ])], 8, er),
3350
3350
  e("button", {
3351
3351
  class: "btn-outline",
3352
- onClick: (c) => ae.$emit("share", u)
3352
+ onClick: (c) => le.$emit("share", u)
3353
3353
  }, [...n[2] || (n[2] = [
3354
3354
  e("i", { class: "ri-share-line" }, null, -1),
3355
3355
  U("分享", -1)
@@ -3367,7 +3367,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3367
3367
  e("span", tr, V(u.url), 1),
3368
3368
  e("button", {
3369
3369
  class: "btn-text",
3370
- onClick: (c) => ae.$emit("copy", u.url)
3370
+ onClick: (c) => le.$emit("copy", u.url)
3371
3371
  }, [...n[3] || (n[3] = [
3372
3372
  e("i", { class: "ri-file-copy-line" }, null, -1),
3373
3373
  U("复制", -1)
@@ -3400,7 +3400,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3400
3400
  },
3401
3401
  emits: ["bind", "unbind", "switch", "add"],
3402
3402
  setup(a) {
3403
- return (ae, n) => {
3403
+ return (le, n) => {
3404
3404
  var y;
3405
3405
  return l(), o("div", sr, [
3406
3406
  e("h3", null, [
@@ -3430,12 +3430,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3430
3430
  n[2] || (n[2] = e("span", { class: "bind-status bound" }, "已绑定", -1)),
3431
3431
  e("button", {
3432
3432
  class: "btn-unbind",
3433
- onClick: (c) => ae.$emit("unbind", u)
3433
+ onClick: (c) => le.$emit("unbind", u)
3434
3434
  }, "解绑", 8, mr)
3435
3435
  ], 64)) : (l(), o("button", {
3436
3436
  key: 1,
3437
3437
  class: "btn-bind",
3438
- onClick: (c) => ae.$emit("bind", u)
3438
+ onClick: (c) => le.$emit("bind", u)
3439
3439
  }, "去绑定", 8, vr))
3440
3440
  ]))), 128))
3441
3441
  ])
@@ -3461,7 +3461,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3461
3461
  (l(!0), o(fe, null, _e(a.others, (u) => (l(), o("div", {
3462
3462
  key: u.id,
3463
3463
  class: "account-card",
3464
- onClick: (c) => ae.$emit("switch", u)
3464
+ onClick: (c) => le.$emit("switch", u)
3465
3465
  }, [
3466
3466
  e("div", {
3467
3467
  class: "account-avatar",
@@ -3480,7 +3480,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3480
3480
  ], 8, Cr))), 128)),
3481
3481
  e("div", {
3482
3482
  class: "account-card add-account",
3483
- onClick: n[0] || (n[0] = (u) => ae.$emit("add"))
3483
+ onClick: n[0] || (n[0] = (u) => le.$emit("add"))
3484
3484
  }, [...n[6] || (n[6] = [
3485
3485
  wl('<div class="account-avatar add" data-v-36d182f7><i class="ri-add-line" data-v-36d182f7></i></div><div class="account-info" data-v-36d182f7><div class="account-name" data-v-36d182f7>添加账号</div><div class="account-email" data-v-36d182f7>登录其他账号</div></div>', 2)
3486
3486
  ])])
@@ -3488,7 +3488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3488
3488
  ]);
3489
3489
  };
3490
3490
  }
3491
- }), zr = /* @__PURE__ */ aa(Mr, [["__scopeId", "data-v-36d182f7"]]), Fr = { class: "cd-usercard-panel settings-panel" }, Dr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
3491
+ }), Fr = /* @__PURE__ */ aa(Mr, [["__scopeId", "data-v-36d182f7"]]), Dr = { class: "cd-usercard-panel settings-panel" }, zr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
3492
3492
  key: 0,
3493
3493
  class: "setting-desc"
3494
3494
  }, Er = ["value", "onChange"], Pr = ["value"], Ir = {
@@ -3506,11 +3506,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3506
3506
  modelValue: {}
3507
3507
  },
3508
3508
  emits: ["update:modelValue", "change"],
3509
- setup(a, { emit: ae }) {
3510
- const n = a, y = ae, u = (c, m) => {
3509
+ setup(a, { emit: le }) {
3510
+ const n = a, y = le, u = (c, m) => {
3511
3511
  y("update:modelValue", { ...n.modelValue, [c]: m }), y("change", c, m);
3512
3512
  };
3513
- return (c, m) => (l(), o("div", Fr, [
3513
+ return (c, m) => (l(), o("div", Dr, [
3514
3514
  e("h3", null, [
3515
3515
  m[0] || (m[0] = e("i", { class: "ri-settings-3-line" }, null, -1)),
3516
3516
  U(V(a.title), 1)
@@ -3519,7 +3519,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3519
3519
  key: R.title,
3520
3520
  class: "settings-group"
3521
3521
  }, [
3522
- e("div", Dr, V(R.title), 1),
3522
+ e("div", zr, V(R.title), 1),
3523
3523
  (l(!0), o(fe, null, _e(R.items, (k) => (l(), o("div", {
3524
3524
  key: k.key,
3525
3525
  class: "setting-item"
@@ -3528,7 +3528,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3528
3528
  e("div", Ur, V(k.label), 1),
3529
3529
  k.desc ? (l(), o("div", Rr, V(k.desc), 1)) : H("", !0)
3530
3530
  ]),
3531
- k.type === "language" ? (l(), Y(zl, {
3531
+ k.type === "language" ? (l(), Y(Fl, {
3532
3532
  key: 0,
3533
3533
  languages: k.languages || [],
3534
3534
  "model-value": a.modelValue[k.key],
@@ -3576,8 +3576,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3576
3576
  securityGroups: {}
3577
3577
  },
3578
3578
  emits: ["action"],
3579
- setup(a, { emit: ae }) {
3580
- const n = ae, y = (u, c) => {
3579
+ setup(a, { emit: le }) {
3580
+ const n = le, y = (u, c) => {
3581
3581
  n("action", u, c);
3582
3582
  };
3583
3583
  return (u, c) => (l(), o("div", Lr, [
@@ -3642,8 +3642,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3642
3642
  contacts: {}
3643
3643
  },
3644
3644
  emits: ["category-click", "contact-click"],
3645
- setup(a, { emit: ae }) {
3646
- const n = ae, y = (u) => {
3645
+ setup(a, { emit: le }) {
3646
+ const n = le, y = (u) => {
3647
3647
  n("contact-click", u);
3648
3648
  };
3649
3649
  return (u, c) => {
@@ -3708,8 +3708,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3708
3708
  data: {}
3709
3709
  },
3710
3710
  emits: ["shortcut-click", "shortcut-update"],
3711
- setup(a, { emit: ae }) {
3712
- const n = a, y = ae, u = me(() => n.data.flatMap((m) => m.items)), c = (m) => {
3711
+ setup(a, { emit: le }) {
3712
+ const n = a, y = le, u = me(() => n.data.flatMap((m) => m.items)), c = (m) => {
3713
3713
  y("shortcut-click", m);
3714
3714
  };
3715
3715
  return (m, R) => {
@@ -3738,10 +3738,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3738
3738
  ]);
3739
3739
  };
3740
3740
  }
3741
- }), _d = /* @__PURE__ */ aa(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Md = { class: "info-value" }, zd = {
3741
+ }), _d = /* @__PURE__ */ aa(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Md = { class: "info-value" }, Fd = {
3742
3742
  key: 0,
3743
3743
  class: "info-item"
3744
- }, Fd = { class: "info-value" }, Dd = {
3744
+ }, Dd = { class: "info-value" }, zd = {
3745
3745
  key: 1,
3746
3746
  class: "info-item"
3747
3747
  }, Ad = { class: "info-value" }, Ud = {
@@ -3760,7 +3760,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3760
3760
  },
3761
3761
  emits: ["link-click"],
3762
3762
  setup(a) {
3763
- return (ae, n) => {
3763
+ return (le, n) => {
3764
3764
  var y;
3765
3765
  return l(), o("div", kd, [
3766
3766
  e("h3", null, [
@@ -3785,11 +3785,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3785
3785
  n[1] || (n[1] = e("span", { class: "info-label" }, "版本号", -1)),
3786
3786
  e("span", Md, V(a.data.version), 1)
3787
3787
  ]),
3788
- a.data.updateDate ? (l(), o("div", zd, [
3788
+ a.data.updateDate ? (l(), o("div", Fd, [
3789
3789
  n[2] || (n[2] = e("span", { class: "info-label" }, "更新日期", -1)),
3790
- e("span", Fd, V(a.data.updateDate), 1)
3790
+ e("span", Dd, V(a.data.updateDate), 1)
3791
3791
  ])) : H("", !0),
3792
- a.data.team ? (l(), o("div", Dd, [
3792
+ a.data.team ? (l(), o("div", zd, [
3793
3793
  n[3] || (n[3] = e("span", { class: "info-label" }, "开发团队", -1)),
3794
3794
  e("span", Ad, V(a.data.team), 1)
3795
3795
  ])) : H("", !0)
@@ -3798,7 +3798,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3798
3798
  (l(!0), o(fe, null, _e(a.links, (u) => (l(), o("a", {
3799
3799
  key: u.url,
3800
3800
  href: u.url,
3801
- onClick: Ze((c) => ae.$emit("link-click", u), ["prevent"])
3801
+ onClick: Ze((c) => le.$emit("link-click", u), ["prevent"])
3802
3802
  }, [
3803
3803
  e("i", {
3804
3804
  class: Ve(u.icon)
@@ -3813,10 +3813,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3813
3813
  }), Id = /* @__PURE__ */ aa(Pd, [["__scopeId", "data-v-3bbea5ac"]]);
3814
3814
  ta($l);
3815
3815
  ta(gs);
3816
- ta(Ds);
3816
+ ta(zs);
3817
3817
  ta(js);
3818
3818
  ta(ir);
3819
- ta(zr);
3819
+ ta(Fr);
3820
3820
  ta(qr);
3821
3821
  ta(ed);
3822
3822
  ta(fd);
@@ -3826,7 +3826,7 @@ const Od = ta(yt);
3826
3826
  ta(Vl);
3827
3827
  ta($n);
3828
3828
  const pl = ta(ti);
3829
- ta(zl);
3829
+ ta(Fl);
3830
3830
  ta(Si);
3831
3831
  ta(Ni);
3832
3832
  ta(Yi);
@@ -3862,15 +3862,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3862
3862
  cdFormConfig: { default: () => ({ formData: null, columnData: null }) }
3863
3863
  },
3864
3864
  emits: ["update:value", "change", "search", "dialog-search", "dialog-page-change", "advanced-select", "row-select"],
3865
- setup(a, { emit: ae }) {
3866
- const n = a, y = ae, u = D(""), c = D([]), m = D([]), R = D(!1), k = D(null), w = () => {
3867
- var F;
3868
- (F = k.value) == null || F.focus();
3865
+ setup(a, { emit: le }) {
3866
+ const n = a, y = le, u = z(""), c = z([]), m = z([]), R = z(!1), k = z(null), w = () => {
3867
+ var D;
3868
+ (D = k.value) == null || D.focus();
3869
3869
  }, d = () => {
3870
3870
  S(u.value);
3871
- }, I = (F) => {
3872
- c.value.splice(F, 1), m.value.splice(F, 1), u.value = "", E();
3873
- }, A = D(!1), L = D([]), Q = D([]);
3871
+ }, I = (D) => {
3872
+ c.value.splice(D, 1), m.value.splice(D, 1), u.value = "", E();
3873
+ }, A = z(!1), L = z([]), Q = z([]);
3874
3874
  let B = null;
3875
3875
  const G = me(() => !n.formType || !["basic", "tree", "form", "workflow"].includes(n.formType) ? n.searchFields || [] : n.formType === "basic" || n.formType === "tree" ? ["fnumber", "fname"] : n.formType === "form" || n.formType === "workflow" ? ["fbillno"] : []), he = me(() => {
3876
3876
  var b, q;
@@ -3880,16 +3880,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3880
3880
  return "fbillno";
3881
3881
  const T = (n.searchFields || []).find((ie) => /name|fname/i.test(ie));
3882
3882
  return T || (n.columnOptions && n.columnOptions.length > 1 ? n.columnOptions[1].value : ((q = (b = n.columnOptions) == null ? void 0 : b[0]) == null ? void 0 : q.value) || "fname");
3883
- }), J = (F) => {
3883
+ }), J = (D) => {
3884
3884
  const T = he.value;
3885
- return String(F[T] || F[T == null ? void 0 : T.toUpperCase()] || F.FNAME || F.fname || F.fid || F.id || "");
3885
+ return String(D[T] || D[T == null ? void 0 : T.toUpperCase()] || D.FNAME || D.fname || D.fid || D.id || "");
3886
3886
  }, P = me(() => {
3887
3887
  if (!n.columnOptions || n.columnOptions.length === 0)
3888
3888
  return [];
3889
- const F = G.value;
3890
- if (F && F.length > 0) {
3889
+ const D = G.value;
3890
+ if (D && D.length > 0) {
3891
3891
  const T = n.columnOptions.filter(
3892
- (b) => F.includes(b.value)
3892
+ (b) => D.includes(b.value)
3893
3893
  );
3894
3894
  if (T.length > 0)
3895
3895
  return T.map((b) => ({
@@ -3903,18 +3903,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3903
3903
  title: T.label,
3904
3904
  ellipsis: !0
3905
3905
  }));
3906
- }), j = me(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((F) => {
3906
+ }), j = me(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((D) => {
3907
3907
  const T = {};
3908
- for (const b of Object.keys(F)) {
3909
- T[b] = F[b];
3908
+ for (const b of Object.keys(D)) {
3909
+ T[b] = D[b];
3910
3910
  const q = b.toLowerCase();
3911
- q !== b && T[q] === void 0 && (T[q] = F[b]);
3911
+ q !== b && T[q] === void 0 && (T[q] = D[b]);
3912
3912
  }
3913
3913
  return T;
3914
- })), r = D({});
3915
- De(() => n.searchResults, (F) => {
3916
- if (!(!F || F.length === 0)) {
3917
- for (const T of F) {
3914
+ })), r = z({});
3915
+ ze(() => n.searchResults, (D) => {
3916
+ if (!(!D || D.length === 0)) {
3917
+ for (const T of D) {
3918
3918
  const b = String(T.fid ?? T.id ?? ""), q = J(T);
3919
3919
  b && (r.value[b] = q);
3920
3920
  }
@@ -3923,78 +3923,78 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3923
3923
  m.value = T, u.value = T.join(", ");
3924
3924
  }
3925
3925
  }
3926
- }, { deep: !0 }), De(() => n.value, (F) => {
3926
+ }, { deep: !0 }), ze(() => n.value, (D) => {
3927
3927
  var T, b, q, ie;
3928
- if (F != null && F !== "") {
3929
- if (typeof F == "number") {
3930
- const be = String(F);
3928
+ if (D != null && D !== "") {
3929
+ if (typeof D == "number") {
3930
+ const be = String(D);
3931
3931
  if (c.value = [be], n.releaseId) {
3932
3932
  const we = r.value[be] && r.value[be].trim() ? r.value[be] : be;
3933
3933
  m.value = [we], u.value = we, r.value[be] || y("search", { keyword: "", searchFields: G.value });
3934
3934
  } else
3935
3935
  m.value = [be], u.value = be;
3936
- } else if (typeof F == "string") {
3937
- const be = F.split(",").map((Ce) => Ce.trim()).filter((Ce) => Ce);
3936
+ } else if (typeof D == "string") {
3937
+ const be = D.split(",").map((Ce) => Ce.trim()).filter((Ce) => Ce);
3938
3938
  if (c.value = be, be.some((Ce) => /^\d+$/.test(Ce)) && n.releaseId) {
3939
3939
  const Ce = be.map((Ae) => r.value[Ae] && r.value[Ae].trim() ? r.value[Ae] : Ae);
3940
3940
  m.value = Ce, u.value = Ce.join(", "), be.some((Ae) => /^\d+$/.test(Ae) && !r.value[Ae]) && y("search", { keyword: "", searchFields: G.value });
3941
3941
  } else
3942
3942
  m.value = be, u.value = be.join(", ");
3943
- } else if (Array.isArray(F)) {
3943
+ } else if (Array.isArray(D)) {
3944
3944
  const be = n.relationField || "fid", we = ((b = (T = n.columnOptions) == null ? void 0 : T[0]) == null ? void 0 : b.value) || "fname";
3945
- c.value = F.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), m.value = F.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = m.value.join(", ");
3946
- } else if (typeof F == "object") {
3947
- const be = n.relationField || "fid", we = ((ie = (q = n.columnOptions) == null ? void 0 : q[0]) == null ? void 0 : ie.value) || "fname", Ce = String(F[be] ?? F.fid ?? ""), ge = F[we] || Ce;
3945
+ c.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), m.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = m.value.join(", ");
3946
+ } else if (typeof D == "object") {
3947
+ const be = n.relationField || "fid", we = ((ie = (q = n.columnOptions) == null ? void 0 : q[0]) == null ? void 0 : ie.value) || "fname", Ce = String(D[be] ?? D.fid ?? ""), ge = D[we] || Ce;
3948
3948
  c.value = [Ce], m.value = [ge], u.value = ge;
3949
3949
  }
3950
3950
  } else
3951
3951
  u.value = "", c.value = [], m.value = [];
3952
3952
  }, { immediate: !0 });
3953
- const S = (F) => {
3953
+ const S = (D) => {
3954
3954
  B && clearTimeout(B), B = setTimeout(() => {
3955
- F ? (R.value = !0, y("search", { keyword: F, searchFields: G.value })) : R.value = !1;
3955
+ D ? (R.value = !0, y("search", { keyword: D, searchFields: G.value })) : R.value = !1;
3956
3956
  }, 300);
3957
3957
  }, g = () => {
3958
3958
  R.value = !0, y("search", { keyword: "", searchFields: G.value });
3959
3959
  }, E = () => {
3960
- const F = c.value.length > 0 ? c.value.join(",") : void 0;
3961
- console.log("[RelationForm] updateValue:", { result: F, selectedIds: [...c.value], selectedLabels: [...m.value] }), y("update:value", F), y("change", F);
3960
+ const D = c.value.length > 0 ? c.value.join(",") : void 0;
3961
+ console.log("[RelationForm] updateValue:", { result: D, selectedIds: [...c.value], selectedLabels: [...m.value] }), y("update:value", D), y("change", D);
3962
3962
  }, O = () => {
3963
3963
  y("advanced-select"), na(() => {
3964
3964
  A.value = !0, L.value = [], Q.value = [];
3965
3965
  });
3966
- }, re = ({ row: F }) => {
3967
- const T = String(F.fid ?? F.id ?? ""), b = J(F);
3968
- console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: F.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), m.value.push(b)), u.value = "") : (c.value = [T], m.value = [b], u.value = b), E(), y("row-select", F), R.value = !1;
3969
- }, de = (F) => {
3970
- y("dialog-search", F);
3966
+ }, re = ({ row: D }) => {
3967
+ const T = String(D.fid ?? D.id ?? ""), b = J(D);
3968
+ console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: D.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), m.value.push(b)), u.value = "") : (c.value = [T], m.value = [b], u.value = b), E(), y("row-select", D), R.value = !1;
3969
+ }, de = (D) => {
3970
+ y("dialog-search", D);
3971
3971
  }, W = () => {
3972
3972
  y("dialog-search", {});
3973
- }, x = (F) => {
3974
- n.multiple || (Q.value = [F]);
3975
- }, _ = (F) => {
3976
- n.multiple || (Q.value = [F], se());
3977
- }, z = (F) => {
3978
- Q.value = F;
3979
- }, ue = (F) => {
3980
- y("dialog-page-change", F);
3973
+ }, x = (D) => {
3974
+ n.multiple || (Q.value = [D]);
3975
+ }, _ = (D) => {
3976
+ n.multiple || (Q.value = [D], se());
3977
+ }, F = (D) => {
3978
+ Q.value = D;
3979
+ }, ue = (D) => {
3980
+ y("dialog-page-change", D);
3981
3981
  }, se = () => {
3982
3982
  if (Q.value.length > 0) {
3983
3983
  if (n.multiple)
3984
- c.value = Q.value.map((F) => String(F.fid ?? F.id ?? "")), m.value = Q.value.map((F) => J(F)), Q.value.forEach((F) => {
3985
- const T = String(F.fid ?? F.id ?? ""), b = J(F);
3984
+ c.value = Q.value.map((D) => String(D.fid ?? D.id ?? "")), m.value = Q.value.map((D) => J(D)), Q.value.forEach((D) => {
3985
+ const T = String(D.fid ?? D.id ?? ""), b = J(D);
3986
3986
  T && (r.value[T] = b);
3987
3987
  }), u.value = "";
3988
3988
  else {
3989
- const F = Q.value[0], T = String(F.fid ?? F.id ?? ""), b = J(F);
3989
+ const D = Q.value[0], T = String(D.fid ?? D.id ?? ""), b = J(D);
3990
3990
  c.value = [T], m.value = [b], T && (r.value[T] = b);
3991
3991
  }
3992
3992
  u.value = m.value.join(", "), E(), A.value = !1;
3993
3993
  }
3994
- }, le = () => {
3994
+ }, te = () => {
3995
3995
  L.value = [], Q.value = [], A.value = !1;
3996
3996
  };
3997
- return (F, T) => {
3997
+ return (D, T) => {
3998
3998
  const b = M("t-tag"), q = M("t-input"), ie = M("t-table"), be = M("t-popup"), we = M("t-button"), Ce = M("t-dialog");
3999
3999
  return l(), o("div", Td, [
4000
4000
  s(be, {
@@ -4096,10 +4096,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4096
4096
  placement: "center",
4097
4097
  top: 0,
4098
4098
  onConfirm: se,
4099
- onClose: le
4099
+ onClose: te
4100
4100
  }, {
4101
4101
  footer: i(() => [
4102
- s(we, { onClick: le }, {
4102
+ s(we, { onClick: te }, {
4103
4103
  default: i(() => [...T[6] || (T[6] = [
4104
4104
  U("取消", -1)
4105
4105
  ])]),
@@ -4132,7 +4132,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4132
4132
  onFilterReset: W,
4133
4133
  onRowClick: x,
4134
4134
  onRowDblclick: _,
4135
- onSelectionChange: z
4135
+ onSelectionChange: F
4136
4136
  }, null, 8, ["form-data", "column-data", "data", "loading", "page-config", "selection-mode"])) : H("", !0)
4137
4137
  ])
4138
4138
  ]),
@@ -4143,7 +4143,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4143
4143
  ]);
4144
4144
  };
4145
4145
  }
4146
- }), Fl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-bb814976"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4146
+ }), Dl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-bb814976"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4147
4147
  key: 0,
4148
4148
  class: "more-tip"
4149
4149
  }, Qd = { class: "preview-table" }, Zd = {
@@ -4157,11 +4157,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4157
4157
  fieldConfigs: { default: () => [] }
4158
4158
  },
4159
4159
  emits: ["update:visible", "add-data", "ai-parse"],
4160
- setup(a, { emit: ae }) {
4161
- const n = a, y = ae, u = me({
4160
+ setup(a, { emit: le }) {
4161
+ const n = a, y = le, u = me({
4162
4162
  get: () => n.visible,
4163
4163
  set: (J) => y("update:visible", J)
4164
- }), c = D(["ai"]), m = D(""), R = D(""), k = D("auto"), w = D([]), d = D(!1), I = me(() => n.columns.map((J) => ({
4164
+ }), c = z(["ai"]), m = z(""), R = z(""), k = z("auto"), w = z([]), d = z(!1), I = me(() => n.columns.map((J) => ({
4165
4165
  label: J.title || J.label,
4166
4166
  value: J.field || J.value
4167
4167
  }))), A = me(() => {
@@ -4229,7 +4229,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4229
4229
  });
4230
4230
  }), J;
4231
4231
  }), B = me(() => w.value.some((J) => J !== void 0 && J !== ""));
4232
- De(() => A.value.length, (J) => {
4232
+ ze(() => A.value.length, (J) => {
4233
4233
  const P = w.value;
4234
4234
  P.length < J ? w.value = [
4235
4235
  ...P,
@@ -4281,10 +4281,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4281
4281
  d.value = !1;
4282
4282
  }, 1e3);
4283
4283
  };
4284
- return De(u, (J) => {
4284
+ return ze(u, (J) => {
4285
4285
  J || (m.value = "", R.value = "", w.value = [], d.value = !1, c.value = ["ai"]);
4286
4286
  }), (J, P) => {
4287
- const j = M("t-textarea"), r = M("t-form-item"), S = M("t-form"), g = M("t-button"), E = M("t-space"), O = M("t-collapse-panel"), re = M("t-radio"), de = M("t-radio-group"), W = M("t-select"), x = M("t-tag"), _ = M("t-table"), z = M("t-collapse"), ue = M("t-dialog");
4287
+ const j = M("t-textarea"), r = M("t-form-item"), S = M("t-form"), g = M("t-button"), E = M("t-space"), O = M("t-collapse-panel"), re = M("t-radio"), de = M("t-radio-group"), W = M("t-select"), x = M("t-tag"), _ = M("t-table"), F = M("t-collapse"), ue = M("t-dialog");
4288
4288
  return l(), Y(ue, {
4289
4289
  visible: u.value,
4290
4290
  "onUpdate:visible": P[5] || (P[5] = (se) => u.value = se),
@@ -4296,7 +4296,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4296
4296
  }, {
4297
4297
  default: i(() => [
4298
4298
  e("div", Yd, [
4299
- s(z, {
4299
+ s(F, {
4300
4300
  modelValue: c.value,
4301
4301
  "onUpdate:modelValue": P[3] || (P[3] = (se) => c.value = se),
4302
4302
  "default-value": ["ai"]
@@ -4429,27 +4429,27 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4429
4429
  }, {
4430
4430
  default: i(() => [
4431
4431
  e("div", Jd, [
4432
- (l(!0), o(fe, null, _e(A.value, (se, le) => (l(), o("div", {
4433
- key: le,
4432
+ (l(!0), o(fe, null, _e(A.value, (se, te) => (l(), o("div", {
4433
+ key: te,
4434
4434
  class: "mapping-item"
4435
4435
  }, [
4436
- e("div", Kd, "第 " + V(le + 1) + " 列", 1),
4436
+ e("div", Kd, "第 " + V(te + 1) + " 列", 1),
4437
4437
  s(W, {
4438
- modelValue: w.value[le],
4439
- "onUpdate:modelValue": (F) => w.value[le] = F,
4438
+ modelValue: w.value[te],
4439
+ "onUpdate:modelValue": (D) => w.value[te] = D,
4440
4440
  placeholder: "请选择字段",
4441
4441
  options: I.value,
4442
4442
  clearable: ""
4443
4443
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
4444
4444
  e("div", Gd, [
4445
- (l(!0), o(fe, null, _e(se.slice(0, 3), (F, T) => (l(), Y(x, {
4445
+ (l(!0), o(fe, null, _e(se.slice(0, 3), (D, T) => (l(), Y(x, {
4446
4446
  key: T,
4447
4447
  theme: "default",
4448
4448
  variant: "light",
4449
4449
  size: "small"
4450
4450
  }, {
4451
4451
  default: i(() => [
4452
- U(V(F), 1)
4452
+ U(V(D), 1)
4453
4453
  ]),
4454
4454
  _: 2
4455
4455
  }, 1024))), 128)),
@@ -4553,7 +4553,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4553
4553
  }, Cu = { class: "sub-table-label" }, wu = {
4554
4554
  name: "RenderFormItem",
4555
4555
  components: {
4556
- RelationFormInternal: Fl
4556
+ RelationFormInternal: Dl
4557
4557
  }
4558
4558
  }, xu = /* @__PURE__ */ Ge({
4559
4559
  ...wu,
@@ -4565,17 +4565,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4565
4565
  tableMode: { type: Boolean, default: !1 }
4566
4566
  },
4567
4567
  emits: ["change", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
4568
- setup(a, { emit: ae }) {
4569
- var Fe, sa, Le, je, da;
4570
- const n = a, y = D(((Fe = n.field.__config__) == null ? void 0 : Fe.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = D(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = D(), m = D(!1), R = me(() => {
4571
- var ne;
4568
+ setup(a, { emit: le }) {
4569
+ var De, sa, Le, je, da;
4570
+ const n = a, y = z(((De = n.field.__config__) == null ? void 0 : De.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = z(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = z(), m = z(!1), R = me(() => {
4571
+ var ae;
4572
4572
  if (_.value !== "vxeSubGrid") return [];
4573
- const p = n.field.btnsList || ((ne = n.field.__config__) == null ? void 0 : ne.btnsList) || [];
4573
+ const p = n.field.btnsList || ((ae = n.field.__config__) == null ? void 0 : ae.btnsList) || [];
4574
4574
  return !Array.isArray(p) || p.length === 0 ? [
4575
4575
  { value: "add", label: "新增", show: !0 },
4576
4576
  { value: "delete", label: "删除", show: !0 }
4577
4577
  ] : p.filter((Be) => Be.show !== !1 && Be.allow !== !1);
4578
- }), k = D({
4578
+ }), k = z({
4579
4579
  isEdit: !0,
4580
4580
  isArrow: !0,
4581
4581
  isEnter: !0,
@@ -4587,10 +4587,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4587
4587
  }), w = me(() => {
4588
4588
  const p = n.field.children || n.field.__config__.children || [];
4589
4589
  return Array.isArray(p) ? p.map((v) => {
4590
- const ne = v.__vModel__ || v.field;
4590
+ const ae = v.__vModel__ || v.field;
4591
4591
  return {
4592
4592
  ...v,
4593
- __vModel__: ne,
4593
+ __vModel__: ae,
4594
4594
  __config__: {
4595
4595
  ...v.__config__,
4596
4596
  layout: "colFormItem"
@@ -4655,9 +4655,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4655
4655
  get() {
4656
4656
  const p = n.field.__vModel__;
4657
4657
  if (!p || _.value !== "vxeSubGrid") return [];
4658
- const v = n.formModel[p], ne = Array.isArray(v) ? v : [];
4658
+ const v = n.formModel[p], ae = Array.isArray(v) ? v : [];
4659
4659
  if (!W.value) {
4660
- const Be = [...ne], Re = Be[Be.length - 1];
4660
+ const Be = [...ae], Re = Be[Be.length - 1];
4661
4661
  if (!(Re && Re._isEmpty)) {
4662
4662
  const He = {
4663
4663
  _X_ROW_KEY: `__empty_row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}__`,
@@ -4670,7 +4670,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4670
4670
  }
4671
4671
  return Be;
4672
4672
  }
4673
- return ne;
4673
+ return ae;
4674
4674
  },
4675
4675
  set(p) {
4676
4676
  const v = n.field.__vModel__;
@@ -4686,13 +4686,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4686
4686
  width: 60,
4687
4687
  fixed: "left",
4688
4688
  align: "center"
4689
- }), p.forEach((ne) => {
4690
- const Be = ne.__config__;
4689
+ }), p.forEach((ae) => {
4690
+ const Be = ae.__config__;
4691
4691
  if (!Be || Be.noShow) return;
4692
- const Re = ne.__vModel__ || ne.field;
4692
+ const Re = ae.__vModel__ || ae.field;
4693
4693
  if (!Re) return;
4694
4694
  const ea = {
4695
- ...ne,
4695
+ ...ae,
4696
4696
  __vModel__: Re,
4697
4697
  // 确保有 __vModel__ 属性
4698
4698
  __config__: {
@@ -4701,10 +4701,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4701
4701
  }
4702
4702
  }, He = {
4703
4703
  field: Re,
4704
- title: ne.title || Be.label,
4705
- width: ne.width || Be.tableWidth || 150,
4706
- align: ne.align || Be.tableAlign || "left",
4707
- minWidth: ne.minWidth,
4704
+ title: ae.title || Be.label,
4705
+ width: ae.width || Be.tableWidth || 150,
4706
+ align: ae.align || Be.tableAlign || "left",
4707
+ minWidth: ae.minWidth,
4708
4708
  sortable: !0
4709
4709
  };
4710
4710
  He.cellRender = {
@@ -4716,7 +4716,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4716
4716
  }), v.push(He);
4717
4717
  }), v;
4718
4718
  }), he = me(() => {
4719
- var ne;
4719
+ var ae;
4720
4720
  if (_.value !== "vxeSubGrid") return {};
4721
4721
  const p = n.field.__config__, v = {
4722
4722
  border: n.field.border !== !1,
@@ -4751,7 +4751,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4751
4751
  // 数据量大于10条时启用虚拟滚动
4752
4752
  }
4753
4753
  };
4754
- return (ne = p.treeConfig) != null && ne.enabled && (v.treeConfig = {
4754
+ return (ae = p.treeConfig) != null && ae.enabled && (v.treeConfig = {
4755
4755
  transform: !0,
4756
4756
  rowField: "_X_ROW_KEY",
4757
4757
  parentField: "_X_PARENT_KEY",
@@ -4804,7 +4804,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4804
4804
  }, r = () => {
4805
4805
  const p = n.field.__vModel__;
4806
4806
  if (!p) return;
4807
- const v = Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : [], ne = {
4807
+ const v = Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : [], ae = {
4808
4808
  _X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
4809
4809
  };
4810
4810
  (n.field.children || n.field.__config__.children || []).forEach((Re) => {
@@ -4819,27 +4819,27 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4819
4819
  case "work_description":
4820
4820
  case "edu_school":
4821
4821
  case "edu_major":
4822
- ne[ea] = "";
4822
+ ae[ea] = "";
4823
4823
  break;
4824
4824
  case "number":
4825
- ne[ea] = 0;
4825
+ ae[ea] = 0;
4826
4826
  break;
4827
4827
  case "switch":
4828
- ne[ea] = !1;
4828
+ ae[ea] = !1;
4829
4829
  break;
4830
4830
  case "checkbox":
4831
4831
  case "select":
4832
4832
  case "edu_degree":
4833
- ne[ea] = Re.multiple ? [] : null;
4833
+ ae[ea] = Re.multiple ? [] : null;
4834
4834
  break;
4835
4835
  case "date":
4836
4836
  case "datetime":
4837
- ne[ea] = null;
4837
+ ae[ea] = null;
4838
4838
  break;
4839
4839
  default:
4840
- ne[ea] = null;
4840
+ ae[ea] = null;
4841
4841
  }
4842
- }), v.push(ne), x("change", p, v);
4842
+ }), v.push(ae), x("change", p, v);
4843
4843
  }, S = async () => {
4844
4844
  if (!c.value) return;
4845
4845
  const p = c.value.getCheckboxRecords();
@@ -4855,33 +4855,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4855
4855
  if (!c.value) return;
4856
4856
  const p = c.value.getCheckboxRecords();
4857
4857
  if (!p || p.length === 0 || !n.field.__vModel__) return;
4858
- const ne = Array.isArray(B.value) ? [...B.value] : [];
4858
+ const ae = Array.isArray(B.value) ? [...B.value] : [];
4859
4859
  p.forEach((Be) => {
4860
4860
  const Re = {
4861
4861
  ...Be,
4862
4862
  _X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
4863
4863
  };
4864
- ne.push(Re);
4865
- }), B.value = ne, await c.value.clearCheckboxRow();
4864
+ ae.push(Re);
4865
+ }), B.value = ae, await c.value.clearCheckboxRow();
4866
4866
  }, E = () => {
4867
4867
  if (!c.value) return;
4868
4868
  const p = c.value.getCheckboxRecords();
4869
4869
  !p || p.length;
4870
4870
  }, O = ({ row: p }) => {
4871
- if (p._isEmpty && Object.keys(p).some((ne) => ne === "_X_ROW_KEY" || ne === "_isEmpty" ? !1 : p[ne] !== null && p[ne] !== void 0 && p[ne] !== "")) {
4872
- const ne = n.field.__vModel__;
4873
- if (!ne) return;
4871
+ if (p._isEmpty && Object.keys(p).some((ae) => ae === "_X_ROW_KEY" || ae === "_isEmpty" ? !1 : p[ae] !== null && p[ae] !== void 0 && p[ae] !== "")) {
4872
+ const ae = n.field.__vModel__;
4873
+ if (!ae) return;
4874
4874
  const Be = Array.isArray(B.value) ? B.value.filter((ea) => !ea._isEmpty) : [], Re = { ...p };
4875
- delete Re._isEmpty, Re._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Be.push(Re), x("change", ne, Be);
4875
+ delete Re._isEmpty, Re._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Be.push(Re), x("change", ae, Be);
4876
4876
  }
4877
4877
  }, re = (p) => {
4878
4878
  if (!n.field.__vModel__) return;
4879
- const ne = Array.isArray(B.value) ? [...B.value] : [];
4879
+ const ae = Array.isArray(B.value) ? [...B.value] : [];
4880
4880
  p.forEach((Be) => {
4881
- ne.push(Be);
4882
- }), B.value = ne;
4881
+ ae.push(Be);
4882
+ }), B.value = ae;
4883
4883
  }, de = (p) => {
4884
- }, W = me(() => n.field.__config__.cdkey === "calculate" ? !0 : n.disabled), x = ae, _ = me(() => {
4884
+ }, W = me(() => n.field.__config__.cdkey === "calculate" ? !0 : n.disabled), x = le, _ = me(() => {
4885
4885
  const p = n.field.__config__;
4886
4886
  if (p.cdkey === "calculate") {
4887
4887
  const v = p.type || n.field.type;
@@ -4889,7 +4889,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4889
4889
  return v;
4890
4890
  }
4891
4891
  return p.cdkey;
4892
- }), z = me({
4892
+ }), F = me({
4893
4893
  get() {
4894
4894
  const p = n.field.__vModel__, v = p ? n.formModel[p] : null;
4895
4895
  return _.value === "tag" ? Array.isArray(v) ? v : v == null || v === "" ? [] : [v] : (_.value === "select" || _.value === "checkbox") && n.field.multiple ? Array.isArray(v) ? v : v == null || v === "" ? [] : [v] : v;
@@ -4900,12 +4900,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4900
4900
  }
4901
4901
  }), ue = me(() => {
4902
4902
  if (_.value !== "relationFormAttr") return "";
4903
- const p = n.field.relationField, v = n.field.showField, ne = n.field.aggregation;
4903
+ const p = n.field.relationField, v = n.field.showField, ae = n.field.aggregation;
4904
4904
  if (console.log("[RenderFormItem displayValue] 关联表单属性字段:", {
4905
4905
  vModel: n.field.__vModel__,
4906
4906
  relationField: p,
4907
4907
  showField: v,
4908
- aggregation: ne
4908
+ aggregation: ae
4909
4909
  }), !p || !v) return "";
4910
4910
  const Be = p + "_data";
4911
4911
  let Re = n.formModel[Be];
@@ -4921,9 +4921,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4921
4921
  return console.log("[RenderFormItem displayValue] 未找到关联数据"), "";
4922
4922
  if (Array.isArray(Re)) {
4923
4923
  const ea = Re.map((He) => typeof He == "object" && He !== null ? He[v] : He).filter((He) => He != null);
4924
- if (ne) {
4924
+ if (ae) {
4925
4925
  const He = ea.map((la) => parseFloat(la)).filter((la) => !isNaN(la));
4926
- switch (ne) {
4926
+ switch (ae) {
4927
4927
  case "sum":
4928
4928
  return He.reduce((la, oa) => la + oa, 0).toString();
4929
4929
  case "average":
@@ -4962,17 +4962,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4962
4962
  default:
4963
4963
  return "YYYY-MM-DD";
4964
4964
  }
4965
- }, le = () => {
4965
+ }, te = () => {
4966
4966
  const p = n.field.__vModel__;
4967
4967
  if (p) {
4968
- const v = z.value;
4968
+ const v = F.value;
4969
4969
  x("change", p, v);
4970
4970
  }
4971
- }, F = (p) => {
4972
- var ne;
4971
+ }, D = (p) => {
4972
+ var ae;
4973
4973
  console.log("[RenderFormItem handleChange] 收到变化:", {
4974
4974
  vModel: n.field.__vModel__,
4975
- cdkey: (ne = n.field.__config__) == null ? void 0 : ne.cdkey,
4975
+ cdkey: (ae = n.field.__config__) == null ? void 0 : ae.cdkey,
4976
4976
  val: p,
4977
4977
  valType: typeof p,
4978
4978
  isObject: typeof p == "object",
@@ -4981,8 +4981,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4981
4981
  const v = n.field.__vModel__ || "";
4982
4982
  x("change", v, p);
4983
4983
  }, T = (p) => {
4984
- const v = n.field.__vModel__ || "", ne = z.value;
4985
- x("change", v, ne);
4984
+ const v = n.field.__vModel__ || "", ae = F.value;
4985
+ x("change", v, ae);
4986
4986
  }, b = () => {
4987
4987
  const p = n.field.__vModel__ || "";
4988
4988
  x("change", p, "");
@@ -4990,7 +4990,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4990
4990
  const p = n.field.__vModel__ || "";
4991
4991
  x("i18n-click", {
4992
4992
  field: p,
4993
- value: z.value,
4993
+ value: F.value,
4994
4994
  i18nValue: n.field.i18nValue || ""
4995
4995
  });
4996
4996
  }, ie = (p) => {
@@ -5025,25 +5025,29 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5025
5025
  x("change", p, null);
5026
5026
  const v = p.replace(/Id$/, "Name");
5027
5027
  n.formModel[v] !== void 0 && x("change", v, "");
5028
- }, N = fl("relationFormData", {}), h = fl("relationFormHandlers", null), ze = fl("dynamicFieldOptions", D({})), Ye = (p) => {
5029
- var ne;
5030
- const v = (ne = ze.value) == null ? void 0 : ne[p.__vModel__];
5028
+ }, N = fl("relationFormData", {}), h = fl("relationFormHandlers", null), Fe = fl("dynamicFieldOptions", z({})), Ye = (p) => {
5029
+ var ae;
5030
+ const v = (ae = Fe.value) == null ? void 0 : ae[p.__vModel__];
5031
5031
  return Array.isArray(v) && v.length > 0 ? v : Array.isArray(p.options) ? p.options : [];
5032
5032
  }, ke = (p, v) => {
5033
- if (!(!N || !N[p]))
5034
- return N[p][v];
5033
+ if (!N || !N[p]) {
5034
+ console.log("[RenderFormItem] getRelationFormData 未找到数据:", { fieldName: p, dataKey: v, hasRelationFormData: !!N, keys: N ? Object.keys(N) : [] });
5035
+ return;
5036
+ }
5037
+ const ae = N[p][v];
5038
+ return v === "cdFormConfig" && console.log("[RenderFormItem] getRelationFormData cdFormConfig:", { fieldName: p, hasValue: !!ae, hasFormData: !!(ae != null && ae.formData), hasColumnData: !!(ae != null && ae.columnData) }), ae;
5035
5039
  }, X = (p, v) => {
5036
- const ne = { field: p.__vModel__, releaseId: p.releaseId, keyword: v };
5037
- h != null && h.search ? h.search(ne) : x("relation-form-search", ne);
5040
+ const ae = { field: p.__vModel__, releaseId: p.releaseId, keyword: v };
5041
+ h != null && h.search ? h.search(ae) : x("relation-form-search", ae);
5038
5042
  }, ee = (p) => {
5039
5043
  const v = { field: p.__vModel__, releaseId: p.releaseId };
5040
5044
  h != null && h.advanced ? h.advanced(v) : x("relation-form-advanced", v);
5041
5045
  }, Ue = (p, v) => {
5042
- const ne = { field: p.__vModel__, releaseId: p.releaseId, filters: v };
5043
- h != null && h.dialogSearch ? h.dialogSearch(ne) : x("relation-form-dialog-search", ne);
5046
+ const ae = { field: p.__vModel__, releaseId: p.releaseId, filters: v };
5047
+ h != null && h.dialogSearch ? h.dialogSearch(ae) : x("relation-form-dialog-search", ae);
5044
5048
  }, Ne = (p, v) => {
5045
- const ne = { field: p.__vModel__, releaseId: p.releaseId, pagination: v };
5046
- h != null && h.pageChange ? h.pageChange(ne) : x("relation-form-page-change", ne);
5049
+ const ae = { field: p.__vModel__, releaseId: p.releaseId, pagination: v };
5050
+ h != null && h.pageChange ? h.pageChange(ae) : x("relation-form-page-change", ae);
5047
5051
  }, Me = () => {
5048
5052
  if (!n.field.__vModel__) return;
5049
5053
  const v = {};
@@ -5069,25 +5073,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5069
5073
  v[Re] = null;
5070
5074
  }
5071
5075
  });
5072
- const ne = Array.isArray(I.value) ? [...I.value] : [];
5073
- ne.push(v), I.value = ne;
5076
+ const ae = Array.isArray(I.value) ? [...I.value] : [];
5077
+ ae.push(v), I.value = ae;
5074
5078
  }, Ee = (p) => {
5075
5079
  const v = Array.isArray(I.value) ? [...I.value] : [];
5076
5080
  v.splice(p, 1), I.value = v;
5077
5081
  }, ra = (p) => {
5078
5082
  const v = Array.isArray(I.value) ? [...I.value] : [];
5079
5083
  if (v[p]) {
5080
- const ne = { ...v[p] };
5081
- v.splice(p + 1, 0, ne), I.value = v;
5084
+ const ae = { ...v[p] };
5085
+ v.splice(p + 1, 0, ae), I.value = v;
5082
5086
  }
5083
- }, oe = (p, v, ne) => {
5087
+ }, oe = (p, v, ae) => {
5084
5088
  const Be = Array.isArray(I.value) ? [...I.value] : [];
5085
- Be[p] && (Be[p][v] = ne, I.value = Be);
5089
+ Be[p] && (Be[p][v] = ae, I.value = Be);
5086
5090
  }, ia = (p) => {
5087
5091
  p.value === "batchRemove" && (I.value = []), x("change", `__btn_${p.value}__`, { btn: p, data: I.value });
5088
5092
  };
5089
5093
  return (p, v) => {
5090
- const ne = M("t-input"), Be = M("t-textarea"), Re = M("t-input-number"), ea = M("t-select"), He = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
5094
+ const ae = M("t-input"), Be = M("t-textarea"), Re = M("t-input-number"), ea = M("t-select"), He = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
5091
5095
  return a.field.__config__.layout === "colFormItem" ? (l(), Y(Tl(a.tableMode ? "div" : "t-form-item"), Aa({
5092
5096
  key: 0,
5093
5097
  class: a.tableMode ? "table-cell-editor" : ""
@@ -5099,32 +5103,32 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5099
5103
  default: i(() => {
5100
5104
  var xe, Ie;
5101
5105
  return [
5102
- _.value === "input" && !((xe = a.field.__config__) != null && xe.i18n) ? (l(), Y(ne, {
5106
+ _.value === "input" && !((xe = a.field.__config__) != null && xe.i18n) ? (l(), Y(ae, {
5103
5107
  key: 0,
5104
- modelValue: z.value,
5105
- "onUpdate:modelValue": v[0] || (v[0] = (ve) => z.value = ve),
5108
+ modelValue: F.value,
5109
+ "onUpdate:modelValue": v[0] || (v[0] = (ve) => F.value = ve),
5106
5110
  placeholder: a.field.placeholder,
5107
5111
  disabled: W.value,
5108
5112
  clearable: a.field.clearable !== !1,
5109
5113
  maxlength: a.field.maxlength,
5110
5114
  readonly: a.field.readonly,
5111
- onBlur: le,
5115
+ onBlur: te,
5112
5116
  onInput: T,
5113
5117
  onClear: b,
5114
- onChange: F
5115
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "input" && ((Ie = a.field.__config__) != null && Ie.i18n) ? (l(), Y(ne, {
5118
+ onChange: D
5119
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "input" && ((Ie = a.field.__config__) != null && Ie.i18n) ? (l(), Y(ae, {
5116
5120
  key: 1,
5117
- modelValue: z.value,
5118
- "onUpdate:modelValue": v[1] || (v[1] = (ve) => z.value = ve),
5121
+ modelValue: F.value,
5122
+ "onUpdate:modelValue": v[1] || (v[1] = (ve) => F.value = ve),
5119
5123
  placeholder: a.field.placeholder,
5120
5124
  disabled: W.value,
5121
5125
  clearable: a.field.clearable !== !1,
5122
5126
  maxlength: a.field.maxlength,
5123
5127
  readonly: a.field.readonly,
5124
- onBlur: le,
5128
+ onBlur: te,
5125
5129
  onInput: T,
5126
5130
  onClear: b,
5127
- onChange: F,
5131
+ onChange: D,
5128
5132
  onFocus: v[2] || (v[2] = () => {
5129
5133
  var ve;
5130
5134
  return console.log("[RenderFormItem] i18n input focused, field:", a.field.__vModel__, "i18n:", (ve = a.field.__config__) == null ? void 0 : ve.i18n);
@@ -5141,31 +5145,31 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5141
5145
  _: 1
5142
5146
  }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "textarea" ? (l(), Y(Be, {
5143
5147
  key: 2,
5144
- modelValue: z.value,
5145
- "onUpdate:modelValue": v[3] || (v[3] = (ve) => z.value = ve),
5148
+ modelValue: F.value,
5149
+ "onUpdate:modelValue": v[3] || (v[3] = (ve) => F.value = ve),
5146
5150
  placeholder: a.field.placeholder,
5147
5151
  disabled: W.value,
5148
5152
  readonly: a.field.readonly,
5149
5153
  maxlength: a.field.maxlength || 500,
5150
5154
  rows: a.field.rows || 3,
5151
- onBlur: le,
5155
+ onBlur: te,
5152
5156
  onInput: T,
5153
5157
  onClear: b,
5154
- onChange: F
5158
+ onChange: D
5155
5159
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : _.value === "number" ? (l(), Y(Re, {
5156
5160
  key: 3,
5157
- modelValue: z.value,
5158
- "onUpdate:modelValue": v[4] || (v[4] = (ve) => z.value = ve),
5161
+ modelValue: F.value,
5162
+ "onUpdate:modelValue": v[4] || (v[4] = (ve) => F.value = ve),
5159
5163
  placeholder: a.field.placeholder,
5160
5164
  disabled: W.value,
5161
5165
  min: a.field.min,
5162
5166
  max: a.field.max,
5163
5167
  step: a.field.step || 1,
5164
- onChange: F
5168
+ onChange: D
5165
5169
  }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : _.value === "select" ? (l(), Y(ea, {
5166
5170
  key: 4,
5167
- modelValue: z.value,
5168
- "onUpdate:modelValue": v[5] || (v[5] = (ve) => z.value = ve),
5171
+ modelValue: F.value,
5172
+ "onUpdate:modelValue": v[5] || (v[5] = (ve) => F.value = ve),
5169
5173
  placeholder: a.field.placeholder,
5170
5174
  disabled: W.value,
5171
5175
  clearable: a.field.clearable !== !1,
@@ -5173,22 +5177,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5173
5177
  multiple: a.field.multiple,
5174
5178
  options: Array.isArray(a.field.options) ? a.field.options : [],
5175
5179
  keys: a.field.props || { label: "label", value: "value" },
5176
- onChange: F
5180
+ onChange: D
5177
5181
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : _.value === "date" ? (l(), Y(He, {
5178
5182
  key: 5,
5179
- modelValue: z.value,
5180
- "onUpdate:modelValue": v[6] || (v[6] = (ve) => z.value = ve),
5183
+ modelValue: F.value,
5184
+ "onUpdate:modelValue": v[6] || (v[6] = (ve) => F.value = ve),
5181
5185
  placeholder: a.field.placeholder,
5182
5186
  disabled: W.value,
5183
5187
  clearable: a.field.clearable !== !1,
5184
5188
  mode: a.field.type === "datetime" ? "date" : a.field.type || "date",
5185
5189
  "enable-time-picker": a.field.type === "datetime",
5186
5190
  format: se(a.field.type),
5187
- onChange: F
5191
+ onChange: D
5188
5192
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : _.value === "dateRange" ? (l(), Y(la, {
5189
5193
  key: 6,
5190
- modelValue: z.value,
5191
- "onUpdate:modelValue": v[7] || (v[7] = (ve) => z.value = ve),
5194
+ modelValue: F.value,
5195
+ "onUpdate:modelValue": v[7] || (v[7] = (ve) => F.value = ve),
5192
5196
  placeholder: a.field.placeholder || ["开始日期", "结束日期"],
5193
5197
  disabled: W.value,
5194
5198
  clearable: a.field.clearable !== !1,
@@ -5197,40 +5201,40 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5197
5201
  onChange: Ce
5198
5202
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : _.value === "time" ? (l(), Y(oa, {
5199
5203
  key: 7,
5200
- modelValue: z.value,
5201
- "onUpdate:modelValue": v[8] || (v[8] = (ve) => z.value = ve),
5204
+ modelValue: F.value,
5205
+ "onUpdate:modelValue": v[8] || (v[8] = (ve) => F.value = ve),
5202
5206
  placeholder: a.field.placeholder,
5203
5207
  disabled: W.value,
5204
5208
  clearable: a.field.clearable !== !1,
5205
- onChange: F
5209
+ onChange: D
5206
5210
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "rangeTime" ? (l(), Y(_a, {
5207
5211
  key: 8,
5208
- modelValue: z.value,
5209
- "onUpdate:modelValue": v[9] || (v[9] = (ve) => z.value = ve),
5212
+ modelValue: F.value,
5213
+ "onUpdate:modelValue": v[9] || (v[9] = (ve) => F.value = ve),
5210
5214
  placeholder: a.field.placeholder || ["开始时间", "结束时间"],
5211
5215
  disabled: W.value,
5212
5216
  clearable: a.field.clearable !== !1,
5213
5217
  onChange: Ce
5214
5218
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "switch" ? (l(), Y(Wa, {
5215
5219
  key: 9,
5216
- modelValue: z.value,
5217
- "onUpdate:modelValue": v[10] || (v[10] = (ve) => z.value = ve),
5220
+ modelValue: F.value,
5221
+ "onUpdate:modelValue": v[10] || (v[10] = (ve) => F.value = ve),
5218
5222
  disabled: W.value,
5219
- onChange: F
5223
+ onChange: D
5220
5224
  }, null, 8, ["modelValue", "disabled"])) : _.value === "rate" ? (l(), Y(Ya, {
5221
5225
  key: 10,
5222
- modelValue: z.value,
5223
- "onUpdate:modelValue": v[11] || (v[11] = (ve) => z.value = ve),
5226
+ modelValue: F.value,
5227
+ "onUpdate:modelValue": v[11] || (v[11] = (ve) => F.value = ve),
5224
5228
  disabled: W.value,
5225
5229
  max: a.field.max || 5,
5226
5230
  half: a.field.allowHalf,
5227
- onChange: F
5231
+ onChange: D
5228
5232
  }, null, 8, ["modelValue", "disabled", "max", "half"])) : _.value === "radio" ? (l(), Y(Ja, {
5229
5233
  key: 11,
5230
- modelValue: z.value,
5231
- "onUpdate:modelValue": v[12] || (v[12] = (ve) => z.value = ve),
5234
+ modelValue: F.value,
5235
+ "onUpdate:modelValue": v[12] || (v[12] = (ve) => F.value = ve),
5232
5236
  disabled: W.value,
5233
- onChange: F
5237
+ onChange: D
5234
5238
  }, {
5235
5239
  default: i(() => [
5236
5240
  (l(!0), o(fe, null, _e(Array.isArray(a.field.options) ? a.field.options : [], (ve) => (l(), Y(Ha, {
@@ -5246,10 +5250,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5246
5250
  _: 1
5247
5251
  }, 8, ["modelValue", "disabled"])) : _.value === "checkbox" ? (l(), Y(Ka, {
5248
5252
  key: 12,
5249
- modelValue: z.value,
5250
- "onUpdate:modelValue": v[13] || (v[13] = (ve) => z.value = ve),
5253
+ modelValue: F.value,
5254
+ "onUpdate:modelValue": v[13] || (v[13] = (ve) => F.value = ve),
5251
5255
  disabled: W.value,
5252
- onChange: F
5256
+ onChange: D
5253
5257
  }, {
5254
5258
  default: i(() => [
5255
5259
  (l(!0), o(fe, null, _e(Array.isArray(a.field.options) ? a.field.options : [], (ve) => (l(), Y(xa, {
@@ -5265,18 +5269,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5265
5269
  _: 1
5266
5270
  }, 8, ["modelValue", "disabled"])) : _.value === "cascader" ? (l(), Y(Ra, {
5267
5271
  key: 13,
5268
- modelValue: z.value,
5269
- "onUpdate:modelValue": v[14] || (v[14] = (ve) => z.value = ve),
5272
+ modelValue: F.value,
5273
+ "onUpdate:modelValue": v[14] || (v[14] = (ve) => F.value = ve),
5270
5274
  placeholder: a.field.placeholder,
5271
5275
  disabled: W.value,
5272
5276
  clearable: a.field.clearable !== !1,
5273
5277
  options: Array.isArray(a.field.options) ? a.field.options : [],
5274
5278
  keys: a.field.props || { label: "label", value: "value", children: "children" },
5275
- onChange: F
5279
+ onChange: D
5276
5280
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : _.value === "treeSelect" ? (l(), Y(Ga, {
5277
5281
  key: 14,
5278
- modelValue: z.value,
5279
- "onUpdate:modelValue": v[15] || (v[15] = (ve) => z.value = ve),
5282
+ modelValue: F.value,
5283
+ "onUpdate:modelValue": v[15] || (v[15] = (ve) => F.value = ve),
5280
5284
  placeholder: a.field.placeholder,
5281
5285
  disabled: W.value,
5282
5286
  clearable: a.field.clearable !== !1,
@@ -5284,20 +5288,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5284
5288
  multiple: a.field.multiple,
5285
5289
  data: Ye(a.field),
5286
5290
  "tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
5287
- onChange: F
5291
+ onChange: D
5288
5292
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : _.value === "autoComplete" ? (l(), Y(Xa, {
5289
5293
  key: 15,
5290
- modelValue: z.value,
5291
- "onUpdate:modelValue": v[16] || (v[16] = (ve) => z.value = ve),
5294
+ modelValue: F.value,
5295
+ "onUpdate:modelValue": v[16] || (v[16] = (ve) => F.value = ve),
5292
5296
  placeholder: a.field.placeholder,
5293
5297
  disabled: W.value,
5294
5298
  clearable: a.field.clearable !== !1,
5295
5299
  options: Array.isArray(a.field.options) ? a.field.options : [],
5296
- onChange: F
5300
+ onChange: D
5297
5301
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : _.value === "uploadImg" ? (l(), Y(Ea, {
5298
5302
  key: 16,
5299
- modelValue: z.value,
5300
- "onUpdate:modelValue": v[17] || (v[17] = (ve) => z.value = ve),
5303
+ modelValue: F.value,
5304
+ "onUpdate:modelValue": v[17] || (v[17] = (ve) => F.value = ve),
5301
5305
  disabled: W.value,
5302
5306
  max: a.field.limit || 1,
5303
5307
  accept: a.field.accept || "image/*",
@@ -5311,16 +5315,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5311
5315
  image: "请选择图片"
5312
5316
  }
5313
5317
  },
5314
- onChange: F
5318
+ onChange: D
5315
5319
  }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : _.value === "upload" ? (l(), Y(Ea, {
5316
5320
  key: 17,
5317
- modelValue: z.value,
5318
- "onUpdate:modelValue": v[18] || (v[18] = (ve) => z.value = ve),
5321
+ modelValue: F.value,
5322
+ "onUpdate:modelValue": v[18] || (v[18] = (ve) => F.value = ve),
5319
5323
  disabled: W.value,
5320
5324
  max: a.field.limit || 1,
5321
5325
  accept: a.field.accept,
5322
5326
  "size-limit": { size: a.field.fileSize || 10, unit: a.field.sizeUnit || "MB" },
5323
- onChange: F
5327
+ onChange: D
5324
5328
  }, {
5325
5329
  default: i(() => [
5326
5330
  s(ma, { disabled: a.disabled }, {
@@ -5336,22 +5340,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5336
5340
  _: 1
5337
5341
  }, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : _.value === "colorPicker" ? (l(), Y(Qa, {
5338
5342
  key: 18,
5339
- modelValue: z.value,
5340
- "onUpdate:modelValue": v[19] || (v[19] = (ve) => z.value = ve),
5343
+ modelValue: F.value,
5344
+ "onUpdate:modelValue": v[19] || (v[19] = (ve) => F.value = ve),
5341
5345
  disabled: W.value,
5342
- onChange: F
5346
+ onChange: D
5343
5347
  }, null, 8, ["modelValue", "disabled"])) : _.value === "slider" ? (l(), Y(Pa, {
5344
5348
  key: 19,
5345
- modelValue: z.value,
5346
- "onUpdate:modelValue": v[20] || (v[20] = (ve) => z.value = ve),
5349
+ modelValue: F.value,
5350
+ "onUpdate:modelValue": v[20] || (v[20] = (ve) => F.value = ve),
5347
5351
  disabled: W.value,
5348
5352
  min: a.field.min || 0,
5349
5353
  max: a.field.max || 100,
5350
5354
  step: a.field.step || 1,
5351
- onChange: F
5355
+ onChange: D
5352
5356
  }, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : _.value === "progress" ? (l(), Y(Za, {
5353
5357
  key: 20,
5354
- percentage: z.value || a.field.defaultValue || 0,
5358
+ percentage: F.value || a.field.defaultValue || 0,
5355
5359
  status: a.field.status,
5356
5360
  "stroke-width": a.field.strokeWidth,
5357
5361
  color: a.field.color,
@@ -5402,9 +5406,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5402
5406
  class: "sign-inline",
5403
5407
  onClick: be
5404
5408
  }, [
5405
- z.value ? (l(), o("img", {
5409
+ F.value ? (l(), o("img", {
5406
5410
  key: 0,
5407
- src: z.value,
5411
+ src: F.value,
5408
5412
  class: "sign-img"
5409
5413
  }, null, 8, iu)) : (l(), o("div", su, [...v[40] || (v[40] = [
5410
5414
  e("i", { class: "ri-edit-box-line" }, null, -1),
@@ -5415,9 +5419,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5415
5419
  class: "signature-inline",
5416
5420
  onClick: we
5417
5421
  }, [
5418
- z.value ? (l(), o("img", {
5422
+ F.value ? (l(), o("img", {
5419
5423
  key: 0,
5420
- src: z.value,
5424
+ src: F.value,
5421
5425
  class: "signature-img"
5422
5426
  }, null, 8, ru)) : (l(), o("div", du, [...v[41] || (v[41] = [
5423
5427
  e("i", { class: "ri-stamp-line" }, null, -1),
@@ -5425,29 +5429,29 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5425
5429
  ])]))
5426
5430
  ])) : _.value === "tag" ? (l(), Y(al, {
5427
5431
  key: 27,
5428
- modelValue: z.value,
5429
- "onUpdate:modelValue": v[22] || (v[22] = (ve) => z.value = ve),
5432
+ modelValue: F.value,
5433
+ "onUpdate:modelValue": v[22] || (v[22] = (ve) => F.value = ve),
5430
5434
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5431
5435
  disabled: W.value,
5432
5436
  clearable: a.field.clearable !== !1,
5433
5437
  max: a.field.max,
5434
5438
  "min-collapsed-num": a.field.minCollapsedNum,
5435
- onChange: F
5439
+ onChange: D
5436
5440
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : _.value === "billno" ? (l(), o(fe, { key: 28 }, [
5437
5441
  W.value ? (l(), o("div", uu, [
5438
- e("span", cu, V(z.value), 1)
5439
- ])) : (l(), Y(ne, {
5442
+ e("span", cu, V(F.value), 1)
5443
+ ])) : (l(), Y(ae, {
5440
5444
  key: 1,
5441
- modelValue: z.value,
5442
- "onUpdate:modelValue": v[23] || (v[23] = (ve) => z.value = ve),
5445
+ modelValue: F.value,
5446
+ "onUpdate:modelValue": v[23] || (v[23] = (ve) => F.value = ve),
5443
5447
  placeholder: a.field.placeholder || "请输入单据编号",
5444
5448
  clearable: a.field.clearable !== !1,
5445
- onBlur: le,
5449
+ onBlur: te,
5446
5450
  onInput: T,
5447
5451
  onClear: b,
5448
- onChange: F
5452
+ onChange: D
5449
5453
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5450
- ], 64)) : _.value === "relationFormAttr" ? (l(), Y(ne, {
5454
+ ], 64)) : _.value === "relationFormAttr" ? (l(), Y(ae, {
5451
5455
  key: 29,
5452
5456
  modelValue: ue.value,
5453
5457
  "onUpdate:modelValue": v[24] || (v[24] = (ve) => ue.value = ve),
@@ -5463,10 +5467,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5463
5467
  fontWeight: a.field.fontWeight,
5464
5468
  textAlign: a.field.textAlign
5465
5469
  })
5466
- }, V(a.field.defaultValue || z.value), 5)) : _.value === "relationForm" ? (l(), Y(Fl, {
5470
+ }, V(a.field.defaultValue || F.value), 5)) : _.value === "relationForm" ? (l(), Y(Dl, {
5467
5471
  key: 31,
5468
- value: z.value,
5469
- "onUpdate:value": v[25] || (v[25] = (ve) => z.value = ve),
5472
+ value: F.value,
5473
+ "onUpdate:value": v[25] || (v[25] = (ve) => F.value = ve),
5470
5474
  "release-id": a.field.releaseId,
5471
5475
  "relation-field": a.field.relationField,
5472
5476
  "search-fields": a.field.searchFields,
@@ -5486,21 +5490,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5486
5490
  "dialog-loading": ke(a.field.__vModel__ || "", "dialogLoading"),
5487
5491
  "dialog-pagination": ke(a.field.__vModel__ || "", "dialogPagination"),
5488
5492
  "cd-form-config": ke(a.field.__vModel__ || "", "cdFormConfig"),
5489
- onChange: F,
5493
+ onChange: D,
5490
5494
  onSearch: v[26] || (v[26] = (ve) => X(a.field, ve.keyword)),
5491
5495
  onAdvancedSelect: v[27] || (v[27] = (ve) => ee(a.field)),
5492
5496
  onDialogSearch: v[28] || (v[28] = (ve) => Ue(a.field, ve)),
5493
5497
  onDialogPageChange: v[29] || (v[29] = (ve) => Ne(a.field, ve))
5494
5498
  }, null, 8, ["value", "release-id", "relation-field", "search-fields", "form-type", "column-options", "has-page", "page-size", "multiple", "popup-type", "popup-title", "popup-width", "placeholder", "disabled", "clearable", "search-results", "dialog-table-data", "dialog-loading", "dialog-pagination", "cd-form-config"])) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "popupSelect", "popupTableSelect"].includes(_.value) ? (l(), o(fe, { key: 32 }, [
5495
5499
  W.value ? (l(), o("div", fu, [
5496
- _.value === "userSelect" && z.value ? (l(), Y(ca(Od), {
5500
+ _.value === "userSelect" && F.value ? (l(), Y(ca(Od), {
5497
5501
  key: 0,
5498
- "user-id": z.value,
5502
+ "user-id": F.value,
5499
5503
  name: ge(),
5500
5504
  "show-avatar": "",
5501
5505
  clickable: ""
5502
5506
  }, null, 8, ["user-id", "name"])) : (l(), o("span", mu, V(ge()), 1))
5503
- ])) : (l(), Y(ne, {
5507
+ ])) : (l(), Y(ae, {
5504
5508
  key: 1,
5505
5509
  "model-value": ge(),
5506
5510
  placeholder: a.field.placeholder || `请选择${a.field.__config__.label}`,
@@ -5509,7 +5513,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5509
5513
  clearable: a.field.clearable !== !1,
5510
5514
  onClear: ce,
5511
5515
  onInput: T,
5512
- onChange: F
5516
+ onChange: D
5513
5517
  }, {
5514
5518
  "suffix-icon": i(() => [
5515
5519
  e("i", {
@@ -5519,17 +5523,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5519
5523
  ]),
5520
5524
  _: 1
5521
5525
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]))
5522
- ], 64)) : (l(), Y(ne, {
5526
+ ], 64)) : (l(), Y(ae, {
5523
5527
  key: 33,
5524
- modelValue: z.value,
5525
- "onUpdate:modelValue": v[30] || (v[30] = (ve) => z.value = ve),
5528
+ modelValue: F.value,
5529
+ "onUpdate:modelValue": v[30] || (v[30] = (ve) => F.value = ve),
5526
5530
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5527
5531
  disabled: W.value,
5528
5532
  clearable: a.field.clearable !== !1,
5529
- onBlur: le,
5533
+ onBlur: te,
5530
5534
  onInput: T,
5531
5535
  onClear: b,
5532
- onChange: F
5536
+ onChange: D
5533
5537
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"]))
5534
5538
  ];
5535
5539
  }),
@@ -5630,7 +5634,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5630
5634
  (l(!0), o(fe, null, _e(a.field.__config__.children, (xe) => (l(), o(fe, {
5631
5635
  key: xe.__config__.formId
5632
5636
  }, [
5633
- xe.__config__.noShow ? H("", !0) : (l(), Y(Fa, {
5637
+ xe.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5634
5638
  key: 0,
5635
5639
  span: xe.__config__.span,
5636
5640
  class: Ve(xe.__config__.className)
@@ -5688,7 +5692,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5688
5692
  (l(!0), o(fe, null, _e(xe.__config__.children, (Ie) => (l(), o(fe, {
5689
5693
  key: Ie.__config__.formId
5690
5694
  }, [
5691
- Ie.__config__.noShow ? H("", !0) : (l(), Y(Fa, {
5695
+ Ie.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5692
5696
  key: 0,
5693
5697
  span: Ie.__config__.span,
5694
5698
  class: Ve(Ie.__config__.className)
@@ -5773,7 +5777,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5773
5777
  (l(!0), o(fe, null, _e(xe.__config__.children, (Ie) => (l(), o(fe, {
5774
5778
  key: Ie.__config__.formId
5775
5779
  }, [
5776
- Ie.__config__.noShow ? H("", !0) : (l(), Y(Fa, {
5780
+ Ie.__config__.noShow ? H("", !0) : (l(), Y(Da, {
5777
5781
  key: 0,
5778
5782
  span: Ie.__config__.span,
5779
5783
  class: Ve(Ie.__config__.className)
@@ -5955,7 +5959,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5955
5959
  ], 2)) : H("", !0);
5956
5960
  };
5957
5961
  }
5958
- }), Dl = /* @__PURE__ */ aa(xu, [["__scopeId", "data-v-158cd013"]]), $u = /* @__PURE__ */ Ge({
5962
+ }), zl = /* @__PURE__ */ aa(xu, [["__scopeId", "data-v-19934227"]]), $u = /* @__PURE__ */ Ge({
5959
5963
  __name: "FormRender",
5960
5964
  props: {
5961
5965
  formConf: {},
@@ -5965,8 +5969,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5965
5969
  relationFormData: { default: () => ({}) }
5966
5970
  },
5967
5971
  emits: ["update:modelValue", "field-change", "submit", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
5968
- setup(a, { expose: ae, emit: n }) {
5969
- const y = a, u = n, c = D(), m = D({});
5972
+ setup(a, { expose: le, emit: n }) {
5973
+ const y = a, u = n, c = z(), m = z({});
5970
5974
  wa("dynamicFieldOptions", m);
5971
5975
  const R = pa({});
5972
5976
  wa("relationFormData", R), xl(() => {
@@ -5975,18 +5979,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5975
5979
  x[_] !== void 0 && (R[_] = { ...R[_] || {}, ...x[_] });
5976
5980
  });
5977
5981
  });
5978
- const k = pa({}), w = (x) => x ? x.startsWith("t-") ? x.toLowerCase() : "t-" + x.replace(/([A-Z])/g, (z, ue, se) => se > 0 ? "-" + ue.toLowerCase() : ue.toLowerCase()) : "", d = (x, _) => {
5979
- !x || !Array.isArray(x) || x.forEach((z) => {
5980
- const ue = z.__config__, se = ue.cdkey;
5981
- ue.layout === "colFormItem" && z.__vModel__ ? _(z) : ue.layout === "rowFormItem" && ue.children && Array.isArray(ue.children) ? d(ue.children, _) : se === "tab" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((le) => {
5982
- var F;
5983
- (F = le.__config__) != null && F.children && Array.isArray(le.__config__.children) && d(le.__config__.children, _);
5984
- }) : se === "collapse" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((le) => {
5985
- var F;
5986
- (F = le.__config__) != null && F.children && Array.isArray(le.__config__.children) && d(le.__config__.children, _);
5987
- }) : se === "tableGrid" && ue.children && Array.isArray(ue.children) && ue.children.forEach((le) => {
5988
- var F;
5989
- (F = le.__config__) != null && F.children && Array.isArray(le.__config__.children) && le.__config__.children.forEach((T) => {
5982
+ const k = pa({}), w = (x) => x ? x.startsWith("t-") ? x.toLowerCase() : "t-" + x.replace(/([A-Z])/g, (F, ue, se) => se > 0 ? "-" + ue.toLowerCase() : ue.toLowerCase()) : "", d = (x, _) => {
5983
+ !x || !Array.isArray(x) || x.forEach((F) => {
5984
+ const ue = F.__config__, se = ue.cdkey;
5985
+ ue.layout === "colFormItem" && F.__vModel__ ? _(F) : ue.layout === "rowFormItem" && ue.children && Array.isArray(ue.children) ? d(ue.children, _) : se === "tab" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((te) => {
5986
+ var D;
5987
+ (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
5988
+ }) : se === "collapse" && ue.children && Array.isArray(ue.children) ? ue.children.forEach((te) => {
5989
+ var D;
5990
+ (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && d(te.__config__.children, _);
5991
+ }) : se === "tableGrid" && ue.children && Array.isArray(ue.children) && ue.children.forEach((te) => {
5992
+ var D;
5993
+ (D = te.__config__) != null && D.children && Array.isArray(te.__config__.children) && te.__config__.children.forEach((T) => {
5990
5994
  var b;
5991
5995
  (b = T.__config__) != null && b.children && Array.isArray(T.__config__.children) && d(T.__config__.children, _);
5992
5996
  });
@@ -5995,30 +5999,30 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5995
5999
  }, I = me(() => {
5996
6000
  const x = {};
5997
6001
  return d(y.fields, (_) => {
5998
- const z = _.__config__, ue = _.__vModel__;
6002
+ const F = _.__config__, ue = _.__vModel__;
5999
6003
  if (!ue) return;
6000
6004
  const se = [];
6001
- z.required && se.push({
6005
+ F.required && se.push({
6002
6006
  required: !0,
6003
- message: `请输入${z.label}`,
6004
- trigger: z.trigger || "blur"
6005
- }), _.__config__.regList && _.__config__.regList.length > 0 && _.__config__.regList.forEach((le) => {
6007
+ message: `请输入${F.label}`,
6008
+ trigger: F.trigger || "blur"
6009
+ }), _.__config__.regList && _.__config__.regList.length > 0 && _.__config__.regList.forEach((te) => {
6006
6010
  se.push({
6007
- pattern: new RegExp(le.pattern),
6008
- message: le.message,
6009
- trigger: z.trigger || "blur"
6011
+ pattern: new RegExp(te.pattern),
6012
+ message: te.message,
6013
+ trigger: F.trigger || "blur"
6010
6014
  });
6011
6015
  }), se.length > 0 && (x[ue] = se);
6012
6016
  }), x;
6013
6017
  }), A = (x) => !x.__config__.noShow, L = (x) => {
6014
6018
  let _;
6015
- return d(y.fields, (z) => {
6016
- z.__vModel__ === x && (_ = z);
6019
+ return d(y.fields, (F) => {
6020
+ F.__vModel__ === x && (_ = F);
6017
6021
  }), _;
6018
6022
  }, Q = (x, _) => {
6019
6023
  var ue;
6020
- const z = L(x);
6021
- if (z && ((ue = z.__config__) == null ? void 0 : ue.cdkey) === "relationForm")
6024
+ const F = L(x);
6025
+ if (F && ((ue = F.__config__) == null ? void 0 : ue.cdkey) === "relationForm")
6022
6026
  if (_ && typeof _ == "object" && _ !== null) {
6023
6027
  let se = _.id || _.fid || _.ID || _.FID;
6024
6028
  k[x] = se, k[x + "_data"] = _, G(x, _);
@@ -6030,45 +6034,45 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6030
6034
  }, B = (x) => {
6031
6035
  u("i18n-click", x);
6032
6036
  }, G = (x, _) => {
6033
- d(y.fields, (z) => {
6037
+ d(y.fields, (F) => {
6034
6038
  var ue;
6035
- if (((ue = z.__config__) == null ? void 0 : ue.cdkey) === "relationFormAttr" && z.relationField === x) {
6036
- const se = z.__vModel__, le = z.showField;
6037
- if (!se || !le) return;
6038
- if (z.saveRelationData === !1 || z.saveRelationData === 0) {
6039
+ if (((ue = F.__config__) == null ? void 0 : ue.cdkey) === "relationFormAttr" && F.relationField === x) {
6040
+ const se = F.__vModel__, te = F.showField;
6041
+ if (!se || !te) return;
6042
+ if (F.saveRelationData === !1 || F.saveRelationData === 0) {
6039
6043
  k[se] = null;
6040
6044
  return;
6041
6045
  }
6042
6046
  if (_ && typeof _ == "object") {
6043
- let F = null;
6047
+ let D = null;
6044
6048
  if (Array.isArray(_)) {
6045
- const T = _.map((b) => typeof b == "object" && b !== null ? b[le] : b).filter((b) => b != null);
6046
- if (z.aggregation) {
6049
+ const T = _.map((b) => typeof b == "object" && b !== null ? b[te] : b).filter((b) => b != null);
6050
+ if (F.aggregation) {
6047
6051
  const b = T.map((q) => parseFloat(q)).filter((q) => !isNaN(q));
6048
- switch (z.aggregation) {
6052
+ switch (F.aggregation) {
6049
6053
  case "sum":
6050
- F = b.reduce((q, ie) => q + ie, 0);
6054
+ D = b.reduce((q, ie) => q + ie, 0);
6051
6055
  break;
6052
6056
  case "average":
6053
- F = b.length > 0 ? b.reduce((q, ie) => q + ie, 0) / b.length : null;
6057
+ D = b.length > 0 ? b.reduce((q, ie) => q + ie, 0) / b.length : null;
6054
6058
  break;
6055
6059
  case "round":
6056
- F = b.length > 0 ? Math.round(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6060
+ D = b.length > 0 ? Math.round(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6057
6061
  break;
6058
6062
  case "floor":
6059
- F = b.length > 0 ? Math.floor(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6063
+ D = b.length > 0 ? Math.floor(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6060
6064
  break;
6061
6065
  case "ceiling":
6062
- F = b.length > 0 ? Math.ceil(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6066
+ D = b.length > 0 ? Math.ceil(b.reduce((q, ie) => q + ie, 0) / b.length) : null;
6063
6067
  break;
6064
6068
  default:
6065
- F = T.join(", ");
6069
+ D = T.join(", ");
6066
6070
  }
6067
6071
  } else
6068
- F = T.join(", ");
6072
+ D = T.join(", ");
6069
6073
  } else
6070
- F = _[le];
6071
- k[se] = F;
6074
+ D = _[te];
6075
+ k[se] = D;
6072
6076
  } else
6073
6077
  k[se] = null;
6074
6078
  }
@@ -6083,15 +6087,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6083
6087
  u("relation-form-dialog-search", x);
6084
6088
  }, r = (x) => {
6085
6089
  u("relation-form-page-change", x);
6086
- }, S = (x, _, z) => {
6087
- var le;
6088
- const ue = y.fields.find((F) => F.__vModel__ === x);
6090
+ }, S = (x, _, F) => {
6091
+ var te;
6092
+ const ue = y.fields.find((D) => D.__vModel__ === x);
6089
6093
  if (!ue) return;
6090
- const se = (le = ue.on) == null ? void 0 : le[_];
6094
+ const se = (te = ue.on) == null ? void 0 : te[_];
6091
6095
  if (se && typeof se == "string")
6092
6096
  try {
6093
- const F = {
6094
- data: z,
6097
+ const D = {
6098
+ data: F,
6095
6099
  formData: k,
6096
6100
  setFormData: (b) => Object.assign(k, b),
6097
6101
  setShowOrHide: (b, q) => {
@@ -6105,41 +6109,41 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6105
6109
  new Function("context", `
6106
6110
  const { data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
6107
6111
  ${se}
6108
- `)(F);
6109
- } catch (F) {
6110
- console.error(`执行字段 ${x} 的 ${_} 事件脚本出错:`, F);
6112
+ `)(D);
6113
+ } catch (D) {
6114
+ console.error(`执行字段 ${x} 的 ${_} 事件脚本出错:`, D);
6111
6115
  }
6112
6116
  }, g = (x) => {
6113
6117
  Object.keys(k).forEach((_) => {
6114
6118
  delete k[_];
6115
6119
  }), d(y.fields, (_) => {
6116
- const z = _.__vModel__;
6117
- if (!z) return;
6120
+ const F = _.__vModel__;
6121
+ if (!F) return;
6118
6122
  const ue = _.__config__;
6119
- if (x && z in x)
6120
- k[z] = x[z];
6123
+ if (x && F in x)
6124
+ k[F] = x[F];
6121
6125
  else if ("defaultValue" in ue && ue.defaultValue !== void 0)
6122
- k[z] = ue.defaultValue;
6126
+ k[F] = ue.defaultValue;
6123
6127
  else
6124
6128
  switch (w(ue.tag)) {
6125
6129
  case "t-input":
6126
6130
  case "t-textarea":
6127
- k[z] = "";
6131
+ k[F] = "";
6128
6132
  break;
6129
6133
  case "t-input-number":
6130
- k[z] = 0;
6134
+ k[F] = 0;
6131
6135
  break;
6132
6136
  case "t-switch":
6133
- k[z] = !1;
6137
+ k[F] = !1;
6134
6138
  break;
6135
6139
  case "t-rate":
6136
- k[z] = 0;
6140
+ k[F] = 0;
6137
6141
  break;
6138
6142
  case "t-checkbox-group":
6139
- k[z] = [];
6143
+ k[F] = [];
6140
6144
  break;
6141
6145
  default:
6142
- k[z] = null;
6146
+ k[F] = null;
6143
6147
  }
6144
6148
  }), u("update:modelValue", { ...k });
6145
6149
  }, E = async () => {
@@ -6155,7 +6159,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6155
6159
  }, re = () => ({ ...k }), de = (x) => {
6156
6160
  Object.assign(k, x), u("update:modelValue", { ...k });
6157
6161
  };
6158
- De(
6162
+ ze(
6159
6163
  () => y.modelValue,
6160
6164
  (x) => {
6161
6165
  x && Object.keys(x).length > 0 && Object.assign(k, x);
@@ -6169,7 +6173,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6169
6173
  if (((T = _.__config__) == null ? void 0 : T.cdkey) !== "treeSelect") return;
6170
6174
  const ue = _.releaseId;
6171
6175
  if (!ue || Array.isArray(_.options) && _.options.length > 0) return;
6172
- const se = _.parentField || "FPARENTID", le = _.valueField || "fid", F = _.labelField || "FNAME";
6176
+ const se = _.parentField || "FPARENTID", te = _.valueField || "fid", D = _.labelField || "FNAME";
6173
6177
  try {
6174
6178
  const be = ((b = (await (await fetch(`/api/visualdev/OnlineDev/list/${ue}`, {
6175
6179
  method: "POST",
@@ -6178,8 +6182,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6178
6182
  })).json()).data) == null ? void 0 : b.list) || [], we = /* @__PURE__ */ new Map(), Ce = [];
6179
6183
  for (const Ae of be) {
6180
6184
  const ce = {
6181
- value: Ae[le],
6182
- label: Ae[F] || Ae[le],
6185
+ value: Ae[te],
6186
+ label: Ae[D] || Ae[te],
6183
6187
  children: [],
6184
6188
  _parentId: Ae[se]
6185
6189
  };
@@ -6199,9 +6203,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6199
6203
  }
6200
6204
  });
6201
6205
  };
6202
- return De(() => y.fields, (x) => {
6206
+ return ze(() => y.fields, (x) => {
6203
6207
  x != null && x.length && W();
6204
- }, { immediate: !0 }), Da(() => {
6208
+ }, { immediate: !0 }), za(() => {
6205
6209
  var x;
6206
6210
  if ((x = y.formConf.funcs) != null && x.onLoad)
6207
6211
  try {
@@ -6223,7 +6227,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6223
6227
  } catch (_) {
6224
6228
  console.error("执行表单 onLoad 事件出错:", _);
6225
6229
  }
6226
- }), ae({
6230
+ }), le({
6227
6231
  formRef: c,
6228
6232
  validate: E,
6229
6233
  resetFields: O,
@@ -6231,7 +6235,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6231
6235
  setFormData: de,
6232
6236
  initFormData: g
6233
6237
  }), wa("formModel", k), wa("formConf", y.formConf), (x, _) => {
6234
- const z = M("t-row"), ue = M("t-form");
6238
+ const F = M("t-row"), ue = M("t-form");
6235
6239
  return l(), Y(ue, {
6236
6240
  ref_key: "formRef",
6237
6241
  ref: c,
@@ -6244,23 +6248,23 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6244
6248
  disabled: a.formConf.disabled
6245
6249
  }, {
6246
6250
  default: i(() => [
6247
- s(z, {
6251
+ s(F, {
6248
6252
  gutter: 0,
6249
6253
  class: "cd-row"
6250
6254
  }, {
6251
6255
  default: i(() => [
6252
- (l(!0), o(fe, null, _e(a.fields, (se, le) => {
6253
- var F;
6256
+ (l(!0), o(fe, null, _e(a.fields, (se, te) => {
6257
+ var D;
6254
6258
  return l(), o(fe, {
6255
- key: ((F = se.__config__) == null ? void 0 : F.formId) || se.__vModel__ || le
6259
+ key: ((D = se.__config__) == null ? void 0 : D.formId) || se.__vModel__ || te
6256
6260
  }, [
6257
- !se.__config__.noShow && A(se) ? (l(), Y(Fa, {
6261
+ !se.__config__.noShow && A(se) ? (l(), Y(Da, {
6258
6262
  key: 0,
6259
6263
  span: se.__config__.span,
6260
6264
  class: Ve(se.__config__.className)
6261
6265
  }, {
6262
6266
  default: i(() => [
6263
- s(Dl, {
6267
+ s(zl, {
6264
6268
  field: se,
6265
6269
  "form-model": k,
6266
6270
  "form-conf": a.formConf,
@@ -11822,7 +11826,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11822
11826
  size: {}
11823
11827
  },
11824
11828
  emits: ["search"],
11825
- setup(a, { emit: ae }) {
11829
+ setup(a, { emit: le }) {
11826
11830
  var n, y, u;
11827
11831
  const c = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], m = me(() => Vu.map((P) => c.includes(P.name) ? {
11828
11832
  label: P.name,
@@ -11875,12 +11879,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11875
11879
  function w(P) {
11876
11880
  return [...P].sort((j, r) => j.value.localeCompare(r.value, "zh-CN"));
11877
11881
  }
11878
- const d = a, I = ae, A = D({
11882
+ const d = a, I = le, A = z({
11879
11883
  field: ((n = d.filterCondition) == null ? void 0 : n.field) || "",
11880
11884
  operator: ((y = d.filterCondition) == null ? void 0 : y.operator) || "eq",
11881
11885
  value: ((u = d.filterCondition) == null ? void 0 : u.value) || null
11882
11886
  });
11883
- De(() => d.filterCondition, (P) => {
11887
+ ze(() => d.filterCondition, (P) => {
11884
11888
  P && (A.value = { ...P });
11885
11889
  }, { deep: !0 });
11886
11890
  const L = (P) => {
@@ -11982,7 +11986,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11982
11986
  I("search", { ...d.filterCondition });
11983
11987
  });
11984
11988
  };
11985
- return De(() => d.filterCondition.field, (P, j) => {
11989
+ return ze(() => d.filterCondition.field, (P, j) => {
11986
11990
  P && j && (d.filterCondition.operator = "eq", d.filterCondition.value = null);
11987
11991
  }), (P, j) => {
11988
11992
  var r;
@@ -12106,12 +12110,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12106
12110
  ]);
12107
12111
  };
12108
12112
  }
12109
- }), Ua = (a, ae) => {
12113
+ }), Ua = (a, le) => {
12110
12114
  const n = a.__vccOpts || a;
12111
- for (const [y, u] of ae)
12115
+ for (const [y, u] of le)
12112
12116
  n[y] = u;
12113
12117
  return n;
12114
- }, Ul = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-d96560aa"]]), zu = { class: "save-plan-content" }, Fu = {
12118
+ }, Ul = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-d96560aa"]]), Fu = { class: "save-plan-content" }, Du = {
12115
12119
  __name: "SavePlanDialog",
12116
12120
  props: {
12117
12121
  visible: {
@@ -12157,16 +12161,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12157
12161
  }
12158
12162
  },
12159
12163
  emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
12160
- setup(a, { emit: ae }) {
12161
- const n = a, y = ae, u = D({
12164
+ setup(a, { emit: le }) {
12165
+ const n = a, y = le, u = z({
12162
12166
  planName: "",
12163
12167
  shareMode: "none",
12164
12168
  shareType: "specific",
12165
12169
  selectedUsers: []
12166
- }), c = D([]), m = D([]), R = me(() => n.isEditing && n.originalShareMode === "copy");
12167
- De(() => n.visible, (B) => {
12170
+ }), c = z([]), m = z([]), R = me(() => n.isEditing && n.originalShareMode === "copy");
12171
+ ze(() => n.visible, (B) => {
12168
12172
  B ? n.isEditing && n.planName && (u.value.planName = n.planName, u.value.shareMode = n.originalShareMode || "none", u.value.shareType = n.originalShareType || "specific", n.originalSelectedUsers && n.originalSelectedUsers.length > 0 && (u.value.selectedUsers = [...n.originalSelectedUsers])) : k();
12169
- }), De(() => n.deptMembersDataProp, (B) => {
12173
+ }), ze(() => n.deptMembersDataProp, (B) => {
12170
12174
  B && (m.value = B);
12171
12175
  });
12172
12176
  const k = () => {
@@ -12228,7 +12232,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12228
12232
  onClose: Q
12229
12233
  }, {
12230
12234
  body: i(() => [
12231
- e("div", zu, [
12235
+ e("div", Fu, [
12232
12236
  s(S, {
12233
12237
  data: u.value,
12234
12238
  "label-align": "left",
@@ -12366,7 +12370,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12366
12370
  }, 8, ["header", "visible"]);
12367
12371
  };
12368
12372
  }
12369
- }, Du = /* @__PURE__ */ Ua(Fu, [["__scopeId", "data-v-7fd313f0"]]), Au = { class: "filter-dialog-content" }, Uu = { class: "leader-line-container" }, Ru = {
12373
+ }, zu = /* @__PURE__ */ Ua(Du, [["__scopeId", "data-v-7fd313f0"]]), Au = { class: "filter-dialog-content" }, Uu = { class: "leader-line-container" }, Ru = {
12370
12374
  class: "filter-scroll-wrapper",
12371
12375
  id: "filter-scroll-wrapper"
12372
12376
  }, Eu = {
@@ -12447,12 +12451,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12447
12451
  "dept-click",
12448
12452
  "column-change"
12449
12453
  ],
12450
- setup(a, { emit: ae }) {
12451
- const n = a, y = ae, u = D(JSON.parse(JSON.stringify(n.filterCards))), c = D(n.topOp), m = D(null), R = D(!1), k = D([]), w = D("filter"), d = D(!1), I = D(""), A = D("none"), L = D("specific"), Q = D([]), B = D(null);
12454
+ setup(a, { emit: le }) {
12455
+ const n = a, y = le, u = z(JSON.parse(JSON.stringify(n.filterCards))), c = z(n.topOp), m = z(null), R = z(!1), k = z([]), w = z("filter"), d = z(!1), I = z(""), A = z("none"), L = z("specific"), Q = z([]), B = z(null);
12452
12456
  let G = 100;
12453
- De(() => n.filterCards, (X) => {
12457
+ ze(() => n.filterCards, (X) => {
12454
12458
  u.value = JSON.parse(JSON.stringify(X));
12455
- }, { deep: !0 }), De(() => n.topOp, (X) => {
12459
+ }, { deep: !0 }), ze(() => n.topOp, (X) => {
12456
12460
  c.value = X;
12457
12461
  });
12458
12462
  const he = () => {
@@ -12490,7 +12494,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12490
12494
  };
12491
12495
  }).filter((ee) => ee.conditions.length > 0 && ee.conditions[0].field !== ""), S = (X) => {
12492
12496
  if (X.value !== "empty" && (m.value = X, y("plan-click", X), X.precepts && (u.value = JSON.parse(JSON.stringify(X.precepts))), X.sqlConnectType && (c.value = X.sqlConnectType), X.columns && X.columns.length > 0)) {
12493
- b.value = {}, q.value = {}, F.value = X.columns.filter((Ee) => Ee.show !== !1).map((Ee) => Ee.value), X.columns.forEach((Ee) => {
12497
+ b.value = {}, q.value = {}, D.value = X.columns.filter((Ee) => Ee.show !== !1).map((Ee) => Ee.value), X.columns.forEach((Ee) => {
12494
12498
  Ee.width && (b.value[Ee.value] = parseInt(Ee.width)), Ee.fixed ? q.value[Ee.value] = Ee.fixed : q.value[Ee.value] = "none";
12495
12499
  });
12496
12500
  const ee = X.columns.map((Ee) => Ee.value), Ue = ee.map(
@@ -12498,7 +12502,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12498
12502
  ).filter(Boolean), Ne = n.fieldOptions.filter(
12499
12503
  (Ee) => !ee.includes(Ee.value)
12500
12504
  );
12501
- ie.value = [...Ue, ...Ne], T.value = F.value.length === n.fieldOptions.length;
12505
+ ie.value = [...Ue, ...Ne], T.value = D.value.length === n.fieldOptions.length;
12502
12506
  const Me = X.columns.filter((Ee) => Ee.show !== !1);
12503
12507
  y("column-change", Me);
12504
12508
  }
@@ -12509,7 +12513,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12509
12513
  const Ne = b.value[Ue.value], Me = q.value[Ue.value] || "none";
12510
12514
  return {
12511
12515
  value: Ue.value,
12512
- show: F.value.includes(Ue.value),
12516
+ show: D.value.includes(Ue.value),
12513
12517
  // 是否显示
12514
12518
  width: Ne ? `${Ne}px` : "120px",
12515
12519
  fixed: Me
@@ -12555,22 +12559,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12555
12559
  type1: c.value
12556
12560
  });
12557
12561
  } else w.value === "column" && ke();
12558
- z();
12559
- }, z = () => {
12562
+ F();
12563
+ }, F = () => {
12560
12564
  y("update:visible", !1);
12561
12565
  }, ue = (X) => {
12562
12566
  y("load-users", X);
12563
12567
  }, se = (X) => {
12564
12568
  y("search", X);
12565
- }, le = (X) => {
12569
+ }, te = (X) => {
12566
12570
  y("dept-click", { dept: X, callback: (ee) => {
12567
12571
  k.value = ee;
12568
12572
  } });
12569
- }, F = D([]), T = D(!1), b = D({}), q = D({}), ie = D([]), be = D(null), we = D(null);
12570
- De(() => n.visibleColumns, (X) => {
12573
+ }, D = z([]), T = z(!1), b = z({}), q = z({}), ie = z([]), be = z(null), we = z(null);
12574
+ ze(() => n.visibleColumns, (X) => {
12571
12575
  if (b.value = {}, q.value = {}, X && X.length > 0) {
12572
12576
  if (typeof X[0] == "object") {
12573
- F.value = X.filter((Me) => Me.show !== !1).map((Me) => Me.value), X.forEach((Me) => {
12577
+ D.value = X.filter((Me) => Me.show !== !1).map((Me) => Me.value), X.forEach((Me) => {
12574
12578
  Me.width && (b.value[Me.value] = parseInt(Me.width)), Me.fixed ? q.value[Me.value] = Me.fixed : q.value[Me.value] = "none";
12575
12579
  });
12576
12580
  const ee = X.map((Me) => Me.value), Ue = ee.map(
@@ -12580,7 +12584,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12580
12584
  );
12581
12585
  ie.value = [...Ue, ...Ne];
12582
12586
  } else {
12583
- F.value = [...X];
12587
+ D.value = [...X];
12584
12588
  const ee = X.map(
12585
12589
  (Ne) => n.fieldOptions.find((Me) => Me.value === Ne)
12586
12590
  ).filter(Boolean), Ue = n.fieldOptions.filter(
@@ -12588,24 +12592,24 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12588
12592
  );
12589
12593
  ie.value = [...ee, ...Ue];
12590
12594
  }
12591
- T.value = F.value.length === n.fieldOptions.length;
12592
- } else n.fieldOptions.length > 0 && (F.value = n.fieldOptions.map((ee) => ee.value), ie.value = [...n.fieldOptions], T.value = !0);
12595
+ T.value = D.value.length === n.fieldOptions.length;
12596
+ } else n.fieldOptions.length > 0 && (D.value = n.fieldOptions.map((ee) => ee.value), ie.value = [...n.fieldOptions], T.value = !0);
12593
12597
  n.fieldOptions.forEach((ee) => {
12594
12598
  q.value[ee.value] || (q.value[ee.value] = "none");
12595
12599
  });
12596
- }, { immediate: !0 }), De(() => n.fieldOptions, (X) => {
12600
+ }, { immediate: !0 }), ze(() => n.fieldOptions, (X) => {
12597
12601
  ie.value.length || (ie.value = [...X]);
12598
12602
  }, { immediate: !0 });
12599
12603
  const Ce = (X, ee) => {
12600
12604
  if (ee)
12601
- F.value.includes(X) || F.value.push(X);
12605
+ D.value.includes(X) || D.value.push(X);
12602
12606
  else {
12603
- const Ue = F.value.indexOf(X);
12604
- Ue > -1 && F.value.splice(Ue, 1);
12607
+ const Ue = D.value.indexOf(X);
12608
+ Ue > -1 && D.value.splice(Ue, 1);
12605
12609
  }
12606
- T.value = F.value.length === n.fieldOptions.length;
12610
+ T.value = D.value.length === n.fieldOptions.length;
12607
12611
  }, ge = (X) => {
12608
- X ? F.value = ie.value.map((ee) => ee.value) : F.value = [];
12612
+ X ? D.value = ie.value.map((ee) => ee.value) : D.value = [];
12609
12613
  }, Ae = (X) => {
12610
12614
  if (X > 0) {
12611
12615
  const ee = ie.value[X];
@@ -12620,7 +12624,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12620
12624
  be.value = X, ee.dataTransfer.effectAllowed = "move", ee.dataTransfer.setData("text/html", ee.target.innerHTML);
12621
12625
  }, h = (X, ee) => {
12622
12626
  ee.preventDefault(), ee.dataTransfer.dropEffect = "move", we.value = X;
12623
- }, ze = () => {
12627
+ }, Fe = () => {
12624
12628
  be.value = null, we.value = null;
12625
12629
  }, Ye = (X, ee) => {
12626
12630
  ee.preventDefault();
@@ -12630,7 +12634,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12630
12634
  const Ne = [...ie.value], Me = Ne[Ue];
12631
12635
  Ne.splice(Ue, 1), Ne.splice(X, 0, Me), ie.value = Ne, be.value = null, we.value = null;
12632
12636
  }, ke = () => {
12633
- const X = ie.value.filter((ee) => F.value.includes(ee.value)).map((ee) => {
12637
+ const X = ie.value.filter((ee) => D.value.includes(ee.value)).map((ee) => {
12634
12638
  const Ue = b.value[ee.value], Ne = q.value[ee.value] || "none";
12635
12639
  return {
12636
12640
  value: ee.value,
@@ -12645,7 +12649,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12645
12649
  y("column-change", X);
12646
12650
  };
12647
12651
  return (X, ee) => {
12648
- const Ue = M("t-radio-button"), Ne = M("t-radio-group"), Me = M("t-icon"), Ee = M("t-button"), ra = M("t-tab-panel"), oe = M("t-checkbox"), ia = M("t-option"), Fe = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12652
+ const Ue = M("t-radio-button"), Ne = M("t-radio-group"), Me = M("t-icon"), Ee = M("t-button"), ra = M("t-tab-panel"), oe = M("t-checkbox"), ia = M("t-option"), De = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12649
12653
  return l(), o(fe, null, [
12650
12654
  s(da, {
12651
12655
  header: "方案设置",
@@ -12655,7 +12659,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12655
12659
  width: a.width,
12656
12660
  "z-index": 999,
12657
12661
  footer: !0,
12658
- onClose: z,
12662
+ onClose: F,
12659
12663
  id: "leader-line-clip-container"
12660
12664
  }, {
12661
12665
  body: i(() => [
@@ -12712,7 +12716,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12712
12716
  s(Ne, {
12713
12717
  size: a.size,
12714
12718
  modelValue: p.connector,
12715
- "onUpdate:modelValue": (ne) => p.connector = ne,
12719
+ "onUpdate:modelValue": (ae) => p.connector = ae,
12716
12720
  class: "connector-selector"
12717
12721
  }, {
12718
12722
  default: i(() => [
@@ -12736,7 +12740,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12736
12740
  theme: "default",
12737
12741
  variant: "text",
12738
12742
  size: a.size,
12739
- onClick: (ne) => J(v),
12743
+ onClick: (ae) => J(v),
12740
12744
  disabled: u.value.length === 1
12741
12745
  }, {
12742
12746
  icon: i(() => [
@@ -12746,7 +12750,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12746
12750
  }, 8, ["size", "onClick", "disabled"])
12747
12751
  ]),
12748
12752
  e("div", Lu, [
12749
- (l(!0), o(fe, null, _e(p.conditions, (ne, Be) => (l(), o("div", {
12753
+ (l(!0), o(fe, null, _e(p.conditions, (ae, Be) => (l(), o("div", {
12750
12754
  key: Be,
12751
12755
  class: "filter-combination"
12752
12756
  }, [
@@ -12773,7 +12777,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12773
12777
  s(Ee, {
12774
12778
  theme: "default",
12775
12779
  size: a.size,
12776
- onClick: (ne) => P(v)
12780
+ onClick: (ae) => P(v)
12777
12781
  }, {
12778
12782
  icon: i(() => [
12779
12783
  s(Me, { name: "add" })
@@ -12825,10 +12829,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12825
12829
  key: p.value,
12826
12830
  class: Ve(["column-item-row", { dragging: be.value === v }]),
12827
12831
  draggable: "true",
12828
- onDragstart: (ne) => N(v, ne),
12829
- onDragover: (ne) => h(v, ne),
12830
- onDragend: ze,
12831
- onDrop: (ne) => Ye(v, ne)
12832
+ onDragstart: (ae) => N(v, ae),
12833
+ onDragover: (ae) => h(v, ae),
12834
+ onDragend: Fe,
12835
+ onDrop: (ae) => Ye(v, ae)
12832
12836
  }, [
12833
12837
  e("div", Xu, [
12834
12838
  s(Me, {
@@ -12839,14 +12843,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12839
12843
  ]),
12840
12844
  e("div", Qu, [
12841
12845
  s(oe, {
12842
- checked: F.value.includes(p.value),
12843
- onChange: (ne) => Ce(p.value, ne)
12846
+ checked: D.value.includes(p.value),
12847
+ onChange: (ae) => Ce(p.value, ae)
12844
12848
  }, null, 8, ["checked", "onChange"])
12845
12849
  ]),
12846
12850
  e("div", Zu, [
12847
- s(Fe, {
12851
+ s(De, {
12848
12852
  modelValue: q.value[p.value],
12849
- "onUpdate:modelValue": (ne) => q.value[p.value] = ne,
12853
+ "onUpdate:modelValue": (ae) => q.value[p.value] = ae,
12850
12854
  size: "small",
12851
12855
  style: { width: "120px" }
12852
12856
  }, {
@@ -12870,7 +12874,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12870
12874
  e("div", ec, [
12871
12875
  s(sa, {
12872
12876
  modelValue: b.value[p.value],
12873
- "onUpdate:modelValue": (ne) => b.value[p.value] = ne,
12877
+ "onUpdate:modelValue": (ae) => b.value[p.value] = ae,
12874
12878
  min: 50,
12875
12879
  max: 500,
12876
12880
  step: 10,
@@ -12884,7 +12888,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12884
12888
  theme: "default",
12885
12889
  variant: "text",
12886
12890
  size: "small",
12887
- onClick: (ne) => Ae(v),
12891
+ onClick: (ae) => Ae(v),
12888
12892
  disabled: v === 0
12889
12893
  }, {
12890
12894
  icon: i(() => [
@@ -12899,7 +12903,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12899
12903
  theme: "default",
12900
12904
  variant: "text",
12901
12905
  size: "small",
12902
- onClick: (ne) => ce(v),
12906
+ onClick: (ae) => ce(v),
12903
12907
  disabled: v === ie.value.length - 1
12904
12908
  }, {
12905
12909
  icon: i(() => [
@@ -12929,7 +12933,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12929
12933
  return l(), o("div", {
12930
12934
  key: p.value,
12931
12935
  class: Ve(["filter-plan-item", { active: ((v = m.value) == null ? void 0 : v.value) === p.value }]),
12932
- onClick: (ne) => S(p)
12936
+ onClick: (ae) => S(p)
12933
12937
  }, [
12934
12938
  s(Me, {
12935
12939
  name: "file-text",
@@ -12950,7 +12954,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12950
12954
  theme: "default",
12951
12955
  variant: "text",
12952
12956
  size: "small",
12953
- onClick: Ze((ne) => O(p), ["stop"]),
12957
+ onClick: Ze((ae) => O(p), ["stop"]),
12954
12958
  disabled: !p.value || p.value === "empty"
12955
12959
  }, {
12956
12960
  icon: i(() => [
@@ -12973,7 +12977,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12973
12977
  theme: "default",
12974
12978
  variant: "text",
12975
12979
  size: "small",
12976
- onClick: (ne) => W(p),
12980
+ onClick: (ae) => W(p),
12977
12981
  disabled: !p.value || p.value === "empty"
12978
12982
  }, {
12979
12983
  icon: i(() => [
@@ -12996,7 +13000,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12996
13000
  theme: "default",
12997
13001
  variant: "text",
12998
13002
  size: "small",
12999
- onClick: (ne) => re(p),
13003
+ onClick: (ae) => re(p),
13000
13004
  disabled: !p.value || p.value === "empty"
13001
13005
  }, {
13002
13006
  icon: i(() => [
@@ -13019,7 +13023,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13019
13023
  theme: "default",
13020
13024
  variant: "text",
13021
13025
  size: "small",
13022
- onClick: (ne) => de(p),
13026
+ onClick: (ae) => de(p),
13023
13027
  disabled: !p.value || p.value === "empty"
13024
13028
  }, {
13025
13029
  icon: i(() => [
@@ -13085,7 +13089,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13085
13089
  ]),
13086
13090
  _: 1
13087
13091
  }, 8, ["visible", "width"]),
13088
- s(Du, {
13092
+ s(zu, {
13089
13093
  visible: R.value,
13090
13094
  "onUpdate:visible": ee[5] || (ee[5] = (p) => R.value = p),
13091
13095
  "is-editing": d.value,
@@ -13099,7 +13103,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13099
13103
  onConfirm: E,
13100
13104
  onLoadUsers: ue,
13101
13105
  onSearch: se,
13102
- onDeptClick: le
13106
+ onDeptClick: te
13103
13107
  }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
13104
13108
  ], 64);
13105
13109
  };
@@ -13116,8 +13120,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13116
13120
  initialRules: { type: Array, default: () => [] }
13117
13121
  },
13118
13122
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
13119
- setup(a, { emit: ae }) {
13120
- const n = a, y = ae, u = D(n.visible), c = [
13123
+ setup(a, { emit: le }) {
13124
+ const n = a, y = le, u = z(n.visible), c = [
13121
13125
  // 第一行 - 暖色系
13122
13126
  "#FFE7BA",
13123
13127
  "#FFD6E7",
@@ -13164,7 +13168,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13164
13168
  overlayInnerStyle: {
13165
13169
  width: "180px"
13166
13170
  }
13167
- }, k = D([
13171
+ }, k = z([
13168
13172
  {
13169
13173
  field: "",
13170
13174
  operator: "eq",
@@ -13175,12 +13179,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13175
13179
  applyTo: "cell"
13176
13180
  }
13177
13181
  ]);
13178
- De(() => n.visible, (he) => {
13182
+ ze(() => n.visible, (he) => {
13179
13183
  u.value = he, he && n.initialRules.length > 0 && (k.value = JSON.parse(JSON.stringify(n.initialRules)).map((J) => ({
13180
13184
  ...J,
13181
13185
  showColorPicker: !1
13182
13186
  })));
13183
- }), De(u, (he) => {
13187
+ }), ze(u, (he) => {
13184
13188
  y("update:visible", he);
13185
13189
  });
13186
13190
  const w = (he, J) => {
@@ -13276,7 +13280,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13276
13280
  key: _,
13277
13281
  class: Ve(["preset-color-item", { active: W.backgroundColor === _ }]),
13278
13282
  style: Qe({ backgroundColor: _ }),
13279
- onClick: (z) => w(x, _)
13283
+ onClick: (F) => w(x, _)
13280
13284
  }, null, 14, _c)), 64))
13281
13285
  ]),
13282
13286
  e("div", kc, [
@@ -13435,10 +13439,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13435
13439
  }, Vc = /* @__PURE__ */ Ua($c, [["__scopeId", "data-v-822b291e"]]), Sc = { class: "cd-filter-bar" }, Mc = {
13436
13440
  key: 0,
13437
13441
  class: "inline-filter-toolbar"
13438
- }, zc = {
13442
+ }, Fc = {
13439
13443
  key: 1,
13440
13444
  class: "plan-radio-group"
13441
- }, Fc = { class: "filter-action-buttons" }, Dc = { class: "save-plan-content" }, Ac = {
13445
+ }, Dc = { class: "filter-action-buttons" }, zc = { class: "save-plan-content" }, Ac = {
13442
13446
  __name: "cd-filter-bar",
13443
13447
  props: {
13444
13448
  fieldOptions: { type: Array, required: !0 },
@@ -13484,8 +13488,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13484
13488
  "keyword-clear",
13485
13489
  "smart-colors-change"
13486
13490
  ],
13487
- setup(a, { emit: ae }) {
13488
- const n = a, y = ae, u = D([]), c = () => ({ field: "", operator: "eq", value: "" });
13491
+ setup(a, { emit: le }) {
13492
+ const n = a, y = le, u = z([]), c = () => ({ field: "", operator: "eq", value: "" });
13489
13493
  (() => {
13490
13494
  var b, q;
13491
13495
  if (n.filterCount === 0) {
@@ -13501,9 +13505,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13501
13505
  return;
13502
13506
  }
13503
13507
  u.value = Array.from({ length: n.filterCount }, () => c());
13504
- }, R = D("保存筛选方案"), k = D(!1), w = D(n.topOp), d = D(JSON.parse(JSON.stringify(n.filterCards)));
13505
- De(() => n.topOp, (b) => w.value = b), De(() => n.filterCards, (b) => d.value = JSON.parse(JSON.stringify(b)));
13506
- const I = D(null), A = D(""), L = me(() => n.planFilterOptions && n.planFilterOptions.length > 0 ? n.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), Q = (b) => {
13508
+ }, R = z("保存筛选方案"), k = z(!1), w = z(n.topOp), d = z(JSON.parse(JSON.stringify(n.filterCards)));
13509
+ ze(() => n.topOp, (b) => w.value = b), ze(() => n.filterCards, (b) => d.value = JSON.parse(JSON.stringify(b)));
13510
+ const I = z(null), A = z(""), L = me(() => n.planFilterOptions && n.planFilterOptions.length > 0 ? n.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), Q = (b) => {
13507
13511
  const q = n.planFilterOptions.find((ie) => ie.value === b);
13508
13512
  q && B(q);
13509
13513
  }, B = (b) => {
@@ -13612,17 +13616,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13612
13616
  ie && ie.conditions && (u.value = Array.from({ length: n.filterCount }, (be, we) => ie.conditions[we] ? JSON.parse(JSON.stringify(ie.conditions[we])) : c()));
13613
13617
  }
13614
13618
  P();
13615
- }, re = D(!1), de = D({ name: "" }), W = D(!1), x = D([]), _ = () => {
13619
+ }, re = z(!1), de = z({ name: "" }), W = z(!1), x = z([]), _ = () => {
13616
13620
  W.value = !0;
13617
- }, z = (b) => {
13621
+ }, F = (b) => {
13618
13622
  x.value = b, y("color-filter-change", b);
13619
13623
  }, ue = () => {
13620
13624
  x.value = [], y("color-filter-clear");
13621
13625
  };
13622
- D("");
13626
+ z("");
13623
13627
  const se = (b) => {
13624
13628
  y("smart-colors-change", b);
13625
- }, le = me(() => x.value.filter((b) => b.field && b.operator && b.value).length), F = me(() => {
13629
+ }, te = me(() => x.value.filter((b) => b.field && b.operator && b.value).length), D = me(() => {
13626
13630
  const b = x.value.filter((q) => q.field && q.operator && q.value);
13627
13631
  return b.length === 0 ? "颜色筛选" : `
13628
13632
  ${b.map((q) => {
@@ -13641,7 +13645,7 @@ ${b.map((q) => {
13641
13645
  notContains: "不包含"
13642
13646
  })[b] || b;
13643
13647
  return (b, q) => {
13644
- const ie = M("t-radio-button"), be = M("t-radio-group"), we = M("t-icon"), Ce = M("t-button"), ge = M("t-badge"), Ae = M("t-tooltip"), ce = M("t-dropdown"), N = M("t-input"), h = M("t-form-item"), ze = M("t-form"), Ye = M("t-dialog");
13648
+ const ie = M("t-radio-button"), be = M("t-radio-group"), we = M("t-icon"), Ce = M("t-button"), ge = M("t-badge"), Ae = M("t-tooltip"), ce = M("t-dropdown"), N = M("t-input"), h = M("t-form-item"), Fe = M("t-form"), Ye = M("t-dialog");
13645
13649
  return l(), o("div", Sc, [
13646
13650
  a.filterCount > 0 ? (l(), o("div", Mc, [
13647
13651
  (l(!0), o(fe, null, _e(u.value, (ke, X) => (l(), Y(Ul, {
@@ -13653,7 +13657,7 @@ ${b.map((q) => {
13653
13657
  onSearch: G
13654
13658
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
13655
13659
  ])) : H("", !0),
13656
- a.filterCount === 0 && a.planFilterOptions.length > 0 ? (l(), o("div", zc, [
13660
+ a.filterCount === 0 && a.planFilterOptions.length > 0 ? (l(), o("div", Fc, [
13657
13661
  q[12] || (q[12] = e("span", { class: "plan-label" }, "我的方案:", -1)),
13658
13662
  s(be, {
13659
13663
  modelValue: A.value,
@@ -13688,7 +13692,7 @@ ${b.map((q) => {
13688
13692
  _: 1
13689
13693
  }, 8, ["size"])
13690
13694
  ])) : H("", !0),
13691
- e("div", Fc, [
13695
+ e("div", Dc, [
13692
13696
  a.filterCount > 0 ? (l(), Y(Ce, {
13693
13697
  key: 0,
13694
13698
  theme: "primary",
@@ -13703,12 +13707,12 @@ ${b.map((q) => {
13703
13707
  }, 8, ["size"])) : H("", !0),
13704
13708
  a.filterCount > 0 ? (l(), Y(Ae, {
13705
13709
  key: 1,
13706
- content: F.value,
13710
+ content: D.value,
13707
13711
  placement: "top"
13708
13712
  }, {
13709
13713
  default: i(() => [
13710
13714
  s(ge, {
13711
- count: le.value,
13715
+ count: te.value,
13712
13716
  "max-count": 99
13713
13717
  }, {
13714
13718
  default: i(() => [
@@ -13783,8 +13787,8 @@ ${b.map((q) => {
13783
13787
  onClose: S
13784
13788
  }, {
13785
13789
  body: i(() => [
13786
- e("div", Dc, [
13787
- s(ze, {
13790
+ e("div", zc, [
13791
+ s(Fe, {
13788
13792
  data: de.value,
13789
13793
  "label-width": "100px"
13790
13794
  }, {
@@ -13835,7 +13839,7 @@ ${b.map((q) => {
13835
13839
  "field-options": a.fieldOptions,
13836
13840
  size: a.size,
13837
13841
  "initial-rules": x.value,
13838
- onConfirm: z,
13842
+ onConfirm: F,
13839
13843
  onClear: ue,
13840
13844
  onSmartColorsChange: se
13841
13845
  }, null, 8, ["visible", "field-options", "size", "initial-rules"])
@@ -13849,8 +13853,8 @@ ${b.map((q) => {
13849
13853
  var a = document.createElement("style");
13850
13854
  a.appendChild(document.createTextNode(".cd-share-content[data-v-bd14b324]{display:flex;flex-direction:column;gap:10px;box-sizing:border-box}.cd-share-content[data-v-bd14b324] *{box-sizing:border-box}.cd-share-header[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px}.cd-share-title[data-v-bd14b324]{font:500 16px Microsoft Yahei;display:flex;align-items:center;gap:8px}.cd-share-back-icon[data-v-bd14b324]{margin-right:3px;cursor:pointer}.cd-share-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-cooperators[data-v-bd14b324]{display:flex;align-items:center;gap:12px;margin:0 16px}.cd-share-label[data-v-bd14b324]{width:80px;flex-shrink:0;color:#000}.cd-share-collaborators-wrapper[data-v-bd14b324]{display:flex;align-items:center;gap:12px;margin-left:auto}.cd-share-avatars-container[data-v-bd14b324]{display:flex;align-items:center;flex:1;gap:12px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s}.cd-share-avatars-container[data-v-bd14b324]:hover{background-color:#f5f5f5}.cd-share-avatar-owner[data-v-bd14b324]{flex-shrink:0}.cd-share-divider[data-v-bd14b324]{width:1px;height:32px;background-color:#e5e7eb;flex-shrink:0}.cd-share-collaborators-avatars[data-v-bd14b324]{display:flex;align-items:center;gap:8px;flex:1}.cd-share-more-avatars[data-v-bd14b324]{width:32px;height:32px;border-radius:50%;background-color:#f0f0f0;color:#666;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.cd-share-expand-icon[data-v-bd14b324]{margin-left:auto;flex-shrink:0;color:#999;cursor:pointer}.cd-share-add-collaborator-btn[data-v-bd14b324]{width:32px;height:32px;border:1px dashed #d9d9d9;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;transition:all .2s;flex-shrink:0}.cd-share-add-collaborator-btn[data-v-bd14b324]:hover{border-color:#0052d9;color:#0052d9;background-color:#f0f5ff}.cd-share-collaborator-list[data-v-bd14b324]{margin:8px 16px 0;border:1px solid #e5e7eb;border-radius:4px;overflow:hidden}.cd-share-collaborator-list-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #f0f0f0}.cd-share-collaborator-list-item[data-v-bd14b324]:last-child{border-bottom:none}.cd-share-collaborator-info[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-collaborator-name[data-v-bd14b324]{font-size:14px;color:#333}.cd-share-collaborator-role[data-v-bd14b324]{font-size:14px;color:#999}.cd-share-collaborator-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-selector-wrapper[data-v-bd14b324]{margin:0 16px}.cd-share-selector-content[data-v-bd14b324]{display:flex;align-items:center;flex:1}.cd-share-readonly-tip[data-v-bd14b324]{margin:0 16px;padding:12px;background-color:#f5f5f5;border-radius:4px;font-size:14px;color:#666;display:flex;align-items:center}.cd-share-options[data-v-bd14b324]{margin-left:16px;display:flex;height:30px;align-items:center;gap:16px}.cd-share-form-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px;margin-top:8px;justify-content:flex-end;padding:16px 16px 0}.cd-share-footer[data-v-bd14b324]{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-top:15px}.cd-share-footer-top[data-v-bd14b324]{width:100%;padding:0 16px}.cd-share-footer-title[data-v-bd14b324]{margin-bottom:10px;color:#000}.cd-share-footer-controls[data-v-bd14b324]{display:flex;align-items:center;width:100%;margin-top:6px;justify-content:space-between}.cd-share-footer-bottom[data-v-bd14b324]{display:flex;align-items:center;gap:10px;padding:16px;width:100%;background-color:#f5f6f7;margin-bottom:-10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.cd-share-org-control[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-org-icon[data-v-bd14b324]{background-color:#0594fa;width:35px;height:35px;color:#fff;padding:6px;border-radius:50%}.cd-share-org-content[data-v-bd14b324]{display:flex;flex-direction:column}.cd-share-org-note[data-v-bd14b324]{font-size:12px;color:#666}.cd-share-copy-action[data-v-bd14b324]{cursor:pointer;border:1px solid rgb(208,211,214);padding:5px 12px;border-radius:26px;transition:color .2s ease;display:flex;align-items:center;gap:4px}.cd-share-copy-action[data-v-bd14b324]:hover,.cd-share-copy-action[data-v-bd14b324]:hover .t-icon{color:#0594fa}.cd-share-icon-actions[data-v-bd14b324]{display:flex;align-items:center;gap:12px}.cd-share-icon-btn[data-v-bd14b324]{width:36px;height:36px;border:1px solid rgb(208,211,214);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.cd-share-icon-btn[data-v-bd14b324] .t-icon{font-size:20px}.cd-share-icon-btn.is-disabled[data-v-bd14b324]{opacity:.4;cursor:not-allowed;pointer-events:none}[data-v-bd14b324] .t-textarea{padding:0 10px}.cd-permission-settings[data-v-bd14b324]{display:flex;flex-direction:column;gap:24px;padding:16px}.cd-permission-section[data-v-bd14b324]{display:flex;flex-direction:column;gap:12px}.cd-permission-section-title[data-v-bd14b324]{font-size:14px;font-weight:500;color:#000;margin-bottom:4px}.cd-permission-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.cd-permission-item-label[data-v-bd14b324]{font-size:14px;color:#333;flex:1}.cd-permission-item-note[data-v-bd14b324]{font-size:12px;color:#999;margin-top:-8px}.cd-permission-actions[data-v-bd14b324]{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid #e5e7eb}.cd-collaborator-list-content[data-v-bd14b324]{max-height:400px;overflow-y:auto}.cd-collaborator-list-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid #f0f0f0}.cd-collaborator-list-item[data-v-bd14b324]:last-child{border-bottom:none}.cd-collaborator-list-item[data-v-bd14b324]:hover{background-color:#f5f5f5}.cd-collaborator-item-info[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-collaborator-item-name[data-v-bd14b324]{font-size:14px;color:#333}.cd-collaborator-item-role[data-v-bd14b324]{font-size:14px;color:#999}.cd-collaborator-item-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-collaborator-item-permission-text[data-v-bd14b324]{font-size:14px;color:#666;padding:4px 12px;background-color:#f5f5f5;border-radius:4px}.cd-qrcode-content[data-v-bd14b324]{display:flex;flex-direction:column;align-items:center;padding:24px;gap:16px}.cd-qrcode-image[data-v-bd14b324]{width:300px;height:300px;border:1px solid #e5e7eb;border-radius:8px}.cd-qrcode-url[data-v-bd14b324]{font-size:14px;color:#666;word-break:break-all;text-align:center;padding:0 16px}.cd-qrcode-tip[data-v-bd14b324]{font-size:12px;color:#999}.cd-encrypt-content[data-v-bd14b324]{display:flex;flex-direction:column;padding:16px;gap:16px}.cd-encrypt-field[data-v-bd14b324]{display:flex;flex-direction:column;gap:8px}.cd-encrypt-label[data-v-bd14b324]{font-size:14px;font-weight:500;color:#333}.cd-encrypt-note[data-v-bd14b324]{display:flex;align-items:flex-start;font-size:12px;color:#666;background-color:#f5f5f5;padding:12px;border-radius:4px;line-height:1.6}.cd-encrypt-actions[data-v-bd14b324]{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid #e5e7eb}.cd-share-dialog .t-dialog{padding:0!important}.cd-share-dialog .t-dialog__header,.cd-share-dialog .t-dialog__body,.cd-share-dialog .t-dialog__content{padding:0!important;overflow:visible!important;max-height:none!important}.cd-share-dialog .t-dialog__body{overflow-y:visible!important}:deep(.t-select__dropdown)>.t-select__dropdown-inner>.t-select-option-group>.t-select-option-group__header{color:#999!important}")), document.head.appendChild(a);
13851
13855
  }
13852
- } catch (ae) {
13853
- console.error("vite-plugin-css-injected-by-js", ae);
13856
+ } catch (le) {
13857
+ console.error("vite-plugin-css-injected-by-js", le);
13854
13858
  }
13855
13859
  })();
13856
13860
  const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc = {
@@ -13877,7 +13881,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13877
13881
  }, Vf = {
13878
13882
  key: 0,
13879
13883
  class: "cd-collaborator-item-permission-text"
13880
- }, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], zf = { class: "cd-qrcode-url" }, Ff = { class: "cd-encrypt-content" }, Df = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Ge({
13884
+ }, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], Ff = { class: "cd-qrcode-url" }, Df = { class: "cd-encrypt-content" }, zf = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Ge({
13881
13885
  name: "CdShareDialog",
13882
13886
  __name: "ShareDialog",
13883
13887
  props: {
@@ -13895,9 +13899,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13895
13899
  defaultPermissionSettings: {}
13896
13900
  },
13897
13901
  emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
13898
- setup(a, { emit: ae }) {
13902
+ setup(a, { emit: le }) {
13899
13903
  var n;
13900
- const y = a, u = ae, c = D(y.visible), m = D(y.shareUrl), R = D([]), k = D(!1), w = D(1), d = D("read"), I = D(!0), A = D(!1), L = D(""), Q = D(""), B = D(!1), G = D(!1), he = D(!1), J = D(!1), P = D(""), j = D({
13904
+ const y = a, u = le, c = z(y.visible), m = z(y.shareUrl), R = z([]), k = z(!1), w = z(1), d = z("read"), I = z(!0), A = z(!1), L = z(""), Q = z(""), B = z(!1), G = z(!1), he = z(!1), J = z(!1), P = z(""), j = z({
13901
13905
  allowExternalShare: ((n = y.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
13902
13906
  collaboratorManagement: "org-only",
13903
13907
  copyPermission: "edit",
@@ -13905,12 +13909,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13905
13909
  commentPermission: "all",
13906
13910
  viewerAvatarsPermission: "all"
13907
13911
  }), r = me(() => {
13908
- const N = y.organizations || [], h = N.filter((ke) => ke.id !== "internet"), ze = N.find((ke) => ke.id === "internet"), Ye = [];
13912
+ const N = y.organizations || [], h = N.filter((ke) => ke.id !== "internet"), Fe = N.find((ke) => ke.id === "internet"), Ye = [];
13909
13913
  return h.forEach((ke) => {
13910
13914
  Ye.push({ label: ke.name, value: ke.id });
13911
- }), ze && Ye.push({
13915
+ }), Fe && Ye.push({
13912
13916
  label: "互联网获得链接的人",
13913
- value: ze.id
13917
+ value: Fe.id
13914
13918
  }), [{
13915
13919
  group: "分享范围",
13916
13920
  children: Ye
@@ -13930,9 +13934,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13930
13934
  avatar: N.avatar || "",
13931
13935
  isUser: !0
13932
13936
  }))), de = me(() => m.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(m.value)}` : ""), W = (N) => N ? N.substring(0, 2).toUpperCase() : "所";
13933
- De(() => y.visible, (N) => c.value = N), De(() => y.shareUrl, (N) => m.value = N), De(c, (N) => {
13937
+ ze(() => y.visible, (N) => c.value = N), ze(() => y.shareUrl, (N) => m.value = N), ze(c, (N) => {
13934
13938
  u("update:visible", N), N && x();
13935
- }), De(R, (N) => {
13939
+ }), ze(R, (N) => {
13936
13940
  if (O.value === "read") {
13937
13941
  k.value = !1;
13938
13942
  return;
@@ -13944,7 +13948,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13944
13948
  R.value = [], w.value = ((N = y.organizations[0]) == null ? void 0 : N.id) || 1, Q.value = "", d.value = "read", I.value = !0, A.value = !1, L.value = "", k.value = !1;
13945
13949
  }, _ = () => {
13946
13950
  k.value = !1;
13947
- }, z = () => {
13951
+ }, F = () => {
13948
13952
  _();
13949
13953
  }, ue = () => {
13950
13954
  if (O.value === "read") {
@@ -13966,9 +13970,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13966
13970
  } catch {
13967
13971
  Te.error("复制失败");
13968
13972
  }
13969
- }, le = () => {
13973
+ }, te = () => {
13970
13974
  y.helpUrl && window.open(y.helpUrl, "_blank");
13971
- }, F = (N) => {
13975
+ }, D = (N) => {
13972
13976
  u("search", N);
13973
13977
  }, T = (N) => {
13974
13978
  u("load-users", N);
@@ -14007,7 +14011,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14007
14011
  }, ge = () => {
14008
14012
  const N = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
14009
14013
  let h = "";
14010
- for (let ze = 0; ze < 6; ze++)
14014
+ for (let Fe = 0; Fe < 6; Fe++)
14011
14015
  h += N.charAt(Math.floor(Math.random() * N.length));
14012
14016
  P.value = h;
14013
14017
  }, Ae = async () => {
@@ -14019,9 +14023,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14019
14023
  Te.warning("请先生成或输入6位密码");
14020
14024
  return;
14021
14025
  }
14022
- const N = m.value || "", h = N.includes("?") ? "&" : "?", ze = `链接:${`${N}${h}pwd=${P.value}`} 密码:${P.value}`;
14026
+ const N = m.value || "", h = N.includes("?") ? "&" : "?", Fe = `链接:${`${N}${h}pwd=${P.value}`} 密码:${P.value}`;
14023
14027
  try {
14024
- await navigator.clipboard.writeText(ze), Te.success("链接和密码已复制");
14028
+ await navigator.clipboard.writeText(Fe), Te.success("链接和密码已复制");
14025
14029
  } catch {
14026
14030
  Te.error("复制失败");
14027
14031
  }
@@ -14036,14 +14040,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14036
14040
  }
14037
14041
  Te.success("密码设置成功"), J.value = !1, console.log("链接密码:", P.value);
14038
14042
  };
14039
- return De(J, (N) => {
14043
+ return ze(J, (N) => {
14040
14044
  N && !P.value && ge();
14041
14045
  }), (N, h) => {
14042
- const ze = M("t-icon"), Ye = M("t-tooltip"), ke = M("t-button"), X = M("t-avatar"), ee = M("t-select"), Ue = M("t-checkbox"), Ne = M("t-input"), Me = M("t-textarea"), Ee = M("t-dialog"), ra = M("t-switch"), oe = M("t-radio"), ia = M("t-radio-group");
14046
+ const Fe = M("t-icon"), Ye = M("t-tooltip"), ke = M("t-button"), X = M("t-avatar"), ee = M("t-select"), Ue = M("t-checkbox"), Ne = M("t-input"), Me = M("t-textarea"), Ee = M("t-dialog"), ra = M("t-switch"), oe = M("t-radio"), ia = M("t-radio-group");
14043
14047
  return l(), o(fe, null, [
14044
14048
  s(Ee, {
14045
14049
  visible: c.value,
14046
- "onUpdate:visible": h[13] || (h[13] = (Fe) => c.value = Fe),
14050
+ "onUpdate:visible": h[13] || (h[13] = (De) => c.value = De),
14047
14051
  width: "500",
14048
14052
  footer: !1,
14049
14053
  placement: "center",
@@ -14054,7 +14058,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14054
14058
  header: i(() => [
14055
14059
  e("div", Rc, [
14056
14060
  e("div", Ec, [
14057
- k.value ? (l(), Y(ze, {
14061
+ k.value ? (l(), Y(Fe, {
14058
14062
  key: 0,
14059
14063
  name: "chevron-left",
14060
14064
  size: "18px",
@@ -14067,10 +14071,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14067
14071
  content: "查看详情"
14068
14072
  }, {
14069
14073
  default: i(() => [
14070
- s(ze, {
14074
+ s(Fe, {
14071
14075
  name: "help-circle",
14072
14076
  size: "14px",
14073
- onClick: le
14077
+ onClick: te
14074
14078
  })
14075
14079
  ]),
14076
14080
  _: 1
@@ -14085,7 +14089,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14085
14089
  onClick: b
14086
14090
  }, {
14087
14091
  icon: i(() => [
14088
- s(ze, {
14092
+ s(Fe, {
14089
14093
  name: "user-add",
14090
14094
  size: "18px"
14091
14095
  })
@@ -14098,10 +14102,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14098
14102
  key: 1,
14099
14103
  variant: "text",
14100
14104
  size: "small",
14101
- onClick: h[0] || (h[0] = (Fe) => B.value = !0)
14105
+ onClick: h[0] || (h[0] = (De) => B.value = !0)
14102
14106
  }, {
14103
14107
  icon: i(() => [
14104
- s(ze, {
14108
+ s(Fe, {
14105
14109
  name: "setting",
14106
14110
  size: "18px"
14107
14111
  })
@@ -14116,7 +14120,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14116
14120
  ])
14117
14121
  ]),
14118
14122
  default: i(() => {
14119
- var Fe, sa;
14123
+ var De, sa;
14120
14124
  return [
14121
14125
  k.value ? (l(), o("div", Qc, [
14122
14126
  e("div", Zc, [
@@ -14150,10 +14154,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14150
14154
  "person-organizations": a.organizations,
14151
14155
  onPersonSelect: be,
14152
14156
  onLoadUsers: T,
14153
- onSearch: F,
14157
+ onSearch: D,
14154
14158
  onUserClick: ie
14155
14159
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14156
- s(ze, {
14160
+ s(Fe, {
14157
14161
  name: "chevron-right",
14158
14162
  size: "16px",
14159
14163
  class: "cd-share-expand-icon",
@@ -14171,7 +14175,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14171
14175
  tabs: a.tabs,
14172
14176
  organizations: a.organizations,
14173
14177
  "show-selector": !1,
14174
- onSearch: F,
14178
+ onSearch: D,
14175
14179
  onLoadUsers: T
14176
14180
  }, null, 8, ["modelValue", "tabs", "organizations"])
14177
14181
  ])
@@ -14215,7 +14219,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14215
14219
  e("div", of, [
14216
14220
  s(ke, {
14217
14221
  variant: "outline",
14218
- onClick: z
14222
+ onClick: F
14219
14223
  }, {
14220
14224
  default: i(() => [...h[39] || (h[39] = [
14221
14225
  U("取消", -1)
@@ -14237,7 +14241,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14237
14241
  h[30] || (h[30] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14238
14242
  e("div", Tc, [
14239
14243
  e("div", Nc, [
14240
- (Fe = a.owner) != null && Fe.avatar ? (l(), Y(X, {
14244
+ (De = a.owner) != null && De.avatar ? (l(), Y(X, {
14241
14245
  key: 0,
14242
14246
  image: a.owner.avatar,
14243
14247
  size: "medium"
@@ -14264,10 +14268,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14264
14268
  "person-organizations": a.organizations,
14265
14269
  onPersonSelect: be,
14266
14270
  onLoadUsers: T,
14267
- onSearch: F,
14271
+ onSearch: D,
14268
14272
  onUserClick: ie
14269
14273
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14270
- s(ze, {
14274
+ s(Fe, {
14271
14275
  name: "chevron-right",
14272
14276
  size: "16px",
14273
14277
  class: "cd-share-expand-icon",
@@ -14285,12 +14289,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14285
14289
  tabs: a.tabs,
14286
14290
  organizations: a.organizations,
14287
14291
  "show-selector": !1,
14288
- onSearch: F,
14292
+ onSearch: D,
14289
14293
  onLoadUsers: T
14290
14294
  }, null, 8, ["modelValue", "tabs", "organizations"])
14291
14295
  ])
14292
14296
  ])) : (l(), o("div", Lc, [
14293
- s(ze, {
14297
+ s(Fe, {
14294
14298
  name: "info-circle",
14295
14299
  size: "14px",
14296
14300
  style: { color: "#999", "margin-right": "4px" }
@@ -14302,7 +14306,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14302
14306
  h[33] || (h[33] = e("div", { class: "cd-share-footer-title" }, "链接分享", -1)),
14303
14307
  e("div", Yc, [
14304
14308
  e("div", Hc, [
14305
- s(ze, {
14309
+ s(Fe, {
14306
14310
  name: "city-1",
14307
14311
  class: "cd-share-org-icon",
14308
14312
  size: "18px"
@@ -14338,7 +14342,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14338
14342
  class: "cd-share-copy-action",
14339
14343
  onClick: se
14340
14344
  }, [
14341
- s(ze, {
14345
+ s(Fe, {
14342
14346
  name: "link",
14343
14347
  size: "14px"
14344
14348
  }),
@@ -14352,7 +14356,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14352
14356
  class: "cd-share-icon-btn",
14353
14357
  onClick: h[5] || (h[5] = (Le) => he.value = !0)
14354
14358
  }, [
14355
- s(ze, { name: "qrcode" })
14359
+ s(Fe, { name: "qrcode" })
14356
14360
  ])
14357
14361
  ]),
14358
14362
  _: 1
@@ -14360,7 +14364,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14360
14364
  s(Ye, { content: "邮件" }, {
14361
14365
  default: i(() => [
14362
14366
  e("div", Xc, [
14363
- s(ze, { name: "mail" })
14367
+ s(Fe, { name: "mail" })
14364
14368
  ])
14365
14369
  ]),
14366
14370
  _: 1
@@ -14373,7 +14377,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14373
14377
  class: Ve(["cd-share-icon-btn", { "is-disabled": O.value === "read" }]),
14374
14378
  onClick: h[6] || (h[6] = (Le) => O.value !== "read" && (J.value = !0))
14375
14379
  }, [
14376
- s(ze, { name: "lock-on" })
14380
+ s(Fe, { name: "lock-on" })
14377
14381
  ], 2)
14378
14382
  ]),
14379
14383
  _: 1
@@ -14389,7 +14393,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14389
14393
  }, 8, ["visible"]),
14390
14394
  s(Ee, {
14391
14395
  visible: B.value,
14392
- "onUpdate:visible": h[21] || (h[21] = (Fe) => B.value = Fe),
14396
+ "onUpdate:visible": h[21] || (h[21] = (De) => B.value = De),
14393
14397
  header: "权限设置",
14394
14398
  width: "600px",
14395
14399
  footer: !1,
@@ -14404,7 +14408,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14404
14408
  h[41] || (h[41] = e("div", { class: "cd-permission-item-label" }, "允许内容被分享到组织外", -1)),
14405
14409
  s(ra, {
14406
14410
  modelValue: j.value.allowExternalShare,
14407
- "onUpdate:modelValue": h[14] || (h[14] = (Fe) => j.value.allowExternalShare = Fe),
14411
+ "onUpdate:modelValue": h[14] || (h[14] = (De) => j.value.allowExternalShare = De),
14408
14412
  disabled: O.value !== "manage"
14409
14413
  }, null, 8, ["modelValue", "disabled"])
14410
14414
  ]),
@@ -14414,7 +14418,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14414
14418
  h[46] || (h[46] = e("div", { class: "cd-permission-section-title" }, "谁可以查看、添加、移除协作者", -1)),
14415
14419
  s(ia, {
14416
14420
  modelValue: j.value.collaboratorManagement,
14417
- "onUpdate:modelValue": h[15] || (h[15] = (Fe) => j.value.collaboratorManagement = Fe),
14421
+ "onUpdate:modelValue": h[15] || (h[15] = (De) => j.value.collaboratorManagement = De),
14418
14422
  disabled: O.value !== "manage"
14419
14423
  }, {
14420
14424
  default: i(() => [
@@ -14440,7 +14444,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14440
14444
  h[47] || (h[47] = e("div", { class: "cd-permission-item-label" }, "谁可以复制内容", -1)),
14441
14445
  s(ee, {
14442
14446
  modelValue: j.value.copyPermission,
14443
- "onUpdate:modelValue": h[16] || (h[16] = (Fe) => j.value.copyPermission = Fe),
14447
+ "onUpdate:modelValue": h[16] || (h[16] = (De) => j.value.copyPermission = De),
14444
14448
  options: E,
14445
14449
  disabled: O.value !== "manage",
14446
14450
  style: { width: "200px" }
@@ -14450,7 +14454,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14450
14454
  h[48] || (h[48] = e("div", { class: "cd-permission-item-label" }, "谁可以创建副本、打印和下载", -1)),
14451
14455
  s(ee, {
14452
14456
  modelValue: j.value.downloadPermission,
14453
- "onUpdate:modelValue": h[17] || (h[17] = (Fe) => j.value.downloadPermission = Fe),
14457
+ "onUpdate:modelValue": h[17] || (h[17] = (De) => j.value.downloadPermission = De),
14454
14458
  options: E,
14455
14459
  disabled: O.value !== "manage",
14456
14460
  style: { width: "200px" }
@@ -14460,7 +14464,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14460
14464
  h[49] || (h[49] = e("div", { class: "cd-permission-item-label" }, "谁可以评论", -1)),
14461
14465
  s(ee, {
14462
14466
  modelValue: j.value.commentPermission,
14463
- "onUpdate:modelValue": h[18] || (h[18] = (Fe) => j.value.commentPermission = Fe),
14467
+ "onUpdate:modelValue": h[18] || (h[18] = (De) => j.value.commentPermission = De),
14464
14468
  options: E,
14465
14469
  disabled: O.value !== "manage",
14466
14470
  style: { width: "200px" }
@@ -14473,7 +14477,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14473
14477
  h[51] || (h[51] = e("div", { class: "cd-permission-item-label" }, "谁可以查看访问者头像和点赞者头像", -1)),
14474
14478
  s(ee, {
14475
14479
  modelValue: j.value.viewerAvatarsPermission,
14476
- "onUpdate:modelValue": h[19] || (h[19] = (Fe) => j.value.viewerAvatarsPermission = Fe),
14480
+ "onUpdate:modelValue": h[19] || (h[19] = (De) => j.value.viewerAvatarsPermission = De),
14477
14481
  options: E,
14478
14482
  disabled: O.value !== "manage",
14479
14483
  style: { width: "200px" }
@@ -14483,7 +14487,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14483
14487
  e("div", hf, [
14484
14488
  s(ke, {
14485
14489
  variant: "outline",
14486
- onClick: h[20] || (h[20] = (Fe) => B.value = !1)
14490
+ onClick: h[20] || (h[20] = (De) => B.value = !1)
14487
14491
  }, {
14488
14492
  default: i(() => [...h[53] || (h[53] = [
14489
14493
  U("取消", -1)
@@ -14507,7 +14511,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14507
14511
  }, 8, ["visible"]),
14508
14512
  s(Ee, {
14509
14513
  visible: G.value,
14510
- "onUpdate:visible": h[22] || (h[22] = (Fe) => G.value = Fe),
14514
+ "onUpdate:visible": h[22] || (h[22] = (De) => G.value = De),
14511
14515
  header: "协作者权限管理",
14512
14516
  width: "500px",
14513
14517
  footer: !1,
@@ -14515,12 +14519,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14515
14519
  class: "cd-collaborator-list-dialog"
14516
14520
  }, {
14517
14521
  default: i(() => {
14518
- var Fe, sa, Le;
14522
+ var De, sa, Le;
14519
14523
  return [
14520
14524
  e("div", bf, [
14521
14525
  e("div", yf, [
14522
14526
  e("div", _f, [
14523
- (Fe = a.owner) != null && Fe.avatar ? (l(), Y(X, {
14527
+ (De = a.owner) != null && De.avatar ? (l(), Y(X, {
14524
14528
  key: 0,
14525
14529
  image: a.owner.avatar,
14526
14530
  size: "small"
@@ -14587,7 +14591,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14587
14591
  onClick: (p) => we(je.id)
14588
14592
  }, {
14589
14593
  icon: i(() => [
14590
- s(ze, {
14594
+ s(Fe, {
14591
14595
  name: "delete",
14592
14596
  size: "16px"
14593
14597
  })
@@ -14605,7 +14609,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14605
14609
  }, 8, ["visible"]),
14606
14610
  s(Ee, {
14607
14611
  visible: he.value,
14608
- "onUpdate:visible": h[23] || (h[23] = (Fe) => he.value = Fe),
14612
+ "onUpdate:visible": h[23] || (h[23] = (De) => he.value = De),
14609
14613
  header: "分享二维码",
14610
14614
  width: "400px",
14611
14615
  footer: !1,
@@ -14620,7 +14624,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14620
14624
  alt: "分享二维码",
14621
14625
  class: "cd-qrcode-image"
14622
14626
  }, null, 8, Mf)) : H("", !0),
14623
- e("div", zf, V(m.value), 1),
14627
+ e("div", Ff, V(m.value), 1),
14624
14628
  h[56] || (h[56] = e("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
14625
14629
  ])
14626
14630
  ]),
@@ -14628,7 +14632,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14628
14632
  }, 8, ["visible"]),
14629
14633
  s(Ee, {
14630
14634
  visible: J.value,
14631
- "onUpdate:visible": h[26] || (h[26] = (Fe) => J.value = Fe),
14635
+ "onUpdate:visible": h[26] || (h[26] = (De) => J.value = De),
14632
14636
  header: "设置链接密码",
14633
14637
  width: "450px",
14634
14638
  footer: !1,
@@ -14636,12 +14640,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14636
14640
  class: "cd-encrypt-dialog"
14637
14641
  }, {
14638
14642
  default: i(() => [
14639
- e("div", Ff, [
14640
- e("div", Df, [
14643
+ e("div", Df, [
14644
+ e("div", zf, [
14641
14645
  h[58] || (h[58] = e("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
14642
14646
  s(Ne, {
14643
14647
  modelValue: P.value,
14644
- "onUpdate:modelValue": h[24] || (h[24] = (Fe) => P.value = Fe),
14648
+ "onUpdate:modelValue": h[24] || (h[24] = (De) => P.value = De),
14645
14649
  placeholder: "6位数字和字母组合",
14646
14650
  maxlength: "6",
14647
14651
  disabled: O.value === "read",
@@ -14664,7 +14668,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14664
14668
  }, 8, ["modelValue", "disabled"])
14665
14669
  ]),
14666
14670
  e("div", Af, [
14667
- s(ze, {
14671
+ s(Fe, {
14668
14672
  name: "info-circle",
14669
14673
  size: "14px",
14670
14674
  style: { color: "#999", "margin-right": "4px" }
@@ -14678,7 +14682,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14678
14682
  onClick: Ae
14679
14683
  }, {
14680
14684
  icon: i(() => [
14681
- s(ze, { name: "link" })
14685
+ s(Fe, { name: "link" })
14682
14686
  ]),
14683
14687
  default: i(() => [
14684
14688
  h[60] || (h[60] = U(" 复制连接和密码 ", -1))
@@ -14688,7 +14692,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14688
14692
  h[63] || (h[63] = e("div", { style: { flex: "1" } }, null, -1)),
14689
14693
  s(ke, {
14690
14694
  variant: "outline",
14691
- onClick: h[25] || (h[25] = (Fe) => J.value = !1)
14695
+ onClick: h[25] || (h[25] = (De) => J.value = !1)
14692
14696
  }, {
14693
14697
  default: i(() => [...h[61] || (h[61] = [
14694
14698
  U("取消", -1)
@@ -14713,9 +14717,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14713
14717
  ], 64);
14714
14718
  };
14715
14719
  }
14716
- }), Ef = (a, ae) => {
14720
+ }), Ef = (a, le) => {
14717
14721
  const n = a.__vccOpts || a;
14718
- for (const [y, u] of ae)
14722
+ for (const [y, u] of le)
14719
14723
  n[y] = u;
14720
14724
  return n;
14721
14725
  }, Rl = /* @__PURE__ */ Ef(Rf, [["__scopeId", "data-v-bd14b324"]]), Pf = { class: "cd-form-container" }, If = { class: "cd-form-toolbar" }, Of = { class: "toolbar-left" }, Tf = {
@@ -14767,7 +14771,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14767
14771
  }) }
14768
14772
  },
14769
14773
  emits: ["page-change", "add", "edit", "delete", "detail", "custom-button", "refresh", "filter-change", "filter-search", "filter-reset", "add-row", "delete-row", "upload-image", "column-drop", "group", "inline-save", "column-filter", "select-org-data", "column-filter-reset", "save-plan", "delete-plan", "copy-plan", "set-default-plan", "update-plan", "load-users", "search-persons", "dept-click", "column-change", "color-filter-change", "color-filter-clear", "push-down", "select-upstream", "selection-change", "row-click", "row-dblclick", "i18n-click", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change", "import", "export", "download-template", "share", "batch-delete"],
14770
- setup(a, { expose: ae, emit: n }) {
14774
+ setup(a, { expose: le, emit: n }) {
14771
14775
  var bl, yl;
14772
14776
  const y = (t, f) => {
14773
14777
  var $;
@@ -14812,7 +14816,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14812
14816
  const { row: $, column: C } = f, { field: K, onI18nClick: Z } = t.props || {};
14813
14817
  if (!K || !K.__config__ || !K.__vModel__)
14814
14818
  return [];
14815
- const te = $[C.field], pe = pa({ [K.__vModel__]: te }), Se = {
14819
+ const ne = $[C.field], pe = pa({ [K.__vModel__]: ne }), Se = {
14816
14820
  ...K,
14817
14821
  disabled: !1,
14818
14822
  readonly: !1,
@@ -14824,7 +14828,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14824
14828
  readonly: !1
14825
14829
  }
14826
14830
  };
14827
- return ml(Dl, {
14831
+ return ml(zl, {
14828
14832
  field: Se,
14829
14833
  formModel: pe,
14830
14834
  formConf: { labelWidth: 0, labelPosition: "left" },
@@ -14843,10 +14847,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14843
14847
  }
14844
14848
  }), ja.renderer.get("$relationCell") || ja.renderer.add("$relationCell", {
14845
14849
  renderDefault(t, f) {
14846
- const { row: $, column: C } = f, { field: K, isMultiple: Z } = t.props || {}, te = (K == null ? void 0 : K.__vModel__) || C.field, pe = $[te];
14850
+ const { row: $, column: C } = f, { field: K, isMultiple: Z } = t.props || {}, ne = (K == null ? void 0 : K.__vModel__) || C.field, pe = $[ne];
14847
14851
  if (pe == null || pe === "" || pe === "0")
14848
14852
  return [];
14849
- const Se = $[te + "_data"];
14853
+ const Se = $[ne + "_data"];
14850
14854
  let Pe = [];
14851
14855
  if (Se) {
14852
14856
  const Oe = typeof Se == "string" ? (() => {
@@ -14896,13 +14900,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14896
14900
  expandAll: !0
14897
14901
  }
14898
14902
  } : f;
14899
- }), w = n, d = D(), I = D(), A = D(), L = D(600), Q = () => {
14903
+ }), w = n, d = z(), I = z(), A = z(), L = z(600), Q = () => {
14900
14904
  if (A.value) {
14901
14905
  const t = A.value.getBoundingClientRect(), $ = window.innerHeight - t.top - 80;
14902
14906
  L.value = Math.max(400, $);
14903
14907
  }
14904
14908
  };
14905
- Da(() => {
14909
+ za(() => {
14906
14910
  Q(), window.addEventListener("resize", Q);
14907
14911
  }), gl(() => {
14908
14912
  window.removeEventListener("resize", Q);
@@ -14914,9 +14918,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14914
14918
  mode: "cell",
14915
14919
  showStatus: !0
14916
14920
  };
14917
- }), he = D(!1), J = D(/* @__PURE__ */ new Map()), P = D(/* @__PURE__ */ new Map()), j = D(/* @__PURE__ */ new Set()), r = D(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = D(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = D(!1), E = D([]), O = D(!0), re = D(!1), de = D(""), W = D("add"), x = D(null);
14921
+ }), he = z(!1), J = z(/* @__PURE__ */ new Map()), P = z(/* @__PURE__ */ new Map()), j = z(/* @__PURE__ */ new Set()), r = z(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = z(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = z(!1), E = z([]), O = z(!0), re = z(!1), de = z(""), W = z("add"), x = z(null);
14918
14922
  let _ = pa({});
14919
- const z = me(() => {
14923
+ const F = me(() => {
14920
14924
  var Pe, Oe;
14921
14925
  const t = ((Pe = m.formData) == null ? void 0 : Pe.fields) || [], f = k.value.treeConfig;
14922
14926
  if (!(f != null && f.enabled)) return t;
@@ -14927,7 +14931,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14927
14931
  return qe.__vModel__ === $ || ((Je = qe.__vModel__) == null ? void 0 : Je.toUpperCase()) === "FPARENTID" || ((We = qe.__config__) == null ? void 0 : We.cdkey) === "treeSelect";
14928
14932
  }
14929
14933
  )) return t;
14930
- const K = f.rowField || "fid", Z = m.data || [], te = ((Oe = t.find(
14934
+ const K = f.rowField || "fid", Z = m.data || [], ne = ((Oe = t.find(
14931
14935
  (qe) => {
14932
14936
  var Je, We;
14933
14937
  return ((Je = qe.__config__) == null ? void 0 : Je.cdkey) === "input" && ((We = qe.__config__) == null ? void 0 : We.required);
@@ -14955,7 +14959,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14955
14959
  if (!Z.length) return [];
14956
14960
  const qe = /* @__PURE__ */ new Map(), Je = [];
14957
14961
  for (const $e of Z) {
14958
- const Xe = $e[te] || $e.fname || $e.fnumber || $e.fullName || $e.name || String($e[K]);
14962
+ const Xe = $e[ne] || $e.fname || $e.fnumber || $e.fullName || $e.name || String($e[K]);
14959
14963
  qe.set(String($e[K]), {
14960
14964
  value: String($e[K]),
14961
14965
  label: Xe,
@@ -14975,7 +14979,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14975
14979
  return We(Je), Je;
14976
14980
  })()
14977
14981
  }, ...t];
14978
- }), ue = D(!1), se = D(null), le = D([]), F = D(/* @__PURE__ */ new Map()), T = D(!1), b = D([]), q = D(!1), ie = (t, f) => {
14982
+ }), ue = z(!1), se = z(null), te = z([]), D = z(/* @__PURE__ */ new Map()), T = z(!1), b = z([]), q = z(!1), ie = (t, f) => {
14979
14983
  const $ = t[f.field];
14980
14984
  switch (f.operator) {
14981
14985
  case "contains":
@@ -15005,8 +15009,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15005
15009
  const C = k.value.rowStyle({ row: t, rowIndex: f });
15006
15010
  C && ($ = { ...C });
15007
15011
  }
15008
- if (le.value && le.value.length > 0) {
15009
- for (const C of le.value)
15012
+ if (te.value && te.value.length > 0) {
15013
+ for (const C of te.value)
15010
15014
  if (C.applyTo === "row" && ie(t, C)) {
15011
15015
  C.backgroundColor && ($.backgroundColor = C.backgroundColor), C.textColor && ($.color = C.textColor), C.isBold && ($.fontWeight = "bold");
15012
15016
  break;
@@ -15026,8 +15030,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15026
15030
  const Z = k.value.cellStyle({ row: t, column: f, rowIndex: $, columnIndex: C });
15027
15031
  Z && (K = { ...Z });
15028
15032
  }
15029
- if (le.value && le.value.length > 0) {
15030
- for (const Z of le.value)
15033
+ if (te.value && te.value.length > 0) {
15034
+ for (const Z of te.value)
15031
15035
  if (Z.applyTo === "cell" && Z.field === f.field && ie(t, Z)) {
15032
15036
  Z.backgroundColor && (K.backgroundColor = Z.backgroundColor), Z.textColor && (K.color = Z.textColor), Z.isBold && (K.fontWeight = "bold");
15033
15037
  break;
@@ -15058,16 +15062,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15058
15062
  fid: "__empty_row__",
15059
15063
  _isEmpty: !0
15060
15064
  };
15061
- return h(m.formData.fields).forEach((te) => {
15062
- const pe = te.__vModel__;
15065
+ return h(m.formData.fields).forEach((ne) => {
15066
+ const pe = ne.__vModel__;
15063
15067
  pe && (K[pe] = "");
15064
15068
  }), C.push(K), C;
15065
15069
  }
15066
15070
  return t;
15067
15071
  });
15068
- De(() => m.pageConfig, (t) => {
15072
+ ze(() => m.pageConfig, (t) => {
15069
15073
  t && (r.value = t.currentPage || 1, S.value = t.pageSize || 20);
15070
- }, { deep: !0 }), De(() => k.value.groupField, (t) => {
15074
+ }, { deep: !0 }), ze(() => k.value.groupField, (t) => {
15071
15075
  if (t) {
15072
15076
  const f = Array.isArray(t) ? t : [t];
15073
15077
  E.value = f.filter(($) => $ && $.trim() !== "");
@@ -15103,12 +15107,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15103
15107
  const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
15104
15108
  if (!K || C.noShow || Z === "billno" || Z === "divider" || Z === "vxeSubGrid" || Z === "table")
15105
15109
  return;
15106
- let te = "text";
15107
- ["select", "radio", "checkbox"].includes(Z) ? te = "select" : Z === "number" ? te = "number" : Z === "date" || Z === "datetime" ? te = "date" : Z === "time" ? te = "time" : Z === "switch" && (te = "select"), t.push({
15110
+ let ne = "text";
15111
+ ["select", "radio", "checkbox"].includes(Z) ? ne = "select" : Z === "number" ? ne = "number" : Z === "date" || Z === "datetime" ? ne = "date" : Z === "time" ? ne = "time" : Z === "switch" && (ne = "select"), t.push({
15108
15112
  key: C.label,
15109
15113
  label: C.label,
15110
15114
  value: K,
15111
- type: te
15115
+ type: ne
15112
15116
  });
15113
15117
  }), t;
15114
15118
  }), Ue = me(() => {
@@ -15116,10 +15120,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15116
15120
  return h(m.formData.fields).forEach(($) => {
15117
15121
  const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
15118
15122
  if (["select", "radio", "checkbox"].includes(Z) && $.options && Array.isArray($.options)) {
15119
- const te = $.options.map((pe) => pe.label || pe.fullName || String(pe.value));
15123
+ const ne = $.options.map((pe) => pe.label || pe.fullName || String(pe.value));
15120
15124
  t.push({
15121
15125
  columnName: K,
15122
- value: te
15126
+ value: ne
15123
15127
  });
15124
15128
  } else Z === "switch" && t.push({
15125
15129
  columnName: K,
@@ -15140,7 +15144,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15140
15144
  const $ = t.__config__, C = $.cdkey, K = t.__vModel__;
15141
15145
  if (!K || $.noShow)
15142
15146
  return null;
15143
- const Z = F.value.get(K), te = {
15147
+ const Z = D.value.get(K), ne = {
15144
15148
  field: K,
15145
15149
  title: $.label,
15146
15150
  minwidth: 150,
@@ -15149,17 +15153,17 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15149
15153
  headerAlign: "center",
15150
15154
  sortable: !0
15151
15155
  };
15152
- Z != null && Z.fixed && Z.fixed !== "none" ? te.fixed = Z.fixed : $.fixed && $.fixed !== "none" && (te.fixed = $.fixed);
15156
+ Z != null && Z.fixed && Z.fixed !== "none" ? ne.fixed = Z.fixed : $.fixed && $.fixed !== "none" && (ne.fixed = $.fixed);
15153
15157
  const pe = y(C, t);
15154
- if (pe && (te.cellRender = {
15158
+ if (pe && (ne.cellRender = {
15155
15159
  name: "$renderFormItem",
15156
15160
  props: { field: t }
15157
15161
  }), C === "relationForm") {
15158
15162
  const Je = t.multiple === !0;
15159
- Je ? te.cellRender = {
15163
+ Je ? ne.cellRender = {
15160
15164
  name: "$relationCell",
15161
15165
  props: { field: t, isMultiple: Je }
15162
- } : te.formatter = ({ row: We }) => {
15166
+ } : ne.formatter = ({ row: We }) => {
15163
15167
  const $e = We[K + "_data"];
15164
15168
  if ($e) {
15165
15169
  const Xe = typeof $e == "string" ? (() => {
@@ -15177,7 +15181,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15177
15181
  }
15178
15182
  if (C === "switch") {
15179
15183
  const Je = t["active-value"] ?? 1;
15180
- te.formatter = ({ row: We }) => {
15184
+ ne.formatter = ({ row: We }) => {
15181
15185
  const $e = We[K];
15182
15186
  return $e === Je || $e === !0 ? "启用" : "禁用";
15183
15187
  };
@@ -15189,7 +15193,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15189
15193
  Je.forEach(($e) => {
15190
15194
  const Xe = String($e.value ?? $e.id ?? "");
15191
15195
  We[Xe] = $e.label || $e.fullName || $e.name || Xe;
15192
- }), te.formatter = ({ row: $e }) => {
15196
+ }), ne.formatter = ({ row: $e }) => {
15193
15197
  const Xe = $e[K];
15194
15198
  return Xe == null || Xe === "" ? "" : We[String(Xe)] ?? String(Xe);
15195
15199
  };
@@ -15197,7 +15201,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15197
15201
  }
15198
15202
  if (C === "date" || C === "datetime") {
15199
15203
  const Je = t.type || "date";
15200
- te.formatter = ({ row: We }) => {
15204
+ ne.formatter = ({ row: We }) => {
15201
15205
  const $e = We[K];
15202
15206
  if (!$e) return "";
15203
15207
  try {
@@ -15216,7 +15220,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15216
15220
  }
15217
15221
  if (B.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(C))
15218
15222
  if (C === "relationForm")
15219
- te.editRender = {
15223
+ ne.editRender = {
15220
15224
  name: "$renderFormItem",
15221
15225
  props: {
15222
15226
  field: t,
@@ -15224,7 +15228,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15224
15228
  }
15225
15229
  };
15226
15230
  else if (C === "input" && ((Pe = t.__config__) != null && Pe.i18n))
15227
- te.editRender = {
15231
+ ne.editRender = {
15228
15232
  name: "$renderFormItem",
15229
15233
  props: {
15230
15234
  field: t,
@@ -15232,37 +15236,37 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15232
15236
  }
15233
15237
  };
15234
15238
  else if (C === "numInput" || C === "inputNumber" || C === "amount" || C === "rate" || C === "slider")
15235
- te.editRender = { name: "VxeNumberInput" };
15239
+ ne.editRender = { name: "VxeNumberInput" };
15236
15240
  else if (C === "select" || C === "radio") {
15237
15241
  const We = (t.options || ((Oe = t.__slot__) == null ? void 0 : Oe.options) || []).map(($e) => ({
15238
15242
  label: $e.label || $e.fullName || $e.name || $e.value,
15239
15243
  value: $e.value ?? $e.id
15240
15244
  }));
15241
- te.editRender = { name: "VxeSelect", options: We };
15245
+ ne.editRender = { name: "VxeSelect", options: We };
15242
15246
  } else if (C === "treeSelect") {
15243
15247
  const We = (t.options || []).map(($e) => ({
15244
15248
  label: $e.label || $e.fullName || $e.name,
15245
15249
  value: $e.value ?? $e.id,
15246
15250
  parentValue: $e.parentId ?? $e.parentValue
15247
15251
  }));
15248
- te.editRender = { name: "VxeTreeSelect", options: We, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
15252
+ ne.editRender = { name: "VxeTreeSelect", options: We, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
15249
15253
  } else if (C === "datePicker")
15250
- te.editRender = { name: "VxeDatePicker", props: { type: "date", valueFormat: "YYYY-MM-DD" } };
15254
+ ne.editRender = { name: "VxeDatePicker", props: { type: "date", valueFormat: "YYYY-MM-DD" } };
15251
15255
  else if (C === "switch")
15252
- te.editRender = { name: "VxeSwitch" };
15256
+ ne.editRender = { name: "VxeSwitch" };
15253
15257
  else if (C === "checkbox") {
15254
15258
  const We = (t.options || ((qe = t.__slot__) == null ? void 0 : qe.options) || []).map(($e) => ({
15255
15259
  label: $e.label || $e.value,
15256
15260
  value: $e.value ?? $e.id
15257
15261
  }));
15258
- te.editRender = { name: "VxeCheckboxGroup", options: We };
15262
+ ne.editRender = { name: "VxeCheckboxGroup", options: We };
15259
15263
  } else
15260
- te.editRender = { name: "VxeInput" };
15261
- return Ee(te, t), te;
15264
+ ne.editRender = { name: "VxeInput" };
15265
+ return Ee(ne, t), ne;
15262
15266
  }, Ee = (t, f) => {
15263
15267
  const C = f.__config__.cdkey, K = f.__vModel__, Z = /* @__PURE__ */ new Set();
15264
- if (Ae.value.forEach((te) => {
15265
- const pe = te[K];
15268
+ if (Ae.value.forEach((ne) => {
15269
+ const pe = ne[K];
15266
15270
  pe != null && pe !== "" && (Array.isArray(pe) ? pe.forEach((Se) => {
15267
15271
  Se != null && Se !== "" && Z.add(Se);
15268
15272
  }) : Z.add(pe));
@@ -15272,12 +15276,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15272
15276
  }
15273
15277
  if (C === "relationForm") {
15274
15278
  t.filterMultiple = !0;
15275
- const te = /* @__PURE__ */ new Set();
15279
+ const ne = /* @__PURE__ */ new Set();
15276
15280
  Ae.value.forEach((Se) => {
15277
15281
  const Pe = Se[K];
15278
15282
  Pe != null && Pe !== "" && Pe !== "0" && String(Pe).split(",").forEach((Oe) => {
15279
15283
  const qe = Oe.trim();
15280
- qe && qe !== "0" && te.add(qe);
15284
+ qe && qe !== "0" && ne.add(qe);
15281
15285
  });
15282
15286
  });
15283
15287
  const pe = {};
@@ -15301,35 +15305,35 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15301
15305
  qe && Je && (pe[qe] = Je);
15302
15306
  }
15303
15307
  }
15304
- }), t.filters = Array.from(te).map((Se) => ({
15308
+ }), t.filters = Array.from(ne).map((Se) => ({
15305
15309
  label: pe[Se] || Se,
15306
15310
  value: Se
15307
15311
  })), t.filterMethod = ({ value: Se, row: Pe }) => {
15308
15312
  const Oe = Pe[K];
15309
15313
  return Oe ? String(Oe).split(",").map((Je) => Je.trim()).includes(String(Se)) : !1;
15310
15314
  };
15311
- } else C === "select" || C === "radio" || C === "checkbox" || C === "cascader" ? (t.filterMultiple = !0, t.filters = [], Z.forEach((te) => {
15312
- let pe = String(te);
15315
+ } else C === "select" || C === "radio" || C === "checkbox" || C === "cascader" ? (t.filterMultiple = !0, t.filters = [], Z.forEach((ne) => {
15316
+ let pe = String(ne);
15313
15317
  if (f.options && Array.isArray(f.options)) {
15314
- const Se = f.options.find((Pe) => (Pe.value || Pe.key || Pe.id) == te);
15315
- Se && (pe = Se.label || Se.fullName || String(te));
15318
+ const Se = f.options.find((Pe) => (Pe.value || Pe.key || Pe.id) == ne);
15319
+ Se && (pe = Se.label || Se.fullName || String(ne));
15316
15320
  }
15317
15321
  t.filters.push({
15318
15322
  label: pe,
15319
- value: te
15323
+ value: ne
15320
15324
  });
15321
- })) : C === "switch" ? (t.filterMultiple = !1, t.filters = [], Z.has(!0) && t.filters.push({ label: "是", value: !0 }), Z.has(!1) && t.filters.push({ label: "否", value: !1 })) : C === "input" || C === "textarea" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((te) => ({
15322
- label: String(te),
15323
- value: te
15324
- }))) : C === "number" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort((te, pe) => Number(te) - Number(pe)).map((te) => ({
15325
- label: String(te),
15326
- value: te
15327
- }))) : C === "date" || C === "time" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((te) => ({
15328
- label: String(te),
15329
- value: te
15330
- }))) : (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((te) => ({
15331
- label: String(te),
15332
- value: te
15325
+ })) : C === "switch" ? (t.filterMultiple = !1, t.filters = [], Z.has(!0) && t.filters.push({ label: "是", value: !0 }), Z.has(!1) && t.filters.push({ label: "否", value: !1 })) : C === "input" || C === "textarea" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((ne) => ({
15326
+ label: String(ne),
15327
+ value: ne
15328
+ }))) : C === "number" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort((ne, pe) => Number(ne) - Number(pe)).map((ne) => ({
15329
+ label: String(ne),
15330
+ value: ne
15331
+ }))) : C === "date" || C === "time" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((ne) => ({
15332
+ label: String(ne),
15333
+ value: ne
15334
+ }))) : (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((ne) => ({
15335
+ label: String(ne),
15336
+ value: ne
15333
15337
  })));
15334
15338
  }, ra = () => {
15335
15339
  var $;
@@ -15365,7 +15369,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15365
15369
  }), t;
15366
15370
  }
15367
15371
  if (m.formData.fields && m.formData.fields.length > 0) {
15368
- const C = (Z, te = !1) => {
15372
+ const C = (Z, ne = !1) => {
15369
15373
  const pe = Z.__config__;
15370
15374
  if (pe.noShow)
15371
15375
  return null;
@@ -15408,12 +15412,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15408
15412
  return null;
15409
15413
  };
15410
15414
  m.formData.fields.forEach((Z) => {
15411
- const te = C(Z);
15412
- te && t.push(te);
15415
+ const ne = C(Z);
15416
+ ne && t.push(ne);
15413
15417
  }), t.length < 6 && (t[t.length - 1].width = "20%"), m.formData.fields.some(
15414
15418
  (Z) => {
15415
- var te, pe;
15416
- return ((te = Z.__config__) == null ? void 0 : te.cdkey) === "vxeSubGrid" && !((pe = Z.__config__) != null && pe.noShow);
15419
+ var ne, pe;
15420
+ return ((ne = Z.__config__) == null ? void 0 : ne.cdkey) === "vxeSubGrid" && !((pe = Z.__config__) != null && pe.noShow);
15417
15421
  }
15418
15422
  ) && t.push({
15419
15423
  type: "expand",
@@ -15482,15 +15486,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15482
15486
  data: [],
15483
15487
  footerData: []
15484
15488
  });
15485
- De(() => m.loading, (t) => {
15489
+ ze(() => m.loading, (t) => {
15486
15490
  oe.loading = t;
15487
- }, { immediate: !0 }), De(() => m.showType, (t) => {
15491
+ }, { immediate: !0 }), ze(() => m.showType, (t) => {
15488
15492
  oe.height = t === "dialog" ? "500px" : "100%";
15489
- }, { immediate: !0 }), De(() => ce.value, (t) => {
15493
+ }, { immediate: !0 }), ze(() => ce.value, (t) => {
15490
15494
  oe.data = t || [];
15491
- }, { immediate: !1 }), De(() => [m.formData.fields, m.tableColumns, k.value.groupField], () => {
15495
+ }, { immediate: !1 }), ze(() => [m.formData.fields, m.tableColumns, k.value.groupField], () => {
15492
15496
  oe.columns = ra();
15493
- }, { deep: !0, immediate: !0 }), De(() => Ae.value.length, () => {
15497
+ }, { deep: !0, immediate: !0 }), ze(() => Ae.value.length, () => {
15494
15498
  if (!Ae.value.length || !oe.columns) return;
15495
15499
  const t = h(m.formData.fields), f = new Map(t.map(($) => [$.__vModel__, $]));
15496
15500
  oe.columns.forEach(($) => {
@@ -15499,7 +15503,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15499
15503
  }), na(() => {
15500
15504
  d.value && d.value.refreshColumn();
15501
15505
  });
15502
- }), De(() => k.value.groupField, (t) => {
15506
+ }), ze(() => k.value.groupField, (t) => {
15503
15507
  if (t) {
15504
15508
  const f = Array.isArray(t) ? t.filter(($) => $ && $.trim() !== "") : t.trim() !== "" ? [t] : [];
15505
15509
  f.length > 0 ? oe.aggregateConfig = {
@@ -15511,7 +15515,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15511
15515
  } : oe.aggregateConfig = void 0;
15512
15516
  } else
15513
15517
  oe.aggregateConfig = void 0;
15514
- }, { deep: !0, immediate: !0 }), De(() => [k.value.treeConfig, ce.value], () => {
15518
+ }, { deep: !0, immediate: !0 }), ze(() => [k.value.treeConfig, ce.value], () => {
15515
15519
  const t = k.value.treeConfig;
15516
15520
  if ((t == null ? void 0 : t.enabled) !== !1) {
15517
15521
  const f = ce.value.some(($) => $.children && $.children.length > 0);
@@ -15529,10 +15533,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15529
15533
  } : oe.treeConfig = void 0;
15530
15534
  } else
15531
15535
  oe.treeConfig = void 0;
15532
- }, { deep: !0, immediate: !0 }), De(() => [
15536
+ }, { deep: !0, immediate: !0 }), ze(() => [
15533
15537
  k.value.headerCellStyle,
15534
15538
  k.value.headerCellClassName,
15535
- le.value
15539
+ te.value
15536
15540
  ], () => {
15537
15541
  k.value.headerCellStyle && (oe.headerCellStyle = k.value.headerCellStyle), k.value.headerCellClassName && (oe.headerCellClassName = k.value.headerCellClassName), oe.rowStyle = be, oe.rowClassName = we, oe.cellStyle = Ce, oe.cellClassName = ge;
15538
15542
  }, { deep: !0, immediate: !0 });
@@ -15576,7 +15580,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15576
15580
  count: (t, f) => t.filter(($) => $[f] !== null && $[f] !== void 0 && $[f] !== "").length.toString(),
15577
15581
  // 中位数
15578
15582
  median: (t, f, $ = 2) => {
15579
- const C = t.map((te) => Number(te[f])).filter((te) => !isNaN(te)).sort((te, pe) => te - pe);
15583
+ const C = t.map((ne) => Number(ne[f])).filter((ne) => !isNaN(ne)).sort((ne, pe) => ne - pe);
15580
15584
  if (C.length === 0) return "0";
15581
15585
  const K = Math.floor(C.length / 2);
15582
15586
  return (C.length % 2 === 0 ? (C[K - 1] + C[K]) / 2 : C[K]).toFixed($);
@@ -15585,25 +15589,25 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15585
15589
  mode: (t, f, $ = 2) => {
15586
15590
  const C = {};
15587
15591
  let K = 0, Z = 0;
15588
- return t.forEach((te) => {
15589
- const pe = Number(te[f]);
15592
+ return t.forEach((ne) => {
15593
+ const pe = Number(ne[f]);
15590
15594
  if (!isNaN(pe)) {
15591
15595
  const Se = pe.toString();
15592
15596
  C[Se] = (C[Se] || 0) + 1, C[Se] > K && (K = C[Se], Z = pe);
15593
15597
  }
15594
15598
  }), Z.toFixed($);
15595
15599
  }
15596
- }, Fe = () => {
15600
+ }, De = () => {
15597
15601
  const t = [], f = {
15598
15602
  enabled: !1,
15599
15603
  operations: []
15600
15604
  };
15601
15605
  return h(m.formData.fields).forEach((C) => {
15602
- const K = C.__config__, Z = C.__vModel__, te = K.cdkey;
15603
- if (!Z || K.noShow || te === "billno" || te === "divider")
15606
+ const K = C.__config__, Z = C.__vModel__, ne = K.cdkey;
15607
+ if (!Z || K.noShow || ne === "billno" || ne === "divider")
15604
15608
  return;
15605
15609
  const pe = K.summary || C.summary;
15606
- (te === "number" || te === "calculate") && (t.push(Z), pe != null && pe.enabled && (f.enabled = !0, pe.operations && Array.isArray(pe.operations) && pe.operations.forEach((Se) => {
15610
+ (ne === "number" || ne === "calculate") && (t.push(Z), pe != null && pe.enabled && (f.enabled = !0, pe.operations && Array.isArray(pe.operations) && pe.operations.forEach((Se) => {
15607
15611
  Se.enabled !== !1 && f.operations.push({
15608
15612
  ...Se,
15609
15613
  field: Z
@@ -15616,7 +15620,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15616
15620
  }, sa = (t) => {
15617
15621
  if (!t || t.length === 0)
15618
15622
  return [];
15619
- const { numericFields: f, summaryConfig: $ } = Fe();
15623
+ const { numericFields: f, summaryConfig: $ } = De();
15620
15624
  if (!$.enabled || f.length === 0)
15621
15625
  return [];
15622
15626
  const C = [];
@@ -15626,16 +15630,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15626
15630
  checkbox: K.label || K.type,
15627
15631
  name: "-"
15628
15632
  };
15629
- f.forEach((te) => {
15633
+ f.forEach((ne) => {
15630
15634
  const pe = ia[K.type];
15631
15635
  if (pe) {
15632
- const Se = pe(t, te, K.decimalPlaces);
15633
- Z[te] = K.showUnit && K.unit ? `${Se} ${K.unit}` : Se;
15636
+ const Se = pe(t, ne, K.decimalPlaces);
15637
+ Z[ne] = K.showUnit && K.unit ? `${Se} ${K.unit}` : Se;
15634
15638
  }
15635
15639
  }), C.push(Z);
15636
15640
  }), C;
15637
15641
  };
15638
- De(() => ce.value, (t) => {
15642
+ ze(() => ce.value, (t) => {
15639
15643
  oe.footerData = sa(t);
15640
15644
  }, { deep: !0, immediate: !0 });
15641
15645
  const Le = () => {
@@ -15645,7 +15649,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15645
15649
  const f = t.value;
15646
15650
  switch (f) {
15647
15651
  case "add":
15648
- ne();
15652
+ ae();
15649
15653
  break;
15650
15654
  case "copy":
15651
15655
  Be();
@@ -15685,7 +15689,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15685
15689
  }, v = (t) => {
15686
15690
  const { field: f } = t;
15687
15691
  w("column-filter-reset", f);
15688
- }, ne = () => {
15692
+ }, ae = () => {
15689
15693
  W.value = "add", de.value = "新增", re.value = !0, na(() => {
15690
15694
  var t;
15691
15695
  (t = I.value) == null || t.initFormData({});
@@ -15734,14 +15738,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15734
15738
  (C = I.value) == null || C.initFormData({ ...f });
15735
15739
  });
15736
15740
  }, He = ({ row: t, column: f }) => {
15737
- var Z, te, pe;
15741
+ var Z, ne, pe;
15738
15742
  if (!t || t._isEmpty)
15739
15743
  return;
15740
15744
  w("row-dblclick", t);
15741
15745
  const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1, C = t.FDOCUMENTSTATE === "C" || t.fdocumentstate === "C", K = !($ && C);
15742
15746
  if (m.showType !== "dialog")
15743
15747
  if (B.value && K) {
15744
- const Se = f && ((pe = (te = d.value) == null ? void 0 : te.getColumnByField) == null ? void 0 : pe.call(te, f.field));
15748
+ const Se = f && ((pe = (ne = d.value) == null ? void 0 : ne.getColumnByField) == null ? void 0 : pe.call(ne, f.field));
15745
15749
  Se != null && Se.editRender || (W.value = "edit", x.value = t, de.value = "编辑", re.value = !0, na(() => {
15746
15750
  I.value && I.value.initFormData({ ...t });
15747
15751
  }));
@@ -15800,8 +15804,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15800
15804
  const C = { ...t };
15801
15805
  delete C._isEmpty, C.fid = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
15802
15806
  const K = {};
15803
- for (const [Z, te] of Object.entries(C))
15804
- te !== void 0 && (K[Z] = te);
15807
+ for (const [Z, ne] of Object.entries(C))
15808
+ ne !== void 0 && (K[Z] = ne);
15805
15809
  w("inline-save", [K]);
15806
15810
  }
15807
15811
  } else {
@@ -15809,10 +15813,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15809
15813
  if ($ && t.fid) {
15810
15814
  const C = `${t.fid}_${$}`, K = P.value.get(C), Z = t[$];
15811
15815
  if (K !== Z) {
15812
- const te = { _originalId: t.fid };
15816
+ const ne = { _originalId: t.fid };
15813
15817
  for (const [pe, Se] of Object.entries(t))
15814
- Se !== void 0 && (te[pe] = Se);
15815
- w("inline-save", [te]);
15818
+ Se !== void 0 && (ne[pe] = Se);
15819
+ w("inline-save", [ne]);
15816
15820
  }
15817
15821
  P.value.delete(C);
15818
15822
  }
@@ -15856,8 +15860,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15856
15860
  },
15857
15861
  onlineUtils: {}
15858
15862
  });
15859
- } catch (te) {
15860
- console.error("执行 beforeSubmit 出错:", te), Te.error("提交前验证失败");
15863
+ } catch (ne) {
15864
+ console.error("执行 beforeSubmit 出错:", ne), Te.error("提交前验证失败");
15861
15865
  return;
15862
15866
  }
15863
15867
  if (W.value === "add" ? w("add", f) : W.value === "edit" && (x.value && (x.value.fid !== void 0 && (f.fid = x.value.fid), x.value.id !== void 0 && (f.id = x.value.id)), w("edit", f)), (Z = m.formData.funcs) != null && Z.afterSubmit)
@@ -15877,13 +15881,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15877
15881
  },
15878
15882
  onlineUtils: {}
15879
15883
  });
15880
- } catch (te) {
15881
- console.error("执行 afterSubmit 出错:", te);
15884
+ } catch (ne) {
15885
+ console.error("执行 afterSubmit 出错:", ne);
15882
15886
  }
15883
15887
  re.value = !1, w("refresh");
15884
15888
  }, Ka = async () => {
15885
15889
  await xa(), setTimeout(() => {
15886
- ne();
15890
+ ae();
15887
15891
  }, 300);
15888
15892
  }, Ra = () => {
15889
15893
  re.value = !1;
@@ -15944,7 +15948,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15944
15948
  w("dept-click", t);
15945
15949
  }, $a = (t) => {
15946
15950
  t && t.length > 0 && (t.forEach((f) => {
15947
- F.value.set(f.value, {
15951
+ D.value.set(f.value, {
15948
15952
  width: f.width ? parseInt(f.width) : void 0,
15949
15953
  fixed: f.fixed && f.fixed !== "none" ? f.fixed : void 0,
15950
15954
  show: f.show
@@ -15953,9 +15957,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15953
15957
  oe.columns = ra(), d.value && d.value.refreshColumn();
15954
15958
  })), w("column-change", t);
15955
15959
  }, il = (t) => {
15956
- le.value = t || [], w("color-filter-change", t);
15960
+ te.value = t || [], w("color-filter-change", t);
15957
15961
  }, sl = () => {
15958
- le.value = [], w("color-filter-clear");
15962
+ te.value = [], w("color-filter-clear");
15959
15963
  }, rl = me(() => {
15960
15964
  var t;
15961
15965
  return ((t = m.businessFlow) == null ? void 0 : t.downstream) && m.businessFlow.downstream.length > 0;
@@ -16033,7 +16037,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16033
16037
  w("export");
16034
16038
  }, va = (t) => {
16035
16039
  w("share", t), q.value = !1;
16036
- }, ua = D(/* @__PURE__ */ new Map()), Na = me(() => {
16040
+ }, ua = z(/* @__PURE__ */ new Map()), Na = me(() => {
16037
16041
  const t = [];
16038
16042
  return !m.formData.fields || m.formData.fields.length === 0 || m.formData.fields.forEach((f) => {
16039
16043
  const $ = f.__config__;
@@ -16051,7 +16055,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16051
16055
  const $ = String(t.id);
16052
16056
  ua.value.has(f) || ua.value.set(f, /* @__PURE__ */ new Set());
16053
16057
  const C = ua.value.get(f);
16054
- C.has($) ? (C.delete($), !Array.from(ua.value.entries()).some(([te, pe]) => te !== f && pe.has($)) && d.value && d.value.setRowExpand(t, !1)) : (C.add($), d.value && d.value.setRowExpand(t, !0));
16058
+ C.has($) ? (C.delete($), !Array.from(ua.value.entries()).some(([ne, pe]) => ne !== f && pe.has($)) && d.value && d.value.setRowExpand(t, !1)) : (C.add($), d.value && d.value.setRowExpand(t, !0));
16055
16059
  }, hl = (t, f) => {
16056
16060
  var C;
16057
16061
  const $ = String(t.id);
@@ -16065,14 +16069,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16065
16069
  const Z = C.field || C.__vModel__;
16066
16070
  if (!Z)
16067
16071
  return;
16068
- const te = {
16072
+ const ne = {
16069
16073
  field: Z,
16070
16074
  title: C.title || K.label || Z,
16071
16075
  width: C.width || C.minWidth || K.tableWidth || 150,
16072
16076
  align: C.align || K.tableAlign || "left",
16073
16077
  sortable: !1
16074
16078
  };
16075
- f.push(te);
16079
+ f.push(ne);
16076
16080
  }), f;
16077
16081
  }, Il = pa({
16078
16082
  border: !0,
@@ -16094,10 +16098,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16094
16098
  resizable: !0
16095
16099
  }
16096
16100
  });
16097
- return ae({
16101
+ return le({
16098
16102
  tableRef: d,
16099
16103
  formRenderRef: I,
16100
- handleAdd: ne,
16104
+ handleAdd: ae,
16101
16105
  handleEdit: Re,
16102
16106
  handleDelete: oa,
16103
16107
  handleDetail: ea,
@@ -16116,7 +16120,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16116
16120
  }
16117
16121
  }), (t, f) => {
16118
16122
  var Va, Sa, Ba, qa, La;
16119
- const $ = M("t-button"), C = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), te = M("t-select"), pe = M("t-switch"), Se = M("t-dialog"), Pe = M("t-radio"), Oe = M("t-radio-group"), qe = M("t-upload"), Je = M("t-tag"), We = M("vxe-grid"), $e = M("t-pagination"), Xe = M("t-space"), ga = M("t-drawer");
16123
+ const $ = M("t-button"), C = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), ne = M("t-select"), pe = M("t-switch"), Se = M("t-dialog"), Pe = M("t-radio"), Oe = M("t-radio-group"), qe = M("t-upload"), Je = M("t-tag"), We = M("vxe-grid"), $e = M("t-pagination"), Xe = M("t-space"), ga = M("t-drawer");
16120
16124
  return l(), o("div", Pf, [
16121
16125
  e("div", If, [
16122
16126
  e("div", Of, [
@@ -16266,7 +16270,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16266
16270
  }, {
16267
16271
  default: i(() => [
16268
16272
  e("div", Bf, [
16269
- s(te, {
16273
+ s(ne, {
16270
16274
  modelValue: E.value,
16271
16275
  "onUpdate:modelValue": f[1] || (f[1] = (ye) => E.value = ye),
16272
16276
  placeholder: "请选择要分组的字段(可多选)",
@@ -16515,7 +16519,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16515
16519
  ref_key: "formRenderRef",
16516
16520
  ref: I,
16517
16521
  "form-conf": a.formData,
16518
- fields: z.value,
16522
+ fields: F.value,
16519
16523
  modelValue: ca(_),
16520
16524
  "onUpdate:modelValue": f[12] || (f[12] = (ye) => ql(_) ? _.value = ye : _ = ye),
16521
16525
  mode: W.value,
@@ -16583,12 +16587,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16583
16587
  fields: {}
16584
16588
  },
16585
16589
  emits: ["update:modelValue", "save", "advanced-edit", "advanced-design"],
16586
- setup(a, { emit: ae }) {
16587
- const n = a, y = ae, u = me({
16590
+ setup(a, { emit: le }) {
16591
+ const n = a, y = le, u = me({
16588
16592
  get: () => n.modelValue,
16589
16593
  set: (r) => y("update:modelValue", r)
16590
- }), c = D([]);
16591
- De(() => n.fields, (r) => {
16594
+ }), c = z([]);
16595
+ ze(() => n.fields, (r) => {
16592
16596
  c.value = JSON.parse(JSON.stringify(r));
16593
16597
  }, { immediate: !0, deep: !0 });
16594
16598
  const m = [
@@ -17013,7 +17017,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
17013
17017
  }), lm = /* @__PURE__ */ aa(am, [["__scopeId", "data-v-36fbcb77"]]);
17014
17018
  function sm(a) {
17015
17019
  const {
17016
- formModel: ae,
17020
+ formModel: le,
17017
17021
  formConf: n,
17018
17022
  fields: y,
17019
17023
  formId: u = "",
@@ -17037,12 +17041,12 @@ function sm(a) {
17037
17041
  return A(y), {
17038
17042
  field: (r, S) => {
17039
17043
  if (S !== void 0)
17040
- return ae[r] = S, S;
17044
+ return le[r] = S, S;
17041
17045
  const g = I.get(r);
17042
17046
  return {
17043
- value: () => ae[r],
17047
+ value: () => le[r],
17044
17048
  empty: () => {
17045
- const E = ae[r];
17049
+ const E = le[r];
17046
17050
  return E == null || E === "" || Array.isArray(E) && E.length === 0;
17047
17051
  },
17048
17052
  lock: () => {
@@ -17100,26 +17104,26 @@ function sm(a) {
17100
17104
  save: () => w == null ? void 0 : w(),
17101
17105
  // 子表操作
17102
17106
  entry_row_count: (r) => {
17103
- const S = ae[r];
17107
+ const S = le[r];
17104
17108
  return Array.isArray(S) ? S.length : 0;
17105
17109
  },
17106
17110
  entry_value: (r, S) => {
17107
- const g = S.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : S, re = E ? ae[E] : ae;
17111
+ const g = S.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : S, re = E ? le[E] : le;
17108
17112
  if (Array.isArray(re) && re[r])
17109
17113
  return re[r][O];
17110
17114
  },
17111
17115
  entry_field_set: (r, S, g) => {
17112
- const E = S.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : S, de = O ? ae[O] : ae;
17116
+ const E = S.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : S, de = O ? le[O] : le;
17113
17117
  Array.isArray(de) && de[r] && (de[r][re] = g);
17114
17118
  },
17115
17119
  entry_add_row: (r) => {
17116
- ae[r] || (ae[r] = []), ae[r].push({});
17120
+ le[r] || (le[r] = []), le[r].push({});
17117
17121
  },
17118
17122
  entry_delete_row: (r, S) => {
17119
- Array.isArray(ae[r]) && ae[r].splice(S, 1);
17123
+ Array.isArray(le[r]) && le[r].splice(S, 1);
17120
17124
  },
17121
17125
  entry_clear: (r) => {
17122
- ae[r] = [];
17126
+ le[r] = [];
17123
17127
  }
17124
17128
  },
17125
17129
  context: m,
@@ -17229,7 +17233,7 @@ function sm(a) {
17229
17233
  }
17230
17234
  };
17231
17235
  }
17232
- async function rm(a, ae, n) {
17236
+ async function rm(a, le, n) {
17233
17237
  if (!a || !a.trim())
17234
17238
  return { success: !0 };
17235
17239
  try {
@@ -17249,15 +17253,15 @@ async function rm(a, ae, n) {
17249
17253
  ${a}
17250
17254
  })();`
17251
17255
  )(
17252
- ae.field,
17253
- ae.msg,
17254
- ae.form,
17255
- ae.context,
17256
- ae.date,
17257
- ae.util,
17258
- ae.event,
17259
- ae.db,
17260
- ae.api,
17256
+ le.field,
17257
+ le.msg,
17258
+ le.form,
17259
+ le.context,
17260
+ le.date,
17261
+ le.util,
17262
+ le.event,
17263
+ le.db,
17264
+ le.api,
17261
17265
  ...Object.values(n || {})
17262
17266
  ), { success: !0 };
17263
17267
  } catch (y) {
@@ -17266,12 +17270,12 @@ async function rm(a, ae, n) {
17266
17270
  }
17267
17271
  const dm = {
17268
17272
  install(a) {
17269
- a.component("CdForm", El), a.component("CdFormCol", Fa), a.component("FormRender", Al), a.component("ShareDialog", Rl), a.component("FieldManageDialog", lm);
17273
+ a.component("CdForm", El), a.component("CdFormCol", Da), a.component("FormRender", Al), a.component("ShareDialog", Rl), a.component("FieldManageDialog", lm);
17270
17274
  }
17271
17275
  };
17272
17276
  export {
17273
17277
  El as CdForm,
17274
- Fa as CdFormCol,
17278
+ Da as CdFormCol,
17275
17279
  lm as FieldManageDialog,
17276
17280
  Al as FormRender,
17277
17281
  Rl as ShareDialog,