cd-form 2.0.3 → 2.0.5

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,4 +1,4 @@
1
- import { defineComponent as Ke, computed as ve, resolveComponent as M, createBlock as W, openBlock as l, normalizeClass as xe, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as H, normalizeStyle as Ge, toDisplayString as V, createTextVNode as A, withModifiers as Xe, Fragment as fe, renderList as be, ref as F, watch as ze, nextTick as ta, createVNode as s, withDirectives as ga, withKeys as Sa, vModelText as ka, vShow as Cl, createSlots as ba, useCssVars as Ol, onMounted as za, onUnmounted as ul, Teleport as yl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as sl, resolveDynamicComponent as Tl, mergeProps as Fa, provide as Ca, watchEffect as xl, h as rl, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
1
+ import { defineComponent as Ke, computed as ve, resolveComponent as M, createBlock as j, openBlock as l, normalizeClass as xe, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as Y, normalizeStyle as Ge, toDisplayString as V, createTextVNode as A, withModifiers as Xe, Fragment as fe, renderList as be, ref as F, watch as ze, nextTick as ta, createVNode as s, withDirectives as ga, withKeys as Sa, vModelText as ka, vShow as Cl, createSlots as ba, useCssVars as Ol, onMounted as za, onUnmounted as cl, Teleport as dl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as sl, resolveDynamicComponent as Tl, mergeProps as Fa, provide as Ca, watchEffect as xl, h as rl, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
2
2
  import { MessagePlugin as Pe, DialogPlugin as Ll } from "tdesign-vue-next";
3
3
  import Ta from "vxe-table";
4
4
  const Ma = /* @__PURE__ */ Ke({
@@ -14,7 +14,7 @@ const Ma = /* @__PURE__ */ Ke({
14
14
  const te = a, n = ve(() => Math.max(1, Math.min(24, te.span)));
15
15
  return (y, u) => {
16
16
  const c = M("t-col");
17
- return l(), W(c, {
17
+ return l(), j(c, {
18
18
  span: n.value,
19
19
  offset: a.offset,
20
20
  push: a.push,
@@ -158,23 +158,23 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
158
158
  a.showStatus ? (l(), o("span", {
159
159
  key: 2,
160
160
  class: xe(["cd-usercard__status", `cd-usercard__status--${a.status}`])
161
- }, null, 2)) : H("", !0)
161
+ }, null, 2)) : Y("", !0)
162
162
  ]),
163
163
  e("div", Hl, [
164
164
  e("div", Jl, [
165
165
  A(V(a.name) + " ", 1),
166
- a.alias ? (l(), o("span", Kl, "(" + V(a.alias) + ")", 1)) : H("", !0)
166
+ a.alias ? (l(), o("span", Kl, "(" + V(a.alias) + ")", 1)) : Y("", !0)
167
167
  ]),
168
- a.subtitle ? (l(), o("div", Gl, V(a.subtitle), 1)) : H("", !0),
168
+ a.subtitle ? (l(), o("div", Gl, V(a.subtitle), 1)) : Y("", !0),
169
169
  a.role || a.department ? (l(), o("div", Xl, [
170
- a.role ? (l(), o("span", Ql, V(a.role), 1)) : H("", !0),
171
- a.role && a.department ? (l(), o("span", Zl, "·")) : H("", !0),
172
- a.department ? (l(), o("span", et, V(a.department), 1)) : H("", !0)
173
- ])) : H("", !0)
170
+ a.role ? (l(), o("span", Ql, V(a.role), 1)) : Y("", !0),
171
+ a.role && a.department ? (l(), o("span", Zl, "·")) : Y("", !0),
172
+ a.department ? (l(), o("span", et, V(a.department), 1)) : Y("", !0)
173
+ ])) : Y("", !0)
174
174
  ]),
175
175
  a.showActions ? (l(), o("div", at, [
176
176
  fa(D.$slots, "actions", {}, () => [
177
- a.showChat ? (l(), W(ee, {
177
+ a.showChat ? (l(), j(ee, {
178
178
  key: 0,
179
179
  theme: "default",
180
180
  variant: "text",
@@ -185,8 +185,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
185
185
  e("i", { class: "ri-message-3-line" }, null, -1)
186
186
  ])]),
187
187
  _: 1
188
- })) : H("", !0),
189
- a.showPhone ? (l(), W(ee, {
188
+ })) : Y("", !0),
189
+ a.showPhone ? (l(), j(ee, {
190
190
  key: 1,
191
191
  theme: "default",
192
192
  variant: "text",
@@ -197,8 +197,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
197
197
  e("i", { class: "ri-phone-line" }, null, -1)
198
198
  ])]),
199
199
  _: 1
200
- })) : H("", !0),
201
- a.showMore ? (l(), W(ee, {
200
+ })) : Y("", !0),
201
+ a.showMore ? (l(), j(ee, {
202
202
  key: 2,
203
203
  theme: "default",
204
204
  variant: "text",
@@ -209,9 +209,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
209
209
  e("i", { class: "ri-more-2-fill" }, null, -1)
210
210
  ])]),
211
211
  _: 1
212
- })) : H("", !0)
212
+ })) : Y("", !0)
213
213
  ], !0)
214
- ])) : H("", !0)
214
+ ])) : Y("", !0)
215
215
  ]),
216
216
  a.showDetails ? (l(), o("div", lt, [
217
217
  e("div", tt, [
@@ -219,7 +219,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
219
219
  q[3] || (q[3] = e("i", { class: "ri-profile-line cd-usercard__icon" }, null, -1)),
220
220
  q[4] || (q[4] = e("span", { class: "cd-usercard__label" }, "工号", -1)),
221
221
  e("span", ot, V(a.employeeId), 1)
222
- ])) : H("", !0),
222
+ ])) : Y("", !0),
223
223
  a.email ? (l(), o("div", it, [
224
224
  q[5] || (q[5] = e("i", { class: "ri-mail-line cd-usercard__icon" }, null, -1)),
225
225
  q[6] || (q[6] = e("span", { class: "cd-usercard__label" }, "邮箱", -1)),
@@ -227,35 +227,35 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
227
227
  class: "cd-usercard__value cd-usercard__value--link",
228
228
  onClick: Xe(_, ["stop"])
229
229
  }, V(a.email), 1)
230
- ])) : H("", !0),
230
+ ])) : Y("", !0),
231
231
  a.mobile ? (l(), o("div", st, [
232
232
  q[7] || (q[7] = e("i", { class: "ri-smartphone-line cd-usercard__icon" }, null, -1)),
233
233
  q[8] || (q[8] = e("span", { class: "cd-usercard__label" }, "手机", -1)),
234
234
  e("span", rt, V(a.mobile), 1)
235
- ])) : H("", !0),
235
+ ])) : Y("", !0),
236
236
  a.telephone ? (l(), o("div", dt, [
237
237
  q[9] || (q[9] = e("i", { class: "ri-phone-line cd-usercard__icon" }, null, -1)),
238
238
  q[10] || (q[10] = e("span", { class: "cd-usercard__label" }, "座机", -1)),
239
239
  e("span", ut, V(a.telephone), 1)
240
- ])) : H("", !0),
240
+ ])) : Y("", !0),
241
241
  a.location ? (l(), o("div", ct, [
242
242
  q[11] || (q[11] = e("i", { class: "ri-map-pin-line cd-usercard__icon" }, null, -1)),
243
243
  q[12] || (q[12] = e("span", { class: "cd-usercard__label" }, "地点", -1)),
244
244
  e("span", ft, V(a.location), 1)
245
- ])) : H("", !0),
245
+ ])) : Y("", !0),
246
246
  a.joinDate ? (l(), o("div", mt, [
247
247
  q[13] || (q[13] = e("i", { class: "ri-calendar-line cd-usercard__icon" }, null, -1)),
248
248
  q[14] || (q[14] = e("span", { class: "cd-usercard__label" }, "入职", -1)),
249
249
  e("span", vt, V(a.joinDate), 1)
250
- ])) : H("", !0)
250
+ ])) : Y("", !0)
251
251
  ])
252
- ])) : H("", !0),
252
+ ])) : Y("", !0),
253
253
  a.signature ? (l(), o("div", pt, [
254
254
  q[15] || (q[15] = e("i", { class: "ri-double-quotes-l cd-usercard__quote" }, null, -1)),
255
255
  e("span", null, V(a.signature), 1)
256
- ])) : H("", !0),
256
+ ])) : Y("", !0),
257
257
  a.tags && a.tags.length > 0 ? (l(), o("div", gt, [
258
- (l(!0), o(fe, null, be(u.value, (J) => (l(), W(N, {
258
+ (l(!0), o(fe, null, be(u.value, (J) => (l(), j(N, {
259
259
  key: J,
260
260
  size: "small",
261
261
  variant: "light"
@@ -265,7 +265,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
265
265
  ]),
266
266
  _: 2
267
267
  }, 1024))), 128)),
268
- a.tags.length > a.maxTags ? (l(), W(N, {
268
+ a.tags.length > a.maxTags ? (l(), j(N, {
269
269
  key: 0,
270
270
  size: "small",
271
271
  variant: "outline"
@@ -274,11 +274,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
274
274
  A("+" + V(a.tags.length - a.maxTags), 1)
275
275
  ]),
276
276
  _: 1
277
- })) : H("", !0)
278
- ])) : H("", !0),
277
+ })) : Y("", !0)
278
+ ])) : Y("", !0),
279
279
  D.$slots.footer ? (l(), o("div", ht, [
280
280
  fa(D.$slots, "footer", {}, void 0, !0)
281
- ])) : H("", !0)
281
+ ])) : Y("", !0)
282
282
  ], 2);
283
283
  };
284
284
  }
@@ -322,7 +322,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
322
322
  top: `${C.value.y}px`,
323
323
  width: `${C.value.width}px`,
324
324
  height: `${C.value.height}px`
