cd-form 2.0.4 → 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,65 +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
- "destroy-on-close": !0,
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(), W(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"])) : H("", !0)
4089
- ])
4090
- ]),
4091
- _: 1
4092
- }, 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
+ ]))
4093
4094
  ]);
4094
4095
  };
4095
4096
  }
4096
- }), Fl = /* @__PURE__ */ Ze(Wd, [["__scopeId", "data-v-a27a4645"]]), 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 = {
4097
4098
  key: 0,
4098
4099
  class: "more-tip"
4099
4100
  }, Qd = { class: "preview-table" }, Zd = {
@@ -4110,15 +4111,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4110
4111
  setup(a, { emit: te }) {
4111
4112
  const n = a, y = te, u = ve({
4112
4113
  get: () => n.visible,
4113
- set: (Y) => y("update:visible", Y)
4114
- }), c = F(["ai"]), m = F(""), U = F(""), _ = F("auto"), C = F([]), r = F(!1), I = ve(() => n.columns.map((Y) => ({
4115
- label: Y.title || Y.label,
4116
- 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
4117
4118
  }))), D = ve(() => {
4118
- const Y = U.value.trim();
4119
- if (!Y) return [];
4119
+ const H = U.value.trim();
4120
+ if (!H) return [];
4120
4121
  let E = [];
4121
- if (Y.split(`
4122
+ if (H.split(`
4122
4123
  `).filter((g) => g.trim() !== "").forEach((g) => {
4123
4124
  let R = [];
4124
4125
  if (_.value === "auto")
@@ -4153,38 +4154,38 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4153
4154
  }
4154
4155
  return S;
4155
4156
  }), q = ve(() => {
4156
- const Y = D.value;
4157
- if (Y.length === 0) return [];
4158
- 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 = [];
4159
4160
  for (let d = 0; d < E; d++) {
4160
4161
  const S = {
4161
4162
  _X_ROW_KEY: `row_${Date.now()}_${d}_${Math.random().toString(36).substr(2, 9)}`
4162
4163
  };
4163
- Y.forEach((g, R) => {
4164
+ H.forEach((g, R) => {
4164
4165
  const O = C.value[R];
4165
4166
  O && g[d] !== void 0 && (S[O] = g[d]);
4166
- }), j.push(S);
4167
+ }), W.push(S);
4167
4168
  }
4168
- return j;
4169
+ return W;
4169
4170
  }), ee = ve(() => {
4170
- const Y = [];
4171
- return D.value.forEach((E, j) => {
4171
+ const H = [];
4172
+ return D.value.forEach((E, W) => {
4172
4173
  var g;
4173
- const d = C.value[j], S = d ? ((g = I.value.find((R) => R.value === d)) == null ? void 0 : g.label) || d : `第 ${j + 1} 列`;
4174
- Y.push({
4175
- 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}`,
4176
4177
  title: S,
4177
4178
  width: 150,
4178
4179
  ellipsis: !0
4179
4180
  });
4180
- }), Y;
4181
- }), N = ve(() => C.value.some((Y) => Y !== void 0 && Y !== ""));
4182
- ze(() => D.value.length, (Y) => {
4181
+ }), H;
4182
+ }), N = ve(() => C.value.some((H) => H !== void 0 && H !== ""));
4183
+ ze(() => D.value.length, (H) => {
4183
4184
  const E = C.value;
4184
- E.length < Y ? C.value = [
4185
+ E.length < H ? C.value = [
4185
4186
  ...E,
4186
- ...new Array(Y - E.length).fill("")
4187
- ] : 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));
4188
4189
  });
4189
4190
  const J = () => {
4190
4191
  if (!N.value) {
@@ -4195,33 +4196,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4195
4196
  Pe.warning("请输入要添加的数据");
4196
4197
  return;
4197
4198
  }
4198
- const Y = q.value.map((E) => {
4199
- const j = { ...E };
4199
+ const H = q.value.map((E) => {
4200
+ const W = { ...E };
4200
4201
  return n.fieldConfigs.forEach((d) => {
4201
4202
  var g;
4202
4203
  const S = d.__vModel__ || d.field;
4203
- if (S && j[S] === void 0)
4204
+ if (S && W[S] === void 0)
4204
4205
  switch ((g = d.__config__) == null ? void 0 : g.cdkey) {
4205
4206
  case "input":
4206
4207
  case "textarea":
4207
- j[S] = "";
4208
+ W[S] = "";
4208
4209
  break;
4209
4210
  case "number":
4210
- j[S] = 0;
4211
+ W[S] = 0;
4211
4212
  break;
4212
4213
  case "switch":
4213
- j[S] = !1;
4214
+ W[S] = !1;
4214
4215
  break;
4215
4216
  case "checkbox":
4216
4217
  case "select":
4217
- j[S] = d.multiple ? [] : null;
4218
+ W[S] = d.multiple ? [] : null;
4218
4219
  break;
4219
4220
  default:
4220
- j[S] = null;
4221
+ W[S] = null;
4221
4222
  }
4222
- }), j;
4223
+ }), W;
4223
4224
  });
4224
- 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;
4225
4226
  }, ge = () => {
4226
4227
  if (!m.value.trim()) {
4227
4228
  Pe.warning("请输入描述信息");
@@ -4231,11 +4232,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4231
4232
  r.value = !1;
4232
4233
  }, 1e3);
4233
4234
  };
4234
- return ze(u, (Y) => {
4235
- Y || (m.value = "", U.value = "", C.value = [], r.value = !1, c.value = ["ai"]);
4236
- }), (Y, E) => {
4237
- 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");
4238
- 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, {
4239
4240
  visible: u.value,
4240
4241
  "onUpdate:visible": E[5] || (E[5] = (G) => u.value = G),
4241
4242
  header: "智能添加",
@@ -4261,7 +4262,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4261
4262
  default: i(() => [
4262
4263
  s(d, { label: "描述输入" }, {
4263
4264
  default: i(() => [
4264
- s(j, {
4265
+ s(W, {
4265
4266
  modelValue: m.value,
4266
4267
  "onUpdate:modelValue": E[0] || (E[0] = (G) => m.value = G),
4267
4268
  placeholder: `请用自然语言描述要添加的数据
@@ -4308,7 +4309,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4308
4309
  default: i(() => [
4309
4310
  s(d, { label: "数据输入" }, {
4310
4311
  default: i(() => [
4311
- s(j, {
4312
+ s(W, {
4312
4313
  modelValue: U.value,
4313
4314
  "onUpdate:modelValue": E[1] || (E[1] = (G) => U.value = G),
4314
4315
  placeholder: `请输入数据,支持多种分隔符:空格、逗号、|、&、Tab等
@@ -4321,7 +4322,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4321
4322
  ]),
4322
4323
  _: 1
4323
4324
  }),
4324
- D.value.length > 0 ? (l(), W(d, {
4325
+ D.value.length > 0 ? (l(), j(d, {
4325
4326
  key: 0,
4326
4327
  label: "分隔符"
4327
4328
  }, {
@@ -4372,8 +4373,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4372
4373
  }, 8, ["modelValue"])
4373
4374
  ]),
4374
4375
  _: 1
4375
- })) : H("", !0),
4376
- D.value.length > 0 ? (l(), W(d, {
4376
+ })) : Y("", !0),
4377
+ D.value.length > 0 ? (l(), j(d, {
4377
4378
  key: 1,
4378
4379
  label: "字段映射"
4379
4380
  }, {
@@ -4392,7 +4393,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4392
4393
  clearable: ""
4393
4394
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
4394
4395
  e("div", Gd, [
4395
- (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, {
4396
4397
  key: ne,
4397
4398
  theme: "default",
4398
4399
  variant: "light",
@@ -4403,14 +4404,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4403
4404
  ]),
4404
4405
  _: 2
4405
4406
  }, 1024))), 128)),
4406
- 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)
4407
4408
  ])
4408
4409
  ]))), 128))
4409
4410
  ])
4410
4411
  ]),
4411
4412
  _: 1
4412
- })) : H("", !0),
4413
- q.value.length > 0 ? (l(), W(d, {
4413
+ })) : Y("", !0),
4414
+ q.value.length > 0 ? (l(), j(d, {
4414
4415
  key: 2,
4415
4416
  label: "数据预览"
4416
4417
  }, {
@@ -4425,11 +4426,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4425
4426
  stripe: "",
4426
4427
  "max-height": "300"
4427
4428
  }, null, 8, ["data", "columns"]),
4428
- 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)
4429
4430
  ])
4430
4431
  ]),
4431
4432
  _: 1
4432
- })) : H("", !0)
4433
+ })) : Y("", !0)
4433
4434
  ]),
4434
4435
  _: 1
4435
4436
  }),
@@ -4728,11 +4729,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4728
4729
  // return true;
4729
4730
  // }
4730
4731
  }), v;