325
- })), Y = ve(() => ({
325
+ })), H = ve(() => ({
326
326
  width: `${r.value.width}px`,
327
327
  height: `${r.value.height}px`,
328
328
  left: `${I.value.left}px`,
@@ -343,7 +343,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
343
343
  100% 0%
344
344
  )`
345
345
  };
346
- }), j = () => {
346
+ }), W = () => {
347
347
  if (!c.value || !m.value) return;
348
348
  const b = c.value, z = m.value, P = z.offsetWidth, G = z.offsetHeight, X = b.naturalWidth / b.naturalHeight, oe = P / G;
349
349
  let ne, k;
@@ -425,7 +425,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
425
425
  };
426
426
  return (b, z) => {
427
427
  const P = M("t-button"), G = M("t-dialog");
428
- return l(), W(G, {
428
+ return l(), j(G, {
429
429
  visible: u.value,
430
430
  "onUpdate:visible": z[10] || (z[10] = (X) => u.value = X),
431
431
  header: "裁剪头像",
@@ -444,7 +444,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
444
444
  class: "image-wrapper",
445
445
  ref_key: "imageWrapperRef",
446
446
  ref: U,
447
- style: Ge(Y.value)
447
+ style: Ge(H.value)
448
448
  }, [
449
449
  e("img", {
450
450
  ref_key: "imageRef",
@@ -452,7 +452,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
452
452
  src: a.imageSrc,
453
453
  class: "crop-image",
454
454
  draggable: "false",
455
- onLoad: j,
455
+ onLoad: W,
456
456
  onDragstart: z[0] || (z[0] = Xe(() => {
457
457
  }, ["prevent"])),
458
458
  onContextmenu: z[1] || (z[1] = Xe(() => {
@@ -593,23 +593,23 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
593
593
  },
594
594
  emits: ["edit", "email", "update:modelValue", "field-change", "avatar-upload"],
595
595
  setup(a, { emit: te }) {
596
- const n = a, y = te, u = F(null), c = F(""), m = F(null), U = F(null), _ = F(!1), C = F(""), r = (j, d) => {
597
- u.value = j, c.value = d, ta(() => {
596
+ const n = a, y = te, u = F(null), c = F(""), m = F(null), U = F(null), _ = F(!1), C = F(""), r = (W, d) => {
597
+ u.value = W, c.value = d, ta(() => {
598
598
  var S;
599
599
  return (S = m.value) == null ? void 0 : S.focus();
600
600
  });
601
601
  }, I = () => {
602
602
  if (u.value) {
603
- const j = { ...n.modelValue, [u.value]: c.value };
604
- y("update:modelValue", j), y("field-change", u.value, c.value);
603
+ const W = { ...n.modelValue, [u.value]: c.value };
604
+ y("update:modelValue", W), y("field-change", u.value, c.value);
605
605
  }
606
606
  u.value = null;
607
607
  }, D = () => {
608
- var j;
609
- (j = U.value) == null || j.click();
610
- }, q = (j) => {
608
+ var W;
609
+ (W = U.value) == null || W.click();
610
+ }, q = (W) => {
611
611
  var g;
612
- const d = j.target, S = (g = d.files) == null ? void 0 : g[0];
612
+ const d = W.target, S = (g = d.files) == null ? void 0 : g[0];
613
613
  if (S) {
614
614
  const R = new FileReader();
615
615
  R.onload = (O) => {
@@ -617,11 +617,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
617
617
  C.value = (de = O.target) == null ? void 0 : de.result, _.value = !0;
618
618
  }, R.readAsDataURL(S), d.value = "";
619
619
  }
620
- }, ee = (j) => {
621
- const d = new File([j], "avatar.jpg", { type: "image/jpeg" });
620
+ }, ee = (W) => {
621
+ const d = new File([W], "avatar.jpg", { type: "image/jpeg" });
622
622
  y("avatar-upload", d);
623
- }, N = ve(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[n.modelValue.status || "online"]), J = ve(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[n.modelValue.status || "online"]), ge = ve(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[n.modelValue.status || "online"]), Y = ve(() => (n.modelValue.displayName || "").charAt(0).toUpperCase()), E = ve(() => {
624
- const j = [
623
+ }, N = ve(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[n.modelValue.status || "online"]), J = ve(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[n.modelValue.status || "online"]), ge = ve(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[n.modelValue.status || "online"]), H = ve(() => (n.modelValue.displayName || "").charAt(0).toUpperCase()), E = ve(() => {
624
+ const W = [
625
625
  "#1890ff",
626
626
  "#52c41a",
627
627
  "#faad14",
@@ -634,9 +634,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
634
634
  let S = 0;
635
635
  for (let g = 0; g < d.length; g++)
636
636
  S = d.charCodeAt(g) + ((S << 5) - S);
637
- return j[Math.abs(S) % j.length];
637
+ return W[Math.abs(S) % W.length];
638
638
  });
639
- return (j, d) => {
639
+ return (W, d) => {
640
640
  var R;
641
641
  const S = M("t-tag"), g = M("t-button");
642
642
  return l(), o(fe, null, [
@@ -657,7 +657,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
657
657
  key: 1,
658
658
  class: "profile__avatar profile__avatar-placeholder",
659
659
  style: Ge({ backgroundColor: E.value })
660
- }, V(Y.value), 5)),
660
+ }, V(H.value), 5)),
661
661
  a.inlineEdit ? (l(), o("div", {
662
662
  key: 2,
663
663
  class: "profile__avatar-edit",
@@ -665,7 +665,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
665
665
  }, [...d[14] || (d[14] = [
666
666
  e("i", { class: "ri-camera-line" }, null, -1),
667
667
  e("span", null, "更换头像", -1)
668
- ])])) : H("", !0),
668
+ ])])) : Y("", !0),
669
669
  e("input", {
670
670
  ref_key: "avatarInput",
671
671
  ref: U,
@@ -700,7 +700,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
700
700
  A(" (" + V(a.modelValue.alias || "点击设置昵称") + ")", 1),
701
701
  d[17] || (d[17] = e("i", { class: "ri-edit-line edit-icon" }, null, -1))
702
702
  ]))
703
- ], 64)) : a.modelValue.alias ? (l(), o("span", Rt, "(" + V(a.modelValue.alias) + ")", 1)) : H("", !0),
703
+ ], 64)) : a.modelValue.alias ? (l(), o("span", Rt, "(" + V(a.modelValue.alias) + ")", 1)) : Y("", !0),
704
704
  s(S, {
705
705
  size: "small",
706
706
  theme: N.value,
@@ -717,12 +717,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
717
717
  ]),
718
718
  e("div", Et, V(a.modelValue.role) + " · " + V(a.modelValue.department), 1)
719
719
  ]),
720
- a.editable && !a.inlineEdit ? (l(), W(g, {
720
+ a.editable && !a.inlineEdit ? (l(), j(g, {
721
721
  key: 0,
722
722
  theme: "default",
723
723
  variant: "outline",
724
724
  size: "small",
725
- onClick: d[2] || (d[2] = (O) => j.$emit("edit"))
725
+ onClick: d[2] || (d[2] = (O) => W.$emit("edit"))
726
726
  }, {
727
727
  icon: i(() => [...d[18] || (d[18] = [
728
728
  e("i", { class: "ri-edit-line" }, null, -1)
@@ -731,7 +731,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
731
731
  d[19] || (d[19] = A(" 编辑 ", -1))
732
732
  ]),
733
733
  _: 1
734
- })) : H("", !0)
734
+ })) : Y("", !0)
735
735
  ]),
736
736
  e("div", Pt, [
737
737
  e("div", It, [
@@ -762,7 +762,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
762
762
  ])) : a.modelValue.email ? (l(), o("span", {
763
763
  key: 2,
764
764
  class: "value value--link",
765
- onClick: d[5] || (d[5] = (O) => j.$emit("email", a.modelValue.email))
765
+ onClick: d[5] || (d[5] = (O) => W.$emit("email", a.modelValue.email))
766
766
  }, V(a.modelValue.email), 1)) : (l(), o("span", Nt, "-"))
767
767
  ]),
768
768
  e("div", Bt, [
@@ -850,7 +850,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
850
850
  A(" 标签")
851
851
  ], -1)),
852
852
  (R = a.modelValue.tags) != null && R.length ? (l(), o("div", Qt, [
853
- (l(!0), o(fe, null, be(a.modelValue.tags, (O) => (l(), W(S, {
853
+ (l(!0), o(fe, null, be(a.modelValue.tags, (O) => (l(), j(S, {
854
854
  key: O,
855
855
  size: "small",
856
856
  variant: "light"
@@ -862,7 +862,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
862
862
  }, 1024))), 128))
863
863
  ])) : (l(), o("div", Zt, "-"))
864
864
  ]),
865
- fa(j.$slots, "extra", {}, void 0, !0)
865
+ fa(W.$slots, "extra", {}, void 0, !0)
866
866
  ])
867
867
  ]),
868
868
  s($t, {
@@ -919,7 +919,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
919
919
  };
920
920
  return (I, D) => {
921
921
  const q = M("t-dialog");
922
- return l(), W(q, {
922
+ return l(), j(q, {
923
923
  visible: u.value,
924
924
  "onUpdate:visible": D[1] || (D[1] = (ee) => u.value = ee),
925
925
  header: !1,
@@ -959,14 +959,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
959
959
  e("i", { class: "ri-logout-box-line" }, null, -1),
960
960
  e("span", null, "退出登录", -1)
961
961
  ])])
962
- ])) : H("", !0)
963
- ])) : H("", !0),
962
+ ])) : Y("", !0)
963
+ ])) : Y("", !0),
964
964
  e("main", sn, [
965
965
  fa(I.$slots, "default", {
966
966
  activePanel: c.value,
967
967
  profileData: a.profileData
968
968
  }, () => [
969
- c.value === "profile" ? (l(), W($l, {
969
+ c.value === "profile" ? (l(), j($l, {
970
970
  key: 0,
971
971
  "model-value": a.profileData,
972
972
  editable: a.editable,
@@ -974,7 +974,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
974
974
  onEdit: _,
975
975
  onFieldChange: C,
976
976
  onAvatarUpload: D[0] || (D[0] = (ee) => y("avatar-upload", ee))
977
- }, null, 8, ["model-value", "editable", "inline-edit"])) : H("", !0)
977
+ }, null, 8, ["model-value", "editable", "inline-edit"])) : Y("", !0)
978
978
  ])
979
979
  ])
980
980
  ], 4)
@@ -1017,11 +1017,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1017
1017
  m.value = "profile", c.value = !0, setTimeout(() => {
1018
1018
  u.value = !1;
1019
1019
  }, 100);
1020
- }, Y = (g) => {
1020
+ }, H = (g) => {
1021
1021
  u.value = !1, g.panel && (m.value = g.panel, c.value = !0), y("menu-click", g);
1022
1022
  }, E = (g) => {
1023
1023
  m.value = g.key;
1024
- }, j = () => {
1024
+ }, W = () => {
1025
1025
  y("edit");
1026
1026
  }, d = (g, R) => {
1027
1027
  y("field-change", g, R);
@@ -1100,7 +1100,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1100
1100
  (l(!0), o(fe, null, be(a.menuItems, (L) => (l(), o("div", {
1101
1101
  key: L.key,
1102
1102
  class: "cd-usercard-menu-item",
1103
- onClick: (x) => Y(L)
1103
+ onClick: (x) => H(L)
1104
1104
  }, [
1105
1105
  e("i", {
1106
1106
  class: xe(L.icon)
@@ -1117,7 +1117,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1117
1117
  e("i", { class: "ri-logout-box-line" }, null, -1),
1118
1118
  e("span", null, "退出登录", -1)
1119
1119
  ])])
1120
- ])) : H("", !0)
1120
+ ])) : Y("", !0)
1121
1121
  ])
1122
1122
  ];
1123
1123
  }),
@@ -1155,7 +1155,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1155
1155
  "inline-edit": a.inlineEdit,
1156
1156
  "show-logout": !1,
1157
1157
  onNavClick: E,
1158
- onEdit: j,
1158
+ onEdit: W,
1159
1159
  onFieldChange: d,
1160
1160
  onAvatarUpload: R[5] || (R[5] = (de) => y("avatar-upload", de))
1161
1161
  }, null, 8, ["visible", "profile-data", "nav-items", "default-panel", "editable", "inline-edit"])
@@ -1214,7 +1214,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1214
1214
  emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
1215
1215
  setup(a, { expose: te, emit: n }) {
1216
1216
  var y, u;
1217
- const c = a, m = n, U = F(c.visible), _ = F(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), C = F(null), r = F(""), I = F([]), D = F(/* @__PURE__ */ new Map()), q = F({}), ee = F(!1), N = F(!1), J = F([]), ge = ve(() => c.tabs || []), Y = ve(() => c.organizations || []), E = ve(() => c.tips || ""), j = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
1217
+ const c = a, m = n, U = F(c.visible), _ = F(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), C = F(null), r = F(""), I = F([]), D = F(/* @__PURE__ */ new Map()), q = F({}), ee = F(!1), N = F(!1), J = F([]), ge = ve(() => c.tabs || []), H = ve(() => c.organizations || []), E = ve(() => c.tips || ""), W = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
1218
1218
  ze(() => c.tabs, (ce) => {
1219
1219
  if (ce && ce.length > 0) {
1220
1220
  const T = {};
@@ -1367,7 +1367,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1367
1367
  }
1368
1368
  }), (ce, T) => {
1369
1369
  const h = M("t-icon"), Se = M("t-option"), Ye = M("t-select"), ye = M("t-input"), Q = M("t-button"), ae = M("t-loading"), Fe = M("t-checkbox"), Ie = M("t-tree"), Ve = M("t-tab-panel"), Ae = M("t-tabs"), sa = M("t-dialog");
1370
- return l(), W(sa, {
1370
+ return l(), j(sa, {
1371
1371
  visible: U.value,
1372
1372
  "onUpdate:visible": T[4] || (T[4] = (re) => U.value = re),
1373
1373
  header: "选择人员",
@@ -1383,9 +1383,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1383
1383
  E.value ? (l(), o("div", Sn, [
1384
1384
  s(h, { name: "info-circle" }),
1385
1385
  e("span", null, V(E.value), 1)
1386
- ])) : H("", !0),
1387
- j.value ? (l(), o("div", Mn, [
1388
- d.value && Y.value.length > 0 ? (l(), o("div", zn, [
1386
+ ])) : Y("", !0),
1387
+ W.value ? (l(), o("div", Mn, [
1388
+ d.value && H.value.length > 0 ? (l(), o("div", zn, [
1389
1389
  s(Ye, {
1390
1390
  modelValue: C.value,
1391
1391
  "onUpdate:modelValue": T[0] || (T[0] = (re) => C.value = re),
@@ -1394,7 +1394,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1394
1394
  onChange: z
1395
1395
  }, {
1396
1396
  default: i(() => [
1397
- (l(!0), o(fe, null, be(Y.value, (re) => (l(), W(Se, {
1397
+ (l(!0), o(fe, null, be(H.value, (re) => (l(), j(Se, {
1398
1398
  key: re.id,
1399
1399
  value: re.id,
1400
1400
  label: re.displayName || re.name
@@ -1402,7 +1402,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1402
1402
  ]),
1403
1403
  _: 1
1404
1404
  }, 8, ["modelValue"])
1405
- ])) : H("", !0),
1405
+ ])) : Y("", !0),
1406
1406
  e("div", Fn, [
1407
1407
  s(ye, {
1408
1408
  modelValue: r.value,
@@ -1418,7 +1418,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1418
1418
  _: 1
1419
1419
  }, 8, ["modelValue"])
1420
1420
  ])
1421
- ])) : H("", !0),
1421
+ ])) : Y("", !0),
1422
1422
  e("div", Dn, [
1423
1423
  e("div", An, [
1424
1424
  ee.value ? (l(), o("div", Un, [
@@ -1462,21 +1462,21 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1462
1462
  e("div", Nn, [
1463
1463
  e("div", Bn, V(re.displayName || re.name), 1),
1464
1464
  e("div", qn, [
1465
- re.position ? (l(), o("span", Ln, V(re.position), 1)) : H("", !0),
1466
- re.department ? (l(), o("span", jn, V(re.department), 1)) : H("", !0),
1467
- re.phone ? (l(), o("span", Wn, V(re.phone), 1)) : H("", !0)
1465
+ re.position ? (l(), o("span", Ln, V(re.position), 1)) : Y("", !0),
1466
+ re.department ? (l(), o("span", jn, V(re.department), 1)) : Y("", !0),
1467
+ re.phone ? (l(), o("span", Wn, V(re.phone), 1)) : Y("", !0)
1468
1468
  ])
1469
1469
  ])
1470
1470
  ], 10, On))), 128))
1471
1471
  ]))
1472
- ])) : (l(), W(Ae, {
1472
+ ])) : (l(), j(Ae, {
1473
1473
  key: 1,
1474
1474
  modelValue: _.value,
1475
1475
  "onUpdate:modelValue": T[3] || (T[3] = (re) => _.value = re),
1476
1476
  onChange: b
1477
1477
  }, {
1478
1478
  default: i(() => [
1479
- (l(!0), o(fe, null, be(ge.value, (re) => (l(), W(Ve, {
1479
+ (l(!0), o(fe, null, be(ge.value, (re) => (l(), j(Ve, {
1480
1480
  key: re.key,
1481
1481
  value: re.key,
1482
1482
  label: re.name
@@ -1485,7 +1485,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1485
1485
  var oa;
1486
1486
  return [
1487
1487
  e("div", Yn, [
1488
- ((oa = g.value[re.key]) == null ? void 0 : oa.length) > 0 ? (l(), W(Ie, {
1488
+ ((oa = g.value[re.key]) == null ? void 0 : oa.length) > 0 ? (l(), j(Ie, {
1489
1489
  key: 0,
1490
1490
  ref_for: !0,
1491
1491
  ref: (Me) => O(re.key, Me),
@@ -1508,10 +1508,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1508
1508
  }, null, 8, ["name"]),
1509
1509
  e("span", Hn, [
1510
1510
  A(V(Me.label) + " ", 1),
1511
- Me.data.isUser && Me.data.position ? (l(), o("span", Jn, V(Me.data.position), 1)) : H("", !0)
1511
+ Me.data.isUser && Me.data.position ? (l(), o("span", Jn, V(Me.data.position), 1)) : Y("", !0)
1512
1512
  ]),
1513
- Me.data.userCount && !Me.data.isUser ? (l(), o("span", Kn, "(" + V(Me.data.userCount) + ")", 1)) : H("", !0),
1514
- !Me.data.isUser && !((ia = Me.data.children) != null && ia.length) && !Me.data.loaded ? (l(), W(Q, {
1513
+ Me.data.userCount && !Me.data.isUser ? (l(), o("span", Kn, "(" + V(Me.data.userCount) + ")", 1)) : Y("", !0),
1514
+ !Me.data.isUser && !((ia = Me.data.children) != null && ia.length) && !Me.data.loaded ? (l(), j(Q, {
1515
1515
  key: 1,
1516
1516
  size: "small",
1517
1517
  variant: "text",
@@ -1522,7 +1522,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1522
1522
  A("显示人员", -1)
1523
1523
  ])]),
1524
1524
  _: 1
1525
- }, 8, ["onClick"])) : H("", !0)
1525
+ }, 8, ["onClick"])) : Y("", !0)
1526
1526
  ], 2)
1527
1527
  ];
1528
1528
  }),
@@ -1548,7 +1548,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1548
1548
  e("div", Qn, [
1549
1549
  T[12] || (T[12] = e("span", { class: "cd-ps-title" }, "已选择", -1)),
1550
1550
  e("span", Zn, V(ue.value.length) + " 项", 1),
1551
- ue.value.length > 0 ? (l(), W(Q, {
1551
+ ue.value.length > 0 ? (l(), j(Q, {
1552
1552
  key: 0,
1553
1553
  size: "small",
1554
1554
  variant: "text",
@@ -1558,7 +1558,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1558
1558
  A("清空", -1)
1559
1559
  ])]),
1560
1560
  _: 1
1561
- })) : H("", !0)
1561
+ })) : Y("", !0)
1562
1562
  ]),
1563
1563
  e("div", eo, [
1564
1564
  ue.value.length === 0 ? (l(), o("div", ao, [
@@ -1584,10 +1584,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1584
1584
  e("div", no, [
1585
1585
  e("div", oo, V(re.displayName || re.name), 1),
1586
1586
  e("div", io, [
1587
- re.isUser && re.position ? (l(), o("span", so, V(re.position), 1)) : H("", !0),
1588
- re.isUser && re.department ? (l(), o("span", ro, V(re.department), 1)) : H("", !0),
1589
- re.isUser ? H("", !0) : (l(), o("span", uo, V(re.typeName || "部门"), 1)),
1590
- !re.isUser && re.userCount ? (l(), o("span", co, V(re.userCount) + "人", 1)) : H("", !0)
1587
+ re.isUser && re.position ? (l(), o("span", so, V(re.position), 1)) : Y("", !0),
1588
+ re.isUser && re.department ? (l(), o("span", ro, V(re.department), 1)) : Y("", !0),
1589
+ re.isUser ? Y("", !0) : (l(), o("span", uo, V(re.typeName || "部门"), 1)),
1590
+ !re.isUser && re.userCount ? (l(), o("span", co, V(re.userCount) + "人", 1)) : Y("", !0)
1591
1591
  ])
1592
1592
  ])
1593
1593
  ]),
@@ -1688,11 +1688,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1688
1688
  }, ge = (g) => {
1689
1689
  const R = n.modelValue.filter((O) => O.id !== g);
1690
1690
  y("update:modelValue", R), C.value = R;
1691
- }, Y = (g) => {
1691
+ }, H = (g) => {
1692
1692
  g && typeof g.stopPropagation == "function" && g.stopPropagation(), g && typeof g.preventDefault == "function" && g.preventDefault(), r.value = !1, E();
1693
1693
  }, E = () => {
1694
1694
  U.value = !0;
1695
- }, j = (g) => {
1695
+ }, W = (g) => {
1696
1696
  const R = g.map((O) => {
1697
1697
  const de = O.displayName || O.name || O.title || String(O.id);
1698
1698
  return {
@@ -1745,7 +1745,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1745
1745
  onPopupVisibleChange: N
1746
1746
  }, ba({
1747
1747
  valueDisplay: i(() => [
1748
- (l(!0), o(fe, null, be(C.value, (x) => (l(), W(de, {
1748
+ (l(!0), o(fe, null, be(C.value, (x) => (l(), j(de, {
1749
1749
  key: x.id,
1750
1750
  closable: "",
1751
1751
  size: "medium",
@@ -1761,7 +1761,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1761
1761
  }, 1032, ["variant", "theme", "onClose"]))), 128))
1762
1762
  ]),
1763
1763
  default: i(() => [
1764
- (l(!0), o(fe, null, be(I.value, (x) => (l(), W(ue, {
1764
+ (l(!0), o(fe, null, be(I.value, (x) => (l(), j(ue, {
1765
1765
  key: x.id,
1766
1766
  value: x.id,
1767
1767
  label: x.name,
@@ -1784,9 +1784,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1784
1784
  }, V(D(x.name)), 5)),
1785
1785
  e("div", ho, [
1786
1786
  e("div", bo, V(x.name), 1),
1787
- x.department || x.position ? (l(), o("div", yo, V(x.department) + V(x.department && x.position ? " · " : "") + V(x.position), 1)) : H("", !0)
1787
+ x.department || x.position ? (l(), o("div", yo, V(x.department) + V(x.department && x.position ? " · " : "") + V(x.position), 1)) : Y("", !0)
1788
1788
  ]),
1789
- x.isUser === !1 ? (l(), o("i", _o)) : H("", !0)
1789
+ x.isUser === !1 ? (l(), o("i", _o)) : Y("", !0)
1790
1790
  ])
1791
1791
  ]),
1792
1792
  _: 2
@@ -1799,7 +1799,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1799
1799
  fn: i(() => [
1800
1800
  s(O, {
1801
1801
  name: "search",
1802
- onClick: Y
1802
+ onClick: H
1803
1803
  })
1804
1804
  ]),
1805
1805
  key: "0"
@@ -1809,13 +1809,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1809
1809
  fn: i(() => [
1810
1810
  e("i", {
1811
1811
  class: "ri-add-circle-line cd-input-select__add-icon",
1812
- onClick: Y
1812
+ onClick: H
1813
1813
  })
1814
1814
  ]),
1815
1815
  key: "1"
1816
1816
  } : void 0
1817
1817
  ]), 1032, ["modelValue", "multiple", "placeholder", "loading", "popup-visible"]),
1818
- a.tabs && a.tabs.length > 0 && U.value ? (l(), W(Ml, {
1818
+ a.tabs && a.tabs.length > 0 && U.value ? (l(), j(Ml, {
1819
1819
  key: 0,
1820
1820
  visible: U.value,
1821
1821
  "onUpdate:visible": R[2] || (R[2] = (x) => U.value = x),
@@ -1827,10 +1827,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1827
1827
  "show-search": !0,
1828
1828
  multiple: a.multiple,
1829
1829
  tips: "选择要添加的人员",
1830
- onConfirm: j,
1830
+ onConfirm: W,
1831
1831
  onLoadUsers: d,
1832
1832
  onSearch: S
1833
- }, null, 8, ["visible", "modelValue", "tabs", "organizations", "multiple"])) : H("", !0)
1833
+ }, null, 8, ["visible", "modelValue", "tabs", "organizations", "multiple"])) : Y("", !0)
1834
1834
  ]);
1835
1835
  };
1836
1836
  }
@@ -1896,7 +1896,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1896
1896
  width: `${n.avatarSize}px`,
1897
1897
  height: `${n.avatarSize}px`,
1898
1898
  fontSize: `${Math.floor(n.avatarSize / 3)}px`
1899
- })), J = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), Y = ve(() => n.users.length > n.maxDisplay), E = ve(() => n.users.length - n.maxDisplay), j = ve(() => n.users.map((ne) => ne.name).join("、")), d = (ne, k) => {
1899
+ })), J = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), H = ve(() => n.users.length > n.maxDisplay), E = ve(() => n.users.length - n.maxDisplay), W = ve(() => n.users.map((ne) => ne.name).join("、")), d = (ne, k) => {
1900
1900
  if (ne.isUser === !1) {
1901
1901
  b(ne, k);
1902
1902
  return;
@@ -1972,13 +1972,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1972
1972
  ne && (ee.value = ne);
1973
1973
  }), za(() => {
1974
1974
  document.addEventListener("click", x);
1975
- }), ul(() => {
1975
+ }), cl(() => {
1976
1976
  document.removeEventListener("click", x);
1977
1977
  }), (ne, k) => {
1978
1978
  const B = M("t-tooltip"), le = M("t-dropdown-item"), _e = M("t-dropdown-menu"), we = M("t-dropdown"), Be = M("t-tag");
1979
1979
  return l(), o("div", Co, [
1980
1980
  s(B, {
1981
- content: j.value,
1981
+ content: W.value,
1982
1982
  placement: "top"
1983
1983
  }, {
1984
1984
  default: i(() => [
@@ -2010,7 +2010,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2010
2010
  }, V(ue(ke.name)), 7))
2011
2011
  ], 6)
2012
2012
  ], 10, xo))), 128)),
2013
- a.edit ? (l(), W(B, {
2013
+ a.edit ? (l(), j(B, {
2014
2014
  key: 0,
2015
2015
  content: "选择人员",
2016
2016
  placement: "top"
@@ -2032,8 +2032,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2032
2032
  ])
2033
2033
  ]),
2034
2034
  _: 1
2035
- })) : H("", !0),
2036
- Y.value ? (l(), o("div", Vo, [
2035
+ })) : Y("", !0),
2036
+ H.value ? (l(), o("div", Vo, [
2037
2037
  e("div", {
2038
2038
  class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--more",
2039
2039
  style: Ge({ width: N.value.width, height: N.value.height })
@@ -2043,12 +2043,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2043
2043
  style: Ge({ fontSize: N.value.fontSize })
2044
2044
  }, " +" + V(E.value), 5)
2045
2045
  ], 4)
2046
- ])) : H("", !0)
2046
+ ])) : Y("", !0)
2047
2047
  ])
2048
2048
  ]),
2049
2049
  _: 1
2050
2050
  }, 8, ["content"]),
2051
- (l(), W(yl, { to: "body" }, [
2051
+ (l(), j(dl, { to: "body" }, [
2052
2052
  s(_l, { name: "fade" }, {
2053
2053
  default: i(() => [
2054
2054
  u.value ? (l(), o("div", {
@@ -2148,18 +2148,18 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2148
2148
  c.value.department ? (l(), o("div", Uo, [
2149
2149
  k[17] || (k[17] = e("span", { class: "cd-users-list-dialog__label" }, "部门", -1)),
2150
2150
  e("span", Ro, V(c.value.department), 1)
2151
- ])) : H("", !0),
2151
+ ])) : Y("", !0),
2152
2152
  c.value.role ? (l(), o("div", Eo, [
2153
2153
  k[18] || (k[18] = e("span", { class: "cd-users-list-dialog__label" }, "职务", -1)),
2154
2154
  e("span", Po, V(c.value.role), 1)
2155
- ])) : H("", !0),
2155
+ ])) : Y("", !0),
2156
2156
  c.value.email ? (l(), o("div", Io, [
2157
2157
  k[19] || (k[19] = e("span", { class: "cd-users-list-dialog__label" }, "企业邮箱", -1)),
2158
2158
  e("span", {
2159
2159
  class: "cd-users-list-dialog__value cd-users-list-dialog__value--link",
2160
2160
  onClick: g
2161
2161
  }, V(c.value.email), 1)
2162
- ])) : H("", !0),
2162
+ ])) : Y("", !0),
2163
2163
  c.value.mobile ? (l(), o("div", Oo, [
2164
2164
  k[20] || (k[20] = e("span", { class: "cd-users-list-dialog__label" }, "手机号", -1)),
2165
2165
  e("div", To, [
@@ -2179,11 +2179,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2179
2179
  _: 1
2180
2180
  })
2181
2181
  ])
2182
- ])) : H("", !0),
2182
+ ])) : Y("", !0),
2183
2183
  c.value.employeeId ? (l(), o("div", No, [
2184
2184
  k[21] || (k[21] = e("span", { class: "cd-users-list-dialog__label" }, "工号", -1)),
2185
2185
  e("span", Bo, V(c.value.employeeId), 1)
2186
- ])) : H("", !0)
2186
+ ])) : Y("", !0)
2187
2187
  ]),
2188
2188
  c.value.tags && c.value.tags.length > 0 ? (l(), o("div", qo, [
2189
2189
  k[22] || (k[22] = e("div", { class: "cd-users-list-dialog__section-title" }, [
@@ -2191,7 +2191,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2191
2191
  A("标签 ")
2192
2192
  ], -1)),
2193
2193
  e("div", Lo, [
2194
- (l(!0), o(fe, null, be(c.value.tags, (ke) => (l(), W(Be, {
2194
+ (l(!0), o(fe, null, be(c.value.tags, (ke) => (l(), j(Be, {
2195
2195
  key: ke,
2196
2196
  size: "small",
2197
2197
  variant: "light"
@@ -2202,19 +2202,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2202
2202
  _: 2
2203
2203
  }, 1024))), 128))
2204
2204
  ])
2205
- ])) : H("", !0),
2205
+ ])) : Y("", !0),
2206
2206
  c.value.signature ? (l(), o("div", jo, [
2207
2207
  k[23] || (k[23] = e("i", { class: "ri-double-quotes-l" }, null, -1)),
2208
2208
  e("span", null, V(c.value.signature), 1)
2209
- ])) : H("", !0)
2210
- ])) : H("", !0)
2209
+ ])) : Y("", !0)
2210
+ ])) : Y("", !0)
2211
2211
  ], 4)
2212
- ])) : H("", !0)
2212
+ ])) : Y("", !0)
2213
2213
  ]),
2214
2214
  _: 1
2215
2215
  })
2216
2216
  ])),
2217
- (l(), W(yl, { to: "body" }, [
2217
+ (l(), j(dl, { to: "body" }, [
2218
2218
  s(_l, { name: "fade" }, {
2219
2219
  default: i(() => [
2220
2220
  I.value ? (l(), o("div", {
@@ -2252,7 +2252,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2252
2252
  }, V(ue(ke.name || ke.displayName)), 5),
2253
2253
  e("div", Qo, [
2254
2254
  e("div", Zo, V(ke.displayName || ke.name), 1),
2255
- ke.position ? (l(), o("div", ei, V(ke.position), 1)) : H("", !0)
2255
+ ke.position ? (l(), o("div", ei, V(ke.position), 1)) : Y("", !0)
2256
2256
  ])
2257
2257
  ]))), 128))
2258
2258
  ])
@@ -2261,14 +2261,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2261
2261
  e("p", null, "暂无成员", -1)
2262
2262
  ])]))
2263
2263
  ])
2264
- ])) : H("", !0)
2264
+ ])) : Y("", !0)
2265
2265
  ], 4)
2266
- ])) : H("", !0)
2266
+ ])) : Y("", !0)
2267
2267
  ]),
2268
2268
  _: 1
2269
2269
  })
2270
2270
  ])),
2271
- (a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && C.value ? (l(), W(ca(Ml), {
2271
+ (a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && C.value ? (l(), j(ca(Ml), {
2272
2272
  key: 0,
2273
2273
  visible: C.value,
2274
2274
  "onUpdate:visible": k[8] || (k[8] = (ke) => C.value = ke),
@@ -2282,7 +2282,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2282
2282
  onConfirm: G,
2283
2283
  onLoadUsers: X,
2284
2284
  onSearch: oe
2285
- }, null, 8, ["visible", "modelValue", "tabs", "organizations"])) : H("", !0)
2285
+ }, null, 8, ["visible", "modelValue", "tabs", "organizations"])) : Y("", !0)
2286
2286
  ]);
2287
2287
  };
2288
2288
  }
@@ -2321,7 +2321,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2321
2321
  };
2322
2322
  return za(() => {
2323
2323
  document.addEventListener("click", I);
2324
- }), ul(() => {
2324
+ }), cl(() => {
2325
2325
  document.removeEventListener("click", I);
2326
2326
  }), (D, q) => (l(), o("div", {
2327
2327
  class: "language-select-container",
@@ -2369,9 +2369,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2369
2369
  e("span", ui, V(ee.label), 1),
2370
2370
  ee.key === m.value ? (l(), o("svg", ci, [...q[3] || (q[3] = [
2371
2371
  e("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" }, null, -1)
2372
- ])])) : H("", !0)
2372
+ ])])) : Y("", !0)
2373
2373
  ], 10, ri))), 128))
2374
- ])) : H("", !0)
2374
+ ])) : Y("", !0)
2375
2375
  ], 4));
2376
2376
  }
2377
2377
  }), zl = /* @__PURE__ */ Ze(fi, [["__scopeId", "data-v-de3f6343"]]), mi = { class: "password-dialog-content" }, vi = { class: "method-tabs" }, pi = {
@@ -2451,7 +2451,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2451
2451
  };
2452
2452
  return (I, D) => {
2453
2453
  const q = M("t-input"), ee = M("t-button"), N = M("t-dialog");
2454
- return l(), W(N, {
2454
+ return l(), j(N, {
2455
2455
  visible: u.value,
2456
2456
  "onUpdate:visible": D[9] || (D[9] = (J) => u.value = J),
2457
2457
  header: a.title,
@@ -2640,7 +2640,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2640
2640
  };
2641
2641
  return (C, r) => {
2642
2642
  const I = M("t-input"), D = M("t-button"), q = M("t-dialog");
2643
- return l(), W(q, {
2643
+ return l(), j(q, {
2644
2644
  visible: u.value,
2645
2645
  "onUpdate:visible": r[2] || (r[2] = (ee) => u.value = ee),
2646
2646
  header: a.title,
@@ -2782,7 +2782,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2782
2782
  };
2783
2783
  return (C, r) => {
2784
2784
  const I = M("t-radio"), D = M("t-radio-group"), q = M("t-checkbox"), ee = M("t-checkbox-group"), N = M("t-button"), J = M("t-dialog");
2785
- return l(), W(J, {
2785
+ return l(), j(J, {
2786
2786
  visible: u.value,
2787
2787
  "onUpdate:visible": r[2] || (r[2] = (ge) => u.value = ge),
2788
2788
  header: a.title,
@@ -2941,8 +2941,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2941
2941
  y("submit", m.value), y("update", n.shortcutData.label, m.value), u.value = !1;
2942
2942
  };
2943
2943
  return (ee, N) => {
2944
- const J = M("t-input"), ge = M("t-button"), Y = M("t-dialog");
2945
- return l(), W(Y, {
2944
+ const J = M("t-input"), ge = M("t-button"), H = M("t-dialog");
2945
+ return l(), j(H, {
2946
2946
  visible: u.value,
2947
2947
  "onUpdate:visible": N[0] || (N[0] = (E) => u.value = E),
2948
2948
  header: a.title,
@@ -2972,7 +2972,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2972
2972
  e("div", Ki, [
2973
2973
  N[2] || (N[2] = e("label", { class: "form-label" }, "当前快捷键", -1)),
2974
2974
  e("div", Gi, [
2975
- (l(!0), o(fe, null, be(a.shortcutData.keys, (E, j) => (l(), o("kbd", { key: j }, V(E), 1))), 128))
2975
+ (l(!0), o(fe, null, be(a.shortcutData.keys, (E, W) => (l(), o("kbd", { key: W }, V(E), 1))), 128))
2976
2976
  ])
2977
2977
  ]),
2978
2978
  e("div", Xi, [
@@ -2984,7 +2984,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2984
2984
  onKeydown: Xe(I, ["prevent"]),
2985
2985
  onBlur: C
2986
2986
  }, [
2987
- m.value.length > 0 ? (l(!0), o(fe, { key: 0 }, be(m.value, (E, j) => (l(), o("kbd", { key: j }, V(E), 1))), 128)) : (l(), o("span", Qi, V(c.value ? "请按下快捷键..." : "点击此处录制快捷键"), 1))
2987
+ m.value.length > 0 ? (l(!0), o(fe, { key: 0 }, be(m.value, (E, W) => (l(), o("kbd", { key: W }, V(E), 1))), 128)) : (l(), o("span", Qi, V(c.value ? "请按下快捷键..." : "点击此处录制快捷键"), 1))
2988
2988
  ], 34),
2989
2989
  N[4] || (N[4] = e("div", { class: "form-tip" }, "支持 Ctrl、Shift、Alt 等修饰键组合", -1))
2990
2990
  ]),
@@ -3055,7 +3055,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3055
3055
  e("div", ts, [
3056
3056
  a.showLegend ? (l(), o("div", ns, [...U[1] || (U[1] = [
3057
3057
  wl('<span class="legend-item" data-v-cea2996a><span class="dot dot--meeting" data-v-cea2996a></span> 会议</span><span class="legend-item" data-v-cea2996a><span class="dot dot--task" data-v-cea2996a></span> 待办</span><span class="legend-item" data-v-cea2996a><span class="dot dot--reminder" data-v-cea2996a></span> 提醒</span>', 3)
3058
- ])])) : H("", !0),
3058
+ ])])) : Y("", !0),
3059
3059
  e("div", os, [
3060
3060
  (l(!0), o(fe, null, be(a.data, (r) => (l(), o("div", {
3061
3061
  key: r.id,
@@ -3081,7 +3081,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3081
3081
  r.location ? (l(), o("span", fs, [
3082
3082
  U[2] || (U[2] = e("i", { class: "ri-map-pin-line" }, null, -1)),
3083
3083
  A(" " + V(r.location), 1)
3084
- ])) : H("", !0)
3084
+ ])) : Y("", !0)
3085
3085
  ]),
3086
3086
  e("div", ms, [
3087
3087
  s(C, {
@@ -3097,7 +3097,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3097
3097
  }, 8, ["onClick"])
3098
3098
  ])
3099
3099
  ], 8, is))), 128)),
3100
- a.data.length ? H("", !0) : (l(), o("div", vs, [...U[4] || (U[4] = [
3100
+ a.data.length ? Y("", !0) : (l(), o("div", vs, [...U[4] || (U[4] = [
3101
3101
  e("i", { class: "ri-calendar-2-line" }, null, -1),
3102
3102
  e("span", null, "暂无日程", -1)
3103
3103
  ])]))
@@ -3135,7 +3135,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3135
3135
  y("toggle", D);
3136
3136
  }, I = (D) => D >= 100 ? "#52c41a" : D >= 50 ? "#1890ff" : "#faad14";
3137
3137
  return (D, q) => {
3138
- const ee = M("t-radio-button"), N = M("t-radio-group"), J = M("t-checkbox"), ge = M("t-tag"), Y = M("t-progress");
3138
+ const ee = M("t-radio-button"), N = M("t-radio-group"), J = M("t-checkbox"), ge = M("t-tag"), H = M("t-progress");
3139
3139
  return l(), o("div", hs, [
3140
3140
  e("h3", null, [
3141
3141
  q[1] || (q[1] = e("i", { class: "ri-task-line" }, null, -1)),
@@ -3177,17 +3177,17 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3177
3177
  ]),
3178
3178
  _: 1
3179
3179
  }, 8, ["modelValue"])
3180
- ])) : H("", !0),
3180
+ ])) : Y("", !0),
3181
3181
  e("div", _s, [
3182
3182
  (l(!0), o(fe, null, be(_.value, (E) => (l(), o("div", {
3183
3183
  key: E.id,
3184
3184
  class: "task",
3185
- onClick: (j) => C(E)
3185
+ onClick: (W) => C(E)
3186
3186
  }, [
3187
3187
  e("div", Cs, [
3188
3188
  s(J, {
3189
3189
  checked: E.status === "done",
3190
- onChange: (j) => r(E)
3190
+ onChange: (W) => r(E)
3191
3191
  }, null, 8, ["checked", "onChange"])
3192
3192
  ]),
3193
3193
  e("div", ws, [
@@ -3211,26 +3211,26 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3211
3211
  E.due ? (l(), o("span", Ss, [
3212
3212
  q[6] || (q[6] = e("i", { class: "ri-time-line" }, null, -1)),
3213
3213
  A(" " + V(E.due), 1)
3214
- ])) : H("", !0),
3214
+ ])) : Y("", !0),
3215
3215
  E.priority ? (l(), o("span", {
3216
3216
  key: 1,
3217
3217
  class: xe(["priority", `priority--${E.priority}`])
3218
3218
  }, [
3219
3219
  q[7] || (q[7] = e("i", { class: "ri-flag-line" }, null, -1)),
3220
3220
  A(" " + V(U[E.priority]), 1)
3221
- ], 2)) : H("", !0)
3221
+ ], 2)) : Y("", !0)
3222
3222
  ])
3223
3223
  ]),
3224
3224
  a.showProgress && E.progress !== void 0 ? (l(), o("div", Ms, [
3225
- s(Y, {
3225
+ s(H, {
3226
3226
  percentage: E.progress,
3227
3227
  size: "small",
3228
3228
  color: I(E.progress)
3229
3229
  }, null, 8, ["percentage", "color"])
3230
- ])) : H("", !0)
3230
+ ])) : Y("", !0)
3231
3231
  ])
3232
3232
  ], 8, ks))), 128)),
3233
- _.value.length ? H("", !0) : (l(), o("div", zs, [...q[8] || (q[8] = [
3233
+ _.value.length ? Y("", !0) : (l(), o("div", zs, [...q[8] || (q[8] = [
3234
3234
  e("i", { class: "ri-checkbox-circle-line" }, null, -1),
3235
3235
  e("span", null, "暂无任务", -1)
3236
3236
  ])]))
@@ -3273,7 +3273,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3273
3273
  class: xe(["tab-item", { active: n.value === m.key }]),
3274
3274
  onClick: (U) => n.value = m.key
3275
3275
  }, V(m.label), 11, Rs))), 128))
3276
- ])) : H("", !0),
3276
+ ])) : Y("", !0),
3277
3277
  e("div", Es, [
3278
3278
  (l(!0), o(fe, null, be(y.value, (m) => (l(), o("div", {
3279
3279
  key: m.id,
@@ -3293,7 +3293,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3293
3293
  onClick: Xe((U) => u.$emit("more", m), ["stop"])
3294
3294
  }, null, 8, Bs)
3295
3295
  ], 8, Ps))), 128)),
3296
- y.value.length ? H("", !0) : (l(), o("div", qs, [...c[1] || (c[1] = [
3296
+ y.value.length ? Y("", !0) : (l(), o("div", qs, [...c[1] || (c[1] = [
3297
3297
  e("i", { class: "ri-star-line" }, null, -1),
3298
3298
  e("span", null, "暂无收藏", -1)
3299
3299
  ])]))
@@ -3373,7 +3373,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3373
3373
  A("复制", -1)
3374
3374
  ])], 8, nr)
3375
3375
  ]))), 128))
3376
- ])) : H("", !0)
3376
+ ])) : Y("", !0)
3377
3377
  ]);
3378
3378
  };
3379
3379
  }
@@ -3457,7 +3457,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3457
3457
  e("div", kr, V(a.current.email), 1)
3458
3458
  ]),
3459
3459
  n[4] || (n[4] = e("span", { class: "account-badge" }, "当前", -1))
3460
- ])) : H("", !0),
3460
+ ])) : Y("", !0),
3461
3461
  (l(!0), o(fe, null, be(a.others, (u) => (l(), o("div", {
3462
3462
  key: u.id,
3463
3463
  class: "account-card",
@@ -3484,7 +3484,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
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
  ])])
3487
- ])) : H("", !0)
3487
+ ])) : Y("", !0)
3488
3488
  ]);
3489
3489
  };
3490
3490
  }
@@ -3526,9 +3526,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3526
3526
  }, [
3527
3527
  e("div", Ar, [
3528
3528
  e("div", Ur, V(_.label), 1),
3529
- _.desc ? (l(), o("div", Rr, V(_.desc), 1)) : H("", !0)
3529
+ _.desc ? (l(), o("div", Rr, V(_.desc), 1)) : Y("", !0)
3530
3530
  ]),
3531
- _.type === "language" ? (l(), W(zl, {
3531
+ _.type === "language" ? (l(), j(zl, {
3532
3532
  key: 0,
3533
3533
  languages: _.languages || [],
3534
3534
  "model-value": a.modelValue[_.key],
@@ -3557,7 +3557,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3557
3557
  style: Ge({ backgroundColor: C }),
3558
3558
  onClick: (r) => u(_.key, C)
3559
3559
  }, null, 14, Nr))), 128))
3560
- ])) : H("", !0)
3560
+ ])) : Y("", !0)
3561
3561
  ]))), 128))
3562
3562
  ]))), 128))
3563
3563
  ]));
@@ -3589,7 +3589,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3589
3589
  key: m.title,
3590
3590
  class: "security-group"
3591
3591
  }, [
3592
- m.title ? (l(), o("div", jr, V(m.title), 1)) : H("", !0),
3592
+ m.title ? (l(), o("div", jr, V(m.title), 1)) : Y("", !0),
3593
3593
  (l(!0), o(fe, null, be(m.items, (U) => (l(), o("div", {
3594
3594
  key: U.key,
3595
3595
  class: "security-item"
@@ -3603,18 +3603,18 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3603
3603
  e("div", Hr, [
3604
3604
  e("div", Jr, [
3605
3605
  e("div", Kr, V(U.label), 1),
3606
- U.desc ? (l(), o("div", Gr, V(U.desc), 1)) : H("", !0)
3606
+ U.desc ? (l(), o("div", Gr, V(U.desc), 1)) : Y("", !0)
3607
3607
  ]),
3608
3608
  e("div", Xr, [
3609
3609
  U.status ? (l(), o("span", {
3610
3610
  key: 0,
3611
3611
  class: xe(["status-badge", U.statusType || "default"])
3612
- }, V(U.status), 3)) : H("", !0),
3612
+ }, V(U.status), 3)) : Y("", !0),
3613
3613
  U.action ? (l(), o("button", {
3614
3614
  key: 1,
3615
3615
  class: "action-btn",
3616
3616
  onClick: (_) => y(U.key, U.action)
3617
- }, V(U.action), 9, Qr)) : H("", !0)
3617
+ }, V(U.action), 9, Qr)) : Y("", !0)
3618
3618
  ])
3619
3619
  ])
3620
3620
  ])
@@ -3666,7 +3666,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3666
3666
  e("span", null, V(_.label), 1),
3667
3667
  c[1] || (c[1] = e("i", { class: "ri-arrow-right-s-line" }, null, -1))
3668
3668
  ], 8, td))), 128))
3669
- ])) : H("", !0),
3669
+ ])) : Y("", !0),
3670
3670
  (U = a.contacts) != null && U.length ? (l(), o("div", nd, [
3671
3671
  c[2] || (c[2] = e("h4", null, "联系客服", -1)),
3672
3672
  e("div", od, [
@@ -3693,7 +3693,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3693
3693
  }, V(_.action), 11, ud))
3694
3694
  ]))), 128))
3695
3695
  ])
3696
- ])) : H("", !0)
3696
+ ])) : Y("", !0)
3697
3697
  ]);
3698
3698
  };
3699
3699
  }
@@ -3731,7 +3731,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3731
3731
  ])
3732
3732
  ], 8, pd))), 128))
3733
3733
  ]),
3734
- (_ = u.value) != null && _.length ? H("", !0) : (l(), o("div", bd, [...U[1] || (U[1] = [
3734
+ (_ = u.value) != null && _.length ? Y("", !0) : (l(), o("div", bd, [...U[1] || (U[1] = [
3735
3735
  e("i", { class: "ri-keyboard-line" }, null, -1),
3736
3736
  e("span", null, "暂无快捷键", -1)
3737
3737
  ])]))
@@ -3788,11 +3788,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3788
3788
  a.data.updateDate ? (l(), o("div", zd, [
3789
3789
  n[2] || (n[2] = e("span", { class: "info-label" }, "更新日期", -1)),
3790
3790
  e("span", Fd, V(a.data.updateDate), 1)
3791
- ])) : H("", !0),
3791
+ ])) : Y("", !0),
3792
3792
  a.data.team ? (l(), o("div", Dd, [
3793
3793
  n[3] || (n[3] = e("span", { class: "info-label" }, "开发团队", -1)),
3794
3794
  e("span", Ad, V(a.data.team), 1)
3795
- ])) : H("", !0)
3795
+ ])) : Y("", !0)
3796
3796
  ]),
3797
3797
  (y = a.links) != null && y.length ? (l(), o("div", Ud, [
3798
3798
  (l(!0), o(fe, null, be(a.links, (u) => (l(), o("a", {
@@ -3805,8 +3805,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3805
3805
  }, null, 2),
3806
3806
  A(V(u.label), 1)
3807
3807
  ], 8, Rd))), 128))
3808
- ])) : H("", !0),
3809
- a.data.copyright ? (l(), o("div", Ed, V(a.data.copyright), 1)) : H("", !0)
3808
+ ])) : Y("", !0),
3809
+ a.data.copyright ? (l(), o("div", Ed, V(a.data.copyright), 1)) : Y("", !0)
3810
3810
  ]);
3811
3811
  };
3812
3812
  }
@@ -3825,7 +3825,7 @@ aa(Id);
3825
3825
  const Od = aa(yt);
3826
3826
  aa(Vl);
3827
3827
  aa($n);
3828
- const dl = aa(ti);
3828
+ const ul = aa(ti);
3829
3829
  aa(zl);
3830
3830
  aa(Si);
3831
3831
  aa(Ni);
@@ -3876,17 +3876,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3876
3876
  colKey: P.value,
3877
3877
  title: P.label,
3878
3878
  ellipsis: !0
3879
- }))), Y = F({});
3879
+ }))), H = F({});
3880
3880
  ze(() => n.searchResults, (P) => {
3881
3881
  var X, oe;
3882
3882
  if (!P || P.length === 0) return;
3883
3883
  const G = ((oe = (X = n.columnOptions) == null ? void 0 : X[0]) == null ? void 0 : oe.value) || "fname";
3884
3884
  for (const ne of P) {
3885
3885
  const k = String(ne.fid ?? ne.id ?? ""), B = ne.FNAME || ne.fname || ne[G] || k;
3886
- k && (Y.value[k] = B);
3886
+ k && (H.value[k] = B);
3887
3887
  }
3888
3888
  if (c.value.length > 0) {
3889
- const ne = c.value.map((k) => Y.value[k] || k);
3889
+ const ne = c.value.map((k) => H.value[k] || k);
3890
3890
  m.value = ne, u.value = ne.join(", ");
3891
3891
  }
3892
3892
  }, { deep: !0 }), ze(() => n.value, (P) => {
@@ -3895,15 +3895,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3895
3895
  if (typeof P == "number") {
3896
3896
  const k = String(P);
3897
3897
  if (c.value = [k], n.releaseId) {
3898
- const B = Y.value[k] || k;
3899
- m.value = [B], u.value = B, Y.value[k] || y("search", { keyword: "", searchFields: J.value });
3898
+ const B = H.value[k] || k;
3899
+ m.value = [B], u.value = B, H.value[k] || y("search", { keyword: "", searchFields: J.value });
3900
3900
  } else
3901
3901
  m.value = [k], u.value = k;
3902
3902
  } else if (typeof P == "string") {
3903
3903
  const k = P.split(",").map((le) => le.trim()).filter((le) => le);
3904
3904
  if (c.value = k, k.some((le) => /^\d+$/.test(le)) && n.releaseId) {
3905
- const le = k.map((we) => Y.value[we] || we);
3906
- m.value = le, u.value = le.join(", "), k.some((we) => /^\d+$/.test(we) && !Y.value[we]) && y("search", { keyword: "", searchFields: J.value });
3905
+ const le = k.map((we) => H.value[we] || we);
3906
+ m.value = le, u.value = le.join(", "), k.some((we) => /^\d+$/.test(we) && !H.value[we]) && y("search", { keyword: "", searchFields: J.value });
3907
3907
  } else
3908
3908
  m.value = k, u.value = k.join(", ");
3909
3909
  } else if (Array.isArray(P)) {
@@ -3920,7 +3920,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3920
3920
  N && clearTimeout(N), N = setTimeout(() => {
3921
3921
  P ? (U.value = !0, y("search", { keyword: P, searchFields: J.value })) : U.value = !1;
3922
3922
  }, 300);
3923
- }, j = () => {
3923
+ }, W = () => {
3924
3924
  U.value = !0, y("search", { keyword: "", searchFields: J.value });
3925
3925
  }, d = () => {
3926
3926
  const P = c.value.length > 0 ? c.value.join(",") : void 0;
@@ -3930,7 +3930,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3930
3930
  }, g = ({ row: P }) => {
3931
3931
  var oe, ne;
3932
3932
  const G = String(P.fid ?? P.id ?? ""), X = String(P.FNAME || P.fname || P[((ne = (oe = n.columnOptions) == null ? void 0 : oe[0]) == null ? void 0 : ne.value) || ""] || G);
3933
- console.log("[RelationForm] handleRowClick:", { idValue: G, displayValue: X, rowFid: P.fid }), G && (Y.value[G] = X), n.multiple ? (c.value.includes(G) || (c.value.push(G), m.value.push(X)), u.value = "") : (c.value = [G], m.value = [X], u.value = X), d(), y("row-select", P), U.value = !1;
3933
+ console.log("[RelationForm] handleRowClick:", { idValue: G, displayValue: X, rowFid: P.fid }), G && (H.value[G] = X), n.multiple ? (c.value.includes(G) || (c.value.push(G), m.value.push(X)), u.value = "") : (c.value = [G], m.value = [X], u.value = X), d(), y("row-select", P), U.value = !1;
3934
3934
  }, R = (P) => {
3935
3935
  y("dialog-search", P);
3936
3936
  }, O = () => {
@@ -3949,7 +3949,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3949
3949
  c.value = ee.value.map((P) => String(P.fid ?? P.id ?? "")), m.value = ee.value.map((P) => String(P.FNAME || P.fname || "")), u.value = "";
3950
3950
  else {
3951
3951
  const P = ee.value[0], G = String(P.fid ?? P.id ?? ""), X = String(P.FNAME || P.fname || "");
3952
- c.value = [G], m.value = [X], G && (Y.value[G] = X);
3952
+ c.value = [G], m.value = [X], G && (H.value[G] = X);
3953
3953
  }
3954
3954
  u.value = m.value.join(", "), d(), D.value = !1;
3955
3955
  }
@@ -3991,7 +3991,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3991
3991
  class: "relation-tags-wrapper",
3992
3992
  onClick: C
3993
3993
  }, [
3994
- (l(!0), o(fe, null, be(m.value, (_e, we) => (l(), W(X, {
3994
+ (l(!0), o(fe, null, be(m.value, (_e, we) => (l(), j(X, {
3995
3995
  key: we,
3996
3996
  size: "small",
3997
3997
  closable: "",
@@ -4011,11 +4011,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4011
4011
  placeholder: "搜索...",
4012
4012
  disabled: a.disabled,
4013
4013
  onInput: r,
4014
- onFocus: j
4014
+ onFocus: W
4015
4015
  }, null, 40, Bd), [
4016
4016
  [ka, u.value]
4017
4017
  ])
4018
- ])) : (l(), W(oe, {
4018
+ ])) : (l(), j(oe, {
4019
4019
  key: 1,
4020
4020
  modelValue: u.value,
4021
4021
  "onUpdate:modelValue": G[1] || (G[1] = (_e) => u.value = _e),
@@ -4024,7 +4024,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4024
4024
  disabled: a.disabled,
4025
4025
  class: "relation-input",
4026
4026
  onInput: E,
4027
- onFocus: j
4027
+ onFocus: W
4028
4028
  }, null, 8, ["modelValue", "placeholder", "loading", "disabled"])),
4029
4029
  e("i", {
4030
4030
  class: "ri-search-line cd-relation-form-icon",
@@ -4035,64 +4035,66 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4035
4035
  ]),
4036
4036
  _: 1
4037
4037
  }, 8, ["modelValue"]),
4038
- s(le, {
4039
- visible: D.value,
4040
- "onUpdate:visible": G[3] || (G[3] = (_e) => D.value = _e),
4041
- header: a.dialogTitle || "选择数据",
4042
- width: a.dialogWidth || "1400px",
4043
- footer: !0,
4044
- class: "cd-form-select-modal",
4045
- "mask-closable": !1,
4046
- placement: "center",
4047
- attach: "body",
4048
- top: 0,
4049
- onConfirm: b,
4050
- onClose: z
4051
- }, {
4052
- footer: i(() => [
4053
- s(B, { onClick: z }, {
4054
- default: i(() => [...G[4] || (G[4] = [
4055
- A("取消", -1)
4056
- ])]),
4057
- _: 1
4058
- }),
4059
- s(B, {
4060
- theme: "primary",
4061
- onClick: b
4062
- }, {
4063
- default: i(() => [...G[5] || (G[5] = [
4064
- A("确定", -1)
4065
- ])]),
4066
- _: 1
4067
- })
4068
- ]),
4069
- default: i(() => [
4070
- e("div", jd, [
4071
- a.cdFormConfig.formData && a.cdFormConfig.columnData ? (l(), W(El, {
4072
- key: 0,
4073
- "form-data": a.cdFormConfig.formData,
4074
- "column-data": a.cdFormConfig.columnData,
4075
- data: a.dialogTableData,
4076
- loading: a.dialogLoading,
4077
- "page-config": a.dialogPagination,
4078
- "show-filter": !0,
4079
- "selection-mode": a.multiple ? "multiple" : "single",
4080
- "show-type": "dialog",
4081
- onPageChange: x,
4082
- onFilterSearch: R,
4083
- onFilterReset: O,
4084
- onRowClick: de,
4085
- onRowDblclick: ue,
4086
- onSelectionChange: L
4087
- }, null, 8, ["form-data", "column-data", "data", "loading", "page-config", "selection-mode"])) : H("", !0)
4088
- ])
4089
- ]),
4090
- _: 1
4091
- }, 8, ["visible", "header", "width"])
4038
+ (l(), j(dl, { to: "body" }, [
4039
+ D.value ? (l(), j(le, {
4040
+ key: 0,
4041
+ visible: D.value,
4042
+ "onUpdate:visible": G[3] || (G[3] = (_e) => D.value = _e),
4043
+ header: a.dialogTitle || "选择数据",
4044
+ width: a.dialogWidth || "1400px",
4045
+ footer: !0,
4046
+ class: "cd-form-select-modal",
4047
+ "mask-closable": !1,
4048
+ placement: "center",
4049
+ top: 0,
4050
+ onConfirm: b,
4051
+ onClose: z
4052
+ }, {
4053
+ footer: i(() => [
4054
+ s(B, { onClick: z }, {
4055
+ default: i(() => [...G[4] || (G[4] = [
4056
+ A("取消", -1)
4057
+ ])]),
4058
+ _: 1
4059
+ }),
4060
+ s(B, {
4061
+ theme: "primary",
4062
+ onClick: b
4063
+ }, {
4064
+ default: i(() => [...G[5] || (G[5] = [
4065
+ A("确定", -1)
4066
+ ])]),
4067
+ _: 1
4068
+ })
4069
+ ]),
4070
+ default: i(() => [
4071
+ e("div", jd, [
4072
+ a.cdFormConfig.formData && a.cdFormConfig.columnData ? (l(), j(El, {
4073
+ key: 0,
4074
+ "form-data": a.cdFormConfig.formData,
4075
+ "column-data": a.cdFormConfig.columnData,
4076
+ data: a.dialogTableData,
4077
+ loading: a.dialogLoading,
4078
+ "page-config": a.dialogPagination,
4079
+ "show-filter": !0,
4080
+ "selection-mode": a.multiple ? "multiple" : "single",
4081
+ "show-type": "dialog",
4082
+ onPageChange: x,
4083
+ onFilterSearch: R,
4084
+ onFilterReset: O,
4085
+ onRowClick: de,
4086
+ onRowDblclick: ue,
4087
+ onSelectionChange: L
4088
+ }, null, 8, ["form-data", "column-data", "data", "loading", "page-config", "selection-mode"])) : Y("", !0)
4089
+ ])
4090
+ ]),
4091
+ _: 1
4092
+ }, 8, ["visible", "header", "width"])) : Y("", !0)
4093
+ ]))
4092
4094
  ]);
4093
4095
  };
4094
4096
  }
4095
- }), Fl = /* @__PURE__ */ Ze(Wd, [["__scopeId", "data-v-b079f905"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4097
+ }), Fl = /* @__PURE__ */ Ze(Wd, [["__scopeId", "data-v-80b2c5a2"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4096
4098
  key: 0,
4097
4099
  class: "more-tip"
4098
4100
  }, Qd = { class: "preview-table" }, Zd = {
@@ -4109,15 +4111,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4109
4111
  setup(a, { emit: te }) {
4110
4112
  const n = a, y = te, u = ve({
4111
4113
  get: () => n.visible,
4112
- set: (Y) => y("update:visible", Y)
4113
- }), c = F(["ai"]), m = F(""), U = F(""), _ = F("auto"), C = F([]), r = F(!1), I = ve(() => n.columns.map((Y) => ({
4114
- label: Y.title || Y.label,
4115
- value: Y.field || Y.value
4114
+ set: (H) => y("update:visible", H)
4115
+ }), c = F(["ai"]), m = F(""), U = F(""), _ = F("auto"), C = F([]), r = F(!1), I = ve(() => n.columns.map((H) => ({
4116
+ label: H.title || H.label,
4117
+ value: H.field || H.value
4116
4118
  }))), D = ve(() => {
4117
- const Y = U.value.trim();
4118
- if (!Y) return [];
4119
+ const H = U.value.trim();
4120
+ if (!H) return [];
4119
4121
  let E = [];
4120
- if (Y.split(`
4122
+ if (H.split(`
4121
4123
  `).filter((g) => g.trim() !== "").forEach((g) => {
4122
4124
  let R = [];
4123
4125
  if (_.value === "auto")
@@ -4152,38 +4154,38 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4152
4154
  }
4153
4155
  return S;
4154
4156
  }), q = ve(() => {
4155
- const Y = D.value;
4156
- if (Y.length === 0) return [];
4157
- const E = Math.max(...Y.map((d) => d.length)), j = [];
4157
+ const H = D.value;
4158
+ if (H.length === 0) return [];
4159
+ const E = Math.max(...H.map((d) => d.length)), W = [];
4158
4160
  for (let d = 0; d < E; d++) {
4159
4161
  const S = {
4160
4162
  _X_ROW_KEY: `row_${Date.now()}_${d}_${Math.random().toString(36).substr(2, 9)}`
4161
4163
  };
4162
- Y.forEach((g, R) => {
4164
+ H.forEach((g, R) => {
4163
4165
  const O = C.value[R];
4164
4166
  O && g[d] !== void 0 && (S[O] = g[d]);
4165
- }), j.push(S);
4167
+ }), W.push(S);
4166
4168
  }
4167
- return j;
4169
+ return W;
4168
4170
  }), ee = ve(() => {
4169
- const Y = [];
4170
- return D.value.forEach((E, j) => {
4171
+ const H = [];
4172
+ return D.value.forEach((E, W) => {
4171
4173
  var g;
4172
- const d = C.value[j], S = d ? ((g = I.value.find((R) => R.value === d)) == null ? void 0 : g.label) || d : `第 ${j + 1} 列`;
4173
- Y.push({
4174
- colKey: d || `col_${j}`,
4174
+ const d = C.value[W], S = d ? ((g = I.value.find((R) => R.value === d)) == null ? void 0 : g.label) || d : `第 ${W + 1} 列`;
4175
+ H.push({
4176
+ colKey: d || `col_${W}`,
4175
4177
  title: S,
4176
4178
  width: 150,
4177
4179
  ellipsis: !0
4178
4180
  });
4179
- }), Y;
4180
- }), N = ve(() => C.value.some((Y) => Y !== void 0 && Y !== ""));
4181
- ze(() => D.value.length, (Y) => {
4181
+ }), H;
4182
+ }), N = ve(() => C.value.some((H) => H !== void 0 && H !== ""));
4183
+ ze(() => D.value.length, (H) => {
4182
4184
  const E = C.value;
4183
- E.length < Y ? C.value = [
4185
+ E.length < H ? C.value = [
4184
4186
  ...E,
4185
- ...new Array(Y - E.length).fill("")
4186
- ] : E.length > Y && (C.value = E.slice(0, Y));
4187
+ ...new Array(H - E.length).fill("")
4188
+ ] : E.length > H && (C.value = E.slice(0, H));
4187
4189
  });
4188
4190
  const J = () => {
4189
4191
  if (!N.value) {
@@ -4194,33 +4196,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4194
4196
  Pe.warning("请输入要添加的数据");
4195
4197
  return;
4196
4198
  }
4197
- const Y = q.value.map((E) => {
4198
- const j = { ...E };
4199
+ const H = q.value.map((E) => {
4200
+ const W = { ...E };
4199
4201
  return n.fieldConfigs.forEach((d) => {
4200
4202
  var g;
4201
4203
  const S = d.__vModel__ || d.field;
4202
- if (S && j[S] === void 0)
4204
+ if (S && W[S] === void 0)
4203
4205
  switch ((g = d.__config__) == null ? void 0 : g.cdkey) {
4204
4206
  case "input":
4205
4207
  case "textarea":
4206
- j[S] = "";
4208
+ W[S] = "";
4207
4209
  break;
4208
4210
  case "number":
4209
- j[S] = 0;
4211
+ W[S] = 0;
4210
4212
  break;
4211
4213
  case "switch":
4212
- j[S] = !1;
4214
+ W[S] = !1;
4213
4215
  break;
4214
4216
  case "checkbox":
4215
4217
  case "select":
4216
- j[S] = d.multiple ? [] : null;
4218
+ W[S] = d.multiple ? [] : null;
4217
4219
  break;
4218
4220
  default:
4219
- j[S] = null;
4221
+ W[S] = null;
4220
4222
  }
4221
- }), j;
4223
+ }), W;
4222
4224
  });
4223
- y("add-data", Y), Pe.success(`成功添加 ${Y.length} 条数据`), U.value = "", C.value = [], u.value = !1;
4225
+ y("add-data", H), Pe.success(`成功添加 ${H.length} 条数据`), U.value = "", C.value = [], u.value = !1;
4224
4226
  }, ge = () => {
4225
4227
  if (!m.value.trim()) {
4226
4228
  Pe.warning("请输入描述信息");
@@ -4230,11 +4232,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4230
4232
  r.value = !1;
4231
4233
  }, 1e3);
4232
4234
  };
4233
- return ze(u, (Y) => {
4234
- Y || (m.value = "", U.value = "", C.value = [], r.value = !1, c.value = ["ai"]);
4235
- }), (Y, E) => {
4236
- const j = M("t-textarea"), d = M("t-form-item"), S = M("t-form"), g = M("t-button"), R = M("t-space"), O = M("t-collapse-panel"), de = M("t-radio"), ue = M("t-radio-group"), L = M("t-select"), x = M("t-tag"), b = M("t-table"), z = M("t-collapse"), P = M("t-dialog");
4237
- return l(), W(P, {
4235
+ return ze(u, (H) => {
4236
+ H || (m.value = "", U.value = "", C.value = [], r.value = !1, c.value = ["ai"]);
4237
+ }), (H, E) => {
4238
+ const W = M("t-textarea"), d = M("t-form-item"), S = M("t-form"), g = M("t-button"), R = M("t-space"), O = M("t-collapse-panel"), de = M("t-radio"), ue = M("t-radio-group"), L = M("t-select"), x = M("t-tag"), b = M("t-table"), z = M("t-collapse"), P = M("t-dialog");
4239
+ return l(), j(P, {
4238
4240
  visible: u.value,
4239
4241
  "onUpdate:visible": E[5] || (E[5] = (G) => u.value = G),
4240
4242
  header: "智能添加",
@@ -4260,7 +4262,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4260
4262
  default: i(() => [
4261
4263
  s(d, { label: "描述输入" }, {
4262
4264
  default: i(() => [
4263
- s(j, {
4265
+ s(W, {
4264
4266
  modelValue: m.value,
4265
4267
  "onUpdate:modelValue": E[0] || (E[0] = (G) => m.value = G),
4266
4268
  placeholder: `请用自然语言描述要添加的数据
@@ -4307,7 +4309,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4307
4309
  default: i(() => [
4308
4310
  s(d, { label: "数据输入" }, {
4309
4311
  default: i(() => [
4310
- s(j, {
4312
+ s(W, {
4311
4313
  modelValue: U.value,
4312
4314
  "onUpdate:modelValue": E[1] || (E[1] = (G) => U.value = G),
4313
4315
  placeholder: `请输入数据,支持多种分隔符:空格、逗号、|、&、Tab等
@@ -4320,7 +4322,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4320
4322
  ]),
4321
4323
  _: 1
4322
4324
  }),
4323
- D.value.length > 0 ? (l(), W(d, {
4325
+ D.value.length > 0 ? (l(), j(d, {
4324
4326
  key: 0,
4325
4327
  label: "分隔符"
4326
4328
  }, {
@@ -4371,8 +4373,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4371
4373
  }, 8, ["modelValue"])
4372
4374
  ]),
4373
4375
  _: 1
4374
- })) : H("", !0),
4375
- D.value.length > 0 ? (l(), W(d, {
4376
+ })) : Y("", !0),
4377
+ D.value.length > 0 ? (l(), j(d, {
4376
4378
  key: 1,
4377
4379
  label: "字段映射"
4378
4380
  }, {
@@ -4391,7 +4393,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4391
4393
  clearable: ""
4392
4394
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
4393
4395
  e("div", Gd, [
4394
- (l(!0), o(fe, null, be(G.slice(0, 3), (oe, ne) => (l(), W(x, {
4396
+ (l(!0), o(fe, null, be(G.slice(0, 3), (oe, ne) => (l(), j(x, {
4395
4397
  key: ne,
4396
4398
  theme: "default",
4397
4399
  variant: "light",
@@ -4402,14 +4404,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4402
4404
  ]),
4403
4405
  _: 2
4404
4406
  }, 1024))), 128)),
4405
- G.length > 3 ? (l(), o("span", Xd, "等 " + V(G.length) + " 条", 1)) : H("", !0)
4407
+ G.length > 3 ? (l(), o("span", Xd, "等 " + V(G.length) + " 条", 1)) : Y("", !0)
4406
4408
  ])
4407
4409
  ]))), 128))
4408
4410
  ])
4409
4411
  ]),
4410
4412
  _: 1
4411
- })) : H("", !0),
4412
- q.value.length > 0 ? (l(), W(d, {
4413
+ })) : Y("", !0),
4414
+ q.value.length > 0 ? (l(), j(d, {
4413
4415
  key: 2,
4414
4416
  label: "数据预览"
4415
4417
  }, {
@@ -4424,11 +4426,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4424
4426
  stripe: "",
4425
4427
  "max-height": "300"
4426
4428
  }, null, 8, ["data", "columns"]),
4427
- q.value.length > 5 ? (l(), o("div", Zd, " 仅显示前 5 条,共 " + V(q.value.length) + " 条数据 ", 1)) : H("", !0)
4429
+ q.value.length > 5 ? (l(), o("div", Zd, " 仅显示前 5 条,共 " + V(q.value.length) + " 条数据 ", 1)) : Y("", !0)
4428
4430
  ])
4429
4431
  ]),
4430
4432
  _: 1
4431
- })) : H("", !0)
4433
+ })) : Y("", !0)
4432
4434
  ]),