4731
- }), Y = (p) => {
4732
+ }), H = (p) => {
4732
4733
  N.value = p;
4733
4734
  }, E = (p) => {
4734
- p && p.value && j(p.value);
4735
- }, j = (p) => {
4735
+ p && p.value && W(p.value);
4736
+ }, W = (p) => {
4736
4737
  switch (typeof p == "string" ? p : p.value) {
4737
4738
  case "add":
4738
4739
  d();
@@ -5038,7 +5039,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5038
5039
  };
5039
5040
  return (p, v) => {
5040
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");
5041
- 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({
5042
5043
  key: 0,
5043
5044
  class: a.tableMode ? "table-cell-editor" : ""
5044
5045
  }, a.tableMode ? {} : {
@@ -5049,7 +5050,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5049
5050
  default: i(() => {
5050
5051
  var Ce, Re;
5051
5052
  return [
5052
- 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, {
5053
5054
  key: 0,
5054
5055
  modelValue: z.value,
5055
5056
  "onUpdate:modelValue": v[0] || (v[0] = (me) => z.value = me),
@@ -5062,7 +5063,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5062
5063
  onInput: ne,
5063
5064
  onClear: k,
5064
5065
  onChange: oe
5065
- }, 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, {
5066
5067
  key: 1,
5067
5068
  modelValue: z.value,
5068
5069
  "onUpdate:modelValue": v[1] || (v[1] = (me) => z.value = me),
@@ -5089,7 +5090,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5089
5090
  }, null, 8, nu)
5090
5091
  ]),
5091
5092
  _: 1
5092
- }, 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, {
5093
5094
  key: 2,
5094
5095
  modelValue: z.value,
5095
5096
  "onUpdate:modelValue": v[3] || (v[3] = (me) => z.value = me),
@@ -5102,7 +5103,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5102
5103
  onInput: ne,
5103
5104
  onClear: k,
5104
5105
  onChange: oe
5105
- }, 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, {
5106
5107
  key: 3,
5107
5108
  modelValue: z.value,
5108
5109
  "onUpdate:modelValue": v[4] || (v[4] = (me) => z.value = me),
@@ -5112,7 +5113,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5112
5113
  max: a.field.max,
5113
5114
  step: a.field.step || 1,
5114
5115
  onChange: oe
5115
- }, 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, {
5116
5117
  key: 4,
5117
5118
  modelValue: z.value,
5118
5119
  "onUpdate:modelValue": v[5] || (v[5] = (me) => z.value = me),
@@ -5124,7 +5125,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5124
5125
  options: Array.isArray(a.field.options) ? a.field.options : [],
5125
5126
  keys: a.field.props || { label: "label", value: "value" },
5126
5127
  onChange: oe
5127
- }, 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, {
5128
5129
  key: 5,
5129
5130
  modelValue: z.value,
5130
5131
  "onUpdate:modelValue": v[6] || (v[6] = (me) => z.value = me),
@@ -5135,7 +5136,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5135
5136
  "enable-time-picker": a.field.type === "datetime",
5136
5137
  format: G(a.field.type),
5137
5138
  onChange: oe
5138
- }, 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, {
5139
5140
  key: 6,
5140
5141
  modelValue: z.value,
5141
5142
  "onUpdate:modelValue": v[7] || (v[7] = (me) => z.value = me),
@@ -5145,7 +5146,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5145
5146
  "enable-time-picker": a.field.type === "datetime",
5146
5147
  format: G(a.field.type),
5147
5148
  onChange: Be
5148
- }, 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, {
5149
5150
  key: 7,
5150
5151
  modelValue: z.value,
5151
5152
  "onUpdate:modelValue": v[8] || (v[8] = (me) => z.value = me),
@@ -5153,7 +5154,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5153
5154
  disabled: L.value,
5154
5155
  clearable: a.field.clearable !== !1,
5155
5156
  onChange: oe
5156
- }, 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, {
5157
5158
  key: 8,
5158
5159
  modelValue: z.value,
5159
5160
  "onUpdate:modelValue": v[9] || (v[9] = (me) => z.value = me),
@@ -5161,13 +5162,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5161
5162
  disabled: L.value,
5162
5163
  clearable: a.field.clearable !== !1,
5163
5164
  onChange: Be
5164
- }, 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, {
5165
5166
  key: 9,
5166
5167
  modelValue: z.value,
5167
5168
  "onUpdate:modelValue": v[10] || (v[10] = (me) => z.value = me),
5168
5169
  disabled: L.value,
5169
5170
  onChange: oe
5170
- }, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), W(Ba, {
5171
+ }, null, 8, ["modelValue", "disabled"])) : b.value === "rate" ? (l(), j(Ba, {
5171
5172
  key: 10,
5172
5173
  modelValue: z.value,
5173
5174
  "onUpdate:modelValue": v[11] || (v[11] = (me) => z.value = me),
@@ -5175,7 +5176,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5175
5176
  max: a.field.max || 5,
5176
5177
  half: a.field.allowHalf,
5177
5178
  onChange: oe
5178
- }, 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, {
5179
5180
  key: 11,
5180
5181
  modelValue: z.value,
5181
5182
  "onUpdate:modelValue": v[12] || (v[12] = (me) => z.value = me),
@@ -5183,7 +5184,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5183
5184
  onChange: oe
5184
5185
  }, {
5185
5186
  default: i(() => [
5186
- (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, {
5187
5188
  key: me.value,
5188
5189
  value: me.value
5189
5190
  }, {
@@ -5194,7 +5195,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5194
5195
  }, 1032, ["value"]))), 128))
5195
5196
  ]),
5196
5197
  _: 1
5197
- }, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), W(ja, {
5198
+ }, 8, ["modelValue", "disabled"])) : b.value === "checkbox" ? (l(), j(ja, {
5198
5199
  key: 12,
5199
5200
  modelValue: z.value,
5200
5201
  "onUpdate:modelValue": v[13] || (v[13] = (me) => z.value = me),
@@ -5202,7 +5203,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5202
5203
  onChange: oe
5203
5204
  }, {
5204
5205
  default: i(() => [
5205
- (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, {
5206
5207
  key: me.value,
5207
5208
  value: me.value
5208
5209
  }, {
@@ -5213,7 +5214,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5213
5214
  }, 1032, ["value"]))), 128))
5214
5215
  ]),
5215
5216
  _: 1
5216
- }, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), W(Aa, {
5217
+ }, 8, ["modelValue", "disabled"])) : b.value === "cascader" ? (l(), j(Aa, {
5217
5218
  key: 13,
5218
5219
  modelValue: z.value,
5219
5220
  "onUpdate:modelValue": v[14] || (v[14] = (me) => z.value = me),
@@ -5223,7 +5224,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5223
5224
  options: Array.isArray(a.field.options) ? a.field.options : [],
5224
5225
  keys: a.field.props || { label: "label", value: "value", children: "children" },
5225
5226
  onChange: oe
5226
- }, 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, {
5227
5228
  key: 14,
5228
5229
  modelValue: z.value,
5229
5230
  "onUpdate:modelValue": v[15] || (v[15] = (me) => z.value = me),
@@ -5235,7 +5236,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5235
5236
  data: Ye(a.field),
5236
5237
  "tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
5237
5238
  onChange: oe
5238
- }, 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, {
5239
5240
  key: 15,
5240
5241
  modelValue: z.value,
5241
5242
  "onUpdate:modelValue": v[16] || (v[16] = (me) => z.value = me),
@@ -5244,7 +5245,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5244
5245
  clearable: a.field.clearable !== !1,
5245
5246
  options: Array.isArray(a.field.options) ? a.field.options : [],
5246
5247
  onChange: oe
5247
- }, 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, {
5248
5249
  key: 16,
5249
5250
  modelValue: z.value,
5250
5251
  "onUpdate:modelValue": v[17] || (v[17] = (me) => z.value = me),
@@ -5262,7 +5263,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5262
5263
  }
5263
5264
  },
5264
5265
  onChange: oe
5265
- }, 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, {
5266
5267
  key: 17,
5267
5268
  modelValue: z.value,
5268
5269
  "onUpdate:modelValue": v[18] || (v[18] = (me) => z.value = me),
@@ -5284,13 +5285,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5284
5285
  }, 8, ["disabled"])
5285
5286
  ]),
5286
5287
  _: 1
5287
- }, 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, {
5288
5289
  key: 18,
5289
5290
  modelValue: z.value,
5290
5291
  "onUpdate:modelValue": v[19] || (v[19] = (me) => z.value = me),
5291
5292
  disabled: L.value,
5292
5293
  onChange: oe
5293
- }, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), W(Ra, {
5294
+ }, null, 8, ["modelValue", "disabled"])) : b.value === "slider" ? (l(), j(Ra, {
5294
5295
  key: 19,
5295
5296
  modelValue: z.value,
5296
5297
  "onUpdate:modelValue": v[20] || (v[20] = (me) => z.value = me),
@@ -5299,20 +5300,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5299
5300
  max: a.field.max || 100,
5300
5301
  step: a.field.step || 1,
5301
5302
  onChange: oe
5302
- }, 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, {
5303
5304
  key: 20,
5304
5305
  percentage: z.value || a.field.defaultValue || 0,
5305
5306
  status: a.field.status,
5306
5307
  "stroke-width": a.field.strokeWidth,
5307
5308
  color: a.field.color,
5308
5309
  label: a.field.showText !== !1
5309
- }, 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, {
5310
5311
  key: 21,
5311
5312
  theme: a.field.type || "info",
5312
5313
  message: a.field.title || a.field.defaultValue,
5313
5314
  close: a.field.closable,
5314
5315
  icon: a.field.showIcon !== !1
5315
- }, 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, {
5316
5317
  key: 22,
5317
5318
  href: a.field.href || a.field.defaultValue,
5318
5319
  target: a.field.target || "_blank",
@@ -5323,7 +5324,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5323
5324
  A(V(a.field.content || a.field.__config__.label), 1)
5324
5325
  ]),
5325
5326
  _: 1
5326
- }, 8, ["href", "target", "theme", "disabled"])) : b.value === "button" ? (l(), W(ma, {
5327
+ }, 8, ["href", "target", "theme", "disabled"])) : b.value === "button" ? (l(), j(ma, {
5327
5328
  key: 23,
5328
5329
  theme: a.field.type || "primary",
5329
5330
  disabled: L.value,
@@ -5335,7 +5336,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5335
5336
  key: 0,
5336
5337
  class: xe(a.field.icon),
5337
5338
  style: { "margin-right": "4px" }
5338
- }, null, 2)) : H("", !0),
5339
+ }, null, 2)) : Y("", !0),
5339
5340
  A(" " + V(a.field.content || a.field.__config__.label), 1)
5340
5341
  ]),
5341
5342
  _: 1
@@ -5373,7 +5374,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5373
5374
  e("i", { class: "ri-stamp-line" }, null, -1),
5374
5375
  e("span", null, "点击盖章", -1)
5375
5376
  ])]))
5376
- ])) : b.value === "tag" ? (l(), W(Ga, {
5377
+ ])) : b.value === "tag" ? (l(), j(Ga, {
5377
5378
  key: 27,
5378
5379
  modelValue: z.value,
5379
5380
  "onUpdate:modelValue": v[22] || (v[22] = (me) => z.value = me),
@@ -5386,7 +5387,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5386
5387
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : b.value === "billno" ? (l(), o(fe, { key: 28 }, [
5387
5388
  L.value ? (l(), o("div", uu, [
5388
5389
  e("span", cu, V(z.value), 1)
5389
- ])) : (l(), W(ie, {
5390
+ ])) : (l(), j(ie, {
5390
5391
  key: 1,
5391
5392
  modelValue: z.value,
5392
5393
  "onUpdate:modelValue": v[23] || (v[23] = (me) => z.value = me),
@@ -5397,7 +5398,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5397
5398
  onClear: k,
5398
5399
  onChange: oe
5399
5400
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5400
- ], 64)) : b.value === "relationFormAttr" ? (l(), W(ie, {
5401
+ ], 64)) : b.value === "relationFormAttr" ? (l(), j(ie, {
5401
5402
  key: 29,
5402
5403
  modelValue: P.value,
5403
5404
  "onUpdate:modelValue": v[24] || (v[24] = (me) => P.value = me),
@@ -5413,7 +5414,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5413
5414
  fontWeight: a.field.fontWeight,
5414
5415
  textAlign: a.field.textAlign
5415
5416
  })
5416
- }, 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, {
5417
5418
  key: 31,
5418
5419
  value: z.value,
5419
5420
  "onUpdate:value": v[25] || (v[25] = (me) => z.value = me),
@@ -5443,14 +5444,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5443
5444
  onDialogPageChange: v[29] || (v[29] = (me) => Ie(a.field, me))
5444
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 }, [
5445
5446
  L.value ? (l(), o("div", fu, [
5446
- b.value === "userSelect" && z.value ? (l(), W(ca(Od), {
5447
+ b.value === "userSelect" && z.value ? (l(), j(ca(Od), {
5447
5448
  key: 0,
5448
5449
  "user-id": z.value,
5449
5450
  name: ke(),
5450
5451
  "show-avatar": "",
5451
5452
  clickable: ""
5452
5453
  }, null, 8, ["user-id", "name"])) : (l(), o("span", mu, V(ke()), 1))
5453
- ])) : (l(), W(ie, {
5454
+ ])) : (l(), j(ie, {
5454
5455
  key: 1,
5455
5456
  "model-value": ke(),
5456
5457
  placeholder: a.field.placeholder || `请选择${a.field.__config__.label}`,
@@ -5469,7 +5470,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5469
5470
  ]),
5470
5471
  _: 1
5471
5472
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]))
5472
- ], 64)) : (l(), W(ie, {
5473
+ ], 64)) : (l(), j(ie, {
5473
5474
  key: 33,
5474
5475
  modelValue: z.value,
5475
5476
  "onUpdate:modelValue": v[30] || (v[30] = (me) => z.value = me),
@@ -5494,7 +5495,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5494
5495
  (l(!0), o(fe, null, be(U.value, (Ce) => (l(), o(fe, {
5495
5496
  key: Ce.value
5496
5497
  }, [
5497
- Ce.children && Ce.children.length > 0 ? (l(), W(Za, {
5498
+ Ce.children && Ce.children.length > 0 ? (l(), j(Za, {
5498
5499
  key: 0,
5499
5500
  onClick: E
5500
5501
  }, {
@@ -5514,7 +5515,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5514
5515
  }, 1024),
5515
5516
  s(Qa, null, {
5516
5517
  default: i(() => [
5517
- (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, {
5518
5519
  key: Re.value || Math.random(),
5519
5520
  value: Re.value,
5520
5521
  disabled: Re.disabled,
@@ -5530,28 +5531,28 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5530
5531
  }, 1024)
5531
5532
  ]),
5532
5533
  _: 2
5533
- }, 1024)) : Ce.show !== !1 ? (l(), W(ma, {
5534
+ }, 1024)) : Ce.show !== !1 ? (l(), j(ma, {
5534
5535
  key: 1,
5535
5536
  variant: "outline",
5536
5537
  size: "small",
5537
5538
  theme: r(Ce.value),
5538
- onClick: Xe((Re) => j(Ce.value), ["stop"])
5539
+ onClick: Xe((Re) => W(Ce.value), ["stop"])
5539
5540
  }, {
5540
5541
  default: i(() => [
5541
5542
  A(V(Ce.label), 1)
5542
5543
  ]),
5543
5544
  _: 2
5544
- }, 1032, ["theme", "onClick"])) : H("", !0)
5545
+ }, 1032, ["theme", "onClick"])) : Y("", !0)
5545
5546
  ], 64))), 128))
5546
- ])) : H("", !0)
5547
- ])) : H("", !0),
5547
+ ])) : Y("", !0)
5548
+ ])) : Y("", !0),
5548
5549
  s(el, Fa({
5549
5550
  ref_key: "vxeGridRef",
5550
5551
  ref: c
5551
5552
  }, ge.value, {
5552
5553
  data: N.value,
5553
5554
  columns: J.value,
5554
- "onUpdate:data": Y,
5555
+ "onUpdate:data": H,
5555
5556
  onEditClosed: O,
5556
5557
  "keyboard-config": _.value
5557
5558
  }), null, 16, ["data", "columns", "keyboard-config"]),