4433
4435
  _: 1
4434
4436
  }),
@@ -4727,11 +4729,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4727
4729
  // return true;
4728
4730
  // }
4729
4731
  }), v;
4730
- }), Y = (p) => {
4732
+ }), H = (p) => {
4731
4733
  N.value = p;
4732
4734
  }, E = (p) => {
4733
- p && p.value && j(p.value);
4734
- }, j = (p) => {
4735
+ p && p.value && W(p.value);
4736
+ }, W = (p) => {
4735
4737
  switch (typeof p == "string" ? p : p.value) {
4736
4738
  case "add":
4737
4739
  d();
@@ -5037,7 +5039,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5037
5039
  };
5038
5040
  return (p, v) => {
5039
5041
  const ie = M("t-input"), Te = M("t-textarea"), De = M("t-input-number"), Qe = M("t-select"), He = M("t-date-picker"), ea = M("t-date-range-picker"), na = M("t-time-picker"), ya = M("t-time-range-picker"), Na = M("t-switch"), Ba = M("vxe-rate"), qa = M("t-radio"), La = M("t-radio-group"), wa = M("t-checkbox"), ja = M("t-checkbox-group"), Aa = M("t-cascader"), Wa = M("t-tree-select"), Ya = M("t-auto-complete"), Ua = M("t-upload"), ma = M("t-button"), Ha = M("t-color-picker"), Ra = M("t-slider"), Ja = M("t-progress"), Ka = M("t-alert"), _a = M("t-link"), Ga = M("t-tag-input"), Xa = M("t-dropdown-item"), Qa = M("t-dropdown-menu"), Za = M("t-dropdown"), el = M("vxe-grid"), ha = M("render-form-item", !0), xa = M("t-row"), al = M("t-divider"), ll = M("t-tab-panel"), tl = M("t-tabs"), Ea = M("t-collapse-panel"), nl = M("t-collapse"), Pa = M("t-popconfirm"), Ia = M("t-space"), ol = M("t-table");
5040
- return a.field.__config__.layout === "colFormItem" ? (l(), W(Tl(a.tableMode ? "div" : "t-form-item"), Fa({
5042
+ return a.field.__config__.layout === "colFormItem" ? (l(), j(Tl(a.tableMode ? "div" : "t-form-item"), Fa({
5041
5043
  key: 0,
5042
5044
  class: a.tableMode ? "table-cell-editor" : ""
5043
5045
  }, a.tableMode ? {} : {
@@ -5048,7 +5050,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5048
5050
  default: i(() => {
5049
5051
  var Ce, Re;
5050
5052
  return [
5051
- b.value === "input" && !((Ce = a.field.__config__) != null && Ce.i18n) ? (l(), W(ie, {
5053
+ b.value === "input" && !((Ce = a.field.__config__) != null && Ce.i18n) ? (l(), j(ie, {
5052
5054
  key: 0,
5053
5055
  modelValue: z.value,
5054
5056
  "onUpdate:modelValue": v[0] || (v[0] = (me) => z.value = me),
@@ -5061,7 +5063,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5061
5063
  onInput: ne,
5062
5064
  onClear: k,
5063
5065
  onChange: oe
5064
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "input" && ((Re = a.field.__config__) != null && Re.i18n) ? (l(), W(ie, {
5066
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "input" && ((Re = a.field.__config__) != null && Re.i18n) ? (l(), j(ie, {
5065
5067
  key: 1,
5066
5068
  modelValue: z.value,
5067
5069
  "onUpdate:modelValue": v[1] || (v[1] = (me) => z.value = me),
@@ -5088,7 +5090,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5088
5090
  }, null, 8, nu)
5089
5091
  ]),
5090
5092
  _: 1
5091
- }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "textarea" ? (l(), W(Te, {
5093
+ }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "textarea" ? (l(), j(Te, {
5092
5094
  key: 2,
5093
5095
  modelValue: z.value,
5094
5096
  "onUpdate:modelValue": v[3] || (v[3] = (me) => z.value = me),
@@ -5101,7 +5103,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5101
5103
  onInput: ne,
5102
5104
  onClear: k,
5103
5105
  onChange: oe
5104
- }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : b.value === "number" ? (l(), W(De, {
5106
+ }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : b.value === "number" ? (l(), j(De, {
5105
5107
  key: 3,
5106
5108
  modelValue: z.value,
5107
5109
  "onUpdate:modelValue": v[4] || (v[4] = (me) => z.value = me),
@@ -5111,7 +5113,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5111
5113
  max: a.field.max,
5112
5114
  step: a.field.step || 1,
5113
5115
  onChange: oe
5114
- }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), W(Qe, {
5116
+ }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), j(Qe, {
5115
5117
  key: 4,
5116
5118
  modelValue: z.value,
5117
5119
  "onUpdate:modelValue": v[5] || (v[5] = (me) => z.value = me),
@@ -5123,7 +5125,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5123
5125
  options: Array.isArray(a.field.options) ? a.field.options : [],
5124
5126
  keys: a.field.props || { label: "label", value: "value" },
5125
5127
  onChange: oe
5126
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : b.value === "date" ? (l(), W(He, {
5128
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : b.value === "date" ? (l(), j(He, {
5127
5129
  key: 5,
5128
5130
  modelValue: z.value,
5129
5131
  "onUpdate:modelValue": v[6] || (v[6] = (me) => z.value = me),
@@ -5134,7 +5136,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5134
5136
  "enable-time-picker": a.field.type === "datetime",
5135
5137
  format: G(a.field.type),
5136
5138
  onChange: oe
5137
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), W(ea, {
5139
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), j(ea, {
5138
5140
  key: 6,
5139
5141
  modelValue: z.value,
5140
5142
  "onUpdate:modelValue": v[7] || (v[7] = (me) => z.value = me),
@@ -5144,7 +5146,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5144
5146
  "enable-time-picker": a.field.type === "datetime",
5145
5147
  format: G(a.field.type),
5146
5148
  onChange: Be
5147
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : b.value === "time" ? (l(), W(na, {
5149
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : b.value === "time" ? (l(), j(na, {
5148
5150
  key: 7,
5149
5151
  modelValue: z.value,
5150
5152
  "onUpdate:modelValue": v[8] || (v[8] = (me) => z.value = me),
@@ -5152,7 +5154,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5152
5154
  disabled: L.value,
5153
5155
  clearable: a.field.clearable !== !1,
5154
5156
  onChange: oe
5155
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "rangeTime" ? (l(), W(ya, {
5157
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "rangeTime" ? (l(), j(ya, {
5156
5158
  key: 8,
5157
5159
  modelValue: z.value,
5158
5160
  "onUpdate:modelValue": v[9] || (v[9] = (me) => z.value = me),
@@ -5160,13 +5162,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5160
5162
  disabled: L.value,
5161
5163
  clearable: a.field.clearable !== !1,
5162
5164
  onChange: Be
5163
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "switch" ? (l(), W(Na, {
5165
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "switch" ? (l(), j(Na, {
5164
5166
  key: 9,
5165
5167
  modelValue: z.value,
5166
5168
  "onUpdate:modelValue": v[10] || (v[10] = (me) => z.value = me),
5167
5169
  disabled: L.value,
5168
5170
  onChange: oe
5169
- }, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), W(Ba, {
5171
+ }, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), j(Ba, {
5170
5172
  key: 10,
5171
5173
  modelValue: z.value,
5172
5174
  "onUpdate:modelValue": v[11] || (v[11] = (me) => z.value = me),
@@ -5174,7 +5176,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5174
5176
  max: a.field.max || 5,
5175
5177
  half: a.field.allowHalf,
5176
5178
  onChange: oe
5177
- }, null, 8, ["modelValue", "disabled", "max", "half"])) : b.value === "radio" ? (l(), W(La, {
5179
+ }, null, 8, ["modelValue", "disabled", "max", "half"])) : b.value === "radio" ? (l(), j(La, {
5178
5180
  key: 11,
5179
5181
  modelValue: z.value,
5180
5182
  "onUpdate:modelValue": v[12] || (v[12] = (me) => z.value = me),
@@ -5182,7 +5184,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5182
5184
  onChange: oe
5183
5185
  }, {
5184
5186
  default: i(() => [
5185
- (l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), W(qa, {
5187
+ (l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(qa, {
5186
5188
  key: me.value,
5187
5189
  value: me.value
5188
5190
  }, {
@@ -5193,7 +5195,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5193
5195
  }, 1032, ["value"]))), 128))
5194
5196
  ]),
5195
5197
  _: 1
5196
- }, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), W(ja, {
5198
+ }, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), j(ja, {
5197
5199
  key: 12,
5198
5200
  modelValue: z.value,
5199
5201
  "onUpdate:modelValue": v[13] || (v[13] = (me) => z.value = me),
@@ -5201,7 +5203,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5201
5203
  onChange: oe
5202
5204
  }, {
5203
5205
  default: i(() => [
5204
- (l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), W(wa, {
5206
+ (l(!0), o(fe, null, be(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), j(wa, {
5205
5207
  key: me.value,
5206
5208
  value: me.value
5207
5209
  }, {
@@ -5212,7 +5214,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5212
5214
  }, 1032, ["value"]))), 128))
5213
5215
  ]),
5214
5216
  _: 1
5215
- }, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), W(Aa, {
5217
+ }, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), j(Aa, {
5216
5218
  key: 13,
5217
5219
  modelValue: z.value,
5218
5220
  "onUpdate:modelValue": v[14] || (v[14] = (me) => z.value = me),
@@ -5222,7 +5224,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5222
5224
  options: Array.isArray(a.field.options) ? a.field.options : [],
5223
5225
  keys: a.field.props || { label: "label", value: "value", children: "children" },
5224
5226
  onChange: oe
5225
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : b.value === "treeSelect" ? (l(), W(Wa, {
5227
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : b.value === "treeSelect" ? (l(), j(Wa, {
5226
5228
  key: 14,
5227
5229
  modelValue: z.value,
5228
5230
  "onUpdate:modelValue": v[15] || (v[15] = (me) => z.value = me),
@@ -5234,7 +5236,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5234
5236
  data: Ye(a.field),
5235
5237
  "tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
5236
5238
  onChange: oe
5237
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : b.value === "autoComplete" ? (l(), W(Ya, {
5239
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : b.value === "autoComplete" ? (l(), j(Ya, {
5238
5240
  key: 15,
5239
5241
  modelValue: z.value,
5240
5242
  "onUpdate:modelValue": v[16] || (v[16] = (me) => z.value = me),
@@ -5243,7 +5245,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5243
5245
  clearable: a.field.clearable !== !1,
5244
5246
  options: Array.isArray(a.field.options) ? a.field.options : [],
5245
5247
  onChange: oe
5246
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : b.value === "uploadImg" ? (l(), W(Ua, {
5248
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : b.value === "uploadImg" ? (l(), j(Ua, {
5247
5249
  key: 16,
5248
5250
  modelValue: z.value,
5249
5251
  "onUpdate:modelValue": v[17] || (v[17] = (me) => z.value = me),
@@ -5261,7 +5263,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5261
5263
  }
5262
5264
  },
5263
5265
  onChange: oe
5264
- }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : b.value === "upload" ? (l(), W(Ua, {
5266
+ }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : b.value === "upload" ? (l(), j(Ua, {
5265
5267
  key: 17,
5266
5268
  modelValue: z.value,
5267
5269
  "onUpdate:modelValue": v[18] || (v[18] = (me) => z.value = me),
@@ -5283,13 +5285,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5283
5285
  }, 8, ["disabled"])
5284
5286
  ]),
5285
5287
  _: 1
5286
- }, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : b.value === "colorPicker" ? (l(), W(Ha, {
5288
+ }, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : b.value === "colorPicker" ? (l(), j(Ha, {
5287
5289
  key: 18,
5288
5290
  modelValue: z.value,
5289
5291
  "onUpdate:modelValue": v[19] || (v[19] = (me) => z.value = me),
5290
5292
  disabled: L.value,
5291
5293
  onChange: oe
5292
- }, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), W(Ra, {
5294
+ }, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), j(Ra, {
5293
5295
  key: 19,
5294
5296
  modelValue: z.value,
5295
5297
  "onUpdate:modelValue": v[20] || (v[20] = (me) => z.value = me),
@@ -5298,20 +5300,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5298
5300
  max: a.field.max || 100,
5299
5301
  step: a.field.step || 1,
5300
5302
  onChange: oe
5301
- }, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : b.value === "progress" ? (l(), W(Ja, {
5303
+ }, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : b.value === "progress" ? (l(), j(Ja, {
5302
5304
  key: 20,
5303
5305
  percentage: z.value || a.field.defaultValue || 0,
5304
5306
  status: a.field.status,
5305
5307
  "stroke-width": a.field.strokeWidth,
5306
5308
  color: a.field.color,
5307
5309
  label: a.field.showText !== !1
5308
- }, null, 8, ["percentage", "status", "stroke-width", "color", "label"])) : b.value === "alert" ? (l(), W(Ka, {
5310
+ }, null, 8, ["percentage", "status", "stroke-width", "color", "label"])) : b.value === "alert" ? (l(), j(Ka, {
5309
5311
  key: 21,
5310
5312
  theme: a.field.type || "info",
5311
5313
  message: a.field.title || a.field.defaultValue,
5312
5314
  close: a.field.closable,
5313
5315
  icon: a.field.showIcon !== !1
5314
- }, null, 8, ["theme", "message", "close", "icon"])) : b.value === "link" ? (l(), W(_a, {
5316
+ }, null, 8, ["theme", "message", "close", "icon"])) : b.value === "link" ? (l(), j(_a, {
5315
5317
  key: 22,
5316
5318
  href: a.field.href || a.field.defaultValue,
5317
5319
  target: a.field.target || "_blank",
@@ -5322,7 +5324,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5322
5324
  A(V(a.field.content || a.field.__config__.label), 1)
5323
5325
  ]),
5324
5326
  _: 1
5325
- }, 8, ["href", "target", "theme", "disabled"])) : b.value === "button" ? (l(), W(ma, {
5327
+ }, 8, ["href", "target", "theme", "disabled"])) : b.value === "button" ? (l(), j(ma, {
5326
5328
  key: 23,
5327
5329
  theme: a.field.type || "primary",
5328
5330
  disabled: L.value,
@@ -5334,7 +5336,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5334
5336
  key: 0,
5335
5337
  class: xe(a.field.icon),
5336
5338
  style: { "margin-right": "4px" }
5337
- }, null, 2)) : H("", !0),
5339
+ }, null, 2)) : Y("", !0),
5338
5340
  A(" " + V(a.field.content || a.field.__config__.label), 1)
5339
5341
  ]),
5340
5342
  _: 1
@@ -5372,7 +5374,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5372
5374
  e("i", { class: "ri-stamp-line" }, null, -1),
5373
5375
  e("span", null, "点击盖章", -1)
5374
5376
  ])]))
5375
- ])) : b.value === "tag" ? (l(), W(Ga, {
5377
+ ])) : b.value === "tag" ? (l(), j(Ga, {
5376
5378
  key: 27,
5377
5379
  modelValue: z.value,
5378
5380
  "onUpdate:modelValue": v[22] || (v[22] = (me) => z.value = me),
@@ -5385,7 +5387,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5385
5387
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : b.value === "billno" ? (l(), o(fe, { key: 28 }, [
5386
5388
  L.value ? (l(), o("div", uu, [
5387
5389
  e("span", cu, V(z.value), 1)
5388
- ])) : (l(), W(ie, {
5390
+ ])) : (l(), j(ie, {
5389
5391
  key: 1,
5390
5392
  modelValue: z.value,
5391
5393
  "onUpdate:modelValue": v[23] || (v[23] = (me) => z.value = me),
@@ -5396,7 +5398,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5396
5398
  onClear: k,
5397
5399
  onChange: oe
5398
5400
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5399
- ], 64)) : b.value === "relationFormAttr" ? (l(), W(ie, {
5401
+ ], 64)) : b.value === "relationFormAttr" ? (l(), j(ie, {
5400
5402
  key: 29,
5401
5403
  modelValue: P.value,
5402
5404
  "onUpdate:modelValue": v[24] || (v[24] = (me) => P.value = me),
@@ -5412,7 +5414,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5412
5414
  fontWeight: a.field.fontWeight,
5413
5415
  textAlign: a.field.textAlign
5414
5416
  })
5415
- }, V(a.field.defaultValue || z.value), 5)) : b.value === "relationForm" ? (l(), W(Fl, {
5417
+ }, V(a.field.defaultValue || z.value), 5)) : b.value === "relationForm" ? (l(), j(Fl, {
5416
5418
  key: 31,
5417
5419
  value: z.value,
5418
5420
  "onUpdate:value": v[25] || (v[25] = (me) => z.value = me),
@@ -5442,14 +5444,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5442
5444
  onDialogPageChange: v[29] || (v[29] = (me) => Ie(a.field, me))
5443
5445
  }, 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(b.value) ? (l(), o(fe, { key: 32 }, [
5444
5446
  L.value ? (l(), o("div", fu, [
5445
- b.value === "userSelect" && z.value ? (l(), W(ca(Od), {
5447
+ b.value === "userSelect" && z.value ? (l(), j(ca(Od), {
5446
5448
  key: 0,
5447
5449
  "user-id": z.value,
5448
5450
  name: ke(),
5449
5451
  "show-avatar": "",
5450
5452
  clickable: ""
5451
5453
  }, null, 8, ["user-id", "name"])) : (l(), o("span", mu, V(ke()), 1))
5452
- ])) : (l(), W(ie, {
5454
+ ])) : (l(), j(ie, {
5453
5455
  key: 1,
5454
5456
  "model-value": ke(),
5455
5457
  placeholder: a.field.placeholder || `请选择${a.field.__config__.label}`,
@@ -5468,7 +5470,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5468
5470
  ]),
5469
5471
  _: 1
5470
5472
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]))
5471
- ], 64)) : (l(), W(ie, {
5473
+ ], 64)) : (l(), j(ie, {
5472
5474
  key: 33,
5473
5475
  modelValue: z.value,
5474
5476
  "onUpdate:modelValue": v[30] || (v[30] = (me) => z.value = me),
@@ -5493,7 +5495,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5493
5495
  (l(!0), o(fe, null, be(U.value, (Ce) => (l(), o(fe, {
5494
5496
  key: Ce.value
5495
5497
  }, [
5496
- Ce.children && Ce.children.length > 0 ? (l(), W(Za, {
5498
+ Ce.children && Ce.children.length > 0 ? (l(), j(Za, {
5497
5499
  key: 0,
5498
5500
  onClick: E
5499
5501
  }, {
@@ -5513,7 +5515,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5513
5515
  }, 1024),
5514
5516
  s(Qa, null, {
5515
5517
  default: i(() => [
5516
- (l(!0), o(fe, null, be(Ce.children.filter((Re) => Re.show !== !1), (Re) => (l(), W(Xa, {
5518
+ (l(!0), o(fe, null, be(Ce.children.filter((Re) => Re.show !== !1), (Re) => (l(), j(Xa, {
5517
5519
  key: Re.value || Math.random(),
5518
5520
  value: Re.value,
5519
5521
  disabled: Re.disabled,
@@ -5529,28 +5531,28 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5529
5531
  }, 1024)
5530
5532
  ]),
5531
5533
  _: 2
5532
- }, 1024)) : Ce.show !== !1 ? (l(), W(ma, {
5534
+ }, 1024)) : Ce.show !== !1 ? (l(), j(ma, {
5533
5535
  key: 1,
5534
5536
  variant: "outline",
5535
5537
  size: "small",
5536
5538
  theme: r(Ce.value),
5537
- onClick: Xe((Re) => j(Ce.value), ["stop"])
5539
+ onClick: Xe((Re) => W(Ce.value), ["stop"])
5538
5540
  }, {
5539
5541
  default: i(() => [
5540
5542
  A(V(Ce.label), 1)
5541
5543
  ]),
5542
5544
  _: 2
5543
- }, 1032, ["theme", "onClick"])) : H("", !0)
5545
+ }, 1032, ["theme", "onClick"])) : Y("", !0)
5544
5546
  ], 64))), 128))
5545
- ])) : H("", !0)
5546
- ])) : H("", !0),
5547
+ ])) : Y("", !0)
5548
+ ])) : Y("", !0),
5547
5549
  s(el, Fa({
5548
5550
  ref_key: "vxeGridRef",
5549
5551
  ref: c
5550
5552
  }, ge.value, {
5551
5553
  data: N.value,
5552
5554
  columns: J.value,
5553
- "onUpdate:data": Y,
5555
+ "onUpdate:data": H,
5554
5556
  onEditClosed: O,
5555
5557
  "keyboard-config": _.value
5556
5558
  }), null, 16, ["data", "columns", "keyboard-config"]),
@@ -5568,7 +5570,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5568
5570
  }, [
5569
5571
  a.field.__config__.showLabel ? (l(), o("div", hu, [
5570
5572
  e("span", bu, V(a.field.__config__.label), 1)
5571
- ])) : H("", !0),
5573
+ ])) : Y("", !0),
5572
5574
  s(xa, {
5573
5575
  gutter: 0,
5574
5576
  class: "cd-row",
@@ -5579,7 +5581,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5579
5581
  (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), o(fe, {
5580
5582
  key: Ce.__config__.formId
5581
5583
  }, [
5582
- Ce.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5584
+ Ce.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5583
5585
  key: 0,
5584
5586
  span: Ce.__config__.span,
5585
5587
  class: xe(Ce.__config__.className)
@@ -5599,7 +5601,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5599
5601
  ]),
5600
5602
  _: 1
5601
5603
  }, 8, ["justify", "align"])
5602
- ], 2)) : b.value === "divider" ? (l(), W(al, {
5604
+ ], 2)) : b.value === "divider" ? (l(), j(al, {
5603
5605
  key: 3,
5604
5606
  class: xe(a.field.__config__.className),
5605
5607
  align: a.field.contentPosition || "center"
@@ -5612,8 +5614,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5612
5614
  key: 4,
5613
5615
  class: xe(["blank-component", a.field.__config__.className])
5614
5616
  }, [
5615
- a.field.content ? (l(), o("span", yu, V(a.field.content), 1)) : H("", !0)
5616
- ], 2)) : b.value === "tab" ? (l(), W(tl, {
5617
+ a.field.content ? (l(), o("span", yu, V(a.field.content), 1)) : Y("", !0)
5618
+ ], 2)) : b.value === "tab" ? (l(), j(tl, {
5617
5619
  key: 5,
5618
5620
  modelValue: y.value,
5619
5621
  "onUpdate:modelValue": v[34] || (v[34] = (Ce) => y.value = Ce),
@@ -5623,7 +5625,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5623
5625
  size: "medium"
5624
5626
  }, {
5625
5627
  default: i(() => [
5626
- (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), W(ll, {
5628
+ (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(ll, {
5627
5629
  key: Ce.name,
5628
5630
  value: Ce.name,
5629
5631
  label: Ce.title
@@ -5637,7 +5639,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5637
5639
  (l(!0), o(fe, null, be(Ce.__config__.children, (Re) => (l(), o(fe, {
5638
5640
  key: Re.__config__.formId
5639
5641
  }, [
5640
- Re.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5642
+ Re.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5641
5643
  key: 0,
5642
5644
  span: Re.__config__.span,
5643
5645
  class: xe(Re.__config__.className)
@@ -5685,7 +5687,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5685
5687
  (l(!0), o(fe, null, be(me.__config__.children, (da) => (l(), o(fe, {
5686
5688
  key: da.__config__.formId
5687
5689
  }, [
5688
- da.__config__.noShow ? H("", !0) : (l(), W(ha, {
5690
+ da.__config__.noShow ? Y("", !0) : (l(), j(ha, {
5689
5691
  key: 0,
5690
5692
  field: da,
5691
5693
  "form-model": a.formModel,
@@ -5698,7 +5700,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5698
5700
  ]))), 128))
5699
5701
  ])
5700
5702
  ])
5701
- ], 6)) : b.value === "collapse" ? (l(), W(nl, {
5703
+ ], 6)) : b.value === "collapse" ? (l(), j(nl, {
5702
5704
  key: 7,
5703
5705
  modelValue: u.value,
5704
5706
  "onUpdate:modelValue": v[37] || (v[37] = (Ce) => u.value = Ce),
@@ -5708,7 +5710,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5708
5710
  borderless: a.field.ghost
5709
5711
  }, {
5710
5712
  default: i(() => [
5711
- (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), W(Ea, {
5713
+ (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), j(Ea, {
5712
5714
  key: Ce.name,
5713
5715
  value: Ce.name,
5714
5716
  header: Ce.title
@@ -5722,7 +5724,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5722
5724
  (l(!0), o(fe, null, be(Ce.__config__.children, (Re) => (l(), o(fe, {
5723
5725
  key: Re.__config__.formId
5724
5726
  }, [
5725
- Re.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5727
+ Re.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5726
5728
  key: 0,
5727
5729
  span: Re.__config__.span,
5728
5730
  class: xe(Re.__config__.className)
@@ -5753,12 +5755,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5753
5755
  }, [
5754
5756
  a.field.__config__.showLabel !== !1 ? (l(), o("div", ku, [
5755
5757
  e("span", Cu, V(a.field.__config__.label), 1),
5756
- L.value ? H("", !0) : (l(), W(Ia, { key: 0 }, {
5758
+ L.value ? Y("", !0) : (l(), j(Ia, { key: 0 }, {
5757
5759
  default: i(() => [
5758
5760
  (l(!0), o(fe, null, be(ee.value, (Ce) => (l(), o(fe, {
5759
5761
  key: Ce.value
5760
5762
  }, [
5761
- Ce.value === "add" ? (l(), W(ma, {
5763
+ Ce.value === "add" ? (l(), j(ma, {
5762
5764
  key: 0,
5763
5765
  theme: Ce.btnType || "primary",
5764
5766
  variant: "outline",
@@ -5774,7 +5776,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5774
5776
  A(" " + V(Ce.label), 1)
5775
5777
  ]),
5776
5778
  _: 2
5777
- }, 1032, ["theme"])) : Ce.showConfirm ? (l(), W(Pa, {
5779
+ }, 1032, ["theme"])) : Ce.showConfirm ? (l(), j(Pa, {
5778
5780
  key: 1,
5779
5781
  content: `确定${Ce.label}吗?`,
5780
5782
  onConfirm: (Re) => oa(Ce)
@@ -5797,7 +5799,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5797
5799
  }, 1032, ["theme"])
5798
5800
  ]),
5799
5801
  _: 2
5800
- }, 1032, ["content", "onConfirm"])) : (l(), W(ma, {
5802
+ }, 1032, ["content", "onConfirm"])) : (l(), j(ma, {
5801
5803
  key: 2,
5802
5804
  theme: Ce.btnType || "default",
5803
5805
  variant: "outline",
@@ -5818,7 +5820,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5818
5820
  ]),
5819
5821
  _: 1
5820
5822
  }))
5821
- ])) : H("", !0),
5823
+ ])) : Y("", !0),
5822
5824
  s(ol, {
5823
5825
  data: I.value,
5824
5826
  columns: D.value,
@@ -5849,7 +5851,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5849
5851
  (l(!0), o(fe, null, be(q.value, (Re) => (l(), o(fe, {
5850
5852
  key: Re.value
5851
5853
  }, [
5852
- Re.value === "copy" ? (l(), W(_a, {
5854
+ Re.value === "copy" ? (l(), j(_a, {
5853
5855
  key: 0,
5854
5856
  theme: "primary",
5855
5857
  onClick: (me) => sa(Ce)
@@ -5861,7 +5863,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5861
5863
  A(" " + V(Re.label), 1)
5862
5864
  ]),
5863
5865
  _: 2
5864
- }, 1032, ["onClick"])) : Re.value === "remove" && Re.showConfirm ? (l(), W(Pa, {
5866
+ }, 1032, ["onClick"])) : Re.value === "remove" && Re.showConfirm ? (l(), j(Pa, {
5865
5867
  key: 1,
5866
5868
  content: "确定删除该行吗?",
5867
5869
  onConfirm: (me) => Ae(Ce)
@@ -5880,7 +5882,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5880
5882
  }, 1032, ["theme"])
5881
5883
  ]),
5882
5884
  _: 2
5883
- }, 1032, ["onConfirm"])) : Re.value === "remove" ? (l(), W(_a, {
5885
+ }, 1032, ["onConfirm"])) : Re.value === "remove" ? (l(), j(_a, {
5884
5886
  key: 2,
5885
5887
  theme: Re.btnType === "error" ? "danger" : "default",
5886
5888
  onClick: (me) => Ae(Ce)
@@ -5892,7 +5894,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5892
5894
  A(" " + V(Re.label), 1)
5893
5895
  ]),
5894
5896
  _: 2
5895
- }, 1032, ["theme", "onClick"])) : H("", !0)
5897
+ }, 1032, ["theme", "onClick"])) : Y("", !0)
5896
5898
  ], 64))), 128))
5897
5899
  ]),
5898
5900
  _: 2
@@ -5901,7 +5903,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5901
5903
  key: "0"
5902
5904
  }
5903
5905
  ]), 1032, ["data", "columns", "stripe"])
5904
- ], 2)) : H("", !0);
5906
+ ], 2)) : Y("", !0);
5905
5907
  };
5906
5908
  }
5907
5909
  }), Dl = /* @__PURE__ */ Ze(xu, [["__scopeId", "data-v-158cd013"]]), $u = /* @__PURE__ */ Ke({
@@ -6024,11 +6026,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6024
6026
  });
6025
6027
  }, ge = (x) => {
6026
6028
  u("select-org-data", x);
6027
- }, Y = (x) => {
6029
+ }, H = (x) => {
6028
6030
  u("relation-form-search", x);
6029
6031
  }, E = (x) => {
6030
6032
  u("relation-form-advanced", x);
6031
- }, j = (x) => {
6033
+ }, W = (x) => {
6032
6034
  u("relation-form-dialog-search", x);
6033
6035
  }, d = (x) => {
6034
6036
  u("relation-form-page-change", x);
@@ -6181,7 +6183,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6181
6183
  initFormData: g
6182
6184
  }), Ca("formModel", _), Ca("formConf", y.formConf), (x, b) => {
6183
6185
  const z = M("t-row"), P = M("t-form");
6184
- return l(), W(P, {
6186
+ return l(), j(P, {
6185
6187
  ref_key: "formRef",
6186
6188
  ref: c,
6187
6189
  model: _,
@@ -6203,7 +6205,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6203
6205
  return l(), o(fe, {
6204
6206
  key: ((oe = G.__config__) == null ? void 0 : oe.formId) || G.__vModel__ || X
6205
6207
  }, [
6206
- !G.__config__.noShow && D(G) ? (l(), W(Ma, {
6208
+ !G.__config__.noShow && D(G) ? (l(), j(Ma, {
6207
6209
  key: 0,
6208
6210
  span: G.__config__.span,
6209
6211
  class: xe(G.__config__.className)
@@ -6217,14 +6219,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6217
6219
  onChange: ee,
6218
6220
  onI18nClick: N,
6219
6221
  onSelectOrgData: ge,
6220
- onRelationFormSearch: Y,
6222
+ onRelationFormSearch: H,
6221
6223
  onRelationFormAdvanced: E,
6222
- onRelationFormDialogSearch: j,
6224
+ onRelationFormDialogSearch: W,
6223
6225
  onRelationFormPageChange: d
6224
6226
  }, null, 8, ["field", "form-model", "form-conf", "disabled"])
6225
6227
  ]),
6226
6228
  _: 2
6227
- }, 1032, ["span", "class"])) : H("", !0)
6229
+ }, 1032, ["span", "class"])) : Y("", !0)
6228
6230
  ], 64);
6229
6231
  }), 128))
6230
6232
  ]),
@@ -11776,20 +11778,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11776
11778
  const c = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], m = ve(() => Vu.map((E) => c.includes(E.name) ? {
11777
11779
  label: E.name,
11778
11780
  value: E.name,
11779
- children: E.city[0].area.map((j) => ({
11780
- label: j,
11781
- value: `${E.name}/${j}`,
11781
+ children: E.city[0].area.map((W) => ({
11782
+ label: W,
11783
+ value: `${E.name}/${W}`,
11782
11784
  children: void 0
11783
11785
  }))
11784
11786
  } : {
11785
11787
  label: E.name,
11786
11788
  value: E.name,
11787
- children: E.city.map((j) => ({
11788
- label: j.name,
11789
- value: `${E.name}/${j.name}`,
11790
- children: j.area.map((d) => ({
11789
+ children: E.city.map((W) => ({
11790
+ label: W.name,
11791
+ value: `${E.name}/${W.name}`,
11792
+ children: W.area.map((d) => ({
11791
11793
  label: d,
11792
- value: `${E.name}/${j.name}/${d}`,
11794
+ value: `${E.name}/${W.name}/${d}`,
11793
11795
  children: void 0
11794
11796
  }))
11795
11797
  }))
@@ -11810,11 +11812,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11810
11812
  if (r.selectOptions && r.selectOptions[E])
11811
11813
  return r.selectOptions[E];
11812
11814
  if (r.selectOptions && Array.isArray(r.selectOptions)) {
11813
- const j = r.selectOptions.find(
11815
+ const W = r.selectOptions.find(
11814
11816
  (d) => d.columnName === E
11815
11817
  );
11816
- if (j && j.value)
11817
- return C(j.value.map((d) => ({
11818
+ if (W && W.value)
11819
+ return C(W.value.map((d) => ({
11818
11820
  label: d,
11819
11821
  value: d
11820
11822
  })));
@@ -11822,7 +11824,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11822
11824
  return [];
11823
11825
  };
11824
11826
  function C(E) {
11825
- return [...E].sort((j, d) => j.value.localeCompare(d.value, "zh-CN"));
11827
+ return [...E].sort((W, d) => W.value.localeCompare(d.value, "zh-CN"));
11826
11828
  }
11827
11829
  const r = a, I = te, D = F({
11828
11830
  field: ((n = r.filterCondition) == null ? void 0 : n.field) || "",
@@ -11833,8 +11835,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11833
11835
  E && (D.value = { ...E });
11834
11836
  }, { deep: !0 });
11835
11837
  const q = (E) => {
11836
- const j = r.fieldOptions.find((d) => d.value === E);
11837
- return j ? j.type : "text";
11838
+ const W = r.fieldOptions.find((d) => d.value === E);
11839
+ return W ? W.type : "text";
11838
11840
  }, ee = () => {
11839
11841
  typeof r.filterCondition.value == "string" && (r.filterCondition.value = r.filterCondition.value.trim()), ta(() => {
11840
11842
  I("search", { ...r.filterCondition });
@@ -11847,8 +11849,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11847
11849
  r.filterCondition.value = E, I("search", { ...r.filterCondition });
11848
11850
  }, ge = ve(() => {
11849
11851
  var E;
11850
- const j = r.filterCondition.field;
11851
- switch (((E = r.fieldOptions.find((d) => d.value === j)) == null ? void 0 : E.type) || "text") {
11852
+ const W = r.filterCondition.field;
11853
+ switch (((E = r.fieldOptions.find((d) => d.value === W)) == null ? void 0 : E.type) || "text") {
11852
11854
  case "number":
11853
11855
  return [
11854
11856
  { key: "eq", label: "等于", value: "eq" },
@@ -11926,28 +11928,28 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11926
11928
  { key: "ends_with", label: "结尾是", value: "ends_with" }
11927
11929
  ];
11928
11930
  }
11929
- }), Y = () => {
11931
+ }), H = () => {
11930
11932
  ta(() => {
11931
11933
  I("search", { ...r.filterCondition });
11932
11934
  });
11933
11935
  };
11934
- return ze(() => r.filterCondition.field, (E, j) => {
11935
- E && j && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
11936
- }), (E, j) => {
11936
+ return ze(() => r.filterCondition.field, (E, W) => {
11937
+ E && W && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
11938
+ }), (E, W) => {
11937
11939
  var d;
11938
11940
  const S = M("t-option"), g = M("t-select"), R = M("t-input"), O = M("t-date-picker"), de = M("t-cascader");
11939
11941
  return l(), o("div", Su, [
11940
11942
  s(g, {
11941
11943
  modelValue: r.filterCondition.field,
11942
- "onUpdate:modelValue": j[0] || (j[0] = (ue) => r.filterCondition.field = ue),
11944
+ "onUpdate:modelValue": W[0] || (W[0] = (ue) => r.filterCondition.field = ue),
11943
11945
  placeholder: "请选择字段",
11944
11946
  size: r.size,
11945
11947
  style: { "min-width": "80px", "max-width": "110px" },
11946
- onChange: Y,
11948
+ onChange: H,
11947
11949
  filterable: ""
11948
11950
  }, {
11949
11951
  default: i(() => [
11950
- (l(!0), o(fe, null, be(r.fieldOptions, (ue) => (l(), W(S, {
11952
+ (l(!0), o(fe, null, be(r.fieldOptions, (ue) => (l(), j(S, {
11951
11953
  key: ue.key,
11952
11954
  label: ue.key,
11953
11955
  value: ue.value
@@ -11957,7 +11959,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11957
11959
  }, 8, ["modelValue", "size"]),
11958
11960
  s(g, {
11959
11961
  modelValue: r.filterCondition.operator,
11960
- "onUpdate:modelValue": j[1] || (j[1] = (ue) => r.filterCondition.operator = ue),
11962
+ "onUpdate:modelValue": W[1] || (W[1] = (ue) => r.filterCondition.operator = ue),
11961
11963
  placeholder: "请选择条件",
11962
11964
  size: r.size,
11963
11965
  style: { width: "80px" },
@@ -11965,7 +11967,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11965
11967
  onChange: N
11966
11968
  }, {
11967
11969
  default: i(() => [
11968
- (l(!0), o(fe, null, be(ge.value, (ue) => (l(), W(S, {
11970
+ (l(!0), o(fe, null, be(ge.value, (ue) => (l(), j(S, {
11969
11971
  key: ue.key,
11970
11972
  label: ue.label,
11971
11973
  value: ue.value
@@ -11973,47 +11975,47 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11973
11975
  ]),
11974
11976
  _: 1
11975
11977
  }, 8, ["modelValue", "size"]),
11976
- q(r.filterCondition.field) === "number" ? (l(), W(R, {
11978
+ q(r.filterCondition.field) === "number" ? (l(), j(R, {
11977
11979
  key: 0,
11978
11980
  type: "number",
11979
11981
  modelValue: r.filterCondition.value,
11980
- "onUpdate:modelValue": j[2] || (j[2] = (ue) => r.filterCondition.value = ue),
11982
+ "onUpdate:modelValue": W[2] || (W[2] = (ue) => r.filterCondition.value = ue),
11981
11983
  placeholder: "请输入数字",
11982
11984
  size: r.size,
11983
11985
  style: { width: "80px" },
11984
11986
  onChange: ee,
11985
11987
  clearable: ""
11986
- }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "money" ? (l(), W(R, {
11988
+ }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "money" ? (l(), j(R, {
11987
11989
  key: 1,
11988
11990
  type: "number",
11989
11991
  modelValue: r.filterCondition.value,
11990
- "onUpdate:modelValue": j[3] || (j[3] = (ue) => r.filterCondition.value = ue),
11992
+ "onUpdate:modelValue": W[3] || (W[3] = (ue) => r.filterCondition.value = ue),
11991
11993
  placeholder: "请输入金额",
11992
11994
  size: r.size,
11993
11995
  style: { width: "80px" },
11994
11996
  onChange: ee,
11995
11997
  clearable: ""
11996
11998
  }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "date" ? (l(), o(fe, { key: 2 }, [
11997
- U(r.filterCondition.operator) ? (l(), W(R, {
11999
+ U(r.filterCondition.operator) ? (l(), j(R, {
11998
12000
  key: 1,
11999
12001
  value: (d = ge.value.find((ue) => ue.value === r.filterCondition.operator)) == null ? void 0 : d.label,
12000
12002
  disabled: "",
12001
12003
  size: r.size,
12002
12004
  style: { "min-width": "80px", "max-width": "120px" }
12003
- }, null, 8, ["value", "size"])) : (l(), W(O, {
12005
+ }, null, 8, ["value", "size"])) : (l(), j(O, {
12004
12006
  key: 0,
12005
12007
  modelValue: r.filterCondition.value,
12006
- "onUpdate:modelValue": j[4] || (j[4] = (ue) => r.filterCondition.value = ue),
12008
+ "onUpdate:modelValue": W[4] || (W[4] = (ue) => r.filterCondition.value = ue),
12007
12009
  placeholder: "请选择日期",
12008
12010
  size: r.size,
12009
12011
  style: { "min-width": "80px", "max-width": "120px" },
12010
12012
  onChange: ee,
12011
12013
  clearable: ""
12012
12014
  }, null, 8, ["modelValue", "size"]))
12013
- ], 64)) : q(r.filterCondition.field) === "time" ? (l(), W(O, {
12015
+ ], 64)) : q(r.filterCondition.field) === "time" ? (l(), j(O, {
12014
12016
  key: 3,
12015
12017
  modelValue: r.filterCondition.value,
12016
- "onUpdate:modelValue": j[5] || (j[5] = (ue) => r.filterCondition.value = ue),
12018
+ "onUpdate:modelValue": W[5] || (W[5] = (ue) => r.filterCondition.value = ue),
12017
12019
  placeholder: "请选择日期时间",
12018
12020
  size: r.size,
12019
12021
  style: { "min-width": "80px", "max-width": "120px" },
@@ -12021,20 +12023,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12021
12023
  format: "YYYY-MM-DD HH:mm:ss",
12022
12024
  onChange: ee,
12023
12025
  clearable: ""
12024
- }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "select" ? (l(), W(g, {
12026
+ }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "select" ? (l(), j(g, {
12025
12027
  key: 4,
12026
12028
  modelValue: r.filterCondition.value,
12027
- "onUpdate:modelValue": j[6] || (j[6] = (ue) => r.filterCondition.value = ue),
12029
+ "onUpdate:modelValue": W[6] || (W[6] = (ue) => r.filterCondition.value = ue),
12028
12030
  options: _(r.filterCondition.field),
12029
12031
  placeholder: "请选择",
12030
12032
  size: r.size,
12031
12033
  style: { "min-width": "80px", "max-width": "120px" },
12032
12034
  onChange: ee,
12033
12035
  clearable: ""
12034
- }, null, 8, ["modelValue", "options", "size"])) : q(r.filterCondition.field) === "selectProvince" ? (l(), W(de, {
12036
+ }, null, 8, ["modelValue", "options", "size"])) : q(r.filterCondition.field) === "selectProvince" ? (l(), j(de, {
12035
12037
  key: 5,
12036
12038
  modelValue: r.filterCondition.value,
12037
- "onUpdate:modelValue": j[7] || (j[7] = (ue) => r.filterCondition.value = ue),
12039
+ "onUpdate:modelValue": W[7] || (W[7] = (ue) => r.filterCondition.value = ue),
12038
12040
  options: m.value,
12039
12041
  placeholder: "请选择地区",
12040
12042
  size: r.size,
@@ -12042,10 +12044,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12042
12044
  clearable: "",
12043
12045
  loading: !1,
12044
12046
  onChange: J
12045
- }, null, 8, ["modelValue", "options", "size"])) : (l(), W(R, {
12047
+ }, null, 8, ["modelValue", "options", "size"])) : (l(), j(R, {
12046
12048
  key: 6,
12047
12049
  modelValue: r.filterCondition.value,
12048
- "onUpdate:modelValue": j[8] || (j[8] = (ue) => r.filterCondition.value = ue),
12050
+ "onUpdate:modelValue": W[8] || (W[8] = (ue) => r.filterCondition.value = ue),
12049
12051
  placeholder: "请输入关键字",
12050
12052
  size: r.size,
12051
12053
  style: { "min-width": "80px", "max-width": "100px" },
@@ -12166,8 +12168,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12166
12168
  y("close"), y("update:visible", !1);
12167
12169
  };
12168
12170
  return (N, J) => {
12169
- const ge = M("t-input"), Y = M("t-form-item"), E = M("t-radio"), j = M("t-tooltip"), d = M("t-radio-group"), S = M("t-form"), g = M("t-button"), R = M("t-dialog");
12170
- return l(), W(R, {
12171
+ const ge = M("t-input"), H = M("t-form-item"), E = M("t-radio"), W = M("t-tooltip"), d = M("t-radio-group"), S = M("t-form"), g = M("t-button"), R = M("t-dialog");
12172
+ return l(), j(R, {
12171
12173
  header: a.isEditing ? "编辑筛选方案" : "保存筛选方案",
12172
12174
  visible: a.visible,
12173
12175
  "onUpdate:visible": J[3] || (J[3] = (O) => N.$emit("update:visible", O)),
@@ -12184,7 +12186,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12184
12186
  "label-width": "100px"
12185
12187
  }, {
12186
12188
  default: i(() => [
12187
- s(Y, {
12189
+ s(H, {
12188
12190
  label: "方案名称",
12189
12191
  required: ""
12190
12192
  }, {
@@ -12197,7 +12199,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12197
12199
  ]),
12198
12200
  _: 1
12199
12201
  }),
12200
- s(Y, { label: "共享设置" }, {
12202
+ s(H, { label: "共享设置" }, {
12201
12203
  default: i(() => [
12202
12204
  s(d, {
12203
12205
  modelValue: u.value.shareMode,
@@ -12217,7 +12219,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12217
12219
  ])]),
12218
12220
  _: 1
12219
12221
  }),
12220
- s(j, {
12222
+ s(W, {
12221
12223
  content: "复制方案只支持复制一次,建议共享方案",
12222
12224
  placement: "top"
12223
12225
  }, {
@@ -12237,7 +12239,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12237
12239
  ]),
12238
12240
  _: 1
12239
12241
  }),
12240
- u.value.shareMode === "share" ? (l(), W(Y, {
12242
+ u.value.shareMode === "share" ? (l(), j(H, {
12241
12243
  key: 0,
12242
12244
  label: "共享范围"
12243
12245
  }, {
@@ -12264,13 +12266,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12264
12266
  }, 8, ["modelValue"])
12265
12267
  ]),
12266
12268
  _: 1
12267
- })) : H("", !0),
12268
- u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), W(Y, {
12269
+ })) : Y("", !0),
12270
+ u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), j(H, {
12269
12271
  key: 1,
12270
12272
  label: "共享人员"
12271
12273
  }, {
12272
12274
  default: i(() => [
12273
- s(ca(dl), {
12275
+ s(ca(ul), {
12274
12276
  users: c.value,
12275
12277
  "avatar-size": 32,
12276
12278
  "max-display": 10,
@@ -12285,7 +12287,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12285
12287
  }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
12286
12288
  ]),
12287
12289
  _: 1
12288
- })) : H("", !0)
12290
+ })) : Y("", !0)
12289
12291
  ]),
12290
12292
  _: 1
12291
12293
  }, 8, ["data"])
@@ -12410,7 +12412,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12410
12412
  connector: "and",
12411
12413
  conditions: [{ field: "", operator: "eq", value: "" }]
12412
12414
  });
12413
- }, Y = (Q) => {
12415
+ }, H = (Q) => {
12414
12416
  u.value.length > 1 ? u.value.splice(Q, 1) : Pe.warning("至少需要保留一个筛选卡片");
12415
12417
  }, E = (Q) => {
12416
12418
  Q >= 0 && Q < u.value.length && u.value[Q].conditions.push({
@@ -12418,7 +12420,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12418
12420
  operator: "eq",
12419
12421
  value: ""
12420
12422
  });
12421
- }, j = (Q, ae) => {
12423
+ }, W = (Q, ae) => {
12422
12424
  if (Q >= 0 && Q < u.value.length) {
12423
12425
  const Fe = u.value[Q];
12424
12426
  Fe.conditions.length > 1 && ae >= 0 && ae < Fe.conditions.length ? Fe.conditions.splice(ae, 1) : Fe.conditions.length <= 1 && Pe.warning("每个卡片至少需要一个筛选条件");
@@ -12649,7 +12651,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12649
12651
  _: 1
12650
12652
  }, 8, ["size", "modelValue"])
12651
12653
  ])
12652
- ])) : H("", !0),
12654
+ ])) : Y("", !0),
12653
12655
  e("div", Tu, [
12654
12656
  (l(!0), o(fe, null, be(u.value, (p, v) => (l(), o("div", {
12655
12657
  key: p.id,
@@ -12685,7 +12687,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12685
12687
  theme: "default",
12686
12688
  variant: "text",
12687
12689
  size: a.size,
12688
- onClick: (ie) => Y(v),
12690
+ onClick: (ie) => H(v),
12689
12691
  disabled: u.value.length === 1
12690
12692
  }, {
12691
12693
  icon: i(() => [
@@ -12709,7 +12711,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12709
12711
  theme: "default",
12710
12712
  variant: "text",
12711
12713
  size: a.size,
12712
- onClick: (De) => j(v, Te),
12714
+ onClick: (De) => W(v, Te),
12713
12715
  disabled: p.conditions.length === 1
12714
12716
  }, {
12715
12717
  icon: i(() => [
@@ -13125,15 +13127,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13125
13127
  }
13126
13128
  ]);
13127
13129
  ze(() => n.visible, (ge) => {
13128
- u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((Y) => ({
13129
- ...Y,
13130
+ u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((H) => ({
13131
+ ...H,
13130
13132
  showColorPicker: !1
13131
13133
  })));
13132
13134
  }), ze(u, (ge) => {
13133
13135
  y("update:visible", ge);
13134
13136
  });
13135
- const C = (ge, Y) => {
13136
- _.value[ge].backgroundColor = Y, _.value[ge].showColorPicker = !1;
13137
+ const C = (ge, H) => {
13138
+ _.value[ge].backgroundColor = H, _.value[ge].showColorPicker = !1;
13137
13139
  }, r = () => {
13138
13140
  _.value.push({
13139
13141
  field: "",
@@ -13152,33 +13154,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13152
13154
  y("clear"), u.value = !1;
13153
13155
  }, ee = () => {
13154
13156
  const ge = _.value.filter(
13155
- (Y) => Y.field && Y.operator && Y.value
13156
- ).map((Y) => ({
13157
- field: Y.field,
13158
- operator: Y.operator,
13159
- value: Y.value,
13160
- backgroundColor: Y.backgroundColor,
13161
- isBold: Y.isBold,
13162
- applyTo: Y.applyTo
13157
+ (H) => H.field && H.operator && H.value
13158
+ ).map((H) => ({
13159
+ field: H.field,
13160
+ operator: H.operator,
13161
+ value: H.value,
13162
+ backgroundColor: H.backgroundColor,
13163
+ isBold: H.isBold,
13164
+ applyTo: H.applyTo
13163
13165
  }));
13164
13166
  y("confirm", ge), u.value = !1;
13165
13167
  }, N = ve(() => {
13166
- const ge = _.value.length, Y = Math.floor(c.length / ge), E = [];
13167
- for (let j = 0; j < ge; j++) {
13168
- const d = j * Y % c.length;
13168
+ const ge = _.value.length, H = Math.floor(c.length / ge), E = [];
13169
+ for (let W = 0; W < ge; W++) {
13170
+ const d = W * H % c.length;
13169
13171
  E.push(c[d]);
13170
13172
  }
13171
13173
  return E;
13172
13174
  }), J = () => {
13173
- _.value.forEach((ge, Y) => {
13174
- Y < N.value.length && (ge.backgroundColor = N.value[Y]);
13175
+ _.value.forEach((ge, H) => {
13176
+ H < N.value.length && (ge.backgroundColor = N.value[H]);
13175
13177
  }), y("smart-colors-change", N.value);
13176
13178
  };
13177
- return (ge, Y) => {
13178
- const E = M("t-button"), j = M("t-checkbox"), d = M("t-popup"), S = M("t-radio-button"), g = M("t-radio-group"), R = M("t-select"), O = M("t-input"), de = M("t-icon"), ue = M("t-dialog");
13179
- return l(), W(ue, {
13179
+ return (ge, H) => {
13180
+ const E = M("t-button"), W = M("t-checkbox"), d = M("t-popup"), S = M("t-radio-button"), g = M("t-radio-group"), R = M("t-select"), O = M("t-input"), de = M("t-icon"), ue = M("t-dialog");
13181
+ return l(), j(ue, {
13180
13182
  visible: u.value,
13181
- "onUpdate:visible": Y[0] || (Y[0] = (L) => u.value = L),
13183
+ "onUpdate:visible": H[0] || (H[0] = (L) => u.value = L),
13182
13184
  width: "800px",
13183
13185
  "confirm-btn": null,
13184
13186
  "cancel-btn": null,
@@ -13186,18 +13188,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13186
13188
  }, {
13187
13189
  header: i(() => [
13188
13190
  e("div", cc, [
13189
- Y[3] || (Y[3] = e("span", null, "颜色筛选", -1)),
13191
+ H[3] || (H[3] = e("span", null, "颜色筛选", -1)),
13190
13192
  s(E, {
13191
13193
  theme: "primary",
13192
13194
  variant: "outline",
13193
13195
  size: "small",
13194
13196
  onClick: J
13195
13197
  }, {
13196
- icon: i(() => [...Y[1] || (Y[1] = [
13198
+ icon: i(() => [...H[1] || (H[1] = [
13197
13199
  e("i", { class: "ri-palette-line" }, null, -1)
13198
13200
  ])]),
13199
13201
  default: i(() => [
13200
- Y[2] || (Y[2] = A(" 智能配色 ", -1))
13202
+ H[2] || (H[2] = A(" 智能配色 ", -1))
13201
13203
  ]),
13202
13204
  _: 1
13203
13205
  })
@@ -13229,11 +13231,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13229
13231
  }, null, 14, _c)), 64))
13230
13232
  ]),
13231
13233
  e("div", kc, [
13232
- s(j, {
13234
+ s(W, {
13233
13235
  modelValue: L.isBold,
13234
13236
  "onUpdate:modelValue": (b) => L.isBold = b
13235
13237
  }, {
13236
- default: i(() => [...Y[4] || (Y[4] = [
13238
+ default: i(() => [...H[4] || (H[4] = [
13237
13239
  e("span", { class: "bold-text" }, "加粗", -1)
13238
13240
  ])]),
13239
13241
  _: 1
@@ -13247,7 +13249,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13247
13249
  class: "color-block",
13248
13250
  style: Ge({ backgroundColor: L.backgroundColor })
13249
13251
  }, [
13250
- L.isBold ? (l(), o("span", hc, "B")) : H("", !0)
13252
+ L.isBold ? (l(), o("span", hc, "B")) : Y("", !0)
13251
13253
  ], 4)
13252
13254
  ])
13253
13255
  ]),
@@ -13263,19 +13265,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13263
13265
  }, {
13264
13266
  default: i(() => [
13265
13267
  s(S, { value: "cell" }, {
13266
- default: i(() => [...Y[5] || (Y[5] = [
13268
+ default: i(() => [...H[5] || (H[5] = [
13267
13269
  A("单元格", -1)
13268
13270
  ])]),
13269
13271
  _: 1
13270
13272
  }),
13271
13273
  s(S, { value: "row" }, {
13272
- default: i(() => [...Y[6] || (Y[6] = [
13274
+ default: i(() => [...H[6] || (H[6] = [
13273
13275
  A("整行", -1)
13274
13276
  ])]),
13275
13277
  _: 1
13276
13278
  }),
13277
13279
  s(S, { value: "column" }, {
13278
- default: i(() => [...Y[7] || (Y[7] = [
13280
+ default: i(() => [...H[7] || (H[7] = [
13279
13281
  A("整列", -1)
13280
13282
  ])]),
13281
13283
  _: 1
@@ -13319,7 +13321,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13319
13321
  onClick: (b) => I(x),
13320
13322
  disabled: _.value.length === 1
13321
13323
  }, {
13322
- icon: i(() => [...Y[8] || (Y[8] = [
13324
+ icon: i(() => [...H[8] || (H[8] = [
13323
13325
  e("i", { class: "ri-close-fill" }, null, -1)
13324
13326
  ])]),
13325
13327
  _: 1
@@ -13337,7 +13339,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13337
13339
  s(de, { name: "add" })
13338
13340
  ]),
13339
13341
  default: i(() => [
13340
- Y[9] || (Y[9] = A(" 添加规则 ", -1))
13342
+ H[9] || (H[9] = A(" 添加规则 ", -1))
13341
13343
  ]),
13342
13344
  _: 1
13343
13345
  }, 8, ["size"])
@@ -13350,7 +13352,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13350
13352
  size: a.size,
13351
13353
  onClick: D
13352
13354
  }, {
13353
- default: i(() => [...Y[10] || (Y[10] = [
13355
+ default: i(() => [...H[10] || (H[10] = [
13354
13356
  A("取消", -1)
13355
13357
  ])]),
13356
13358
  _: 1
@@ -13360,7 +13362,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13360
13362
  size: a.size,
13361
13363
  onClick: q
13362
13364
  }, {
13363
- default: i(() => [...Y[11] || (Y[11] = [
13365
+ default: i(() => [...H[11] || (H[11] = [
13364
13366
  A("清除", -1)
13365
13367
  ])]),
13366
13368
  _: 1
@@ -13370,7 +13372,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13370
13372
  size: a.size,
13371
13373
  onClick: ee
13372
13374
  }, {
13373
- default: i(() => [...Y[12] || (Y[12] = [
13375
+ default: i(() => [...H[12] || (H[12] = [
13374
13376
  A("确定", -1)
13375
13377
  ])]),
13376
13378
  _: 1
@@ -13461,7 +13463,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13461
13463
  const _e = k.precepts[0];
13462
13464
  _e && _e.conditions && (u.value = Array.from({ length: n.filterCount }, (we, Be) => _e.conditions[Be] ? JSON.parse(JSON.stringify(_e.conditions[Be])) : c()));
13463
13465
  }
13464
- const B = j(k.precepts), le = d(B, k.sqlConnectType);
13466
+ const B = W(k.precepts), le = d(B, k.sqlConnectType);
13465
13467
  if (y("confirm", le), k.columns && k.columns.length > 0) {
13466
13468
  const _e = k.columns.filter((we) => we.show !== !1);
13467
13469
  y("column-change", _e);
@@ -13473,15 +13475,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13473
13475
  y("search", { conditions: { and: [] } });
13474
13476
  return;
13475
13477
  }
13476
- const k = j([
13478
+ const k = W([
13477
13479
  { id: 1, connector: C.value, conditions: u.value }
13478
13480
  ]), B = d(k, "and");
13479
13481
  y("search", B);
13480
- }, Y = () => {
13482
+ }, H = () => {
13481
13483
  _.value = !0;
13482
13484
  }, E = () => {
13483
13485
  _.value = !1;
13484
- }, j = (k) => k.map((B) => {
13486
+ }, W = (k) => k.map((B) => {
13485
13487
  const le = B.conditions.filter((_e) => !(!_e.field || _e.field.trim() === "" || _e.value === null || _e.value === void 0 || _e.value === "" || Array.isArray(_e.value) && _e.value.length === 0)).map((_e) => {
13486
13488
  let we = "";
13487
13489
  return _e.value !== null && _e.value !== void 0 && (Array.isArray(_e.value) ? we = _e.value.join("/") : we = String(_e.value).trim()), {
@@ -13533,7 +13535,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13533
13535
  }, R = () => {
13534
13536
  const k = ue.value.name.trim();
13535
13537
  if (I.value) {
13536
- const B = j(r.value);
13538
+ const B = W(r.value);
13537
13539
  y("update-plan", {
13538
13540
  name: k,
13539
13541
  precepts: B,
@@ -13543,7 +13545,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13543
13545
  // 包含当前列配置
13544
13546
  });
13545
13547
  } else {
13546
- const B = j(r.value);
13548
+ const B = W(r.value);
13547
13549
  y("save-plan", {
13548
13550
  name: k,
13549
13551
  precepts: B,
@@ -13593,7 +13595,7 @@ ${k.map((B) => {
13593
13595
  const le = M("t-radio-button"), _e = M("t-radio-group"), we = M("t-icon"), Be = M("t-button"), ke = M("t-badge"), Ne = M("t-tooltip"), ce = M("t-dropdown"), T = M("t-input"), h = M("t-form-item"), Se = M("t-form"), Ye = M("t-dialog");
13594
13596
  return l(), o("div", Sc, [
13595
13597
  a.filterCount > 0 ? (l(), o("div", Mc, [
13596
- (l(!0), o(fe, null, be(u.value, (ye, Q) => (l(), W(Ul, {
13598
+ (l(!0), o(fe, null, be(u.value, (ye, Q) => (l(), j(Ul, {
13597
13599
  key: Q,
13598
13600
  "field-options": a.fieldOptions,
13599
13601
  size: a.size,
@@ -13601,7 +13603,7 @@ ${k.map((B) => {
13601
13603
  "select-options": a.selectOptions,
13602
13604
  onSearch: J
13603
13605
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
13604
- ])) : H("", !0),
13606
+ ])) : Y("", !0),
13605
13607
  a.filterCount === 0 && a.planFilterOptions.length > 0 ? (l(), o("div", zc, [
13606
13608
  B[12] || (B[12] = e("span", { class: "plan-label" }, "我的方案:", -1)),
13607
13609
  s(_e, {
@@ -13611,7 +13613,7 @@ ${k.map((B) => {
13611
13613
  onChange: ee
13612
13614
  }, {
13613
13615
  default: i(() => [
13614
- (l(!0), o(fe, null, be(a.planFilterOptions, (ye) => (l(), W(le, {
13616
+ (l(!0), o(fe, null, be(a.planFilterOptions, (ye) => (l(), j(le, {
13615
13617
  key: ye.value,
13616
13618
  value: ye.value,
13617
13619
  disabled: ye.disabled
@@ -13628,7 +13630,7 @@ ${k.map((B) => {
13628
13630
  theme: "default",
13629
13631
  variant: "outline",
13630
13632
  size: a.size,
13631
- onClick: Y,
13633
+ onClick: H,
13632
13634
  title: "高级筛选"
13633
13635
  }, {
13634
13636
  icon: i(() => [
@@ -13636,21 +13638,21 @@ ${k.map((B) => {
13636
13638
  ]),
13637
13639
  _: 1
13638
13640
  }, 8, ["size"])
13639
- ])) : H("", !0),
13641
+ ])) : Y("", !0),
13640
13642
  e("div", Fc, [
13641
- a.filterCount > 0 ? (l(), W(Be, {
13643
+ a.filterCount > 0 ? (l(), j(Be, {
13642
13644
  key: 0,
13643
13645
  theme: "primary",
13644
13646
  size: a.size,
13645
- onClick: Y,
13647
+ onClick: H,
13646
13648
  title: "高级筛选"
13647
13649
  }, {
13648
13650
  icon: i(() => [
13649
13651
  s(we, { name: "filter" })
13650
13652
  ]),
13651
13653
  _: 1
13652
- }, 8, ["size"])) : H("", !0),
13653
- a.filterCount > 0 ? (l(), W(Ne, {
13654
+ }, 8, ["size"])) : Y("", !0),
13655
+ a.filterCount > 0 ? (l(), j(Ne, {
13654
13656
  key: 1,
13655
13657
  content: oe.value,
13656
13658
  placement: "top"
@@ -13676,8 +13678,8 @@ ${k.map((B) => {
13676
13678
  }, 8, ["count"])
13677
13679
  ]),
13678
13680
  _: 1
13679
- }, 8, ["content"])) : H("", !0),
13680
- a.filterCount > 0 ? (l(), W(ce, {
13681
+ }, 8, ["content"])) : Y("", !0),
13682
+ a.filterCount > 0 ? (l(), j(ce, {
13681
13683
  key: 2,
13682
13684
  options: q.value,
13683
13685
  onClick: N,
@@ -13699,7 +13701,7 @@ ${k.map((B) => {
13699
13701
  }, 8, ["size"])
13700
13702
  ]),
13701
13703
  _: 1
13702
- }, 8, ["options"])) : H("", !0)
13704
+ }, 8, ["options"])) : Y("", !0)
13703
13705
  ]),
13704
13706
  s(uc, {
13705
13707
  visible: _.value,
@@ -13846,7 +13848,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13846
13848
  emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
13847
13849
  setup(a, { emit: te }) {
13848
13850
  var n;
13849
- const y = a, u = te, c = F(y.visible), m = F(y.shareUrl), U = F([]), _ = F(!1), C = F(1), r = F("read"), I = F(!0), D = F(!1), q = F(""), ee = F(""), N = F(!1), J = F(!1), ge = F(!1), Y = F(!1), E = F(""), j = F({
13851
+ const y = a, u = te, c = F(y.visible), m = F(y.shareUrl), U = F([]), _ = F(!1), C = F(1), r = F("read"), I = F(!0), D = F(!1), q = F(""), ee = F(""), N = F(!1), J = F(!1), ge = F(!1), H = F(!1), E = F(""), W = F({
13850
13852
  allowExternalShare: ((n = y.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
13851
13853
  collaboratorManagement: "org-only",
13852
13854
  copyPermission: "edit",
@@ -13928,7 +13930,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13928
13930
  Pe.warning("只有管理员才能修改权限设置");
13929
13931
  return;
13930
13932
  }
13931
- u("permission-settings-change", j.value), Pe.success("权限设置已保存"), N.value = !1;
13933
+ u("permission-settings-change", W.value), Pe.success("权限设置已保存"), N.value = !1;
13932
13934
  }, le = (T) => {
13933
13935
  console.log("点击协作者:", T);
13934
13936
  }, _e = (T) => {
@@ -13983,9 +13985,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13983
13985
  Pe.warning("请输入6位密码");
13984
13986
  return;
13985
13987
  }
13986
- Pe.success("密码设置成功"), Y.value = !1, console.log("链接密码:", E.value);
13988
+ Pe.success("密码设置成功"), H.value = !1, console.log("链接密码:", E.value);
13987
13989
  };
13988
- return ze(Y, (T) => {
13990
+ return ze(H, (T) => {
13989
13991
  T && !E.value && ke();
13990
13992
  }), (T, h) => {
13991
13993
  const Se = M("t-icon"), Ye = M("t-tooltip"), ye = M("t-button"), Q = M("t-avatar"), ae = M("t-select"), Fe = M("t-checkbox"), Ie = M("t-input"), Ve = M("t-textarea"), Ae = M("t-dialog"), sa = M("t-switch"), re = M("t-radio"), oa = M("t-radio-group");
@@ -14003,15 +14005,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14003
14005
  header: i(() => [
14004
14006
  e("div", Rc, [
14005
14007
  e("div", Ec, [
14006
- _.value ? (l(), W(Se, {
14008
+ _.value ? (l(), j(Se, {
14007
14009
  key: 0,
14008
14010
  name: "chevron-left",
14009
14011
  size: "18px",
14010
14012
  class: "cd-share-back-icon",
14011
14013
  onClick: b
14012
- })) : H("", !0),
14014
+ })) : Y("", !0),
14013
14015
  A(" " + V(a.title) + " ", 1),
14014
- !_.value && a.helpUrl ? (l(), W(Ye, {
14016
+ !_.value && a.helpUrl ? (l(), j(Ye, {
14015
14017
  key: 1,
14016
14018
  content: "查看详情"
14017
14019
  }, {
@@ -14023,11 +14025,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14023
14025
  })
14024
14026
  ]),
14025
14027
  _: 1
14026
- })) : H("", !0)
14028
+ })) : Y("", !0)
14027
14029
  ]),
14028
- _.value ? H("", !0) : (l(), o("div", Pc, [
14030
+ _.value ? Y("", !0) : (l(), o("div", Pc, [
14029
14031
  fa(T.$slots, "header-actions", {}, () => [
14030
- O.value === "read" ? (l(), W(ye, {
14032
+ O.value === "read" ? (l(), j(ye, {
14031
14033
  key: 0,
14032
14034
  variant: "text",
14033
14035
  size: "small",
@@ -14043,7 +14045,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14043
14045
  h[27] || (h[27] = A(" 申请编辑权限 ", -1))
14044
14046
  ]),
14045
14047
  _: 1
14046
- })) : O.value === "manage" ? (l(), W(ye, {
14048
+ })) : O.value === "manage" ? (l(), j(ye, {
14047
14049
  key: 1,
14048
14050
  variant: "text",
14049
14051
  size: "small",
@@ -14059,7 +14061,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14059
14061
  h[28] || (h[28] = A(" 权限设置 ", -1))
14060
14062
  ]),
14061
14063
  _: 1
14062
- })) : H("", !0)
14064
+ })) : Y("", !0)
14063
14065
  ], !0)
14064
14066
  ]))
14065
14067
  ])
@@ -14072,11 +14074,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14072
14074
  h[36] || (h[36] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14073
14075
  e("div", ef, [
14074
14076
  e("div", af, [
14075
- (ia = a.owner) != null && ia.avatar ? (l(), W(Q, {
14077
+ (ia = a.owner) != null && ia.avatar ? (l(), j(Q, {
14076
14078
  key: 0,
14077
14079
  image: a.owner.avatar,
14078
14080
  size: "medium"
14079
- }, null, 8, ["image"])) : (l(), W(Q, {
14081
+ }, null, 8, ["image"])) : (l(), j(Q, {
14080
14082
  key: 1,
14081
14083
  size: "medium"
14082
14084
  }, {
@@ -14090,7 +14092,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14090
14092
  }))
14091
14093
  ]),
14092
14094
  h[35] || (h[35] = e("div", { class: "cd-share-divider" }, null, -1)),
14093
- s(ca(dl), {
14095
+ s(ca(ul), {
14094
14096
  users: de.value,
14095
14097
  "avatar-size": 32,
14096
14098
  "max-display": 3,
@@ -14144,7 +14146,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14144
14146
  ])]),
14145
14147
  _: 1
14146
14148
  }, 8, ["modelValue"]),
14147
- D.value ? (l(), W(Ie, {
14149
+ D.value ? (l(), j(Ie, {
14148
14150
  key: 0,
14149
14151
  modelValue: q.value,
14150
14152
  "onUpdate:modelValue": h[11] || (h[11] = (Le) => q.value = Le),
@@ -14152,7 +14154,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14152
14154
  placeholder: "设置密码",
14153
14155
  size: "small",
14154
14156
  style: { width: "200px", "margin-left": "10px" }
14155
- }, null, 8, ["modelValue"])) : H("", !0)
14157
+ }, null, 8, ["modelValue"])) : Y("", !0)
14156
14158
  ]),
14157
14159
  s(Ve, {
14158
14160
  modelValue: ee.value,
@@ -14186,11 +14188,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14186
14188
  h[30] || (h[30] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14187
14189
  e("div", Tc, [
14188
14190
  e("div", Nc, [
14189
- (Me = a.owner) != null && Me.avatar ? (l(), W(Q, {
14191
+ (Me = a.owner) != null && Me.avatar ? (l(), j(Q, {
14190
14192
  key: 0,
14191
14193
  image: a.owner.avatar,
14192
14194
  size: "medium"
14193
- }, null, 8, ["image"])) : (l(), W(Q, {
14195
+ }, null, 8, ["image"])) : (l(), j(Q, {
14194
14196
  key: 1,
14195
14197
  size: "medium"
14196
14198
  }, {
@@ -14204,7 +14206,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14204
14206
  }))
14205
14207
  ]),
14206
14208
  h[29] || (h[29] = e("div", { class: "cd-share-divider" }, null, -1)),
14207
- s(ca(dl), {
14209
+ s(ca(ul), {
14208
14210
  users: de.value,
14209
14211
  "avatar-size": 32,
14210
14212
  "max-display": 3,
@@ -14320,7 +14322,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14320
14322
  default: i(() => [
14321
14323
  e("div", {
14322
14324
  class: xe(["cd-share-icon-btn", { "is-disabled": O.value === "read" }]),
14323
- onClick: h[6] || (h[6] = (Le) => O.value !== "read" && (Y.value = !0))
14325
+ onClick: h[6] || (h[6] = (Le) => O.value !== "read" && (H.value = !0))
14324
14326
  }, [
14325
14327
  s(Se, { name: "lock-on" })
14326
14328
  ], 2)
@@ -14330,7 +14332,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14330
14332
  ], !0)
14331
14333
  ])
14332
14334
  ])
14333
- ])) : H("", !0)
14335
+ ])) : Y("", !0)
14334
14336
  ]))
14335
14337
  ];
14336
14338
  }),
@@ -14352,8 +14354,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14352
14354
  e("div", df, [
14353
14355
  h[41] || (h[41] = e("div", { class: "cd-permission-item-label" }, "允许内容被分享到组织外", -1)),
14354
14356
  s(sa, {
14355
- modelValue: j.value.allowExternalShare,
14356
- "onUpdate:modelValue": h[14] || (h[14] = (Me) => j.value.allowExternalShare = Me),
14357
+ modelValue: W.value.allowExternalShare,
14358
+ "onUpdate:modelValue": h[14] || (h[14] = (Me) => W.value.allowExternalShare = Me),
14357
14359
  disabled: O.value !== "manage"
14358
14360
  }, null, 8, ["modelValue", "disabled"])
14359
14361
  ]),
@@ -14362,8 +14364,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14362
14364
  e("div", uf, [
14363
14365
  h[46] || (h[46] = e("div", { class: "cd-permission-section-title" }, "谁可以查看、添加、移除协作者", -1)),
14364
14366
  s(oa, {
14365
- modelValue: j.value.collaboratorManagement,
14366
- "onUpdate:modelValue": h[15] || (h[15] = (Me) => j.value.collaboratorManagement = Me),
14367
+ modelValue: W.value.collaboratorManagement,
14368
+ "onUpdate:modelValue": h[15] || (h[15] = (Me) => W.value.collaboratorManagement = Me),
14367
14369
  disabled: O.value !== "manage"
14368
14370
  }, {
14369
14371
  default: i(() => [
@@ -14388,8 +14390,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14388
14390
  e("div", ff, [
14389
14391
  h[47] || (h[47] = e("div", { class: "cd-permission-item-label" }, "谁可以复制内容", -1)),
14390
14392
  s(ae, {
14391
- modelValue: j.value.copyPermission,
14392
- "onUpdate:modelValue": h[16] || (h[16] = (Me) => j.value.copyPermission = Me),
14393
+ modelValue: W.value.copyPermission,
14394
+ "onUpdate:modelValue": h[16] || (h[16] = (Me) => W.value.copyPermission = Me),
14393
14395
  options: R,
14394
14396
  disabled: O.value !== "manage",
14395
14397
  style: { width: "200px" }
@@ -14398,8 +14400,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14398
14400
  e("div", mf, [
14399
14401
  h[48] || (h[48] = e("div", { class: "cd-permission-item-label" }, "谁可以创建副本、打印和下载", -1)),
14400
14402
  s(ae, {
14401
- modelValue: j.value.downloadPermission,
14402
- "onUpdate:modelValue": h[17] || (h[17] = (Me) => j.value.downloadPermission = Me),
14403
+ modelValue: W.value.downloadPermission,
14404
+ "onUpdate:modelValue": h[17] || (h[17] = (Me) => W.value.downloadPermission = Me),
14403
14405
  options: R,
14404
14406
  disabled: O.value !== "manage",
14405
14407
  style: { width: "200px" }
@@ -14408,8 +14410,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14408
14410
  e("div", vf, [
14409
14411
  h[49] || (h[49] = e("div", { class: "cd-permission-item-label" }, "谁可以评论", -1)),
14410
14412
  s(ae, {
14411
- modelValue: j.value.commentPermission,
14412
- "onUpdate:modelValue": h[18] || (h[18] = (Me) => j.value.commentPermission = Me),
14413
+ modelValue: W.value.commentPermission,
14414
+ "onUpdate:modelValue": h[18] || (h[18] = (Me) => W.value.commentPermission = Me),
14413
14415
  options: R,
14414
14416
  disabled: O.value !== "manage",
14415
14417
  style: { width: "200px" }
@@ -14421,8 +14423,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14421
14423
  e("div", gf, [
14422
14424
  h[51] || (h[51] = e("div", { class: "cd-permission-item-label" }, "谁可以查看访问者头像和点赞者头像", -1)),
14423
14425
  s(ae, {
14424
- modelValue: j.value.viewerAvatarsPermission,
14425
- "onUpdate:modelValue": h[19] || (h[19] = (Me) => j.value.viewerAvatarsPermission = Me),
14426
+ modelValue: W.value.viewerAvatarsPermission,
14427
+ "onUpdate:modelValue": h[19] || (h[19] = (Me) => W.value.viewerAvatarsPermission = Me),
14426
14428
  options: R,
14427
14429
  disabled: O.value !== "manage",
14428
14430
  style: { width: "200px" }
@@ -14469,11 +14471,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14469
14471
  e("div", bf, [
14470
14472
  e("div", yf, [
14471
14473
  e("div", _f, [
14472
- (Me = a.owner) != null && Me.avatar ? (l(), W(Q, {
14474
+ (Me = a.owner) != null && Me.avatar ? (l(), j(Q, {
14473
14475
  key: 0,
14474
14476
  image: a.owner.avatar,
14475
14477
  size: "small"
14476
- }, null, 8, ["image"])) : (l(), W(Q, {
14478
+ }, null, 8, ["image"])) : (l(), j(Q, {
14477
14479
  key: 1,
14478
14480
  size: "small"
14479
14481
  }, {
@@ -14496,11 +14498,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14496
14498
  class: "cd-collaborator-list-item"
14497
14499
  }, [
14498
14500
  e("div", Cf, [
14499
- je.avatar ? (l(), W(Q, {
14501
+ je.avatar ? (l(), j(Q, {
14500
14502
  key: 0,
14501
14503
  image: je.avatar,
14502
14504
  size: "small"
14503
- }, null, 8, ["image"])) : (l(), W(Q, {
14505
+ }, null, 8, ["image"])) : (l(), j(Q, {
14504
14506
  key: 1,
14505
14507
  size: "small"
14506
14508
  }, {
@@ -14513,7 +14515,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14513
14515
  ]),
14514
14516
  e("div", xf, [
14515
14517
  O.value === "read" ? (l(), o("div", $f, V(((ra = S.find((p) => p.value === je.permission)) == null ? void 0 : ra.label) || "可阅读"), 1)) : O.value === "edit" ? (l(), o(fe, { key: 1 }, [
14516
- je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), W(ae, {
14518
+ je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), j(ae, {
14517
14519
  key: 1,
14518
14520
  value: je.permission,
14519
14521
  options: g.value,
@@ -14568,7 +14570,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14568
14570
  src: ue.value,
14569
14571
  alt: "分享二维码",
14570
14572
  class: "cd-qrcode-image"
14571
- }, null, 8, Mf)) : H("", !0),
14573
+ }, null, 8, Mf)) : Y("", !0),
14572
14574
  e("div", zf, V(m.value), 1),
14573
14575
  h[56] || (h[56] = e("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
14574
14576
  ])
@@ -14576,8 +14578,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14576
14578
  _: 1
14577
14579
  }, 8, ["visible"]),
14578
14580
  s(Ae, {
14579
- visible: Y.value,
14580
- "onUpdate:visible": h[26] || (h[26] = (Me) => Y.value = Me),
14581
+ visible: H.value,
14582
+ "onUpdate:visible": h[26] || (h[26] = (Me) => H.value = Me),
14581
14583
  header: "设置链接密码",
14582
14584
  width: "450px",
14583
14585
  footer: !1,
@@ -14637,7 +14639,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14637
14639
  h[63] || (h[63] = e("div", { style: { flex: "1" } }, null, -1)),
14638
14640
  s(ye, {
14639
14641
  variant: "outline",
14640
- onClick: h[25] || (h[25] = (Me) => Y.value = !1)
14642
+ onClick: h[25] || (h[25] = (Me) => H.value = !1)
14641
14643
  }, {
14642
14644
  default: i(() => [...h[61] || (h[61] = [
14643
14645
  A("取消", -1)
@@ -14717,7 +14719,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14717
14719
  },
14718
14720
  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"],
14719
14721
  setup(a, { expose: te, emit: n }) {
14720
- var fl, ml;
14722
+ var ml, vl;
14721
14723
  const y = (t, f) => {
14722
14724
  var $;
14723
14725
  if (["rate", "tag", "Rate"].includes(t))
@@ -14853,7 +14855,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14853
14855
  };
14854
14856
  za(() => {
14855
14857
  ee(), window.addEventListener("resize", ee);
14856
- }), ul(() => {
14858
+ }), cl(() => {
14857
14859
  window.removeEventListener("resize", ee);
14858
14860
  });
14859
14861
  const N = ve(() => ae.value.length < 15), J = ve(() => {
@@ -14863,7 +14865,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14863
14865
  mode: "cell",
14864
14866
  showStatus: !0
14865
14867
  };
14866
- }), ge = F(!1), Y = F(/* @__PURE__ */ new Map()), E = F(/* @__PURE__ */ new Map()), j = F(/* @__PURE__ */ new Set()), d = F(((fl = m.pageConfig) == null ? void 0 : fl.currentPage) || 1), S = F(((ml = m.pageConfig) == null ? void 0 : ml.pageSize) || 20), g = F(!1), R = F([]), O = F(!0), de = F(!1), ue = F(""), L = F("add"), x = F(null);
14868
+ }), ge = F(!1), H = F(/* @__PURE__ */ new Map()), E = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((ml = m.pageConfig) == null ? void 0 : ml.currentPage) || 1), S = F(((vl = m.pageConfig) == null ? void 0 : vl.pageSize) || 20), g = F(!1), R = F([]), O = F(!0), de = F(!1), ue = F(""), L = F("add"), x = F(null);
14867
14869
  let b = pa({});
14868
14870
  const z = ve(() => {
14869
14871
  var Ue, Ee;
@@ -15693,7 +15695,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15693
15695
  const $ = t.fid, w = { _originalId: $ };
15694
15696
  for (const [K, Z] of Object.entries(t))
15695
15697
  Z !== void 0 && (w[K] = Z);
15696
- Y.value.set($, w), r.value && (r.value.setCheckboxRow(t, !0), j.value.add($)), ge.value = !0;
15698
+ H.value.set($, w), r.value && (r.value.setCheckboxRow(t, !0), W.value.add($)), ge.value = !0;
15697
15699
  }, qa = ({ row: t, column: f }) => {
15698
15700
  if (N.value)
15699
15701
  if (t._isEmpty) {
@@ -15719,18 +15721,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15719
15721
  }
15720
15722
  }
15721
15723
  }, La = async () => {
15722
- if (!ge.value || Y.value.size === 0) {
15724
+ if (!ge.value || H.value.size === 0) {
15723
15725
  Pe.warning("没有需要保存的更改");
15724
15726
  return;
15725
15727
  }
15726
15728
  try {
15727
- const t = Array.from(Y.value.values()).map((f) => {
15729
+ const t = Array.from(H.value.values()).map((f) => {
15728
15730
  const $ = {};
15729
15731
  for (const [w, K] of Object.entries(f))
15730
15732
  K !== void 0 && ($[w] = K);
15731
15733
  return $;
15732
15734
  });
15733
- C("inline-save", t), Y.value.clear(), j.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
15735
+ C("inline-save", t), H.value.clear(), W.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
15734
15736
  } catch {
15735
15737
  Pe.error("保存失败");
15736
15738
  }
@@ -15953,7 +15955,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15953
15955
  da.value.has(f) || da.value.set(f, /* @__PURE__ */ new Set());
15954
15956
  const w = da.value.get(f);
15955
15957
  w.has($) ? (w.delete($), !Array.from(da.value.entries()).some(([se, pe]) => se !== f && pe.has($)) && r.value && r.value.setRowExpand(t, !1)) : (w.add($), r.value && r.value.setRowExpand(t, !0));
15956
- }, cl = (t, f) => {
15958
+ }, fl = (t, f) => {
15957
15959
  var w;
15958
15960
  const $ = String(t.id);
15959
15961
  return ((w = da.value.get(f)) == null ? void 0 : w.has($)) || !1;
@@ -16016,7 +16018,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16016
16018
  });
16017
16019
  }
16018
16020
  }), (t, f) => {
16019
- var vl, pl, gl, hl, bl;
16021
+ var pl, gl, hl, bl, yl;
16020
16022
  const $ = M("t-button"), w = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), se = M("t-select"), pe = M("t-switch"), $e = M("t-dialog"), Ue = M("t-radio"), Ee = M("t-radio-group"), Oe = M("t-upload"), We = M("t-tag"), qe = M("vxe-grid"), la = M("t-pagination"), ua = M("t-space"), $a = M("t-drawer");
16021
16023
  return l(), o("div", Pf, [
16022
16024
  e("div", If, [
@@ -16045,13 +16047,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16045
16047
  onColorFilterChange: al,
16046
16048
  onColorFilterClear: ll
16047
16049
  }, null, 8, ["field-options", "select-options", "plan-filter-options"])
16048
- ])) : H("", !0)
16050
+ ])) : Y("", !0)
16049
16051
  ]),
16050
16052
  e("div", Nf, [
16051
16053
  (l(!0), o(fe, null, be(_.value.btnsList || [], (he) => (l(), o(fe, {
16052
16054
  key: he.label
16053
16055
  }, [
16054
- he.children && he.children.length > 0 ? (l(), W(Z, {
16056
+ he.children && he.children.length > 0 ? (l(), j(Z, {
16055
16057
  key: 0,
16056
16058
  onClick: je,
16057
16059
  "overlay-class-name": "filter-dropdown"
@@ -16084,7 +16086,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16084
16086
  onClick: f[0] || (f[0] = (Je) => je({ value: Je.value }))
16085
16087
  }, {
16086
16088
  default: i(() => [
16087
- (l(!0), o(fe, null, be(he.children.filter((Je) => Je.show !== !1), (Je) => (l(), W(w, {
16089
+ (l(!0), o(fe, null, be(he.children.filter((Je) => Je.show !== !1), (Je) => (l(), j(w, {
16088
16090
  key: Je.value || Math.random(),
16089
16091
  value: Je.value,
16090
16092
  disabled: Je.disabled,
@@ -16100,7 +16102,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16100
16102
  }, 1024)
16101
16103
  ]),
16102
16104
  _: 2
16103
- }, 1024)) : he.show && !T(he.value) ? (l(), W($, {
16105
+ }, 1024)) : he.show && !T(he.value) ? (l(), j($, {
16104
16106
  key: 1,
16105
16107
  variant: "outline",
16106
16108
  size: "small",
@@ -16117,9 +16119,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16117
16119
  fn: i(() => []),
16118
16120
  key: "0"
16119
16121
  } : void 0
16120
- ]), 1032, ["onClick"])) : H("", !0)
16122
+ ]), 1032, ["onClick"])) : Y("", !0)
16121
16123
  ], 64))), 128)),
16122
- (l(!0), o(fe, null, be(_.value.customBtnsList || [], (he) => ga((l(), W($, {
16124
+ (l(!0), o(fe, null, be(_.value.customBtnsList || [], (he) => ga((l(), j($, {
16123
16125
  variant: "outline",
16124
16126
  size: "small",
16125
16127
  key: he.value,
@@ -16139,7 +16141,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16139
16141
  [Cl, he.show]
16140
16142
  ])), 128)),
16141
16143
  fa(t.$slots, "toolbar-right", {}, void 0, !0),
16142
- tl.value ? (l(), W($, {
16144
+ tl.value ? (l(), j($, {
16143
16145
  key: 0,
16144
16146
  variant: "outline",
16145
16147
  size: "small",
@@ -16153,7 +16155,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16153
16155
  f[21] || (f[21] = A(" 下推 ", -1))
16154
16156
  ]),
16155
16157
  _: 1
16156
- })) : H("", !0)
16158
+ })) : Y("", !0)
16157
16159
  ])
16158
16160
  ]),
16159
16161
  s($e, {
@@ -16206,7 +16208,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16206
16208
  default: i(() => {
16207
16209
  var he;
16208
16210
  return [
16209
- (l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (Je) => (l(), W(Ue, {
16211
+ (l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (Je) => (l(), j(Ue, {
16210
16212
  key: Je.formId,
16211
16213
  value: Je
16212
16214
  }, {
@@ -16280,19 +16282,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16280
16282
  ]),
16281
16283
  _: 1
16282
16284
  }, 8, ["visible"]),
16283
- B.value ? (l(), W(ca(Rl), {
16285
+ B.value ? (l(), j(ca(Rl), {
16284
16286
  key: 0,
16285
16287
  visible: B.value,
16286
16288
  "onUpdate:visible": f[9] || (f[9] = (he) => B.value = he),
16287
16289
  title: "单据分享",
16288
16290
  shareUrl: m.shareUrl || "",
16289
- currentPermission: ((vl = m.shareConfig) == null ? void 0 : vl.currentPermission) || "manage",
16290
- owner: (pl = m.shareConfig) == null ? void 0 : pl.owner,
16291
- collaborators: ((gl = m.shareConfig) == null ? void 0 : gl.collaborators) || [],
16292
- tabs: ((hl = m.shareConfig) == null ? void 0 : hl.tabs) || [],
16293
- organizations: ((bl = m.shareConfig) == null ? void 0 : bl.organizations) || [],
16291
+ currentPermission: ((pl = m.shareConfig) == null ? void 0 : pl.currentPermission) || "manage",
16292
+ owner: (gl = m.shareConfig) == null ? void 0 : gl.owner,
16293
+ collaborators: ((hl = m.shareConfig) == null ? void 0 : hl.collaborators) || [],
16294
+ tabs: ((bl = m.shareConfig) == null ? void 0 : bl.tabs) || [],
16295
+ organizations: ((yl = m.shareConfig) == null ? void 0 : yl.organizations) || [],
16294
16296
  onConfirm: va
16295
- }, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : H("", !0),
16297
+ }, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : Y("", !0),
16296
16298
  e("div", {
16297
16299
  class: "cd-form-table",
16298
16300
  ref_key: "tableContainerRef",
@@ -16318,7 +16320,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16318
16320
  }
16319
16321
  }), ba({
16320
16322
  checkbox_footer: i(({ $rowIndex: he }) => [
16321
- re.footerData && re.footerData[he] ? (l(), o("span", Yf, V(re.footerData[he].checkbox), 1)) : H("", !0)
16323
+ re.footerData && re.footerData[he] ? (l(), o("span", Yf, V(re.footerData[he].checkbox), 1)) : Y("", !0)
16322
16324
  ]),
16323
16325
  nameGroupContent: i(({ groupContent: he }) => [
16324
16326
  s(We, {
@@ -16339,13 +16341,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16339
16341
  (l(!0), o(fe, null, be(Oa.value, (Je) => (l(), o(fe, {
16340
16342
  key: `content_${Je.vModel}`
16341
16343
  }, [
16342
- cl(he, Je.vModel) ? (l(), o("div", Jf, [
16344
+ fl(he, Je.vModel) ? (l(), o("div", Jf, [
16343
16345
  e("div", Kf, V(Je.label), 1),
16344
16346
  s(qe, Fa({ ref_for: !0 }, Il, {
16345
16347
  data: he[Je.vModel] || [],
16346
16348
  columns: Pl(Je)
16347
16349
  }), null, 16, ["data", "columns"])
16348
- ])) : H("", !0)
16350
+ ])) : Y("", !0)
16349
16351
  ], 64))), 128))
16350
16352
  ])
16351
16353
  ]),
@@ -16362,7 +16364,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16362
16364
  }, {
16363
16365
  icon: i(() => [
16364
16366
  e("i", {
16365
- class: xe(cl(Je, he.vModel) ? "ri-arrow-down-s-line" : "ri-arrow-right-s-line")
16367
+ class: xe(fl(Je, he.vModel) ? "ri-arrow-down-s-line" : "ri-arrow-right-s-line")
16366
16368
  }, null, 2)
16367
16369
  ]),
16368
16370
  default: i(() => {
@@ -16397,7 +16399,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16397
16399
  onChange: Ya,
16398
16400
  onPageSizeChange: Ua
16399
16401
  }, null, 8, ["modelValue", "pageSize", "total", "page-size-options"])
16400
- ])) : H("", !0),
16402
+ ])) : Y("", !0),
16401
16403
  s($a, {
16402
16404
  visible: de.value,
16403
16405
  "onUpdate:visible": f[18] || (f[18] = (he) => de.value = he),
@@ -16436,7 +16438,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16436
16438
  fn: i(() => [
16437
16439
  s(ua, null, {
16438
16440
  default: i(() => [
16439
- a.formData.hasCancelBtn ? (l(), W($, {
16441
+ a.formData.hasCancelBtn ? (l(), j($, {
16440
16442
  key: 0,
16441
16443
  theme: "default",
16442
16444
  onClick: Aa
@@ -16445,8 +16447,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16445
16447
  A(V(a.formData.cancelButtonText), 1)
16446
16448
  ]),
16447
16449
  _: 1
16448
- })) : H("", !0),
16449
- a.formData.hasConfirmBtn ? (l(), W($, {
16450
+ })) : Y("", !0),
16451
+ a.formData.hasConfirmBtn ? (l(), j($, {
16450
16452
  key: 1,
16451
16453
  theme: "primary",
16452
16454
  onClick: wa
@@ -16455,8 +16457,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16455
16457
  A(V(a.formData.confirmButtonText), 1)
16456
16458
  ]),
16457
16459
  _: 1
16458
- })) : H("", !0),
16459
- a.formData.hasConfirmAndAddBtn && L.value === "add" ? (l(), W($, {
16460
+ })) : Y("", !0),
16461
+ a.formData.hasConfirmAndAddBtn && L.value === "add" ? (l(), j($, {
16460
16462
  key: 2,
16461
16463
  theme: "primary",
16462
16464
  variant: "outline",
@@ -16466,7 +16468,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16466
16468
  A(" 保存并继续 ", -1)
16467
16469
  ])]),
16468
16470
  _: 1
16469
- })) : H("", !0)
16471
+ })) : Y("", !0)
16470
16472
  ]),
16471
16473
  _: 1
16472
16474
  })
@@ -16744,16 +16746,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16744
16746
  placeholder: S.placeholder || `请输入${S.label}`
16745
16747
  } : I(S));
16746
16748
  y("save", d), u.value = !1, Pe.success("字段配置已保存");
16747
- }, Y = () => {
16749
+ }, H = () => {
16748
16750
  u.value = !1;
16749
16751
  }, E = () => {
16750
16752
  y("advanced-edit");
16751
- }, j = () => {
16753
+ }, W = () => {
16752
16754
  y("advanced-design");
16753
16755
  };
16754
16756
  return (d, S) => {
16755
16757
  const g = M("t-button"), R = M("t-space"), O = M("t-select"), de = M("t-switch"), ue = M("vxe-grid"), L = M("t-dialog");
16756
- return l(), W(L, {
16758
+ return l(), j(L, {
16757
16759
  visible: u.value,
16758
16760
  "onUpdate:visible": S[0] || (S[0] = (x) => u.value = x),
16759
16761
  header: "字段管理",
@@ -16761,7 +16763,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16761
16763
  placement: "center",
16762
16764
  footer: !1,
16763
16765
  class: "field-manage-dialog",
16764
- onClose: Y
16766
+ onClose: H
16765
16767
  }, {
16766
16768
  header: i(() => [
16767
16769
  e("div", Qf, [
@@ -16801,7 +16803,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16801
16803
  s(R, null, {
16802
16804
  default: i(() => [
16803
16805
  s(g, {
16804
- onClick: j,
16806
+ onClick: W,
16805
16807
  theme: "warning",
16806
16808
  size: "small"
16807
16809
  }, {
@@ -16827,7 +16829,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16827
16829
  }),
16828
16830
  s(g, {
16829
16831
  variant: "outline",
16830
- onClick: Y,
16832
+ onClick: H,
16831
16833
  size: "small"
16832
16834
  }, {
16833
16835
  default: i(() => [...S[10] || (S[10] = [