@@ -5569,7 +5570,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5569
5570
  }, [
5570
5571
  a.field.__config__.showLabel ? (l(), o("div", hu, [
5571
5572
  e("span", bu, V(a.field.__config__.label), 1)
5572
- ])) : H("", !0),
5573
+ ])) : Y("", !0),
5573
5574
  s(xa, {
5574
5575
  gutter: 0,
5575
5576
  class: "cd-row",
@@ -5580,7 +5581,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5580
5581
  (l(!0), o(fe, null, be(a.field.__config__.children, (Ce) => (l(), o(fe, {
5581
5582
  key: Ce.__config__.formId
5582
5583
  }, [
5583
- Ce.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5584
+ Ce.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5584
5585
  key: 0,
5585
5586
  span: Ce.__config__.span,
5586
5587
  class: xe(Ce.__config__.className)
@@ -5600,7 +5601,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5600
5601
  ]),
5601
5602
  _: 1
5602
5603
  }, 8, ["justify", "align"])
5603
- ], 2)) : b.value === "divider" ? (l(), W(al, {
5604
+ ], 2)) : b.value === "divider" ? (l(), j(al, {
5604
5605
  key: 3,
5605
5606
  class: xe(a.field.__config__.className),
5606
5607
  align: a.field.contentPosition || "center"
@@ -5613,8 +5614,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5613
5614
  key: 4,
5614
5615
  class: xe(["blank-component", a.field.__config__.className])
5615
5616
  }, [
5616
- a.field.content ? (l(), o("span", yu, V(a.field.content), 1)) : H("", !0)
5617
- ], 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, {
5618
5619
  key: 5,
5619
5620
  modelValue: y.value,
5620
5621
  "onUpdate:modelValue": v[34] || (v[34] = (Ce) => y.value = Ce),
@@ -5624,7 +5625,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5624
5625
  size: "medium"
5625
5626
  }, {
5626
5627
  default: i(() => [
5627
- (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, {
5628
5629
  key: Ce.name,
5629
5630
  value: Ce.name,
5630
5631
  label: Ce.title
@@ -5638,7 +5639,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5638
5639
  (l(!0), o(fe, null, be(Ce.__config__.children, (Re) => (l(), o(fe, {
5639
5640
  key: Re.__config__.formId
5640
5641
  }, [
5641
- Re.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5642
+ Re.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5642
5643
  key: 0,
5643
5644
  span: Re.__config__.span,
5644
5645
  class: xe(Re.__config__.className)
@@ -5686,7 +5687,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5686
5687
  (l(!0), o(fe, null, be(me.__config__.children, (da) => (l(), o(fe, {
5687
5688
  key: da.__config__.formId
5688
5689
  }, [
5689
- da.__config__.noShow ? H("", !0) : (l(), W(ha, {
5690
+ da.__config__.noShow ? Y("", !0) : (l(), j(ha, {
5690
5691
  key: 0,
5691
5692
  field: da,
5692
5693
  "form-model": a.formModel,
@@ -5699,7 +5700,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5699
5700
  ]))), 128))
5700
5701
  ])
5701
5702
  ])
5702
- ], 6)) : b.value === "collapse" ? (l(), W(nl, {
5703
+ ], 6)) : b.value === "collapse" ? (l(), j(nl, {
5703
5704
  key: 7,
5704
5705
  modelValue: u.value,
5705
5706
  "onUpdate:modelValue": v[37] || (v[37] = (Ce) => u.value = Ce),
@@ -5709,7 +5710,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5709
5710
  borderless: a.field.ghost
5710
5711
  }, {
5711
5712
  default: i(() => [
5712
- (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, {
5713
5714
  key: Ce.name,
5714
5715
  value: Ce.name,
5715
5716
  header: Ce.title
@@ -5723,7 +5724,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5723
5724
  (l(!0), o(fe, null, be(Ce.__config__.children, (Re) => (l(), o(fe, {
5724
5725
  key: Re.__config__.formId
5725
5726
  }, [
5726
- Re.__config__.noShow ? H("", !0) : (l(), W(Ma, {
5727
+ Re.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
5727
5728
  key: 0,
5728
5729
  span: Re.__config__.span,
5729
5730
  class: xe(Re.__config__.className)
@@ -5754,12 +5755,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5754
5755
  }, [
5755
5756
  a.field.__config__.showLabel !== !1 ? (l(), o("div", ku, [
5756
5757
  e("span", Cu, V(a.field.__config__.label), 1),
5757
- L.value ? H("", !0) : (l(), W(Ia, { key: 0 }, {
5758
+ L.value ? Y("", !0) : (l(), j(Ia, { key: 0 }, {
5758
5759
  default: i(() => [
5759
5760
  (l(!0), o(fe, null, be(ee.value, (Ce) => (l(), o(fe, {
5760
5761
  key: Ce.value
5761
5762
  }, [
5762
- Ce.value === "add" ? (l(), W(ma, {
5763
+ Ce.value === "add" ? (l(), j(ma, {
5763
5764
  key: 0,
5764
5765
  theme: Ce.btnType || "primary",
5765
5766
  variant: "outline",
@@ -5775,7 +5776,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5775
5776
  A(" " + V(Ce.label), 1)
5776
5777
  ]),
5777
5778
  _: 2
5778
- }, 1032, ["theme"])) : Ce.showConfirm ? (l(), W(Pa, {
5779
+ }, 1032, ["theme"])) : Ce.showConfirm ? (l(), j(Pa, {
5779
5780
  key: 1,
5780
5781
  content: `确定${Ce.label}吗?`,
5781
5782
  onConfirm: (Re) => oa(Ce)
@@ -5798,7 +5799,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5798
5799
  }, 1032, ["theme"])
5799
5800
  ]),
5800
5801
  _: 2
5801
- }, 1032, ["content", "onConfirm"])) : (l(), W(ma, {
5802
+ }, 1032, ["content", "onConfirm"])) : (l(), j(ma, {
5802
5803
  key: 2,
5803
5804
  theme: Ce.btnType || "default",
5804
5805
  variant: "outline",
@@ -5819,7 +5820,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5819
5820
  ]),
5820
5821
  _: 1
5821
5822
  }))
5822
- ])) : H("", !0),
5823
+ ])) : Y("", !0),
5823
5824
  s(ol, {
5824
5825
  data: I.value,
5825
5826
  columns: D.value,
@@ -5850,7 +5851,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5850
5851
  (l(!0), o(fe, null, be(q.value, (Re) => (l(), o(fe, {
5851
5852
  key: Re.value
5852
5853
  }, [
5853
- Re.value === "copy" ? (l(), W(_a, {
5854
+ Re.value === "copy" ? (l(), j(_a, {
5854
5855
  key: 0,
5855
5856
  theme: "primary",
5856
5857
  onClick: (me) => sa(Ce)
@@ -5862,7 +5863,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5862
5863
  A(" " + V(Re.label), 1)
5863
5864
  ]),
5864
5865
  _: 2
5865
- }, 1032, ["onClick"])) : Re.value === "remove" && Re.showConfirm ? (l(), W(Pa, {
5866
+ }, 1032, ["onClick"])) : Re.value === "remove" && Re.showConfirm ? (l(), j(Pa, {
5866
5867
  key: 1,
5867
5868
  content: "确定删除该行吗?",
5868
5869
  onConfirm: (me) => Ae(Ce)
@@ -5881,7 +5882,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5881
5882
  }, 1032, ["theme"])
5882
5883
  ]),
5883
5884
  _: 2
5884
- }, 1032, ["onConfirm"])) : Re.value === "remove" ? (l(), W(_a, {
5885
+ }, 1032, ["onConfirm"])) : Re.value === "remove" ? (l(), j(_a, {
5885
5886
  key: 2,
5886
5887
  theme: Re.btnType === "error" ? "danger" : "default",
5887
5888
  onClick: (me) => Ae(Ce)
@@ -5893,7 +5894,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5893
5894
  A(" " + V(Re.label), 1)
5894
5895
  ]),
5895
5896
  _: 2
5896
- }, 1032, ["theme", "onClick"])) : H("", !0)
5897
+ }, 1032, ["theme", "onClick"])) : Y("", !0)
5897
5898
  ], 64))), 128))
5898
5899
  ]),
5899
5900
  _: 2
@@ -5902,7 +5903,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5902
5903
  key: "0"
5903
5904
  }
5904
5905
  ]), 1032, ["data", "columns", "stripe"])
5905
- ], 2)) : H("", !0);
5906
+ ], 2)) : Y("", !0);
5906
5907
  };
5907
5908
  }
5908
5909
  }), Dl = /* @__PURE__ */ Ze(xu, [["__scopeId", "data-v-158cd013"]]), $u = /* @__PURE__ */ Ke({
@@ -6025,11 +6026,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6025
6026
  });
6026
6027
  }, ge = (x) => {
6027
6028
  u("select-org-data", x);
6028
- }, Y = (x) => {
6029
+ }, H = (x) => {
6029
6030
  u("relation-form-search", x);
6030
6031
  }, E = (x) => {
6031
6032
  u("relation-form-advanced", x);
6032
- }, j = (x) => {
6033
+ }, W = (x) => {
6033
6034
  u("relation-form-dialog-search", x);
6034
6035
  }, d = (x) => {
6035
6036
  u("relation-form-page-change", x);
@@ -6182,7 +6183,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6182
6183
  initFormData: g
6183
6184
  }), Ca("formModel", _), Ca("formConf", y.formConf), (x, b) => {
6184
6185
  const z = M("t-row"), P = M("t-form");
6185
- return l(), W(P, {
6186
+ return l(), j(P, {
6186
6187
  ref_key: "formRef",
6187
6188
  ref: c,
6188
6189
  model: _,
@@ -6204,7 +6205,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6204
6205
  return l(), o(fe, {
6205
6206
  key: ((oe = G.__config__) == null ? void 0 : oe.formId) || G.__vModel__ || X
6206
6207
  }, [
6207
- !G.__config__.noShow && D(G) ? (l(), W(Ma, {
6208
+ !G.__config__.noShow && D(G) ? (l(), j(Ma, {
6208
6209
  key: 0,
6209
6210
  span: G.__config__.span,
6210
6211
  class: xe(G.__config__.className)
@@ -6218,14 +6219,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6218
6219
  onChange: ee,
6219
6220
  onI18nClick: N,
6220
6221
  onSelectOrgData: ge,
6221
- onRelationFormSearch: Y,
6222
+ onRelationFormSearch: H,
6222
6223
  onRelationFormAdvanced: E,
6223
- onRelationFormDialogSearch: j,
6224
+ onRelationFormDialogSearch: W,
6224
6225
  onRelationFormPageChange: d
6225
6226
  }, null, 8, ["field", "form-model", "form-conf", "disabled"])
6226
6227
  ]),
6227
6228
  _: 2
6228
- }, 1032, ["span", "class"])) : H("", !0)
6229
+ }, 1032, ["span", "class"])) : Y("", !0)
6229
6230
  ], 64);
6230
6231
  }), 128))
6231
6232
  ]),
@@ -11777,20 +11778,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11777
11778
  const c = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], m = ve(() => Vu.map((E) => c.includes(E.name) ? {
11778
11779
  label: E.name,
11779
11780
  value: E.name,
11780
- children: E.city[0].area.map((j) => ({
11781
- label: j,
11782
- value: `${E.name}/${j}`,
11781
+ children: E.city[0].area.map((W) => ({
11782
+ label: W,
11783
+ value: `${E.name}/${W}`,
11783
11784
  children: void 0
11784
11785
  }))
11785
11786
  } : {
11786
11787
  label: E.name,
11787
11788
  value: E.name,
11788
- children: E.city.map((j) => ({
11789
- label: j.name,
11790
- value: `${E.name}/${j.name}`,
11791
- 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) => ({
11792
11793
  label: d,
11793
- value: `${E.name}/${j.name}/${d}`,
11794
+ value: `${E.name}/${W.name}/${d}`,
11794
11795
  children: void 0
11795
11796
  }))
11796
11797
  }))
@@ -11811,11 +11812,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11811
11812
  if (r.selectOptions && r.selectOptions[E])
11812
11813
  return r.selectOptions[E];
11813
11814
  if (r.selectOptions && Array.isArray(r.selectOptions)) {
11814
- const j = r.selectOptions.find(
11815
+ const W = r.selectOptions.find(
11815
11816
  (d) => d.columnName === E
11816
11817
  );
11817
- if (j && j.value)
11818
- return C(j.value.map((d) => ({
11818
+ if (W && W.value)
11819
+ return C(W.value.map((d) => ({
11819
11820
  label: d,
11820
11821
  value: d
11821
11822
  })));
@@ -11823,7 +11824,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11823
11824
  return [];
11824
11825
  };
11825
11826
  function C(E) {
11826
- 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"));
11827
11828
  }
11828
11829
  const r = a, I = te, D = F({
11829
11830
  field: ((n = r.filterCondition) == null ? void 0 : n.field) || "",
@@ -11834,8 +11835,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11834
11835
  E && (D.value = { ...E });
11835
11836
  }, { deep: !0 });
11836
11837
  const q = (E) => {
11837
- const j = r.fieldOptions.find((d) => d.value === E);
11838
- return j ? j.type : "text";
11838
+ const W = r.fieldOptions.find((d) => d.value === E);
11839
+ return W ? W.type : "text";
11839
11840
  }, ee = () => {
11840
11841
  typeof r.filterCondition.value == "string" && (r.filterCondition.value = r.filterCondition.value.trim()), ta(() => {
11841
11842
  I("search", { ...r.filterCondition });
@@ -11848,8 +11849,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11848
11849
  r.filterCondition.value = E, I("search", { ...r.filterCondition });
11849
11850
  }, ge = ve(() => {
11850
11851
  var E;
11851
- const j = r.filterCondition.field;
11852
- 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") {
11853
11854
  case "number":
11854
11855
  return [
11855
11856
  { key: "eq", label: "等于", value: "eq" },
@@ -11927,28 +11928,28 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11927
11928
  { key: "ends_with", label: "结尾是", value: "ends_with" }
11928
11929
  ];
11929
11930
  }
11930
- }), Y = () => {
11931
+ }), H = () => {
11931
11932
  ta(() => {
11932
11933
  I("search", { ...r.filterCondition });
11933
11934
  });
11934
11935
  };
11935
- return ze(() => r.filterCondition.field, (E, j) => {
11936
- E && j && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
11937
- }), (E, j) => {
11936
+ return ze(() => r.filterCondition.field, (E, W) => {
11937
+ E && W && (r.filterCondition.operator = "eq", r.filterCondition.value = null);
11938
+ }), (E, W) => {
11938
11939
  var d;
11939
11940
  const S = M("t-option"), g = M("t-select"), R = M("t-input"), O = M("t-date-picker"), de = M("t-cascader");
11940
11941
  return l(), o("div", Su, [
11941
11942
  s(g, {
11942
11943
  modelValue: r.filterCondition.field,
11943
- "onUpdate:modelValue": j[0] || (j[0] = (ue) => r.filterCondition.field = ue),
11944
+ "onUpdate:modelValue": W[0] || (W[0] = (ue) => r.filterCondition.field = ue),
11944
11945
  placeholder: "请选择字段",
11945
11946
  size: r.size,
11946
11947
  style: { "min-width": "80px", "max-width": "110px" },
11947
- onChange: Y,
11948
+ onChange: H,
11948
11949
  filterable: ""
11949
11950
  }, {
11950
11951
  default: i(() => [
11951
- (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, {
11952
11953
  key: ue.key,
11953
11954
  label: ue.key,
11954
11955
  value: ue.value
@@ -11958,7 +11959,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11958
11959
  }, 8, ["modelValue", "size"]),
11959
11960
  s(g, {
11960
11961
  modelValue: r.filterCondition.operator,
11961
- "onUpdate:modelValue": j[1] || (j[1] = (ue) => r.filterCondition.operator = ue),
11962
+ "onUpdate:modelValue": W[1] || (W[1] = (ue) => r.filterCondition.operator = ue),
11962
11963
  placeholder: "请选择条件",
11963
11964
  size: r.size,
11964
11965
  style: { width: "80px" },
@@ -11966,7 +11967,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11966
11967
  onChange: N
11967
11968
  }, {
11968
11969
  default: i(() => [
11969
- (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, {
11970
11971
  key: ue.key,
11971
11972
  label: ue.label,
11972
11973
  value: ue.value
@@ -11974,47 +11975,47 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11974
11975
  ]),
11975
11976
  _: 1
11976
11977
  }, 8, ["modelValue", "size"]),
11977
- q(r.filterCondition.field) === "number" ? (l(), W(R, {
11978
+ q(r.filterCondition.field) === "number" ? (l(), j(R, {
11978
11979
  key: 0,
11979
11980
  type: "number",
11980
11981
  modelValue: r.filterCondition.value,
11981
- "onUpdate:modelValue": j[2] || (j[2] = (ue) => r.filterCondition.value = ue),
11982
+ "onUpdate:modelValue": W[2] || (W[2] = (ue) => r.filterCondition.value = ue),
11982
11983
  placeholder: "请输入数字",
11983
11984
  size: r.size,
11984
11985
  style: { width: "80px" },
11985
11986
  onChange: ee,
11986
11987
  clearable: ""
11987
- }, 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, {
11988
11989
  key: 1,
11989
11990
  type: "number",
11990
11991
  modelValue: r.filterCondition.value,
11991
- "onUpdate:modelValue": j[3] || (j[3] = (ue) => r.filterCondition.value = ue),
11992
+ "onUpdate:modelValue": W[3] || (W[3] = (ue) => r.filterCondition.value = ue),
11992
11993
  placeholder: "请输入金额",
11993
11994
  size: r.size,
11994
11995
  style: { width: "80px" },
11995
11996
  onChange: ee,
11996
11997
  clearable: ""
11997
11998
  }, null, 8, ["modelValue", "size"])) : q(r.filterCondition.field) === "date" ? (l(), o(fe, { key: 2 }, [
11998
- U(r.filterCondition.operator) ? (l(), W(R, {
11999
+ U(r.filterCondition.operator) ? (l(), j(R, {
11999
12000
  key: 1,
12000
12001
  value: (d = ge.value.find((ue) => ue.value === r.filterCondition.operator)) == null ? void 0 : d.label,
12001
12002
  disabled: "",
12002
12003
  size: r.size,
12003
12004
  style: { "min-width": "80px", "max-width": "120px" }
12004
- }, null, 8, ["value", "size"])) : (l(), W(O, {
12005
+ }, null, 8, ["value", "size"])) : (l(), j(O, {
12005
12006
  key: 0,
12006
12007
  modelValue: r.filterCondition.value,
12007
- "onUpdate:modelValue": j[4] || (j[4] = (ue) => r.filterCondition.value = ue),
12008
+ "onUpdate:modelValue": W[4] || (W[4] = (ue) => r.filterCondition.value = ue),
12008
12009
  placeholder: "请选择日期",
12009
12010
  size: r.size,
12010
12011
  style: { "min-width": "80px", "max-width": "120px" },
12011
12012
  onChange: ee,
12012
12013
  clearable: ""
12013
12014
  }, null, 8, ["modelValue", "size"]))
12014
- ], 64)) : q(r.filterCondition.field) === "time" ? (l(), W(O, {
12015
+ ], 64)) : q(r.filterCondition.field) === "time" ? (l(), j(O, {
12015
12016
  key: 3,
12016
12017
  modelValue: r.filterCondition.value,
12017
- "onUpdate:modelValue": j[5] || (j[5] = (ue) => r.filterCondition.value = ue),
12018
+ "onUpdate:modelValue": W[5] || (W[5] = (ue) => r.filterCondition.value = ue),
12018
12019
  placeholder: "请选择日期时间",
12019
12020
  size: r.size,
12020
12021
  style: { "min-width": "80px", "max-width": "120px" },
@@ -12022,20 +12023,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12022
12023
  format: "YYYY-MM-DD HH:mm:ss",
12023
12024
  onChange: ee,
12024
12025
  clearable: ""
12025
- }, 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, {
12026
12027
  key: 4,
12027
12028
  modelValue: r.filterCondition.value,
12028
- "onUpdate:modelValue": j[6] || (j[6] = (ue) => r.filterCondition.value = ue),
12029
+ "onUpdate:modelValue": W[6] || (W[6] = (ue) => r.filterCondition.value = ue),
12029
12030
  options: _(r.filterCondition.field),
12030
12031
  placeholder: "请选择",
12031
12032
  size: r.size,
12032
12033
  style: { "min-width": "80px", "max-width": "120px" },
12033
12034
  onChange: ee,
12034
12035
  clearable: ""
12035
- }, 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, {
12036
12037
  key: 5,
12037
12038
  modelValue: r.filterCondition.value,
12038
- "onUpdate:modelValue": j[7] || (j[7] = (ue) => r.filterCondition.value = ue),
12039
+ "onUpdate:modelValue": W[7] || (W[7] = (ue) => r.filterCondition.value = ue),
12039
12040
  options: m.value,
12040
12041
  placeholder: "请选择地区",
12041
12042
  size: r.size,
@@ -12043,10 +12044,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12043
12044
  clearable: "",
12044
12045
  loading: !1,
12045
12046
  onChange: J
12046
- }, null, 8, ["modelValue", "options", "size"])) : (l(), W(R, {
12047
+ }, null, 8, ["modelValue", "options", "size"])) : (l(), j(R, {
12047
12048
  key: 6,
12048
12049
  modelValue: r.filterCondition.value,
12049
- "onUpdate:modelValue": j[8] || (j[8] = (ue) => r.filterCondition.value = ue),
12050
+ "onUpdate:modelValue": W[8] || (W[8] = (ue) => r.filterCondition.value = ue),
12050
12051
  placeholder: "请输入关键字",
12051
12052
  size: r.size,
12052
12053
  style: { "min-width": "80px", "max-width": "100px" },
@@ -12167,8 +12168,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12167
12168
  y("close"), y("update:visible", !1);
12168
12169
  };
12169
12170
  return (N, J) => {
12170
- 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");
12171
- 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, {
12172
12173
  header: a.isEditing ? "编辑筛选方案" : "保存筛选方案",
12173
12174
  visible: a.visible,
12174
12175
  "onUpdate:visible": J[3] || (J[3] = (O) => N.$emit("update:visible", O)),
@@ -12185,7 +12186,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12185
12186
  "label-width": "100px"
12186
12187
  }, {
12187
12188
  default: i(() => [
12188
- s(Y, {
12189
+ s(H, {
12189
12190
  label: "方案名称",
12190
12191
  required: ""
12191
12192
  }, {
@@ -12198,7 +12199,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12198
12199
  ]),
12199
12200
  _: 1
12200
12201
  }),
12201
- s(Y, { label: "共享设置" }, {
12202
+ s(H, { label: "共享设置" }, {
12202
12203
  default: i(() => [
12203
12204
  s(d, {
12204
12205
  modelValue: u.value.shareMode,
@@ -12218,7 +12219,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12218
12219
  ])]),
12219
12220
  _: 1
12220
12221
  }),
12221
- s(j, {
12222
+ s(W, {
12222
12223
  content: "复制方案只支持复制一次,建议共享方案",
12223
12224
  placement: "top"
12224
12225
  }, {
@@ -12238,7 +12239,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12238
12239
  ]),
12239
12240
  _: 1
12240
12241
  }),
12241
- u.value.shareMode === "share" ? (l(), W(Y, {
12242
+ u.value.shareMode === "share" ? (l(), j(H, {
12242
12243
  key: 0,
12243
12244
  label: "共享范围"
12244
12245
  }, {
@@ -12265,13 +12266,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12265
12266
  }, 8, ["modelValue"])
12266
12267
  ]),
12267
12268
  _: 1
12268
- })) : H("", !0),
12269
- 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, {
12270
12271
  key: 1,
12271
12272
  label: "共享人员"
12272
12273
  }, {
12273
12274
  default: i(() => [
12274
- s(ca(dl), {
12275
+ s(ca(ul), {
12275
12276
  users: c.value,
12276
12277
  "avatar-size": 32,
12277
12278
  "max-display": 10,
@@ -12286,7 +12287,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12286
12287
  }, null, 8, ["users", "person-tabs", "person-organizations", "dept-members-data"])
12287
12288
  ]),
12288
12289
  _: 1
12289
- })) : H("", !0)
12290
+ })) : Y("", !0)
12290
12291
  ]),
12291
12292
  _: 1
12292
12293
  }, 8, ["data"])
@@ -12411,7 +12412,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12411
12412
  connector: "and",
12412
12413
  conditions: [{ field: "", operator: "eq", value: "" }]
12413
12414
  });
12414
- }, Y = (Q) => {
12415
+ }, H = (Q) => {
12415
12416
  u.value.length > 1 ? u.value.splice(Q, 1) : Pe.warning("至少需要保留一个筛选卡片");
12416
12417
  }, E = (Q) => {
12417
12418
  Q >= 0 && Q < u.value.length && u.value[Q].conditions.push({
@@ -12419,7 +12420,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12419
12420
  operator: "eq",
12420
12421
  value: ""
12421
12422
  });
12422
- }, j = (Q, ae) => {
12423
+ }, W = (Q, ae) => {
12423
12424
  if (Q >= 0 && Q < u.value.length) {
12424
12425
  const Fe = u.value[Q];
12425
12426
  Fe.conditions.length > 1 && ae >= 0 && ae < Fe.conditions.length ? Fe.conditions.splice(ae, 1) : Fe.conditions.length <= 1 && Pe.warning("每个卡片至少需要一个筛选条件");
@@ -12650,7 +12651,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12650
12651
  _: 1
12651
12652
  }, 8, ["size", "modelValue"])
12652
12653
  ])
12653
- ])) : H("", !0),
12654
+ ])) : Y("", !0),
12654
12655
  e("div", Tu, [
12655
12656
  (l(!0), o(fe, null, be(u.value, (p, v) => (l(), o("div", {
12656
12657
  key: p.id,
@@ -12686,7 +12687,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12686
12687
  theme: "default",
12687
12688
  variant: "text",
12688
12689
  size: a.size,
12689
- onClick: (ie) => Y(v),
12690
+ onClick: (ie) => H(v),
12690
12691
  disabled: u.value.length === 1
12691
12692
  }, {
12692
12693
  icon: i(() => [
@@ -12710,7 +12711,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12710
12711
  theme: "default",
12711
12712
  variant: "text",
12712
12713
  size: a.size,
12713
- onClick: (De) => j(v, Te),
12714
+ onClick: (De) => W(v, Te),
12714
12715
  disabled: p.conditions.length === 1
12715
12716
  }, {
12716
12717
  icon: i(() => [
@@ -13126,15 +13127,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13126
13127
  }
13127
13128
  ]);
13128
13129
  ze(() => n.visible, (ge) => {
13129
- u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((Y) => ({
13130
- ...Y,
13130
+ u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((H) => ({
13131
+ ...H,
13131
13132
  showColorPicker: !1
13132
13133
  })));
13133
13134
  }), ze(u, (ge) => {
13134
13135
  y("update:visible", ge);
13135
13136
  });
13136
- const C = (ge, Y) => {
13137
- _.value[ge].backgroundColor = Y, _.value[ge].showColorPicker = !1;
13137
+ const C = (ge, H) => {
13138
+ _.value[ge].backgroundColor = H, _.value[ge].showColorPicker = !1;
13138
13139
  }, r = () => {
13139
13140
  _.value.push({
13140
13141
  field: "",
@@ -13153,33 +13154,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13153
13154
  y("clear"), u.value = !1;
13154
13155
  }, ee = () => {
13155
13156
  const ge = _.value.filter(
13156
- (Y) => Y.field && Y.operator && Y.value
13157
- ).map((Y) => ({
13158
- field: Y.field,
13159
- operator: Y.operator,
13160
- value: Y.value,
13161
- backgroundColor: Y.backgroundColor,
13162
- isBold: Y.isBold,
13163
- 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
13164
13165
  }));
13165
13166
  y("confirm", ge), u.value = !1;
13166
13167
  }, N = ve(() => {
13167
- const ge = _.value.length, Y = Math.floor(c.length / ge), E = [];
13168
- for (let j = 0; j < ge; j++) {
13169
- 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;
13170
13171
  E.push(c[d]);
13171
13172
  }
13172
13173
  return E;
13173
13174
  }), J = () => {
13174
- _.value.forEach((ge, Y) => {
13175
- Y < N.value.length && (ge.backgroundColor = N.value[Y]);
13175
+ _.value.forEach((ge, H) => {
13176
+ H < N.value.length && (ge.backgroundColor = N.value[H]);
13176
13177
  }), y("smart-colors-change", N.value);
13177
13178
  };
13178
- return (ge, Y) => {
13179
- 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");
13180
- 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, {
13181
13182
  visible: u.value,
13182
- "onUpdate:visible": Y[0] || (Y[0] = (L) => u.value = L),
13183
+ "onUpdate:visible": H[0] || (H[0] = (L) => u.value = L),
13183
13184
  width: "800px",
13184
13185
  "confirm-btn": null,
13185
13186
  "cancel-btn": null,
@@ -13187,18 +13188,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13187
13188
  }, {
13188
13189
  header: i(() => [
13189
13190
  e("div", cc, [
13190
- Y[3] || (Y[3] = e("span", null, "颜色筛选", -1)),
13191
+ H[3] || (H[3] = e("span", null, "颜色筛选", -1)),
13191
13192
  s(E, {
13192
13193
  theme: "primary",
13193
13194
  variant: "outline",
13194
13195
  size: "small",
13195
13196
  onClick: J
13196
13197
  }, {
13197
- icon: i(() => [...Y[1] || (Y[1] = [
13198
+ icon: i(() => [...H[1] || (H[1] = [
13198
13199
  e("i", { class: "ri-palette-line" }, null, -1)
13199
13200
  ])]),
13200
13201
  default: i(() => [
13201
- Y[2] || (Y[2] = A(" 智能配色 ", -1))
13202
+ H[2] || (H[2] = A(" 智能配色 ", -1))
13202
13203
  ]),
13203
13204
  _: 1
13204
13205
  })
@@ -13230,11 +13231,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13230
13231
  }, null, 14, _c)), 64))
13231
13232
  ]),
13232
13233
  e("div", kc, [
13233
- s(j, {
13234
+ s(W, {
13234
13235
  modelValue: L.isBold,
13235
13236
  "onUpdate:modelValue": (b) => L.isBold = b
13236
13237
  }, {
13237
- default: i(() => [...Y[4] || (Y[4] = [
13238
+ default: i(() => [...H[4] || (H[4] = [
13238
13239
  e("span", { class: "bold-text" }, "加粗", -1)
13239
13240
  ])]),
13240
13241
  _: 1
@@ -13248,7 +13249,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13248
13249
  class: "color-block",
13249
13250
  style: Ge({ backgroundColor: L.backgroundColor })
13250
13251
  }, [
13251
- L.isBold ? (l(), o("span", hc, "B")) : H("", !0)
13252
+ L.isBold ? (l(), o("span", hc, "B")) : Y("", !0)
13252
13253
  ], 4)
13253
13254
  ])
13254
13255
  ]),
@@ -13264,19 +13265,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13264
13265
  }, {
13265
13266
  default: i(() => [
13266
13267
  s(S, { value: "cell" }, {
13267
- default: i(() => [...Y[5] || (Y[5] = [
13268
+ default: i(() => [...H[5] || (H[5] = [
13268
13269
  A("单元格", -1)
13269
13270
  ])]),
13270
13271
  _: 1
13271
13272
  }),
13272
13273
  s(S, { value: "row" }, {
13273
- default: i(() => [...Y[6] || (Y[6] = [
13274
+ default: i(() => [...H[6] || (H[6] = [
13274
13275
  A("整行", -1)
13275
13276
  ])]),
13276
13277
  _: 1
13277
13278
  }),
13278
13279
  s(S, { value: "column" }, {
13279
- default: i(() => [...Y[7] || (Y[7] = [
13280
+ default: i(() => [...H[7] || (H[7] = [
13280
13281
  A("整列", -1)
13281
13282
  ])]),
13282
13283
  _: 1
@@ -13320,7 +13321,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13320
13321
  onClick: (b) => I(x),
13321
13322
  disabled: _.value.length === 1
13322
13323
  }, {
13323
- icon: i(() => [...Y[8] || (Y[8] = [
13324
+ icon: i(() => [...H[8] || (H[8] = [
13324
13325
  e("i", { class: "ri-close-fill" }, null, -1)
13325
13326
  ])]),
13326
13327
  _: 1
@@ -13338,7 +13339,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13338
13339
  s(de, { name: "add" })
13339
13340
  ]),
13340
13341
  default: i(() => [
13341
- Y[9] || (Y[9] = A(" 添加规则 ", -1))
13342
+ H[9] || (H[9] = A(" 添加规则 ", -1))
13342
13343
  ]),
13343
13344
  _: 1
13344
13345
  }, 8, ["size"])
@@ -13351,7 +13352,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13351
13352
  size: a.size,
13352
13353
  onClick: D
13353
13354
  }, {
13354
- default: i(() => [...Y[10] || (Y[10] = [
13355
+ default: i(() => [...H[10] || (H[10] = [
13355
13356
  A("取消", -1)
13356
13357
  ])]),
13357
13358
  _: 1
@@ -13361,7 +13362,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13361
13362
  size: a.size,
13362
13363
  onClick: q
13363
13364
  }, {
13364
- default: i(() => [...Y[11] || (Y[11] = [
13365
+ default: i(() => [...H[11] || (H[11] = [
13365
13366
  A("清除", -1)
13366
13367
  ])]),
13367
13368
  _: 1
@@ -13371,7 +13372,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13371
13372
  size: a.size,
13372
13373
  onClick: ee
13373
13374
  }, {
13374
- default: i(() => [...Y[12] || (Y[12] = [
13375
+ default: i(() => [...H[12] || (H[12] = [
13375
13376
  A("确定", -1)
13376
13377
  ])]),
13377
13378
  _: 1
@@ -13462,7 +13463,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13462
13463
  const _e = k.precepts[0];
13463
13464
  _e && _e.conditions && (u.value = Array.from({ length: n.filterCount }, (we, Be) => _e.conditions[Be] ? JSON.parse(JSON.stringify(_e.conditions[Be])) : c()));
13464
13465
  }
13465
- const B = j(k.precepts), le = d(B, k.sqlConnectType);
13466
+ const B = W(k.precepts), le = d(B, k.sqlConnectType);
13466
13467
  if (y("confirm", le), k.columns && k.columns.length > 0) {
13467
13468
  const _e = k.columns.filter((we) => we.show !== !1);
13468
13469
  y("column-change", _e);
@@ -13474,15 +13475,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13474
13475
  y("search", { conditions: { and: [] } });
13475
13476
  return;
13476
13477
  }
13477
- const k = j([
13478
+ const k = W([
13478
13479
  { id: 1, connector: C.value, conditions: u.value }
13479
13480
  ]), B = d(k, "and");
13480
13481
  y("search", B);
13481
- }, Y = () => {
13482
+ }, H = () => {
13482
13483
  _.value = !0;
13483
13484
  }, E = () => {
13484
13485
  _.value = !1;
13485
- }, j = (k) => k.map((B) => {
13486
+ }, W = (k) => k.map((B) => {
13486
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) => {
13487
13488
  let we = "";
13488
13489
  return _e.value !== null && _e.value !== void 0 && (Array.isArray(_e.value) ? we = _e.value.join("/") : we = String(_e.value).trim()), {
@@ -13534,7 +13535,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13534
13535
  }, R = () => {
13535
13536
  const k = ue.value.name.trim();
13536
13537
  if (I.value) {
13537
- const B = j(r.value);
13538
+ const B = W(r.value);
13538
13539
  y("update-plan", {
13539
13540
  name: k,
13540
13541
  precepts: B,
@@ -13544,7 +13545,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13544
13545
  // 包含当前列配置
13545
13546
  });
13546
13547
  } else {
13547
- const B = j(r.value);
13548
+ const B = W(r.value);
13548
13549
  y("save-plan", {
13549
13550
  name: k,
13550
13551
  precepts: B,
@@ -13594,7 +13595,7 @@ ${k.map((B) => {
13594
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");
13595
13596
  return l(), o("div", Sc, [
13596
13597
  a.filterCount > 0 ? (l(), o("div", Mc, [
13597
- (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, {
13598
13599
  key: Q,
13599
13600
  "field-options": a.fieldOptions,
13600
13601
  size: a.size,
@@ -13602,7 +13603,7 @@ ${k.map((B) => {
13602
13603
  "select-options": a.selectOptions,
13603
13604
  onSearch: J
13604
13605
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
13605
- ])) : H("", !0),
13606
+ ])) : Y("", !0),
13606
13607
  a.filterCount === 0 && a.planFilterOptions.length > 0 ? (l(), o("div", zc, [
13607
13608
  B[12] || (B[12] = e("span", { class: "plan-label" }, "我的方案:", -1)),
13608
13609
  s(_e, {
@@ -13612,7 +13613,7 @@ ${k.map((B) => {
13612
13613
  onChange: ee
13613
13614
  }, {
13614
13615
  default: i(() => [
13615
- (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, {
13616
13617
  key: ye.value,
13617
13618
  value: ye.value,
13618
13619
  disabled: ye.disabled
@@ -13629,7 +13630,7 @@ ${k.map((B) => {
13629
13630
  theme: "default",
13630
13631
  variant: "outline",
13631
13632
  size: a.size,
13632
- onClick: Y,
13633
+ onClick: H,
13633
13634
  title: "高级筛选"
13634
13635
  }, {
13635
13636
  icon: i(() => [
@@ -13637,21 +13638,21 @@ ${k.map((B) => {
13637
13638
  ]),
13638
13639
  _: 1
13639
13640
  }, 8, ["size"])
13640
- ])) : H("", !0),
13641
+ ])) : Y("", !0),
13641
13642
  e("div", Fc, [
13642
- a.filterCount > 0 ? (l(), W(Be, {
13643
+ a.filterCount > 0 ? (l(), j(Be, {
13643
13644
  key: 0,
13644
13645
  theme: "primary",
13645
13646
  size: a.size,
13646
- onClick: Y,
13647
+ onClick: H,
13647
13648
  title: "高级筛选"
13648
13649
  }, {
13649
13650
  icon: i(() => [
13650
13651
  s(we, { name: "filter" })
13651
13652
  ]),
13652
13653
  _: 1
13653
- }, 8, ["size"])) : H("", !0),
13654
- a.filterCount > 0 ? (l(), W(Ne, {
13654
+ }, 8, ["size"])) : Y("", !0),
13655
+ a.filterCount > 0 ? (l(), j(Ne, {
13655
13656
  key: 1,
13656
13657
  content: oe.value,
13657
13658
  placement: "top"
@@ -13677,8 +13678,8 @@ ${k.map((B) => {
13677
13678
  }, 8, ["count"])
13678
13679
  ]),
13679
13680
  _: 1
13680
- }, 8, ["content"])) : H("", !0),
13681
- a.filterCount > 0 ? (l(), W(ce, {
13681
+ }, 8, ["content"])) : Y("", !0),
13682
+ a.filterCount > 0 ? (l(), j(ce, {
13682
13683
  key: 2,
13683
13684
  options: q.value,
13684
13685
  onClick: N,
@@ -13700,7 +13701,7 @@ ${k.map((B) => {
13700
13701
  }, 8, ["size"])
13701
13702
  ]),
13702
13703
  _: 1
13703
- }, 8, ["options"])) : H("", !0)
13704
+ }, 8, ["options"])) : Y("", !0)
13704
13705
  ]),
13705
13706
  s(uc, {
13706
13707
  visible: _.value,
@@ -13847,7 +13848,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13847
13848
  emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
13848
13849
  setup(a, { emit: te }) {
13849
13850
  var n;
13850
- 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({
13851
13852
  allowExternalShare: ((n = y.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
13852
13853
  collaboratorManagement: "org-only",
13853
13854
  copyPermission: "edit",
@@ -13929,7 +13930,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13929
13930
  Pe.warning("只有管理员才能修改权限设置");
13930
13931
  return;
13931
13932
  }
13932
- u("permission-settings-change", j.value), Pe.success("权限设置已保存"), N.value = !1;
13933
+ u("permission-settings-change", W.value), Pe.success("权限设置已保存"), N.value = !1;
13933
13934
  }, le = (T) => {
13934
13935
  console.log("点击协作者:", T);
13935
13936
  }, _e = (T) => {
@@ -13984,9 +13985,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13984
13985
  Pe.warning("请输入6位密码");
13985
13986
  return;
13986
13987
  }
13987
- Pe.success("密码设置成功"), Y.value = !1, console.log("链接密码:", E.value);
13988
+ Pe.success("密码设置成功"), H.value = !1, console.log("链接密码:", E.value);
13988
13989
  };
13989
- return ze(Y, (T) => {
13990
+ return ze(H, (T) => {
13990
13991
  T && !E.value && ke();
13991
13992
  }), (T, h) => {
13992
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");
@@ -14004,15 +14005,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14004
14005
  header: i(() => [
14005
14006
  e("div", Rc, [
14006
14007
  e("div", Ec, [
14007
- _.value ? (l(), W(Se, {
14008
+ _.value ? (l(), j(Se, {
14008
14009
  key: 0,
14009
14010
  name: "chevron-left",
14010
14011
  size: "18px",
14011
14012
  class: "cd-share-back-icon",
14012
14013
  onClick: b
14013
- })) : H("", !0),
14014
+ })) : Y("", !0),
14014
14015
  A(" " + V(a.title) + " ", 1),
14015
- !_.value && a.helpUrl ? (l(), W(Ye, {
14016
+ !_.value && a.helpUrl ? (l(), j(Ye, {
14016
14017
  key: 1,
14017
14018
  content: "查看详情"
14018
14019
  }, {
@@ -14024,11 +14025,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14024
14025
  })
14025
14026
  ]),
14026
14027
  _: 1
14027
- })) : H("", !0)
14028
+ })) : Y("", !0)
14028
14029
  ]),
14029
- _.value ? H("", !0) : (l(), o("div", Pc, [
14030
+ _.value ? Y("", !0) : (l(), o("div", Pc, [
14030
14031
  fa(T.$slots, "header-actions", {}, () => [
14031
- O.value === "read" ? (l(), W(ye, {
14032
+ O.value === "read" ? (l(), j(ye, {
14032
14033
  key: 0,
14033
14034
  variant: "text",
14034
14035
  size: "small",
@@ -14044,7 +14045,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14044
14045
  h[27] || (h[27] = A(" 申请编辑权限 ", -1))
14045
14046
  ]),
14046
14047
  _: 1
14047
- })) : O.value === "manage" ? (l(), W(ye, {
14048
+ })) : O.value === "manage" ? (l(), j(ye, {
14048
14049
  key: 1,
14049
14050
  variant: "text",
14050
14051
  size: "small",
@@ -14060,7 +14061,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14060
14061
  h[28] || (h[28] = A(" 权限设置 ", -1))
14061
14062
  ]),
14062
14063
  _: 1
14063
- })) : H("", !0)
14064
+ })) : Y("", !0)
14064
14065
  ], !0)
14065
14066
  ]))
14066
14067
  ])
@@ -14073,11 +14074,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14073
14074
  h[36] || (h[36] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14074
14075
  e("div", ef, [
14075
14076
  e("div", af, [
14076
- (ia = a.owner) != null && ia.avatar ? (l(), W(Q, {
14077
+ (ia = a.owner) != null && ia.avatar ? (l(), j(Q, {
14077
14078
  key: 0,
14078
14079
  image: a.owner.avatar,
14079
14080
  size: "medium"
14080
- }, null, 8, ["image"])) : (l(), W(Q, {
14081
+ }, null, 8, ["image"])) : (l(), j(Q, {
14081
14082
  key: 1,
14082
14083
  size: "medium"
14083
14084
  }, {
@@ -14091,7 +14092,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14091
14092
  }))
14092
14093
  ]),
14093
14094
  h[35] || (h[35] = e("div", { class: "cd-share-divider" }, null, -1)),
14094
- s(ca(dl), {
14095
+ s(ca(ul), {
14095
14096
  users: de.value,
14096
14097
  "avatar-size": 32,
14097
14098
  "max-display": 3,
@@ -14145,7 +14146,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14145
14146
  ])]),
14146
14147
  _: 1
14147
14148
  }, 8, ["modelValue"]),
14148
- D.value ? (l(), W(Ie, {
14149
+ D.value ? (l(), j(Ie, {
14149
14150
  key: 0,
14150
14151
  modelValue: q.value,
14151
14152
  "onUpdate:modelValue": h[11] || (h[11] = (Le) => q.value = Le),
@@ -14153,7 +14154,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14153
14154
  placeholder: "设置密码",
14154
14155
  size: "small",
14155
14156
  style: { width: "200px", "margin-left": "10px" }
14156
- }, null, 8, ["modelValue"])) : H("", !0)
14157
+ }, null, 8, ["modelValue"])) : Y("", !0)
14157
14158
  ]),
14158
14159
  s(Ve, {
14159
14160
  modelValue: ee.value,
@@ -14187,11 +14188,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14187
14188
  h[30] || (h[30] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14188
14189
  e("div", Tc, [
14189
14190
  e("div", Nc, [
14190
- (Me = a.owner) != null && Me.avatar ? (l(), W(Q, {
14191
+ (Me = a.owner) != null && Me.avatar ? (l(), j(Q, {
14191
14192
  key: 0,
14192
14193
  image: a.owner.avatar,
14193
14194
  size: "medium"
14194
- }, null, 8, ["image"])) : (l(), W(Q, {
14195
+ }, null, 8, ["image"])) : (l(), j(Q, {
14195
14196
  key: 1,
14196
14197
  size: "medium"
14197
14198
  }, {
@@ -14205,7 +14206,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14205
14206
  }))
14206
14207
  ]),
14207
14208
  h[29] || (h[29] = e("div", { class: "cd-share-divider" }, null, -1)),
14208
- s(ca(dl), {
14209
+ s(ca(ul), {
14209
14210
  users: de.value,
14210
14211
  "avatar-size": 32,
14211
14212
  "max-display": 3,
@@ -14321,7 +14322,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14321
14322
  default: i(() => [
14322
14323
  e("div", {
14323
14324
  class: xe(["cd-share-icon-btn", { "is-disabled": O.value === "read" }]),
14324
- 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))
14325
14326
  }, [
14326
14327
  s(Se, { name: "lock-on" })
14327
14328
  ], 2)
@@ -14331,7 +14332,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14331
14332
  ], !0)
14332
14333
  ])
14333
14334
  ])
14334
- ])) : H("", !0)
14335
+ ])) : Y("", !0)
14335
14336
  ]))
14336
14337
  ];
14337
14338
  }),
@@ -14353,8 +14354,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14353
14354
  e("div", df, [
14354
14355
  h[41] || (h[41] = e("div", { class: "cd-permission-item-label" }, "允许内容被分享到组织外", -1)),
14355
14356
  s(sa, {
14356
- modelValue: j.value.allowExternalShare,
14357
- "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),
14358
14359
  disabled: O.value !== "manage"
14359
14360
  }, null, 8, ["modelValue", "disabled"])
14360
14361
  ]),
@@ -14363,8 +14364,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14363
14364
  e("div", uf, [
14364
14365
  h[46] || (h[46] = e("div", { class: "cd-permission-section-title" }, "谁可以查看、添加、移除协作者", -1)),
14365
14366
  s(oa, {
14366
- modelValue: j.value.collaboratorManagement,
14367
- "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),
14368
14369
  disabled: O.value !== "manage"
14369
14370
  }, {
14370
14371
  default: i(() => [
@@ -14389,8 +14390,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14389
14390
  e("div", ff, [
14390
14391
  h[47] || (h[47] = e("div", { class: "cd-permission-item-label" }, "谁可以复制内容", -1)),
14391
14392
  s(ae, {
14392
- modelValue: j.value.copyPermission,
14393
- "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),
14394
14395
  options: R,
14395
14396
  disabled: O.value !== "manage",
14396
14397
  style: { width: "200px" }
@@ -14399,8 +14400,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14399
14400
  e("div", mf, [
14400
14401
  h[48] || (h[48] = e("div", { class: "cd-permission-item-label" }, "谁可以创建副本、打印和下载", -1)),
14401
14402
  s(ae, {
14402
- modelValue: j.value.downloadPermission,
14403
- "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),
14404
14405
  options: R,
14405
14406
  disabled: O.value !== "manage",
14406
14407
  style: { width: "200px" }
@@ -14409,8 +14410,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14409
14410
  e("div", vf, [
14410
14411
  h[49] || (h[49] = e("div", { class: "cd-permission-item-label" }, "谁可以评论", -1)),
14411
14412
  s(ae, {
14412
- modelValue: j.value.commentPermission,
14413
- "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),
14414
14415
  options: R,
14415
14416
  disabled: O.value !== "manage",
14416
14417
  style: { width: "200px" }
@@ -14422,8 +14423,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14422
14423
  e("div", gf, [
14423
14424
  h[51] || (h[51] = e("div", { class: "cd-permission-item-label" }, "谁可以查看访问者头像和点赞者头像", -1)),
14424
14425
  s(ae, {
14425
- modelValue: j.value.viewerAvatarsPermission,
14426
- "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),
14427
14428
  options: R,
14428
14429
  disabled: O.value !== "manage",
14429
14430
  style: { width: "200px" }
@@ -14470,11 +14471,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14470
14471
  e("div", bf, [
14471
14472
  e("div", yf, [
14472
14473
  e("div", _f, [
14473
- (Me = a.owner) != null && Me.avatar ? (l(), W(Q, {
14474
+ (Me = a.owner) != null && Me.avatar ? (l(), j(Q, {
14474
14475
  key: 0,
14475
14476
  image: a.owner.avatar,
14476
14477
  size: "small"
14477
- }, null, 8, ["image"])) : (l(), W(Q, {
14478
+ }, null, 8, ["image"])) : (l(), j(Q, {
14478
14479
  key: 1,
14479
14480
  size: "small"
14480
14481
  }, {
@@ -14497,11 +14498,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14497
14498
  class: "cd-collaborator-list-item"
14498
14499
  }, [
14499
14500
  e("div", Cf, [
14500
- je.avatar ? (l(), W(Q, {
14501
+ je.avatar ? (l(), j(Q, {
14501
14502
  key: 0,
14502
14503
  image: je.avatar,
14503
14504
  size: "small"
14504
- }, null, 8, ["image"])) : (l(), W(Q, {
14505
+ }, null, 8, ["image"])) : (l(), j(Q, {
14505
14506
  key: 1,
14506
14507
  size: "small"
14507
14508
  }, {
@@ -14514,7 +14515,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14514
14515
  ]),
14515
14516
  e("div", xf, [
14516
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 }, [
14517
- je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), W(ae, {
14518
+ je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), j(ae, {
14518
14519
  key: 1,
14519
14520
  value: je.permission,
14520
14521
  options: g.value,
@@ -14569,7 +14570,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14569
14570
  src: ue.value,
14570
14571
  alt: "分享二维码",
14571
14572
  class: "cd-qrcode-image"
14572
- }, null, 8, Mf)) : H("", !0),
14573
+ }, null, 8, Mf)) : Y("", !0),
14573
14574
  e("div", zf, V(m.value), 1),
14574
14575
  h[56] || (h[56] = e("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
14575
14576
  ])
@@ -14577,8 +14578,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14577
14578
  _: 1
14578
14579
  }, 8, ["visible"]),
14579
14580
  s(Ae, {
14580
- visible: Y.value,
14581
- "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),
14582
14583
  header: "设置链接密码",
14583
14584
  width: "450px",
14584
14585
  footer: !1,
@@ -14638,7 +14639,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14638
14639
  h[63] || (h[63] = e("div", { style: { flex: "1" } }, null, -1)),
14639
14640
  s(ye, {
14640
14641
  variant: "outline",
14641
- onClick: h[25] || (h[25] = (Me) => Y.value = !1)
14642
+ onClick: h[25] || (h[25] = (Me) => H.value = !1)
14642
14643
  }, {
14643
14644
  default: i(() => [...h[61] || (h[61] = [
14644
14645
  A("取消", -1)
@@ -14718,7 +14719,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14718
14719
  },
14719
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"],
14720
14721
  setup(a, { expose: te, emit: n }) {
14721
- var fl, ml;
14722
+ var ml, vl;
14722
14723
  const y = (t, f) => {
14723
14724
  var $;
14724
14725
  if (["rate", "tag", "Rate"].includes(t))
@@ -14854,7 +14855,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14854
14855
  };
14855
14856
  za(() => {
14856
14857
  ee(), window.addEventListener("resize", ee);
14857
- }), ul(() => {
14858
+ }), cl(() => {
14858
14859
  window.removeEventListener("resize", ee);
14859
14860
  });
14860
14861
  const N = ve(() => ae.value.length < 15), J = ve(() => {
@@ -14864,7 +14865,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14864
14865
  mode: "cell",
14865
14866
  showStatus: !0
14866
14867
  };
14867
- }), 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);
14868
14869
  let b = pa({});
14869
14870
  const z = ve(() => {
14870
14871
  var Ue, Ee;
@@ -15694,7 +15695,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15694
15695
  const $ = t.fid, w = { _originalId: $ };
15695
15696
  for (const [K, Z] of Object.entries(t))
15696
15697
  Z !== void 0 && (w[K] = Z);
15697
- 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;
15698
15699
  }, qa = ({ row: t, column: f }) => {
15699
15700
  if (N.value)
15700
15701
  if (t._isEmpty) {
@@ -15720,18 +15721,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15720
15721
  }
15721
15722
  }
15722
15723
  }, La = async () => {
15723
- if (!ge.value || Y.value.size === 0) {
15724
+ if (!ge.value || H.value.size === 0) {
15724
15725
  Pe.warning("没有需要保存的更改");
15725
15726
  return;
15726
15727
  }
15727
15728
  try {
15728
- const t = Array.from(Y.value.values()).map((f) => {
15729
+ const t = Array.from(H.value.values()).map((f) => {
15729
15730
  const $ = {};
15730
15731
  for (const [w, K] of Object.entries(f))
15731
15732
  K !== void 0 && ($[w] = K);
15732
15733
  return $;
15733
15734
  });
15734
- 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();
15735
15736
  } catch {
15736
15737
  Pe.error("保存失败");
15737
15738
  }
@@ -15954,7 +15955,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15954
15955
  da.value.has(f) || da.value.set(f, /* @__PURE__ */ new Set());
15955
15956
  const w = da.value.get(f);
15956
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));
15957
- }, cl = (t, f) => {
15958
+ }, fl = (t, f) => {
15958
15959
  var w;
15959
15960
  const $ = String(t.id);
15960
15961
  return ((w = da.value.get(f)) == null ? void 0 : w.has($)) || !1;
@@ -16017,7 +16018,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16017
16018
  });
16018
16019
  }
16019
16020
  }), (t, f) => {
16020
- var vl, pl, gl, hl, bl;
16021
+ var pl, gl, hl, bl, yl;
16021
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");
16022
16023
  return l(), o("div", Pf, [
16023
16024
  e("div", If, [
@@ -16046,13 +16047,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16046
16047
  onColorFilterChange: al,
16047
16048
  onColorFilterClear: ll
16048
16049
  }, null, 8, ["field-options", "select-options", "plan-filter-options"])
16049
- ])) : H("", !0)
16050
+ ])) : Y("", !0)
16050
16051
  ]),
16051
16052
  e("div", Nf, [
16052
16053
  (l(!0), o(fe, null, be(_.value.btnsList || [], (he) => (l(), o(fe, {
16053
16054
  key: he.label
16054
16055
  }, [
16055
- he.children && he.children.length > 0 ? (l(), W(Z, {
16056
+ he.children && he.children.length > 0 ? (l(), j(Z, {
16056
16057
  key: 0,
16057
16058
  onClick: je,
16058
16059
  "overlay-class-name": "filter-dropdown"
@@ -16085,7 +16086,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16085
16086
  onClick: f[0] || (f[0] = (Je) => je({ value: Je.value }))
16086
16087
  }, {
16087
16088
  default: i(() => [
16088
- (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, {
16089
16090
  key: Je.value || Math.random(),
16090
16091
  value: Je.value,
16091
16092
  disabled: Je.disabled,
@@ -16101,7 +16102,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16101
16102
  }, 1024)
16102
16103
  ]),
16103
16104
  _: 2
16104
- }, 1024)) : he.show && !T(he.value) ? (l(), W($, {
16105
+ }, 1024)) : he.show && !T(he.value) ? (l(), j($, {
16105
16106
  key: 1,
16106
16107
  variant: "outline",
16107
16108
  size: "small",
@@ -16118,9 +16119,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16118
16119
  fn: i(() => []),
16119
16120
  key: "0"
16120
16121
  } : void 0
16121
- ]), 1032, ["onClick"])) : H("", !0)
16122
+ ]), 1032, ["onClick"])) : Y("", !0)
16122
16123
  ], 64))), 128)),
16123
- (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($, {
16124
16125
  variant: "outline",
16125
16126
  size: "small",
16126
16127
  key: he.value,
@@ -16140,7 +16141,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16140
16141
  [Cl, he.show]
16141
16142
  ])), 128)),
16142
16143
  fa(t.$slots, "toolbar-right", {}, void 0, !0),
16143
- tl.value ? (l(), W($, {
16144
+ tl.value ? (l(), j($, {
16144
16145
  key: 0,
16145
16146
  variant: "outline",
16146
16147
  size: "small",
@@ -16154,7 +16155,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16154
16155
  f[21] || (f[21] = A(" 下推 ", -1))
16155
16156
  ]),
16156
16157
  _: 1
16157
- })) : H("", !0)
16158
+ })) : Y("", !0)
16158
16159
  ])
16159
16160
  ]),
16160
16161
  s($e, {
@@ -16207,7 +16208,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16207
16208
  default: i(() => {
16208
16209
  var he;
16209
16210
  return [
16210
- (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, {
16211
16212
  key: Je.formId,
16212
16213
  value: Je
16213
16214
  }, {
@@ -16281,19 +16282,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16281
16282
  ]),
16282
16283
  _: 1
16283
16284
  }, 8, ["visible"]),
16284
- B.value ? (l(), W(ca(Rl), {
16285
+ B.value ? (l(), j(ca(Rl), {
16285
16286
  key: 0,
16286
16287
  visible: B.value,
16287
16288
  "onUpdate:visible": f[9] || (f[9] = (he) => B.value = he),
16288
16289
  title: "单据分享",
16289
16290
  shareUrl: m.shareUrl || "",
16290
- currentPermission: ((vl = m.shareConfig) == null ? void 0 : vl.currentPermission) || "manage",
16291
- owner: (pl = m.shareConfig) == null ? void 0 : pl.owner,
16292
- collaborators: ((gl = m.shareConfig) == null ? void 0 : gl.collaborators) || [],
16293
- tabs: ((hl = m.shareConfig) == null ? void 0 : hl.tabs) || [],
16294
- 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) || [],
16295
16296
  onConfirm: va
16296
- }, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : H("", !0),
16297
+ }, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : Y("", !0),
16297
16298
  e("div", {
16298
16299
  class: "cd-form-table",
16299
16300
  ref_key: "tableContainerRef",
@@ -16319,7 +16320,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16319
16320
  }
16320
16321
  }), ba({
16321
16322
  checkbox_footer: i(({ $rowIndex: he }) => [
16322
- 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)
16323
16324
  ]),
16324
16325
  nameGroupContent: i(({ groupContent: he }) => [
16325
16326
  s(We, {
@@ -16340,13 +16341,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16340
16341
  (l(!0), o(fe, null, be(Oa.value, (Je) => (l(), o(fe, {
16341
16342
  key: `content_${Je.vModel}`
16342
16343
  }, [
16343
- cl(he, Je.vModel) ? (l(), o("div", Jf, [
16344
+ fl(he, Je.vModel) ? (l(), o("div", Jf, [
16344
16345
  e("div", Kf, V(Je.label), 1),
16345
16346
  s(qe, Fa({ ref_for: !0 }, Il, {
16346
16347
  data: he[Je.vModel] || [],
16347
16348
  columns: Pl(Je)
16348
16349
  }), null, 16, ["data", "columns"])
16349
- ])) : H("", !0)
16350
+ ])) : Y("", !0)
16350
16351
  ], 64))), 128))
16351
16352
  ])
16352
16353
  ]),
@@ -16363,7 +16364,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16363
16364
  }, {
16364
16365
  icon: i(() => [
16365
16366
  e("i", {
16366
- 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")
16367
16368
  }, null, 2)
16368
16369
  ]),
16369
16370
  default: i(() => {
@@ -16398,7 +16399,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16398
16399
  onChange: Ya,
16399
16400
  onPageSizeChange: Ua
16400
16401
  }, null, 8, ["modelValue", "pageSize", "total", "page-size-options"])
16401
- ])) : H("", !0),
16402
+ ])) : Y("", !0),
16402
16403
  s($a, {
16403
16404
  visible: de.value,
16404
16405
  "onUpdate:visible": f[18] || (f[18] = (he) => de.value = he),
@@ -16437,7 +16438,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16437
16438
  fn: i(() => [
16438
16439
  s(ua, null, {
16439
16440
  default: i(() => [
16440
- a.formData.hasCancelBtn ? (l(), W($, {
16441
+ a.formData.hasCancelBtn ? (l(), j($, {
16441
16442
  key: 0,
16442
16443
  theme: "default",
16443
16444
  onClick: Aa
@@ -16446,8 +16447,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16446
16447
  A(V(a.formData.cancelButtonText), 1)
16447
16448
  ]),
16448
16449
  _: 1
16449
- })) : H("", !0),
16450
- a.formData.hasConfirmBtn ? (l(), W($, {
16450
+ })) : Y("", !0),
16451
+ a.formData.hasConfirmBtn ? (l(), j($, {
16451
16452
  key: 1,
16452
16453
  theme: "primary",
16453
16454
  onClick: wa
@@ -16456,8 +16457,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16456
16457
  A(V(a.formData.confirmButtonText), 1)
16457
16458
  ]),
16458
16459
  _: 1
16459
- })) : H("", !0),
16460
- a.formData.hasConfirmAndAddBtn && L.value === "add" ? (l(), W($, {
16460
+ })) : Y("", !0),
16461
+ a.formData.hasConfirmAndAddBtn && L.value === "add" ? (l(), j($, {
16461
16462
  key: 2,
16462
16463
  theme: "primary",
16463
16464
  variant: "outline",
@@ -16467,7 +16468,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16467
16468
  A(" 保存并继续 ", -1)
16468
16469
  ])]),
16469
16470
  _: 1
16470
- })) : H("", !0)
16471
+ })) : Y("", !0)
16471
16472
  ]),
16472
16473
  _: 1
16473
16474
  })
@@ -16745,16 +16746,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16745
16746
  placeholder: S.placeholder || `请输入${S.label}`
16746
16747
  } : I(S));
16747
16748
  y("save", d), u.value = !1, Pe.success("字段配置已保存");
16748
- }, Y = () => {
16749
+ }, H = () => {
16749
16750
  u.value = !1;
16750
16751
  }, E = () => {
16751
16752
  y("advanced-edit");
16752
- }, j = () => {
16753
+ }, W = () => {
16753
16754
  y("advanced-design");
16754
16755
  };
16755
16756
  return (d, S) => {
16756
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");
16757
- return l(), W(L, {
16758
+ return l(), j(L, {
16758
16759
  visible: u.value,
16759
16760
  "onUpdate:visible": S[0] || (S[0] = (x) => u.value = x),
16760
16761
  header: "字段管理",
@@ -16762,7 +16763,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16762
16763
  placement: "center",
16763
16764
  footer: !1,
16764
16765
  class: "field-manage-dialog",
16765
- onClose: Y
16766
+ onClose: H
16766
16767
  }, {
16767
16768
  header: i(() => [
16768
16769
  e("div", Qf, [
@@ -16802,7 +16803,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16802
16803
  s(R, null, {
16803
16804
  default: i(() => [
16804
16805
  s(g, {
16805
- onClick: j,
16806
+ onClick: W,
16806
16807
  theme: "warning",
16807
16808
  size: "small"
16808
16809
  }, {
@@ -16828,7 +16829,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16828
16829
  }),
16829
16830
  s(g, {
16830
16831
  variant: "outline",
16831
- onClick: Y,
16832
+ onClick: H,
16832
16833
  size: "small"
16833
16834
  }, {
16834
16835
  default: i(() => [...S[10] || (S[10] = [