cd-form 2.0.18 → 2.0.19

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
@@ -11,7 +11,7 @@ const Da = /* @__PURE__ */ Ge({
11
11
  className: { default: "" }
12
12
  },
13
13
  setup(a) {
14
- const le = a, n = me(() => Math.max(1, Math.min(24, le.span)));
14
+ const ae = a, n = me(() => Math.max(1, Math.min(24, ae.span)));
15
15
  return (y, u) => {
16
16
  const c = M("t-col");
17
17
  return l(), Y(c, {
@@ -30,9 +30,9 @@ const Da = /* @__PURE__ */ Ge({
30
30
  }
31
31
  });
32
32
  function ta(a) {
33
- return a.install = (le) => {
33
+ return a.install = (ae) => {
34
34
  const n = a.name || a.__name;
35
- n && le.component(n, a);
35
+ n && ae.component(n, a);
36
36
  }, a;
37
37
  }
38
38
  const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-wrapper" }, Yl = ["src", "alt"], Hl = { class: "cd-usercard__info" }, Jl = { class: "cd-usercard__name" }, Kl = {
@@ -110,10 +110,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
110
110
  maxTags: { default: 4 }
111
111
  },
112
112
  emits: ["click", "chat", "phone", "email", "more"],
113
- setup(a, { emit: le }) {
114
- const n = a, y = le, u = me(() => n.tags ? n.tags.slice(0, n.maxTags) : []), c = () => {
113
+ setup(a, { emit: ae }) {
114
+ const n = a, y = ae, u = me(() => n.tags ? n.tags.slice(0, n.maxTags) : []), c = () => {
115
115
  n.clickable && y("click", n);
116
- }, m = () => {
116
+ }, v = () => {
117
117
  y("chat", n);
118
118
  }, R = () => {
119
119
  y("phone", n);
@@ -179,7 +179,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
179
179
  theme: "default",
180
180
  variant: "text",
181
181
  shape: "circle",
182
- onClick: Ze(m, ["stop"])
182
+ onClick: Ze(v, ["stop"])
183
183
  }, {
184
184
  icon: i(() => [...L[0] || (L[0] = [
185
185
  e("i", { class: "ri-message-3-line" }, null, -1)
@@ -282,9 +282,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
282
282
  ], 2);
283
283
  };
284
284
  }
285
- }), aa = (a, le) => {
285
+ }), aa = (a, ae) => {
286
286
  const n = a.__vccOpts || a;
287
- for (const [y, u] of le)
287
+ for (const [y, u] of ae)
288
288
  n[y] = u;
289
289
  return n;
290
290
  }, yt = /* @__PURE__ */ aa(bt, [["__scopeId", "data-v-df37fd5c"]]), _t = { class: "avatar-crop-container" }, kt = ["src"], Ct = { class: "crop-preview" }, wt = { class: "crop-footer" }, xt = /* @__PURE__ */ Ge({
@@ -295,8 +295,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
295
295
  imageSrc: {}
296
296
  },
297
297
  emits: ["update:visible", "confirm", "cancel"],
298
- setup(a, { emit: le }) {
299
- const n = a, y = le, u = z(n.visible), c = z(null), m = z(null), R = z(null), k = z(null), w = z({
298
+ setup(a, { emit: ae }) {
299
+ const n = a, y = ae, u = z(n.visible), c = z(null), v = z(null), R = z(null), k = z(null), w = z({
300
300
  x: 0,
301
301
  y: 0,
302
302
  width: 200,
@@ -344,8 +344,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
344
344
  )`
345
345
  };
346
346
  }), j = () => {
347
- if (!c.value || !m.value) return;
348
- const _ = c.value, F = m.value, ue = F.offsetWidth, se = F.offsetHeight, te = _.naturalWidth / _.naturalHeight, D = ue / se;
347
+ if (!c.value || !v.value) return;
348
+ const _ = c.value, F = v.value, ue = F.offsetWidth, se = F.offsetHeight, te = _.naturalWidth / _.naturalHeight, D = ue / se;
349
349
  let T, b;
350
350
  te > D ? (T = ue, b = ue / te) : (b = se, T = se * te), d.value = {
351
351
  width: T,
@@ -438,7 +438,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
438
438
  e("div", {
439
439
  class: "crop-area",
440
440
  ref_key: "cropAreaRef",
441
- ref: m
441
+ ref: v
442
442
  }, [
443
443
  e("div", {
444
444
  class: "image-wrapper",
@@ -592,11 +592,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
592
592
  inlineEdit: { type: Boolean, default: !1 }
593
593
  },
594
594
  emits: ["edit", "email", "update:modelValue", "field-change", "avatar-upload"],
595
- setup(a, { emit: le }) {
596
- const n = a, y = le, u = z(null), c = z(""), m = z(null), R = z(null), k = z(!1), w = z(""), d = (j, r) => {
595
+ setup(a, { emit: ae }) {
596
+ const n = a, y = ae, u = z(null), c = z(""), v = z(null), R = z(null), k = z(!1), w = z(""), d = (j, r) => {
597
597
  u.value = j, c.value = r, na(() => {
598
598
  var S;
599
- return (S = m.value) == null ? void 0 : S.focus();
599
+ return (S = v.value) == null ? void 0 : S.focus();
600
600
  });
601
601
  }, I = () => {
602
602
  if (u.value) {
@@ -687,7 +687,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
687
687
  onBlur: I,
688
688
  onKeyup: Fa(I, ["enter"]),
689
689
  ref_key: "editInput",
690
- ref: m
690
+ ref: v
691
691
  }, null, 544), [
692
692
  [Ca, c.value]
693
693
  ]),
@@ -749,7 +749,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
749
749
  onBlur: I,
750
750
  onKeyup: Fa(I, ["enter"]),
751
751
  ref_key: "editInput",
752
- ref: m
752
+ ref: v
753
753
  }, null, 544)), [
754
754
  [Ca, c.value]
755
755
  ]) : a.inlineEdit ? (l(), o("span", {
@@ -775,7 +775,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
775
775
  onBlur: I,
776
776
  onKeyup: Fa(I, ["enter"]),
777
777
  ref_key: "editInput",
778
- ref: m
778
+ ref: v
779
779
  }, null, 544)), [
780
780
  [Ca, c.value]
781
781
  ]) : a.inlineEdit ? (l(), o("span", {
@@ -797,7 +797,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
797
797
  onBlur: I,
798
798
  onKeyup: Fa(I, ["enter"]),
799
799
  ref_key: "editInput",
800
- ref: m
800
+ ref: v
801
801
  }, null, 544)), [
802
802
  [Ca, c.value]
803
803
  ]) : a.inlineEdit ? (l(), o("span", {
@@ -832,7 +832,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
832
832
  onBlur: I,
833
833
  onKeyup: Fa(I, ["enter"]),
834
834
  ref_key: "editInput",
835
- ref: m
835
+ ref: v
836
836
  }, null, 544)), [
837
837
  [Ca, c.value]
838
838
  ]) : a.inlineEdit ? (l(), o("div", {
@@ -899,14 +899,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
899
899
  inlineEdit: { type: Boolean, default: !1 }
900
900
  },
901
901
  emits: ["update:visible", "close", "nav-click", "edit", "field-change", "avatar-upload", "logout"],
902
- setup(a, { emit: le }) {
903
- const n = a, y = le, u = z(n.visible), c = z(n.defaultPanel);
902
+ setup(a, { emit: ae }) {
903
+ const n = a, y = ae, u = z(n.visible), c = z(n.defaultPanel);
904
904
  ze(() => n.visible, (I) => {
905
905
  u.value = I, I && (c.value = n.defaultPanel);
906
906
  }), ze(u, (I) => {
907
907
  y("update:visible", I);
908
908
  });
909
- const m = () => {
909
+ const v = () => {
910
910
  y("close");
911
911
  }, R = (I) => {
912
912
  c.value = I.key, y("nav-click", I);
@@ -927,7 +927,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
927
927
  footer: !1,
928
928
  attach: "body",
929
929
  class: "cd-profile-dialog",
930
- onClose: m
930
+ onClose: v
931
931
  }, {
932
932
  default: i(() => [
933
933
  e("div", {
@@ -1008,19 +1008,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1008
1008
  inlineEdit: { type: Boolean, default: !1 }
1009
1009
  },
1010
1010
  emits: ["status-change", "menu-click", "edit", "field-change", "avatar-upload", "logout"],
1011
- setup(a, { emit: le }) {
1012
- const n = a, y = le, u = z(!1), c = z(!1), m = z("profile"), R = z(!1), k = z(n.status), w = me(() => k.value === "dnd" ? "status-badge--dnd" : k.value === "mute" ? "status-badge--mute" : "status-badge--online"), d = me(() => k.value === "dnd" ? "请勿打扰" : k.value === "mute" ? "静音" : "在线"), I = me(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), A = me(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), L = me(() => n.theme !== "light" ? "#fff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), Q = me(() => getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), B = () => {
1011
+ setup(a, { emit: ae }) {
1012
+ const n = a, y = ae, u = z(!1), c = z(!1), v = z("profile"), R = z(!1), k = z(n.status), w = me(() => k.value === "dnd" ? "status-badge--dnd" : k.value === "mute" ? "status-badge--mute" : "status-badge--online"), d = me(() => k.value === "dnd" ? "请勿打扰" : k.value === "mute" ? "静音" : "在线"), I = me(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), A = me(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), L = me(() => n.theme !== "light" ? "#fff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), Q = me(() => getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), B = () => {
1013
1013
  R.value = !R.value;
1014
1014
  }, G = (g) => {
1015
1015
  k.value = g, R.value = !1, y("status-change", g);
1016
1016
  }, he = () => {
1017
- m.value = "profile", c.value = !0, setTimeout(() => {
1017
+ v.value = "profile", c.value = !0, setTimeout(() => {
1018
1018
  u.value = !1;
1019
1019
  }, 100);
1020
1020
  }, J = (g) => {
1021
- u.value = !1, g.panel && (m.value = g.panel, c.value = !0), y("menu-click", g);
1021
+ u.value = !1, g.panel && (v.value = g.panel, c.value = !0), y("menu-click", g);
1022
1022
  }, P = (g) => {
1023
- m.value = g.key;
1023
+ v.value = g.key;
1024
1024
  }, j = () => {
1025
1025
  y("edit");
1026
1026
  }, r = (g, E) => {
@@ -1150,7 +1150,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1150
1150
  "onUpdate:visible": E[4] || (E[4] = (re) => c.value = re),
1151
1151
  "profile-data": a.profileData,
1152
1152
  "nav-items": a.menuItems,
1153
- "default-panel": m.value,
1153
+ "default-panel": v.value,
1154
1154
  editable: a.editable,
1155
1155
  "inline-edit": a.inlineEdit,
1156
1156
  "show-logout": !1,
@@ -1212,9 +1212,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1212
1212
  multiple: { type: Boolean, default: !0 }
1213
1213
  },
1214
1214
  emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
1215
- setup(a, { expose: le, emit: n }) {
1215
+ setup(a, { expose: ae, emit: n }) {
1216
1216
  var y, u;
1217
- const c = a, m = n, R = z(c.visible), k = z(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = z(null), d = z(""), I = z([]), A = z(/* @__PURE__ */ new Map()), L = z({}), Q = z(!1), B = z(!1), G = z([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), S = me(() => c.dialogWidth), g = z({});
1217
+ const c = a, v = n, R = z(c.visible), k = z(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = z(null), d = z(""), I = z([]), A = z(/* @__PURE__ */ new Map()), L = z({}), Q = z(!1), B = z(!1), G = z([]), he = me(() => c.tabs || []), J = me(() => c.organizations || []), P = me(() => c.tips || ""), j = me(() => c.showSearch), r = me(() => c.showOrg), S = me(() => c.dialogWidth), g = z({});
1218
1218
  ze(() => c.tabs, (ce) => {
1219
1219
  if (ce && ce.length > 0) {
1220
1220
  const N = {};
@@ -1237,7 +1237,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1237
1237
  }, { deep: !0 }), ze(() => c.visible, (ce) => {
1238
1238
  R.value = ce, ce && (E(), c.organizations.length > 0 && !w.value && (w.value = c.organizations[0].id));
1239
1239
  }), ze(R, (ce) => {
1240
- m("update:visible", ce);
1240
+ v("update:visible", ce);
1241
1241
  });
1242
1242
  function O(ce, N) {
1243
1243
  N && (L.value[ce] = N);
@@ -1265,7 +1265,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1265
1265
  const N = {};
1266
1266
  c.tabs.forEach((h) => {
1267
1267
  N[h.key] = [];
1268
- }), g.value = N, m("org-change", ce);
1268
+ }), g.value = N, v("org-change", ce);
1269
1269
  };
1270
1270
  let ue = null;
1271
1271
  const se = () => {
@@ -1279,7 +1279,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1279
1279
  const ce = (N) => {
1280
1280
  G.value = N.map((h) => ({ ...h, isUser: !0 })), B.value = !1;
1281
1281
  };
1282
- m("search", { keyword: d.value, orgId: w.value || void 0, callback: ce });
1282
+ v("search", { keyword: d.value, orgId: w.value || void 0, callback: ce });
1283
1283
  }, D = () => {
1284
1284
  ue && (clearTimeout(ue), ue = null), Q.value = !1, d.value = "", G.value = [], B.value = !1;
1285
1285
  }, T = (ce) => {
@@ -1300,7 +1300,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1300
1300
  if (Ue !== void 0) {
1301
1301
  if (Ye.checked) {
1302
1302
  c.multiple || (I.value = [], A.value.clear());
1303
- const Ne = c.tabs.find((Ee) => Ee.key === k.value), Me = Ne ? Ne.name.replace(/^按/, "") : "";
1303
+ const Be = c.tabs.find((Ee) => Ee.key === k.value), Me = Be ? Be.name.replace(/^按/, "") : "";
1304
1304
  W(Ue, { ...Ye.data, typeName: Me, orgId: w.value }), !c.multiple && (Fe = Ye.data) != null && Fe.isUser && ge();
1305
1305
  } else
1306
1306
  x(Ue);
@@ -1321,11 +1321,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1321
1321
  }
1322
1322
  async function be(ce, N) {
1323
1323
  const h = ce.value, Fe = L.value[N];
1324
- m("load-users", { tabKey: N, nodeId: h, node: ce, callback: async (Ye) => {
1324
+ v("load-users", { tabKey: N, nodeId: h, node: ce, callback: async (Ye) => {
1325
1325
  if (Ye.length > 0) {
1326
1326
  const ke = Ye.map((ee) => {
1327
- const { id: Ue, name: Ne, ...Me } = ee;
1328
- return { ...Me, id: Ue, name: ee.displayName || Ne, isUser: !0 };
1327
+ const { id: Ue, name: Be, ...Me } = ee;
1328
+ return { ...Me, id: Ue, name: ee.displayName || Be, isUser: !0 };
1329
1329
  }), X = g.value[N];
1330
1330
  if (X && ie(X, h, ke), Fe) {
1331
1331
  Fe.appendTo(h, ke), ce.data.loaded = !0, await na();
@@ -1349,11 +1349,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1349
1349
  }, Ce = () => {
1350
1350
  I.value = [], A.value.clear();
1351
1351
  }, ge = () => {
1352
- m("update:modelValue", I.value), m("confirm", de.value), R.value = !1;
1352
+ v("update:modelValue", I.value), v("confirm", de.value), R.value = !1;
1353
1353
  }, Ae = () => {
1354
1354
  R.value = !1;
1355
1355
  };
1356
- return le({
1356
+ return ae({
1357
1357
  clearSelection: Ce,
1358
1358
  appendUsers: (ce, N, h) => {
1359
1359
  const Fe = L.value[ce];
@@ -1366,7 +1366,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1366
1366
  }
1367
1367
  }
1368
1368
  }), (ce, N) => {
1369
- const h = M("t-icon"), Fe = M("t-option"), Ye = M("t-select"), ke = M("t-input"), X = M("t-button"), ee = M("t-loading"), Ue = M("t-checkbox"), Ne = M("t-tree"), Me = M("t-tab-panel"), Ee = M("t-tabs"), ra = M("t-dialog");
1369
+ const h = M("t-icon"), Fe = M("t-option"), Ye = M("t-select"), ke = M("t-input"), X = M("t-button"), ee = M("t-loading"), Ue = M("t-checkbox"), Be = M("t-tree"), Me = M("t-tab-panel"), Ee = M("t-tabs"), ra = M("t-dialog");
1370
1370
  return l(), Y(ra, {
1371
1371
  visible: R.value,
1372
1372
  "onUpdate:visible": N[4] || (N[4] = (oe) => R.value = oe),
@@ -1485,7 +1485,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1485
1485
  var ia;
1486
1486
  return [
1487
1487
  e("div", Yn, [
1488
- ((ia = g.value[oe.key]) == null ? void 0 : ia.length) > 0 ? (l(), Y(Ne, {
1488
+ ((ia = g.value[oe.key]) == null ? void 0 : ia.length) > 0 ? (l(), Y(Be, {
1489
1489
  key: 0,
1490
1490
  ref_for: !0,
1491
1491
  ref: (De) => O(oe.key, De),
@@ -1613,9 +1613,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1613
1613
  }, 8, ["visible", "width"]);
1614
1614
  };
1615
1615
  }
1616
- }), Sl = (a, le) => {
1616
+ }), Sl = (a, ae) => {
1617
1617
  const n = a.__vccOpts || a;
1618
- for (const [y, u] of le)
1618
+ for (const [y, u] of ae)
1619
1619
  n[y] = u;
1620
1620
  return n;
1621
1621
  }, Ml = /* @__PURE__ */ Sl(fo, [["__scopeId", "data-v-1e0585c3"]]), mo = { class: "cd-input-select" }, vo = { class: "cd-input-select__option-content" }, po = {
@@ -1639,8 +1639,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1639
1639
  showSelector: { type: Boolean, default: !0 }
1640
1640
  },
1641
1641
  emits: ["update:modelValue", "search", "load-users"],
1642
- setup(a, { emit: le }) {
1643
- const n = a, y = le, u = z(!1), c = z([]), m = z(void 0), R = z(!1), k = z([]), w = z([]), d = z(!1), I = me(() => {
1642
+ setup(a, { emit: ae }) {
1643
+ const n = a, y = ae, u = z(!1), c = z([]), v = z(void 0), R = z(!1), k = z([]), w = z([]), d = z(!1), I = me(() => {
1644
1644
  const g = new Set(w.value.map((E) => E.id));
1645
1645
  return [
1646
1646
  ...w.value,
@@ -1721,14 +1721,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1721
1721
  });
1722
1722
  };
1723
1723
  return ze(() => n.modelValue, (g) => {
1724
- n.multiple ? m.value = g.map((E) => E.id) : m.value = g.length > 0 ? g[0].id : void 0, k.value = g.map((E) => E.id), w.value = g;
1724
+ n.multiple ? v.value = g.map((E) => E.id) : v.value = g.length > 0 ? g[0].id : void 0, k.value = g.map((E) => E.id), w.value = g;
1725
1725
  }, { immediate: !0, deep: !0 }), (g, E) => {
1726
1726
  const O = M("t-icon"), re = M("t-tag"), de = M("t-option"), W = M("t-select");
1727
1727
  return l(), o("div", mo, [
1728
1728
  s(W, {
1729
1729
  ref: "selectRef",
1730
- modelValue: m.value,
1731
- "onUpdate:modelValue": E[0] || (E[0] = (x) => m.value = x),
1730
+ modelValue: v.value,
1731
+ "onUpdate:modelValue": E[0] || (E[0] = (x) => v.value = x),
1732
1732
  multiple: a.multiple,
1733
1733
  placeholder: a.placeholder,
1734
1734
  filterable: !0,
@@ -1887,12 +1887,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1887
1887
  deptMembersData: {}
1888
1888
  },
1889
1889
  emits: ["user-click", "action", "email-click", "mobile-view", "person-select", "load-users", "search", "dept-click"],
1890
- setup(a, { emit: le }) {
1890
+ setup(a, { emit: ae }) {
1891
1891
  Ol((T) => ({
1892
1892
  v2e8fe560: `${G.value}px`,
1893
1893
  v959986c2: `-${G.value}px`
1894
1894
  }));
1895
- const n = a, y = le, u = z(!1), c = z(null), m = z("bottom"), R = z({}), k = z(!1), w = z(!1), d = z([]), I = z(!1), A = z(null), L = z({}), Q = z([]), B = me(() => ({
1895
+ const n = a, y = ae, u = z(!1), c = z(null), v = z("bottom"), R = z({}), k = z(!1), w = z(!1), d = z([]), I = z(!1), A = z(null), L = z({}), Q = z([]), B = me(() => ({
1896
1896
  width: `${n.avatarSize}px`,
1897
1897
  height: `${n.avatarSize}px`,
1898
1898
  fontSize: `${Math.floor(n.avatarSize / 3)}px`
@@ -1903,7 +1903,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1903
1903
  }
1904
1904
  c.value = T;
1905
1905
  const ie = b.currentTarget.getBoundingClientRect(), we = window.innerHeight - ie.bottom < 400 ? "top" : "bottom";
1906
- m.value = we;
1906
+ v.value = we;
1907
1907
  const Ce = 400, ge = 500, Ae = 12;
1908
1908
  let ce = 0, N = ie.left + ie.width / 2 - Ce / 2;
1909
1909
  we === "bottom" ? ce = ie.bottom + Ae : ce = ie.top - ge - Ae, N < 10 && (N = 10), N + Ce > window.innerWidth - 10 && (N = window.innerWidth - Ce - 10), ce < 10 && (ce = 10), ce + ge > window.innerHeight - 10 && (ce = window.innerHeight - ge - 10), R.value = {
@@ -2305,17 +2305,17 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2305
2305
  style: { default: () => ({}) }
2306
2306
  },
2307
2307
  emits: ["update:modelValue", "change"],
2308
- setup(a, { emit: le }) {
2309
- const n = a, y = le, u = z(!1), c = z(null), m = z(n.modelValue);
2308
+ setup(a, { emit: ae }) {
2309
+ const n = a, y = ae, u = z(!1), c = z(null), v = z(n.modelValue);
2310
2310
  za(() => {
2311
2311
  n.languages.forEach((A) => {
2312
2312
  new Image().src = A.icon;
2313
2313
  });
2314
2314
  });
2315
- const R = me(() => n.languages), k = me(() => R.value.find((A) => A.key === m.value)), w = () => {
2315
+ const R = me(() => n.languages), k = me(() => R.value.find((A) => A.key === v.value)), w = () => {
2316
2316
  u.value = !u.value;
2317
2317
  }, d = (A) => {
2318
- m.value = A, y("update:modelValue", A), y("change", A), u.value = !1;
2318
+ v.value = A, y("update:modelValue", A), y("change", A), u.value = !1;
2319
2319
  }, I = (A) => {
2320
2320
  c.value && !c.value.contains(A.target) && (u.value = !1);
2321
2321
  };
@@ -2357,7 +2357,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2357
2357
  }, [
2358
2358
  (l(!0), o(fe, null, _e(R.value, (Q) => (l(), o("div", {
2359
2359
  key: Q.key,
2360
- class: Ve(["language-item", { active: Q.key === m.value }]),
2360
+ class: Ve(["language-item", { active: Q.key === v.value }]),
2361
2361
  onClick: (B) => d(Q.key)
2362
2362
  }, [
2363
2363
  e("img", {
@@ -2367,7 +2367,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2367
2367
  class: "flag-icon"
2368
2368
  }, null, 8, di),
2369
2369
  e("span", ui, V(Q.label), 1),
2370
- Q.key === m.value ? (l(), o("svg", ci, [...L[3] || (L[3] = [
2370
+ Q.key === v.value ? (l(), o("svg", ci, [...L[3] || (L[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
2372
  ])])) : H("", !0)
2373
2373
  ], 10, ri))), 128))
@@ -2390,8 +2390,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2390
2390
  phoneReadonly: { type: Boolean, default: !0 }
2391
2391
  },
2392
2392
  emits: ["update:visible", "submit", "send-code"],
2393
- setup(a, { emit: le }) {
2394
- const n = a, y = le, u = z(n.visible), c = z("password"), m = z(0), R = pa({
2393
+ setup(a, { emit: ae }) {
2394
+ const n = a, y = ae, u = z(n.visible), c = z("password"), v = z(0), R = pa({
2395
2395
  oldPassword: "",
2396
2396
  newPassword: "",
2397
2397
  confirmPassword: "",
@@ -2399,7 +2399,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2399
2399
  verifyCode: ""
2400
2400
  });
2401
2401
  ze(() => n.visible, (I) => {
2402
- u.value = I, I && (R.oldPassword = "", R.newPassword = "", R.confirmPassword = "", R.phone = n.phone, R.verifyCode = "", c.value = "password", m.value = 0);
2402
+ u.value = I, I && (R.oldPassword = "", R.newPassword = "", R.confirmPassword = "", R.phone = n.phone, R.verifyCode = "", c.value = "password", v.value = 0);
2403
2403
  }), ze(u, (I) => {
2404
2404
  y("update:visible", I);
2405
2405
  }), ze(() => n.phone, (I) => {
@@ -2412,9 +2412,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2412
2412
  alert("请输入手机号");
2413
2413
  return;
2414
2414
  }
2415
- y("send-code", R.phone), m.value = 60;
2415
+ y("send-code", R.phone), v.value = 60;
2416
2416
  const I = setInterval(() => {
2417
- m.value--, m.value <= 0 && clearInterval(I);
2417
+ v.value--, v.value <= 0 && clearInterval(I);
2418
2418
  }, 1e3);
2419
2419
  }, d = () => {
2420
2420
  if (c.value === "password") {
@@ -2531,11 +2531,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2531
2531
  clearable: ""
2532
2532
  }, null, 8, ["modelValue"]),
2533
2533
  s(Q, {
2534
- disabled: m.value > 0,
2534
+ disabled: v.value > 0,
2535
2535
  onClick: w
2536
2536
  }, {
2537
2537
  default: i(() => [
2538
- U(V(m.value > 0 ? `${m.value}秒后重试` : "发送验证码"), 1)
2538
+ U(V(v.value > 0 ? `${v.value}秒后重试` : "发送验证码"), 1)
2539
2539
  ]),
2540
2540
  _: 1
2541
2541
  }, 8, ["disabled"])
@@ -2608,14 +2608,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2608
2608
  qrcodeUrl: { default: "" }
2609
2609
  },
2610
2610
  emits: ["update:visible", "enable", "disable"],
2611
- setup(a, { emit: le }) {
2612
- const n = a, y = le, u = z(n.visible), c = z("");
2611
+ setup(a, { emit: ae }) {
2612
+ const n = a, y = ae, u = z(n.visible), c = z("");
2613
2613
  ze(() => n.visible, (w) => {
2614
2614
  u.value = w, w && (c.value = "");
2615
2615
  }), ze(u, (w) => {
2616
2616
  y("update:visible", w);
2617
2617
  });
2618
- const m = () => {
2618
+ const v = () => {
2619
2619
  u.value = !1;
2620
2620
  }, R = () => {
2621
2621
  if (!c.value) {
@@ -2648,7 +2648,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2648
2648
  footer: !1,
2649
2649
  "z-index": 5e3,
2650
2650
  class: "cd-dynamic-token-dialog",
2651
- onClose: m
2651
+ onClose: v
2652
2652
  }, {
2653
2653
  default: i(() => [
2654
2654
  e("div", Mi, [
@@ -2674,7 +2674,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2674
2674
  e("div", Oi, [
2675
2675
  s(A, {
2676
2676
  theme: "default",
2677
- onClick: m
2677
+ onClick: v
2678
2678
  }, {
2679
2679
  default: i(() => [...d[13] || (d[13] = [
2680
2680
  U("取消", -1)
@@ -2727,7 +2727,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2727
2727
  e("div", Ei, [
2728
2728
  s(A, {
2729
2729
  theme: "default",
2730
- onClick: m
2730
+ onClick: v
2731
2731
  }, {
2732
2732
  default: i(() => [...d[8] || (d[8] = [
2733
2733
  U("取消", -1)
@@ -2761,23 +2761,23 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2761
2761
  defaultLockMethods: { default: () => ["password"] }
2762
2762
  },
2763
2763
  emits: ["update:visible", "submit"],
2764
- setup(a, { emit: le }) {
2765
- const n = a, y = le, u = z(n.visible), c = z(n.defaultLockTime), m = z([...n.defaultLockMethods]);
2764
+ setup(a, { emit: ae }) {
2765
+ const n = a, y = ae, u = z(n.visible), c = z(n.defaultLockTime), v = z([...n.defaultLockMethods]);
2766
2766
  ze(() => n.visible, (w) => {
2767
- u.value = w, w && (c.value = n.defaultLockTime, m.value = [...n.defaultLockMethods]);
2767
+ u.value = w, w && (c.value = n.defaultLockTime, v.value = [...n.defaultLockMethods]);
2768
2768
  }), ze(u, (w) => {
2769
2769
  y("update:visible", w);
2770
2770
  });
2771
2771
  const R = () => {
2772
2772
  u.value = !1;
2773
2773
  }, k = () => {
2774
- if (m.value.length === 0) {
2774
+ if (v.value.length === 0) {
2775
2775
  alert("请至少选择一种锁屏方式");
2776
2776
  return;
2777
2777
  }
2778
2778
  y("submit", {
2779
2779
  lockTime: c.value,
2780
- lockMethods: m.value
2780
+ lockMethods: v.value
2781
2781
  }), u.value = !1;
2782
2782
  };
2783
2783
  return (w, d) => {
@@ -2845,8 +2845,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2845
2845
  e("div", Li, [
2846
2846
  d[11] || (d[11] = e("label", { class: "form-label" }, "锁屏方式", -1)),
2847
2847
  s(Q, {
2848
- modelValue: m.value,
2849
- "onUpdate:modelValue": d[1] || (d[1] = (he) => m.value = he)
2848
+ modelValue: v.value,
2849
+ "onUpdate:modelValue": d[1] || (d[1] = (he) => v.value = he)
2850
2850
  }, {
2851
2851
  default: i(() => [
2852
2852
  s(L, { value: "password" }, {
@@ -2904,17 +2904,17 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2904
2904
  shortcutData: {}
2905
2905
  },
2906
2906
  emits: ["update:visible", "submit", "update"],
2907
- setup(a, { emit: le }) {
2908
- const n = a, y = le, u = z(n.visible), c = z(!1), m = z([]);
2907
+ setup(a, { emit: ae }) {
2908
+ const n = a, y = ae, u = z(n.visible), c = z(!1), v = z([]);
2909
2909
  ze(() => n.visible, (Q) => {
2910
- u.value = Q, Q && (m.value = [], c.value = !1);
2910
+ u.value = Q, Q && (v.value = [], c.value = !1);
2911
2911
  }), ze(u, (Q) => {
2912
2912
  y("update:visible", Q);
2913
2913
  });
2914
2914
  const R = () => {
2915
2915
  u.value = !1;
2916
2916
  }, k = () => {
2917
- c.value = !0, m.value = [];
2917
+ c.value = !0, v.value = [];
2918
2918
  }, w = () => {
2919
2919
  c.value = !1;
2920
2920
  }, d = {
@@ -2930,15 +2930,15 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2930
2930
  const B = [];
2931
2931
  (Q.ctrlKey || Q.metaKey) && B.push("Ctrl"), Q.shiftKey && B.push("Shift"), Q.altKey && B.push("Alt");
2932
2932
  const G = Q.key, he = d[G] || G;
2933
- ["Control", "Shift", "Alt", "Meta"].includes(G) || B.push(he.length === 1 ? he.toUpperCase() : he), B.length > 0 && (m.value = B);
2933
+ ["Control", "Shift", "Alt", "Meta"].includes(G) || B.push(he.length === 1 ? he.toUpperCase() : he), B.length > 0 && (v.value = B);
2934
2934
  }, A = () => {
2935
- m.value = [...n.shortcutData.keys];
2935
+ v.value = [...n.shortcutData.keys];
2936
2936
  }, L = () => {
2937
- if (m.value.length === 0) {
2937
+ if (v.value.length === 0) {
2938
2938
  alert("请设置新的快捷键");
2939
2939
  return;
2940
2940
  }
2941
- y("submit", m.value), y("update", n.shortcutData.label, m.value), u.value = !1;
2941
+ y("submit", v.value), y("update", n.shortcutData.label, v.value), u.value = !1;
2942
2942
  };
2943
2943
  return (Q, B) => {
2944
2944
  const G = M("t-input"), he = M("t-button"), J = M("t-dialog");
@@ -2984,7 +2984,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2984
2984
  onKeydown: Ze(I, ["prevent"]),
2985
2985
  onBlur: w
2986
2986
  }, [
2987
- m.value.length > 0 ? (l(!0), o(fe, { key: 0 }, _e(m.value, (P, j) => (l(), o("kbd", { key: j }, V(P), 1))), 128)) : (l(), o("span", Qi, V(c.value ? "请按下快捷键..." : "点击此处录制快捷键"), 1))
2987
+ v.value.length > 0 ? (l(!0), o(fe, { key: 0 }, _e(v.value, (P, j) => (l(), o("kbd", { key: j }, V(P), 1))), 128)) : (l(), o("span", Qi, V(c.value ? "请按下快捷键..." : "点击此处录制快捷键"), 1))
2988
2988
  ], 34),
2989
2989
  B[4] || (B[4] = e("div", { class: "form-tip" }, "支持 Ctrl、Shift、Alt 等修饰键组合", -1))
2990
2990
  ]),
@@ -3041,11 +3041,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3041
3041
  showLegend: { type: Boolean, default: !0 }
3042
3042
  },
3043
3043
  emits: ["item-click", "more"],
3044
- setup(a, { emit: le }) {
3045
- const n = le, y = { meeting: "会议", task: "待办", reminder: "提醒" }, u = { meeting: "primary", task: "success", reminder: "warning" }, c = (m) => {
3046
- n("item-click", m);
3044
+ setup(a, { emit: ae }) {
3045
+ const n = ae, y = { meeting: "会议", task: "待办", reminder: "提醒" }, u = { meeting: "primary", task: "success", reminder: "warning" }, c = (v) => {
3046
+ n("item-click", v);
3047
3047
  };
3048
- return (m, R) => {
3048
+ return (v, R) => {
3049
3049
  const k = M("t-tag"), w = M("t-button");
3050
3050
  return l(), o("div", ls, [
3051
3051
  e("h3", null, [
@@ -3088,7 +3088,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3088
3088
  theme: "default",
3089
3089
  variant: "text",
3090
3090
  size: "small",
3091
- onClick: Ze((I) => m.$emit("more", d), ["stop"])
3091
+ onClick: Ze((I) => v.$emit("more", d), ["stop"])
3092
3092
  }, {
3093
3093
  icon: i(() => [...R[3] || (R[3] = [
3094
3094
  e("i", { class: "ri-more-2-fill" }, null, -1)
@@ -3128,8 +3128,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3128
3128
  showProgress: { type: Boolean, default: !0 }
3129
3129
  },
3130
3130
  emits: ["item-click", "toggle"],
3131
- setup(a, { emit: le }) {
3132
- const n = a, y = le, u = z("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, m = { todo: "default", doing: "warning", done: "success" }, R = { high: "高", medium: "中", low: "低" }, k = me(() => u.value === "all" ? n.data : n.data.filter((A) => A.status === u.value)), w = (A) => {
3131
+ setup(a, { emit: ae }) {
3132
+ const n = a, y = ae, u = z("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, v = { todo: "default", doing: "warning", done: "success" }, R = { high: "高", medium: "中", low: "低" }, k = me(() => u.value === "all" ? n.data : n.data.filter((A) => A.status === u.value)), w = (A) => {
3133
3133
  y("item-click", A);
3134
3134
  }, d = (A) => {
3135
3135
  y("toggle", A);
@@ -3194,7 +3194,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3194
3194
  e("div", xs, [
3195
3195
  e("div", $s, [
3196
3196
  s(he, {
3197
- theme: m[P.status],
3197
+ theme: v[P.status],
3198
3198
  size: "small",
3199
3199
  variant: "light"
3200
3200
  }, {
@@ -3261,36 +3261,36 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3261
3261
  },
3262
3262
  emits: ["item-click", "more"],
3263
3263
  setup(a) {
3264
- const le = a, n = z("all"), y = me(() => n.value === "all" ? le.data : le.data.filter((u) => u.type === n.value));
3264
+ const ae = a, n = z("all"), y = me(() => n.value === "all" ? ae.data : ae.data.filter((u) => u.type === n.value));
3265
3265
  return (u, c) => (l(), o("div", As, [
3266
3266
  e("h3", null, [
3267
3267
  c[0] || (c[0] = e("i", { class: "ri-star-line" }, null, -1)),
3268
3268
  U(V(a.title), 1)
3269
3269
  ]),
3270
3270
  a.showTabs ? (l(), o("div", Us, [
3271
- (l(!0), o(fe, null, _e(a.tabs, (m) => (l(), o("span", {
3272
- key: m.key,
3273
- class: Ve(["tab-item", { active: n.value === m.key }]),
3274
- onClick: (R) => n.value = m.key
3275
- }, V(m.label), 11, Rs))), 128))
3271
+ (l(!0), o(fe, null, _e(a.tabs, (v) => (l(), o("span", {
3272
+ key: v.key,
3273
+ class: Ve(["tab-item", { active: n.value === v.key }]),
3274
+ onClick: (R) => n.value = v.key
3275
+ }, V(v.label), 11, Rs))), 128))
3276
3276
  ])) : H("", !0),
3277
3277
  e("div", Es, [
3278
- (l(!0), o(fe, null, _e(y.value, (m) => (l(), o("div", {
3279
- key: m.id,
3278
+ (l(!0), o(fe, null, _e(y.value, (v) => (l(), o("div", {
3279
+ key: v.id,
3280
3280
  class: "favorite-item",
3281
- onClick: (R) => u.$emit("item-click", m)
3281
+ onClick: (R) => u.$emit("item-click", v)
3282
3282
  }, [
3283
3283
  e("i", {
3284
- class: Ve(m.icon || "ri-file-line")
3284
+ class: Ve(v.icon || "ri-file-line")
3285
3285
  }, null, 2),
3286
3286
  e("div", Is, [
3287
- e("div", Os, V(m.title), 1),
3288
- e("div", Ts, V(m.desc), 1)
3287
+ e("div", Os, V(v.title), 1),
3288
+ e("div", Ts, V(v.desc), 1)
3289
3289
  ]),
3290
- e("span", Ns, V(m.time), 1),
3290
+ e("span", Ns, V(v.time), 1),
3291
3291
  e("i", {
3292
3292
  class: "ri-more-2-fill item-more",
3293
- onClick: Ze((R) => u.$emit("more", m), ["stop"])
3293
+ onClick: Ze((R) => u.$emit("more", v), ["stop"])
3294
3294
  }, null, 8, Bs)
3295
3295
  ], 8, Ps))), 128)),
3296
3296
  y.value.length ? H("", !0) : (l(), o("div", qs, [...c[1] || (c[1] = [
@@ -3316,7 +3316,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3316
3316
  },
3317
3317
  emits: ["download", "share", "copy"],
3318
3318
  setup(a) {
3319
- return (le, n) => {
3319
+ return (ae, n) => {
3320
3320
  var y;
3321
3321
  return l(), o("div", Ws, [
3322
3322
  e("h3", null, [
@@ -3342,14 +3342,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3342
3342
  e("div", Zs, [
3343
3343
  e("button", {
3344
3344
  class: "btn-outline",
3345
- onClick: (c) => le.$emit("download", u)
3345
+ onClick: (c) => ae.$emit("download", u)
3346
3346
  }, [...n[1] || (n[1] = [
3347
3347
  e("i", { class: "ri-download-line" }, null, -1),
3348
3348
  U("下载", -1)
3349
3349
  ])], 8, er),
3350
3350
  e("button", {
3351
3351
  class: "btn-outline",
3352
- onClick: (c) => le.$emit("share", u)
3352
+ onClick: (c) => ae.$emit("share", u)
3353
3353
  }, [...n[2] || (n[2] = [
3354
3354
  e("i", { class: "ri-share-line" }, null, -1),
3355
3355
  U("分享", -1)
@@ -3367,7 +3367,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3367
3367
  e("span", tr, V(u.url), 1),
3368
3368
  e("button", {
3369
3369
  class: "btn-text",
3370
- onClick: (c) => le.$emit("copy", u.url)
3370
+ onClick: (c) => ae.$emit("copy", u.url)
3371
3371
  }, [...n[3] || (n[3] = [
3372
3372
  e("i", { class: "ri-file-copy-line" }, null, -1),
3373
3373
  U("复制", -1)
@@ -3400,7 +3400,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3400
3400
  },
3401
3401
  emits: ["bind", "unbind", "switch", "add"],
3402
3402
  setup(a) {
3403
- return (le, n) => {
3403
+ return (ae, n) => {
3404
3404
  var y;
3405
3405
  return l(), o("div", sr, [
3406
3406
  e("h3", null, [
@@ -3430,12 +3430,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3430
3430
  n[2] || (n[2] = e("span", { class: "bind-status bound" }, "已绑定", -1)),
3431
3431
  e("button", {
3432
3432
  class: "btn-unbind",
3433
- onClick: (c) => le.$emit("unbind", u)
3433
+ onClick: (c) => ae.$emit("unbind", u)
3434
3434
  }, "解绑", 8, mr)
3435
3435
  ], 64)) : (l(), o("button", {
3436
3436
  key: 1,
3437
3437
  class: "btn-bind",
3438
- onClick: (c) => le.$emit("bind", u)
3438
+ onClick: (c) => ae.$emit("bind", u)
3439
3439
  }, "去绑定", 8, vr))
3440
3440
  ]))), 128))
3441
3441
  ])
@@ -3461,7 +3461,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3461
3461
  (l(!0), o(fe, null, _e(a.others, (u) => (l(), o("div", {
3462
3462
  key: u.id,
3463
3463
  class: "account-card",
3464
- onClick: (c) => le.$emit("switch", u)
3464
+ onClick: (c) => ae.$emit("switch", u)
3465
3465
  }, [
3466
3466
  e("div", {
3467
3467
  class: "account-avatar",
@@ -3480,7 +3480,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3480
3480
  ], 8, Cr))), 128)),
3481
3481
  e("div", {
3482
3482
  class: "account-card add-account",
3483
- onClick: n[0] || (n[0] = (u) => le.$emit("add"))
3483
+ onClick: n[0] || (n[0] = (u) => ae.$emit("add"))
3484
3484
  }, [...n[6] || (n[6] = [
3485
3485
  wl('<div class="account-avatar add" data-v-36d182f7><i class="ri-add-line" data-v-36d182f7></i></div><div class="account-info" data-v-36d182f7><div class="account-name" data-v-36d182f7>添加账号</div><div class="account-email" data-v-36d182f7>登录其他账号</div></div>', 2)
3486
3486
  ])])
@@ -3506,13 +3506,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3506
3506
  modelValue: {}
3507
3507
  },
3508
3508
  emits: ["update:modelValue", "change"],
3509
- setup(a, { emit: le }) {
3510
- const n = a, y = le, u = (c, m) => {
3511
- y("update:modelValue", { ...n.modelValue, [c]: m }), y("change", c, m);
3509
+ setup(a, { emit: ae }) {
3510
+ const n = a, y = ae, u = (c, v) => {
3511
+ y("update:modelValue", { ...n.modelValue, [c]: v }), y("change", c, v);
3512
3512
  };
3513
- return (c, m) => (l(), o("div", Dr, [
3513
+ return (c, v) => (l(), o("div", Dr, [
3514
3514
  e("h3", null, [
3515
- m[0] || (m[0] = e("i", { class: "ri-settings-3-line" }, null, -1)),
3515
+ v[0] || (v[0] = e("i", { class: "ri-settings-3-line" }, null, -1)),
3516
3516
  U(V(a.title), 1)
3517
3517
  ]),
3518
3518
  (l(!0), o(fe, null, _e(a.groups, (R) => (l(), o("div", {
@@ -3549,7 +3549,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3549
3549
  checked: a.modelValue[k.key],
3550
3550
  onChange: (w) => u(k.key, w.target.checked)
3551
3551
  }, null, 40, Or),
3552
- m[1] || (m[1] = e("span", { class: "slider" }, null, -1))
3552
+ v[1] || (v[1] = e("span", { class: "slider" }, null, -1))
3553
3553
  ])) : k.type === "color" ? (l(), o("div", Tr, [
3554
3554
  (l(!0), o(fe, null, _e(k.colors, (w) => (l(), o("div", {
3555
3555
  key: w,
@@ -3576,8 +3576,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3576
3576
  securityGroups: {}
3577
3577
  },
3578
3578
  emits: ["action"],
3579
- setup(a, { emit: le }) {
3580
- const n = le, y = (u, c) => {
3579
+ setup(a, { emit: ae }) {
3580
+ const n = ae, y = (u, c) => {
3581
3581
  n("action", u, c);
3582
3582
  };
3583
3583
  return (u, c) => (l(), o("div", Lr, [
@@ -3585,12 +3585,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3585
3585
  c[0] || (c[0] = e("i", { class: "ri-shield-keyhole-line" }, null, -1)),
3586
3586
  U(V(a.title), 1)
3587
3587
  ]),
3588
- (l(!0), o(fe, null, _e(a.securityGroups, (m) => (l(), o("div", {
3589
- key: m.title,
3588
+ (l(!0), o(fe, null, _e(a.securityGroups, (v) => (l(), o("div", {
3589
+ key: v.title,
3590
3590
  class: "security-group"
3591
3591
  }, [
3592
- m.title ? (l(), o("div", jr, V(m.title), 1)) : H("", !0),
3593
- (l(!0), o(fe, null, _e(m.items, (R) => (l(), o("div", {
3592
+ v.title ? (l(), o("div", jr, V(v.title), 1)) : H("", !0),
3593
+ (l(!0), o(fe, null, _e(v.items, (R) => (l(), o("div", {
3594
3594
  key: R.key,
3595
3595
  class: "security-item"
3596
3596
  }, [
@@ -3642,18 +3642,18 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3642
3642
  contacts: {}
3643
3643
  },
3644
3644
  emits: ["category-click", "contact-click"],
3645
- setup(a, { emit: le }) {
3646
- const n = le, y = (u) => {
3645
+ setup(a, { emit: ae }) {
3646
+ const n = ae, y = (u) => {
3647
3647
  n("contact-click", u);
3648
3648
  };
3649
3649
  return (u, c) => {
3650
- var m, R;
3650
+ var v, R;
3651
3651
  return l(), o("div", ad, [
3652
3652
  e("h3", null, [
3653
3653
  c[0] || (c[0] = e("i", { class: "ri-customer-service-2-line" }, null, -1)),
3654
3654
  U(V(a.title), 1)
3655
3655
  ]),
3656
- (m = a.categories) != null && m.length ? (l(), o("div", ld, [
3656
+ (v = a.categories) != null && v.length ? (l(), o("div", ld, [
3657
3657
  (l(!0), o(fe, null, _e(a.categories, (k) => (l(), o("a", {
3658
3658
  key: k.key,
3659
3659
  class: "help-category",
@@ -3708,11 +3708,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3708
3708
  data: {}
3709
3709
  },
3710
3710
  emits: ["shortcut-click", "shortcut-update"],
3711
- setup(a, { emit: le }) {
3712
- const n = a, y = le, u = me(() => n.data.flatMap((m) => m.items)), c = (m) => {
3713
- y("shortcut-click", m);
3711
+ setup(a, { emit: ae }) {
3712
+ const n = a, y = ae, u = me(() => n.data.flatMap((v) => v.items)), c = (v) => {
3713
+ y("shortcut-click", v);
3714
3714
  };
3715
- return (m, R) => {
3715
+ return (v, R) => {
3716
3716
  var k;
3717
3717
  return l(), o("div", md, [
3718
3718
  e("h3", null, [
@@ -3760,7 +3760,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3760
3760
  },
3761
3761
  emits: ["link-click"],
3762
3762
  setup(a) {
3763
- return (le, n) => {
3763
+ return (ae, n) => {
3764
3764
  var y;
3765
3765
  return l(), o("div", kd, [
3766
3766
  e("h3", null, [
@@ -3798,7 +3798,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3798
3798
  (l(!0), o(fe, null, _e(a.links, (u) => (l(), o("a", {
3799
3799
  key: u.url,
3800
3800
  href: u.url,
3801
- onClick: Ze((c) => le.$emit("link-click", u), ["prevent"])
3801
+ onClick: Ze((c) => ae.$emit("link-click", u), ["prevent"])
3802
3802
  }, [
3803
3803
  e("i", {
3804
3804
  class: Ve(u.icon)
@@ -3862,14 +3862,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3862
3862
  cdFormConfig: { default: () => ({ formData: null, columnData: null }) }
3863
3863
  },
3864
3864
  emits: ["update:value", "change", "search", "dialog-search", "dialog-page-change", "advanced-select", "row-select"],
3865
- setup(a, { emit: le }) {
3866
- const n = a, y = le, u = z(""), c = z([]), m = z([]), R = z(!1), k = z(null), w = () => {
3865
+ setup(a, { emit: ae }) {
3866
+ const n = a, y = ae, u = z(""), c = z([]), v = z([]), R = z(!1), k = z(null), w = () => {
3867
3867
  var D;
3868
3868
  (D = k.value) == null || D.focus();
3869
3869
  }, d = () => {
3870
3870
  S(u.value);
3871
3871
  }, I = (D) => {
3872
- c.value.splice(D, 1), m.value.splice(D, 1), u.value = "", E();
3872
+ c.value.splice(D, 1), v.value.splice(D, 1), u.value = "", E();
3873
3873
  }, A = z(!1), L = z([]), Q = z([]);
3874
3874
  let B = null;
3875
3875
  const G = me(() => !n.formType || !["basic", "tree", "form", "workflow"].includes(n.formType) ? n.searchFields || [] : n.formType === "basic" || n.formType === "tree" ? ["fnumber", "fname"] : n.formType === "form" || n.formType === "workflow" ? ["fbillno"] : []), he = me(() => {
@@ -3920,7 +3920,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3920
3920
  }
3921
3921
  if (c.value.length > 0) {
3922
3922
  const T = c.value.map((b) => r.value[b] || b);
3923
- m.value = T, u.value = T.join(", ");
3923
+ v.value = T, u.value = T.join(", ");
3924
3924
  }
3925
3925
  }
3926
3926
  }, { deep: !0 }), ze(() => n.value, (D) => {
@@ -3930,25 +3930,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3930
3930
  const be = String(D);
3931
3931
  if (c.value = [be], n.releaseId) {
3932
3932
  const we = r.value[be] && r.value[be].trim() ? r.value[be] : be;
3933
- m.value = [we], u.value = we, r.value[be] || y("search", { keyword: "", searchFields: G.value });
3933
+ v.value = [we], u.value = we, r.value[be] || y("search", { keyword: "", searchFields: G.value });
3934
3934
  } else
3935
- m.value = [be], u.value = be;
3935
+ v.value = [be], u.value = be;
3936
3936
  } else if (typeof D == "string") {
3937
3937
  const be = D.split(",").map((Ce) => Ce.trim()).filter((Ce) => Ce);
3938
3938
  if (c.value = be, be.some((Ce) => /^\d+$/.test(Ce)) && n.releaseId) {
3939
3939
  const Ce = be.map((Ae) => r.value[Ae] && r.value[Ae].trim() ? r.value[Ae] : Ae);
3940
- m.value = Ce, u.value = Ce.join(", "), be.some((Ae) => /^\d+$/.test(Ae) && !r.value[Ae]) && y("search", { keyword: "", searchFields: G.value });
3940
+ v.value = Ce, u.value = Ce.join(", "), be.some((Ae) => /^\d+$/.test(Ae) && !r.value[Ae]) && y("search", { keyword: "", searchFields: G.value });
3941
3941
  } else
3942
- m.value = be, u.value = be.join(", ");
3942
+ v.value = be, u.value = be.join(", ");
3943
3943
  } else if (Array.isArray(D)) {
3944
3944
  const be = n.relationField || "fid", we = ((b = (T = n.columnOptions) == null ? void 0 : T[0]) == null ? void 0 : b.value) || "fname";
3945
- c.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), m.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = m.value.join(", ");
3945
+ c.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[be] ?? Ce.fid ?? "")), v.value = D.map((Ce) => typeof Ce == "string" ? Ce : String(Ce[we] || "")), u.value = v.value.join(", ");
3946
3946
  } else if (typeof D == "object") {
3947
3947
  const be = n.relationField || "fid", we = ((ie = (q = n.columnOptions) == null ? void 0 : q[0]) == null ? void 0 : ie.value) || "fname", Ce = String(D[be] ?? D.fid ?? ""), ge = D[we] || Ce;
3948
- c.value = [Ce], m.value = [ge], u.value = ge;
3948
+ c.value = [Ce], v.value = [ge], u.value = ge;
3949
3949
  }
3950
3950
  } else
3951
- u.value = "", c.value = [], m.value = [];
3951
+ u.value = "", c.value = [], v.value = [];
3952
3952
  }, { immediate: !0 });
3953
3953
  const S = (D) => {
3954
3954
  B && clearTimeout(B), B = setTimeout(() => {
@@ -3958,14 +3958,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3958
3958
  R.value = !0, y("search", { keyword: "", searchFields: G.value });
3959
3959
  }, E = () => {
3960
3960
  const D = c.value.length > 0 ? c.value.join(",") : void 0;
3961
- console.log("[RelationForm] updateValue:", { result: D, selectedIds: [...c.value], selectedLabels: [...m.value] }), y("update:value", D), y("change", D);
3961
+ console.log("[RelationForm] updateValue:", { result: D, selectedIds: [...c.value], selectedLabels: [...v.value] }), y("update:value", D), y("change", D);
3962
3962
  }, O = () => {
3963
3963
  y("advanced-select"), na(() => {
3964
3964
  A.value = !0, L.value = [], Q.value = [];
3965
3965
  });
3966
3966
  }, re = ({ row: D }) => {
3967
3967
  const T = String(D.fid ?? D.id ?? ""), b = J(D);
3968
- console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: D.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), m.value.push(b)), u.value = "") : (c.value = [T], m.value = [b], u.value = b), E(), y("row-select", D), R.value = !1;
3968
+ console.log("[RelationForm] handleRowClick:", { idValue: T, displayValue: b, rowFid: D.fid }), T && (r.value[T] = b), n.multiple ? (c.value.includes(T) || (c.value.push(T), v.value.push(b)), u.value = "") : (c.value = [T], v.value = [b], u.value = b), E(), y("row-select", D), R.value = !1;
3969
3969
  }, de = (D) => {
3970
3970
  y("dialog-search", D);
3971
3971
  }, W = () => {
@@ -3981,15 +3981,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3981
3981
  }, se = () => {
3982
3982
  if (Q.value.length > 0) {
3983
3983
  if (n.multiple)
3984
- c.value = Q.value.map((D) => String(D.fid ?? D.id ?? "")), m.value = Q.value.map((D) => J(D)), Q.value.forEach((D) => {
3984
+ c.value = Q.value.map((D) => String(D.fid ?? D.id ?? "")), v.value = Q.value.map((D) => J(D)), Q.value.forEach((D) => {
3985
3985
  const T = String(D.fid ?? D.id ?? ""), b = J(D);
3986
3986
  T && (r.value[T] = b);
3987
3987
  }), u.value = "";
3988
3988
  else {
3989
3989
  const D = Q.value[0], T = String(D.fid ?? D.id ?? ""), b = J(D);
3990
- c.value = [T], m.value = [b], T && (r.value[T] = b);
3990
+ c.value = [T], v.value = [b], T && (r.value[T] = b);
3991
3991
  }
3992
- u.value = m.value.join(", "), E(), A.value = !1;
3992
+ u.value = v.value.join(", "), E(), A.value = !1;
3993
3993
  }
3994
3994
  }, te = () => {
3995
3995
  L.value = [], Q.value = [], A.value = !1;
@@ -4029,12 +4029,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4029
4029
  ]),
4030
4030
  default: i(() => [
4031
4031
  e("div", Nd, [
4032
- a.multiple && m.value.length > 0 ? (l(), o("div", {
4032
+ a.multiple && v.value.length > 0 ? (l(), o("div", {
4033
4033
  key: 0,
4034
4034
  class: "relation-tags-wrapper",
4035
4035
  onClick: w
4036
4036
  }, [
4037
- (l(!0), o(fe, null, _e(m.value, (ge, Ae) => (l(), Y(b, {
4037
+ (l(!0), o(fe, null, _e(v.value, (ge, Ae) => (l(), Y(b, {
4038
4038
  key: Ae,
4039
4039
  size: "small",
4040
4040
  closable: "",
@@ -4157,11 +4157,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4157
4157
  fieldConfigs: { default: () => [] }
4158
4158
  },
4159
4159
  emits: ["update:visible", "add-data", "ai-parse"],
4160
- setup(a, { emit: le }) {
4161
- const n = a, y = le, u = me({
4160
+ setup(a, { emit: ae }) {
4161
+ const n = a, y = ae, u = me({
4162
4162
  get: () => n.visible,
4163
4163
  set: (J) => y("update:visible", J)
4164
- }), c = z(["ai"]), m = z(""), R = z(""), k = z("auto"), w = z([]), d = z(!1), I = me(() => n.columns.map((J) => ({
4164
+ }), c = z(["ai"]), v = z(""), R = z(""), k = z("auto"), w = z([]), d = z(!1), I = me(() => n.columns.map((J) => ({
4165
4165
  label: J.title || J.label,
4166
4166
  value: J.field || J.value
4167
4167
  }))), A = me(() => {
@@ -4273,16 +4273,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4273
4273
  });
4274
4274
  y("add-data", J), Te.success(`成功添加 ${J.length} 条数据`), R.value = "", w.value = [], u.value = !1;
4275
4275
  }, he = () => {
4276
- if (!m.value.trim()) {
4276
+ if (!v.value.trim()) {
4277
4277
  Te.warning("请输入描述信息");
4278
4278
  return;
4279
4279
  }
4280
- d.value = !0, y("ai-parse", m.value.trim()), setTimeout(() => {
4280
+ d.value = !0, y("ai-parse", v.value.trim()), setTimeout(() => {
4281
4281
  d.value = !1;
4282
4282
  }, 1e3);
4283
4283
  };
4284
4284
  return ze(u, (J) => {
4285
- J || (m.value = "", R.value = "", w.value = [], d.value = !1, c.value = ["ai"]);
4285
+ J || (v.value = "", R.value = "", w.value = [], d.value = !1, c.value = ["ai"]);
4286
4286
  }), (J, P) => {
4287
4287
  const j = M("t-textarea"), r = M("t-form-item"), S = M("t-form"), g = M("t-button"), E = M("t-space"), O = M("t-collapse-panel"), re = M("t-radio"), de = M("t-radio-group"), W = M("t-select"), x = M("t-tag"), _ = M("t-table"), F = M("t-collapse"), ue = M("t-dialog");
4288
4288
  return l(), Y(ue, {
@@ -4312,8 +4312,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4312
4312
  s(r, { label: "描述输入" }, {
4313
4313
  default: i(() => [
4314
4314
  s(j, {
4315
- modelValue: m.value,
4316
- "onUpdate:modelValue": P[0] || (P[0] = (se) => m.value = se),
4315
+ modelValue: v.value,
4316
+ "onUpdate:modelValue": P[0] || (P[0] = (se) => v.value = se),
4317
4317
  placeholder: `请用自然语言描述要添加的数据
4318
4318
  例如:添加一个员工,姓名叫张三,性别男,手机号13800138000,入职时间2024年1月1日`,
4319
4319
  rows: 6,
@@ -4332,7 +4332,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4332
4332
  theme: "primary",
4333
4333
  onClick: he,
4334
4334
  loading: d.value,
4335
- disabled: !m.value.trim()
4335
+ disabled: !v.value.trim()
4336
4336
  }, {
4337
4337
  icon: i(() => [...P[6] || (P[6] = [
4338
4338
  e("i", { class: "ri-sparkling-line" }, null, -1)
@@ -4565,16 +4565,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4565
4565
  tableMode: { type: Boolean, default: !1 }
4566
4566
  },
4567
4567
  emits: ["change", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
4568
- setup(a, { emit: le }) {
4568
+ setup(a, { emit: ae }) {
4569
4569
  var De, sa, Le, je, da;
4570
- const n = a, y = z(((De = n.field.__config__) == null ? void 0 : De.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = z(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = z(), m = z(!1), R = me(() => {
4571
- var ae;
4570
+ const n = a, y = z(((De = n.field.__config__) == null ? void 0 : De.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = z(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = z(), v = z(!1), R = me(() => {
4571
+ var le;
4572
4572
  if (_.value !== "vxeSubGrid") return [];
4573
- const p = n.field.btnsList || ((ae = n.field.__config__) == null ? void 0 : ae.btnsList) || [];
4573
+ const p = n.field.btnsList || ((le = n.field.__config__) == null ? void 0 : le.btnsList) || [];
4574
4574
  return !Array.isArray(p) || p.length === 0 ? [
4575
4575
  { value: "add", label: "新增", show: !0 },
4576
4576
  { value: "delete", label: "删除", show: !0 }
4577
- ] : p.filter((Be) => Be.show !== !1 && Be.allow !== !1);
4577
+ ] : p.filter((Ne) => Ne.show !== !1 && Ne.allow !== !1);
4578
4578
  }), k = z({
4579
4579
  isEdit: !0,
4580
4580
  isArrow: !0,
@@ -4586,13 +4586,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4586
4586
  isLastEnterAppendRow: !0
4587
4587
  }), w = me(() => {
4588
4588
  const p = n.field.children || n.field.__config__.children || [];
4589
- return Array.isArray(p) ? p.map((v) => {
4590
- const ae = v.__vModel__ || v.field;
4589
+ return Array.isArray(p) ? p.map((m) => {
4590
+ const le = m.__vModel__ || m.field;
4591
4591
  return {
4592
- ...v,
4593
- __vModel__: ae,
4592
+ ...m,
4593
+ __vModel__: le,
4594
4594
  __config__: {
4595
- ...v.__config__,
4595
+ ...m.__config__,
4596
4596
  layout: "colFormItem"
4597
4597
  }
4598
4598
  };
@@ -4613,22 +4613,22 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4613
4613
  get() {
4614
4614
  const p = n.field.__vModel__;
4615
4615
  if (!p || _.value !== "table") return [];
4616
- const v = n.formModel[p];
4617
- return Array.isArray(v) ? v : [];
4616
+ const m = n.formModel[p];
4617
+ return Array.isArray(m) ? m : [];
4618
4618
  },
4619
4619
  set(p) {
4620
- const v = n.field.__vModel__;
4621
- v && x("change", v, p);
4620
+ const m = n.field.__vModel__;
4621
+ m && x("change", m, p);
4622
4622
  }
4623
4623
  }), A = me(() => {
4624
4624
  if (_.value !== "table") return [];
4625
- const p = (n.field.__config__.children || []).map((v) => ({
4626
- colKey: v.__vModel__,
4627
- title: v.__config__.label,
4628
- width: v.width || "auto",
4629
- align: v.align || "left",
4625
+ const p = (n.field.__config__.children || []).map((m) => ({
4626
+ colKey: m.__vModel__,
4627
+ title: m.__config__.label,
4628
+ width: m.width || "auto",
4629
+ align: m.align || "left",
4630
4630
  // 使用自定义单元格插槽
4631
- cell: `cell-${v.__vModel__}`
4631
+ cell: `cell-${m.__vModel__}`
4632
4632
  }));
4633
4633
  return W.value || p.push({
4634
4634
  colKey: "action",
@@ -4643,21 +4643,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4643
4643
  return !Array.isArray(p) || p.length === 0 ? [
4644
4644
  { value: "copy", label: "复制", show: !0, position: "row" },
4645
4645
  { value: "remove", label: "删除", show: !0, btnType: "error", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "row" }
4646
- ] : p.filter((v) => v.show !== !1 && v.position === "row");
4646
+ ] : p.filter((m) => m.show !== !1 && m.position === "row");
4647
4647
  }), Q = me(() => {
4648
4648
  if (_.value !== "table") return [];
4649
4649
  const p = n.field.btnsList || [];
4650
4650
  return !Array.isArray(p) || p.length === 0 ? [
4651
4651
  { value: "add", label: "添加", show: !0, btnType: "primary", btnIcon: "ri-add-line", position: "footer" },
4652
4652
  { value: "batchRemove", label: "批量删除", show: !0, btnType: "danger", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "footer" }
4653
- ] : p.filter((v) => v.show !== !1 && v.position === "footer");
4653
+ ] : p.filter((m) => m.show !== !1 && m.position === "footer");
4654
4654
  }), B = me({
4655
4655
  get() {
4656
4656
  const p = n.field.__vModel__;
4657
4657
  if (!p || _.value !== "vxeSubGrid") return [];
4658
- const v = n.formModel[p], ae = Array.isArray(v) ? v : [];
4658
+ const m = n.formModel[p], le = Array.isArray(m) ? m : [];
4659
4659
  if (!W.value) {
4660
- const Be = [...ae], Re = Be[Be.length - 1];
4660
+ const Ne = [...le], Re = Ne[Ne.length - 1];
4661
4661
  if (!(Re && Re._isEmpty)) {
4662
4662
  const He = {
4663
4663
  _X_ROW_KEY: `__empty_row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}__`,
@@ -4666,45 +4666,45 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4666
4666
  (n.field.children || n.field.__config__.children || []).forEach((oa) => {
4667
4667
  const _a = oa.__vModel__ || oa.field;
4668
4668
  _a && (He[_a] = "");
4669
- }), Be.push(He);
4669
+ }), Ne.push(He);
4670
4670
  }
4671
- return Be;
4671
+ return Ne;
4672
4672
  }
4673
- return ae;
4673
+ return le;
4674
4674
  },
4675
4675
  set(p) {
4676
- const v = n.field.__vModel__;
4677
- v && x("change", v, p);
4676
+ const m = n.field.__vModel__;
4677
+ m && x("change", m, p);
4678
4678
  }
4679
4679
  }), G = me(() => {
4680
4680
  if (_.value !== "vxeSubGrid") return [];
4681
4681
  const p = n.field.children || n.field.__config__.children || [];
4682
4682
  if (!Array.isArray(p) || p.length === 0) return [];
4683
- const v = [];
4684
- return W.value || v.push({
4683
+ const m = [];
4684
+ return W.value || m.push({
4685
4685
  type: "checkbox",
4686
4686
  width: 60,
4687
4687
  fixed: "left",
4688
4688
  align: "center"
4689
- }), p.forEach((ae) => {
4690
- const Be = ae.__config__;
4691
- if (!Be || Be.noShow) return;
4692
- const Re = ae.__vModel__ || ae.field;
4689
+ }), p.forEach((le) => {
4690
+ const Ne = le.__config__;
4691
+ if (!Ne || Ne.noShow) return;
4692
+ const Re = le.__vModel__ || le.field;
4693
4693
  if (!Re) return;
4694
4694
  const ea = {
4695
- ...ae,
4695
+ ...le,
4696
4696
  __vModel__: Re,
4697
4697
  // 确保有 __vModel__ 属性
4698
4698
  __config__: {
4699
- ...Be,
4699
+ ...Ne,
4700
4700
  layout: "colFormItem"
4701
4701
  }
4702
4702
  }, He = {
4703
4703
  field: Re,
4704
- title: ae.title || Be.label,
4705
- width: ae.width || Be.tableWidth || 150,
4706
- align: ae.align || Be.tableAlign || "left",
4707
- minWidth: ae.minWidth,
4704
+ title: le.title || Ne.label,
4705
+ width: le.width || Ne.tableWidth || 150,
4706
+ align: le.align || Ne.tableAlign || "left",
4707
+ minWidth: le.minWidth,
4708
4708
  sortable: !0
4709
4709
  };
4710
4710
  He.cellRender = {
@@ -4713,12 +4713,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4713
4713
  }, W.value || (He.editRender = {
4714
4714
  name: "$renderFormItem",
4715
4715
  props: { field: ea }
4716
- }), v.push(He);
4717
- }), v;
4716
+ }), m.push(He);
4717
+ }), m;
4718
4718
  }), he = me(() => {
4719
- var ae;
4719
+ var le;
4720
4720
  if (_.value !== "vxeSubGrid") return {};
4721
- const p = n.field.__config__, v = {
4721
+ const p = n.field.__config__, m = {
4722
4722
  border: n.field.border !== !1,
4723
4723
  stripe: n.field.stripe !== !1,
4724
4724
  showOverflow: !0,
@@ -4751,7 +4751,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4751
4751
  // 数据量大于10条时启用虚拟滚动
4752
4752
  }
4753
4753
  };
4754
- return (ae = p.treeConfig) != null && ae.enabled && (v.treeConfig = {
4754
+ return (le = p.treeConfig) != null && le.enabled && (m.treeConfig = {
4755
4755
  transform: !0,
4756
4756
  rowField: "_X_ROW_KEY",
4757
4757
  parentField: "_X_PARENT_KEY",
@@ -4762,7 +4762,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4762
4762
  accordion: p.treeConfig.accordion || !1,
4763
4763
  trigger: p.treeConfig.trigger || "default",
4764
4764
  showIcon: p.treeConfig.showIcon !== !1
4765
- }), W.value || (v.editConfig = {
4765
+ }), W.value || (m.editConfig = {
4766
4766
  trigger: "click",
4767
4767
  // 单击触发编辑
4768
4768
  mode: "cell",
@@ -4777,7 +4777,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4777
4777
  // // 空白行可以编辑,其他行也可以编辑
4778
4778
  // return true;
4779
4779
  // }
4780
- }), v;
4780
+ }), m;
4781
4781
  }), J = (p) => {
4782
4782
  B.value = p;
4783
4783
  }, P = (p) => {
@@ -4788,7 +4788,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4788
4788
  r();
4789
4789
  break;
4790
4790
  case "aiadd":
4791
- m.value = !0;
4791
+ v.value = !0;
4792
4792
  break;
4793
4793
  case "delete":
4794
4794
  case "remove":
@@ -4804,7 +4804,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4804
4804
  }, r = () => {
4805
4805
  const p = n.field.__vModel__;
4806
4806
  if (!p) return;
4807
- const v = Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : [], ae = {
4807
+ const m = Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : [], le = {
4808
4808
  _X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
4809
4809
  };
4810
4810
  (n.field.children || n.field.__config__.children || []).forEach((Re) => {
@@ -4819,98 +4819,98 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4819
4819
  case "work_description":
4820
4820
  case "edu_school":
4821
4821
  case "edu_major":
4822
- ae[ea] = "";
4822
+ le[ea] = "";
4823
4823
  break;
4824
4824
  case "number":
4825
- ae[ea] = 0;
4825
+ le[ea] = 0;
4826
4826
  break;
4827
4827
  case "switch":
4828
- ae[ea] = !1;
4828
+ le[ea] = !1;
4829
4829
  break;
4830
4830
  case "checkbox":
4831
4831
  case "select":
4832
4832
  case "edu_degree":
4833
- ae[ea] = Re.multiple ? [] : null;
4833
+ le[ea] = Re.multiple ? [] : null;
4834
4834
  break;
4835
4835
  case "date":
4836
4836
  case "datetime":
4837
- ae[ea] = null;
4837
+ le[ea] = null;
4838
4838
  break;
4839
4839
  default:
4840
- ae[ea] = null;
4840
+ le[ea] = null;
4841
4841
  }
4842
- }), v.push(ae), x("change", p, v);
4842
+ }), m.push(le), x("change", p, m);
4843
4843
  }, S = async () => {
4844
4844
  if (!c.value) return;
4845
4845
  const p = c.value.getCheckboxRecords();
4846
4846
  if (!p || p.length === 0)
4847
4847
  return;
4848
- const v = n.field.__vModel__;
4849
- if (!v) return;
4850
- const Be = (Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : []).filter(
4848
+ const m = n.field.__vModel__;
4849
+ if (!m) return;
4850
+ const Ne = (Array.isArray(B.value) ? B.value.filter((Re) => !Re._isEmpty) : []).filter(
4851
4851
  (Re) => !p.includes(Re) && !Re._isEmpty
4852
4852
  );
4853
- x("change", v, Be), await c.value.clearCheckboxRow();
4853
+ x("change", m, Ne), await c.value.clearCheckboxRow();
4854
4854
  }, g = async () => {
4855
4855
  if (!c.value) return;
4856
4856
  const p = c.value.getCheckboxRecords();
4857
4857
  if (!p || p.length === 0 || !n.field.__vModel__) return;
4858
- const ae = Array.isArray(B.value) ? [...B.value] : [];
4859
- p.forEach((Be) => {
4858
+ const le = Array.isArray(B.value) ? [...B.value] : [];
4859
+ p.forEach((Ne) => {
4860
4860
  const Re = {
4861
- ...Be,
4861
+ ...Ne,
4862
4862
  _X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
4863
4863
  };
4864
- ae.push(Re);
4865
- }), B.value = ae, await c.value.clearCheckboxRow();
4864
+ le.push(Re);
4865
+ }), B.value = le, await c.value.clearCheckboxRow();
4866
4866
  }, E = () => {
4867
4867
  if (!c.value) return;
4868
4868
  const p = c.value.getCheckboxRecords();
4869
4869
  !p || p.length;
4870
4870
  }, O = ({ row: p }) => {
4871
- if (p._isEmpty && Object.keys(p).some((ae) => ae === "_X_ROW_KEY" || ae === "_isEmpty" ? !1 : p[ae] !== null && p[ae] !== void 0 && p[ae] !== "")) {
4872
- const ae = n.field.__vModel__;
4873
- if (!ae) return;
4874
- const Be = Array.isArray(B.value) ? B.value.filter((ea) => !ea._isEmpty) : [], Re = { ...p };
4875
- delete Re._isEmpty, Re._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Be.push(Re), x("change", ae, Be);
4871
+ if (p._isEmpty && Object.keys(p).some((le) => le === "_X_ROW_KEY" || le === "_isEmpty" ? !1 : p[le] !== null && p[le] !== void 0 && p[le] !== "")) {
4872
+ const le = n.field.__vModel__;
4873
+ if (!le) return;
4874
+ const Ne = Array.isArray(B.value) ? B.value.filter((ea) => !ea._isEmpty) : [], Re = { ...p };
4875
+ delete Re._isEmpty, Re._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Ne.push(Re), x("change", le, Ne);
4876
4876
  }
4877
4877
  }, re = (p) => {
4878
4878
  if (!n.field.__vModel__) return;
4879
- const ae = Array.isArray(B.value) ? [...B.value] : [];
4880
- p.forEach((Be) => {
4881
- ae.push(Be);
4882
- }), B.value = ae;
4879
+ const le = Array.isArray(B.value) ? [...B.value] : [];
4880
+ p.forEach((Ne) => {
4881
+ le.push(Ne);
4882
+ }), B.value = le;
4883
4883
  }, de = (p) => {
4884
- }, W = me(() => n.field.__config__.cdkey === "calculate" ? !0 : n.disabled), x = le, _ = me(() => {
4884
+ }, W = me(() => n.field.__config__.cdkey === "calculate" ? !0 : n.disabled), x = ae, _ = me(() => {
4885
4885
  const p = n.field.__config__;
4886
4886
  if (p.cdkey === "calculate") {
4887
- const v = p.type || n.field.type;
4888
- if (v)
4889
- return v;
4887
+ const m = p.type || n.field.type;
4888
+ if (m)
4889
+ return m;
4890
4890
  }
4891
4891
  return p.cdkey;
4892
4892
  }), F = me({
4893
4893
  get() {
4894
- const p = n.field.__vModel__, v = p ? n.formModel[p] : null;
4895
- return _.value === "tag" ? Array.isArray(v) ? v : v == null || v === "" ? [] : [v] : (_.value === "select" || _.value === "checkbox") && n.field.multiple ? Array.isArray(v) ? v : v == null || v === "" ? [] : [v] : v;
4894
+ const p = n.field.__vModel__, m = p ? n.formModel[p] : null;
4895
+ return _.value === "tag" ? Array.isArray(m) ? m : m == null || m === "" ? [] : [m] : (_.value === "select" || _.value === "checkbox") && n.field.multiple ? Array.isArray(m) ? m : m == null || m === "" ? [] : [m] : m;
4896
4896
  },
4897
4897
  set(p) {
4898
- const v = n.field.__vModel__;
4899
- v && x("change", v, p);
4898
+ const m = n.field.__vModel__;
4899
+ m && x("change", m, p);
4900
4900
  }
4901
4901
  }), ue = me(() => {
4902
4902
  if (_.value !== "relationFormAttr") return "";
4903
- const p = n.field.relationField, v = n.field.showField, ae = n.field.aggregation;
4903
+ const p = n.field.relationField, m = n.field.showField, le = n.field.aggregation;
4904
4904
  if (console.log("[RenderFormItem displayValue] 关联表单属性字段:", {
4905
4905
  vModel: n.field.__vModel__,
4906
4906
  relationField: p,
4907
- showField: v,
4908
- aggregation: ae
4909
- }), !p || !v) return "";
4910
- const Be = p + "_data";
4911
- let Re = n.formModel[Be];
4907
+ showField: m,
4908
+ aggregation: le
4909
+ }), !p || !m) return "";
4910
+ const Ne = p + "_data";
4911
+ let Re = n.formModel[Ne];
4912
4912
  if (console.log("[RenderFormItem displayValue] 查找 _data 字段:", {
4913
- dataKey: Be,
4913
+ dataKey: Ne,
4914
4914
  found: !!Re,
4915
4915
  relationData: Re
4916
4916
  }), Re || (Re = n.formModel[p], console.log("[RenderFormItem displayValue] 从关联字段本身获取:", {
@@ -4920,10 +4920,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4920
4920
  })), !Re)
4921
4921
  return console.log("[RenderFormItem displayValue] 未找到关联数据"), "";
4922
4922
  if (Array.isArray(Re)) {
4923
- const ea = Re.map((He) => typeof He == "object" && He !== null ? He[v] : He).filter((He) => He != null);
4924
- if (ae) {
4923
+ const ea = Re.map((He) => typeof He == "object" && He !== null ? He[m] : He).filter((He) => He != null);
4924
+ if (le) {
4925
4925
  const He = ea.map((la) => parseFloat(la)).filter((la) => !isNaN(la));
4926
- switch (ae) {
4926
+ switch (le) {
4927
4927
  case "sum":
4928
4928
  return He.reduce((la, oa) => la + oa, 0).toString();
4929
4929
  case "average":
@@ -4941,9 +4941,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4941
4941
  return ea.join(", ");
4942
4942
  }
4943
4943
  if (typeof Re == "object" && Re !== null) {
4944
- const ea = Re[v] || "";
4944
+ const ea = Re[m] || "";
4945
4945
  return console.log("[RenderFormItem displayValue] 从对象中取值:", {
4946
- showField: v,
4946
+ showField: m,
4947
4947
  result: ea,
4948
4948
  relationData: Re
4949
4949
  }), ea;
@@ -4965,24 +4965,24 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4965
4965
  }, te = () => {
4966
4966
  const p = n.field.__vModel__;
4967
4967
  if (p) {
4968
- const v = F.value;
4969
- x("change", p, v);
4968
+ const m = F.value;
4969
+ x("change", p, m);
4970
4970
  }
4971
4971
  }, D = (p) => {
4972
- var ae;
4972
+ var le;
4973
4973
  console.log("[RenderFormItem handleChange] 收到变化:", {
4974
4974
  vModel: n.field.__vModel__,
4975
- cdkey: (ae = n.field.__config__) == null ? void 0 : ae.cdkey,
4975
+ cdkey: (le = n.field.__config__) == null ? void 0 : le.cdkey,
4976
4976
  val: p,
4977
4977
  valType: typeof p,
4978
4978
  isObject: typeof p == "object",
4979
4979
  keys: p && typeof p == "object" ? Object.keys(p) : []
4980
4980
  });
4981
- const v = n.field.__vModel__ || "";
4982
- x("change", v, p);
4981
+ const m = n.field.__vModel__ || "";
4982
+ x("change", m, p);
4983
4983
  }, T = (p) => {
4984
- const v = n.field.__vModel__ || "", ae = F.value;
4985
- x("change", v, ae);
4984
+ const m = n.field.__vModel__ || "", le = F.value;
4985
+ x("change", m, le);
4986
4986
  }, b = () => {
4987
4987
  const p = n.field.__vModel__ || "";
4988
4988
  x("change", p, "");
@@ -5000,98 +5000,115 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5000
5000
  }, we = () => {
5001
5001
  W.value || x("change", `__signature_${n.field.__vModel__ || "signature"}__`, { field: n.field, type: "signature" });
5002
5002
  }, Ce = (p) => {
5003
- const v = n.field;
5004
- v.startField && v.endField && Array.isArray(p) && (x("change", v.startField, p[0] || null), x("change", v.endField, p[1] || null)), x("change", v.__vModel__ || "", p);
5003
+ const m = n.field;
5004
+ m.startField && m.endField && Array.isArray(p) && (x("change", m.startField, p[0] || null), x("change", m.endField, p[1] || null)), x("change", m.__vModel__ || "", p);
5005
5005
  }, ge = () => {
5006
5006
  const p = n.field.__vModel__;
5007
5007
  if (!p) return "";
5008
- const v = p.replace(/Id$/, "Name");
5009
- return n.formModel[v] || n.formModel[p] || "";
5008
+ const m = p.replace(/Id$/, "Name");
5009
+ return n.formModel[m] || n.formModel[p] || "";
5010
5010
  }, Ae = () => {
5011
5011
  const p = n.field.__vModel__;
5012
5012
  if (!p)
5013
5013
  return;
5014
- const v = {
5014
+ const m = {
5015
5015
  cdkey: _.value,
5016
5016
  field: p,
5017
5017
  label: n.field.__config__.label,
5018
5018
  multiple: n.field.multiple || !1,
5019
5019
  currentValue: n.formModel[p]
5020
5020
  };
5021
- x("select-org-data", v);
5021
+ x("select-org-data", m);
5022
5022
  }, ce = () => {
5023
5023
  const p = n.field.__vModel__;
5024
5024
  if (!p) return;
5025
5025
  x("change", p, null);
5026
- const v = p.replace(/Id$/, "Name");
5027
- n.formModel[v] !== void 0 && x("change", v, "");
5026
+ const m = p.replace(/Id$/, "Name");
5027
+ n.formModel[m] !== void 0 && x("change", m, "");
5028
5028
  }, N = fl("relationFormData", {}), h = fl("relationFormHandlers", null), Fe = fl("dynamicFieldOptions", z({})), Ye = (p) => {
5029
- var ae;
5030
- const v = (ae = Fe.value) == null ? void 0 : ae[p.__vModel__];
5031
- return Array.isArray(v) && v.length > 0 ? v : Array.isArray(p.options) ? p.options : [];
5032
- }, ke = (p, v) => {
5033
- if (!N || !N[p]) {
5034
- console.log("[RenderFormItem] getRelationFormData 未找到数据:", { fieldName: p, dataKey: v, hasRelationFormData: !!N, keys: N ? Object.keys(N) : [] });
5035
- return;
5036
- }
5037
- const ae = N[p][v];
5038
- return v === "cdFormConfig" && console.log("[RenderFormItem] getRelationFormData cdFormConfig:", { fieldName: p, hasValue: !!ae, hasFormData: !!(ae != null && ae.formData), hasColumnData: !!(ae != null && ae.columnData) }), ae;
5039
- }, X = (p, v) => {
5040
- const ae = { field: p.__vModel__, releaseId: p.releaseId, keyword: v };
5041
- h != null && h.search ? h.search(ae) : x("relation-form-search", ae);
5029
+ var le;
5030
+ const m = (le = Fe.value) == null ? void 0 : le[p.__vModel__];
5031
+ return Array.isArray(m) && m.length > 0 ? m : Array.isArray(p.options) ? p.options : [];
5032
+ }, ke = me(() => {
5033
+ var le, Ne;
5034
+ const p = n.field.__vModel__ || "";
5035
+ if (!p || !N || !N[p])
5036
+ return {
5037
+ searchResults: void 0,
5038
+ dialogTableData: void 0,
5039
+ dialogLoading: void 0,
5040
+ dialogPagination: void 0,
5041
+ cdFormConfig: void 0
5042
+ };
5043
+ const m = N[p];
5044
+ return console.log("[RenderFormItem] currentRelationFormData computed:", {
5045
+ fieldName: p,
5046
+ hasCdFormConfig: !!m.cdFormConfig,
5047
+ hasFormData: !!((le = m.cdFormConfig) != null && le.formData),
5048
+ hasColumnData: !!((Ne = m.cdFormConfig) != null && Ne.columnData)
5049
+ }), {
5050
+ searchResults: m.searchResults,
5051
+ dialogTableData: m.dialogTableData,
5052
+ dialogLoading: m.dialogLoading,
5053
+ dialogPagination: m.dialogPagination,
5054
+ cdFormConfig: m.cdFormConfig
5055
+ };
5056
+ }), X = (p, m) => {
5057
+ const le = { field: p.__vModel__, releaseId: p.releaseId, keyword: m };
5058
+ h != null && h.search ? h.search(le) : x("relation-form-search", le);
5042
5059
  }, ee = (p) => {
5043
- const v = { field: p.__vModel__, releaseId: p.releaseId };
5044
- h != null && h.advanced ? h.advanced(v) : x("relation-form-advanced", v);
5045
- }, Ue = (p, v) => {
5046
- const ae = { field: p.__vModel__, releaseId: p.releaseId, filters: v };
5047
- h != null && h.dialogSearch ? h.dialogSearch(ae) : x("relation-form-dialog-search", ae);
5048
- }, Ne = (p, v) => {
5049
- const ae = { field: p.__vModel__, releaseId: p.releaseId, pagination: v };
5050
- h != null && h.pageChange ? h.pageChange(ae) : x("relation-form-page-change", ae);
5060
+ const m = { field: p.__vModel__, releaseId: p.releaseId };
5061
+ h != null && h.advanced ? h.advanced(m) : x("relation-form-advanced", m);
5062
+ }, Ue = (p, m) => {
5063
+ const le = { field: p.__vModel__, releaseId: p.releaseId, filters: m };
5064
+ h != null && h.dialogSearch ? h.dialogSearch(le) : x("relation-form-dialog-search", le);
5065
+ }, Be = (p, m) => {
5066
+ const le = { field: p.__vModel__, releaseId: p.releaseId, pagination: m };
5067
+ h != null && h.pageChange ? h.pageChange(le) : x("relation-form-page-change", le);
5051
5068
  }, Me = () => {
5052
5069
  if (!n.field.__vModel__) return;
5053
- const v = {};
5054
- (n.field.__config__.children || []).forEach((Be) => {
5055
- const Re = Be.__vModel__;
5070
+ const m = {};
5071
+ (n.field.__config__.children || []).forEach((Ne) => {
5072
+ const Re = Ne.__vModel__;
5056
5073
  if (!Re) return;
5057
- switch (Be.__config__.cdkey) {
5074
+ switch (Ne.__config__.cdkey) {
5058
5075
  case "input":
5059
5076
  case "textarea":
5060
- v[Re] = "";
5077
+ m[Re] = "";
5061
5078
  break;
5062
5079
  case "number":
5063
- v[Re] = 0;
5080
+ m[Re] = 0;
5064
5081
  break;
5065
5082
  case "switch":
5066
- v[Re] = !1;
5083
+ m[Re] = !1;
5067
5084
  break;
5068
5085
  case "checkbox":
5069
5086
  case "select":
5070
- v[Re] = Be.multiple ? [] : null;
5087
+ m[Re] = Ne.multiple ? [] : null;
5071
5088
  break;
5072
5089
  default:
5073
- v[Re] = null;
5090
+ m[Re] = null;
5074
5091
  }
5075
5092
  });
5076
- const ae = Array.isArray(I.value) ? [...I.value] : [];
5077
- ae.push(v), I.value = ae;
5093
+ const le = Array.isArray(I.value) ? [...I.value] : [];
5094
+ le.push(m), I.value = le;
5078
5095
  }, Ee = (p) => {
5079
- const v = Array.isArray(I.value) ? [...I.value] : [];
5080
- v.splice(p, 1), I.value = v;
5096
+ const m = Array.isArray(I.value) ? [...I.value] : [];
5097
+ m.splice(p, 1), I.value = m;
5081
5098
  }, ra = (p) => {
5082
- const v = Array.isArray(I.value) ? [...I.value] : [];
5083
- if (v[p]) {
5084
- const ae = { ...v[p] };
5085
- v.splice(p + 1, 0, ae), I.value = v;
5099
+ const m = Array.isArray(I.value) ? [...I.value] : [];
5100
+ if (m[p]) {
5101
+ const le = { ...m[p] };
5102
+ m.splice(p + 1, 0, le), I.value = m;
5086
5103
  }
5087
- }, oe = (p, v, ae) => {
5088
- const Be = Array.isArray(I.value) ? [...I.value] : [];
5089
- Be[p] && (Be[p][v] = ae, I.value = Be);
5104
+ }, oe = (p, m, le) => {
5105
+ const Ne = Array.isArray(I.value) ? [...I.value] : [];
5106
+ Ne[p] && (Ne[p][m] = le, I.value = Ne);
5090
5107
  }, ia = (p) => {
5091
5108
  p.value === "batchRemove" && (I.value = []), x("change", `__btn_${p.value}__`, { btn: p, data: I.value });
5092
5109
  };
5093
- return (p, v) => {
5094
- const ae = M("t-input"), Be = M("t-textarea"), Re = M("t-input-number"), ea = M("t-select"), He = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
5110
+ return (p, m) => {
5111
+ const le = M("t-input"), Ne = M("t-textarea"), Re = M("t-input-number"), ea = M("t-select"), He = M("t-date-picker"), la = M("t-date-range-picker"), oa = M("t-time-picker"), _a = M("t-time-range-picker"), Wa = M("t-switch"), Ya = M("vxe-rate"), Ha = M("t-radio"), Ja = M("t-radio-group"), xa = M("t-checkbox"), Ka = M("t-checkbox-group"), Ra = M("t-cascader"), Ga = M("t-tree-select"), Xa = M("t-auto-complete"), Ea = M("t-upload"), ma = M("t-button"), Qa = M("t-color-picker"), Pa = M("t-slider"), Za = M("t-progress"), el = M("t-alert"), ka = M("t-link"), al = M("t-tag-input"), ll = M("t-dropdown-item"), tl = M("t-dropdown-menu"), nl = M("t-dropdown"), ol = M("vxe-grid"), ba = M("render-form-item", !0), $a = M("t-row"), il = M("t-divider"), sl = M("t-tab-panel"), rl = M("t-tabs"), Ia = M("t-collapse-panel"), dl = M("t-collapse"), Oa = M("t-popconfirm"), Ta = M("t-space"), ul = M("t-table");
5095
5112
  return a.field.__config__.layout === "colFormItem" ? (l(), Y(Tl(a.tableMode ? "div" : "t-form-item"), Aa({
5096
5113
  key: 0,
5097
5114
  class: a.tableMode ? "table-cell-editor" : ""
@@ -5103,10 +5120,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5103
5120
  default: i(() => {
5104
5121
  var xe, Ie;
5105
5122
  return [
5106
- _.value === "input" && !((xe = a.field.__config__) != null && xe.i18n) ? (l(), Y(ae, {
5123
+ _.value === "input" && !((xe = a.field.__config__) != null && xe.i18n) ? (l(), Y(le, {
5107
5124
  key: 0,
5108
5125
  modelValue: F.value,
5109
- "onUpdate:modelValue": v[0] || (v[0] = (ve) => F.value = ve),
5126
+ "onUpdate:modelValue": m[0] || (m[0] = (ve) => F.value = ve),
5110
5127
  placeholder: a.field.placeholder,
5111
5128
  disabled: W.value,
5112
5129
  clearable: a.field.clearable !== !1,
@@ -5116,10 +5133,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5116
5133
  onInput: T,
5117
5134
  onClear: b,
5118
5135
  onChange: D
5119
- }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "input" && ((Ie = a.field.__config__) != null && Ie.i18n) ? (l(), Y(ae, {
5136
+ }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "input" && ((Ie = a.field.__config__) != null && Ie.i18n) ? (l(), Y(le, {
5120
5137
  key: 1,
5121
5138
  modelValue: F.value,
5122
- "onUpdate:modelValue": v[1] || (v[1] = (ve) => F.value = ve),
5139
+ "onUpdate:modelValue": m[1] || (m[1] = (ve) => F.value = ve),
5123
5140
  placeholder: a.field.placeholder,
5124
5141
  disabled: W.value,
5125
5142
  clearable: a.field.clearable !== !1,
@@ -5129,7 +5146,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5129
5146
  onInput: T,
5130
5147
  onClear: b,
5131
5148
  onChange: D,
5132
- onFocus: v[2] || (v[2] = () => {
5149
+ onFocus: m[2] || (m[2] = () => {
5133
5150
  var ve;
5134
5151
  return console.log("[RenderFormItem] i18n input focused, field:", a.field.__vModel__, "i18n:", (ve = a.field.__config__) == null ? void 0 : ve.i18n);
5135
5152
  })
@@ -5143,10 +5160,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5143
5160
  }, null, 8, nu)
5144
5161
  ]),
5145
5162
  _: 1
5146
- }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "textarea" ? (l(), Y(Be, {
5163
+ }, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : _.value === "textarea" ? (l(), Y(Ne, {
5147
5164
  key: 2,
5148
5165
  modelValue: F.value,
5149
- "onUpdate:modelValue": v[3] || (v[3] = (ve) => F.value = ve),
5166
+ "onUpdate:modelValue": m[3] || (m[3] = (ve) => F.value = ve),
5150
5167
  placeholder: a.field.placeholder,
5151
5168
  disabled: W.value,
5152
5169
  readonly: a.field.readonly,
@@ -5159,7 +5176,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5159
5176
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : _.value === "number" ? (l(), Y(Re, {
5160
5177
  key: 3,
5161
5178
  modelValue: F.value,
5162
- "onUpdate:modelValue": v[4] || (v[4] = (ve) => F.value = ve),
5179
+ "onUpdate:modelValue": m[4] || (m[4] = (ve) => F.value = ve),
5163
5180
  placeholder: a.field.placeholder,
5164
5181
  disabled: W.value,
5165
5182
  min: a.field.min,
@@ -5169,7 +5186,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5169
5186
  }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : _.value === "select" ? (l(), Y(ea, {
5170
5187
  key: 4,
5171
5188
  modelValue: F.value,
5172
- "onUpdate:modelValue": v[5] || (v[5] = (ve) => F.value = ve),
5189
+ "onUpdate:modelValue": m[5] || (m[5] = (ve) => F.value = ve),
5173
5190
  placeholder: a.field.placeholder,
5174
5191
  disabled: W.value,
5175
5192
  clearable: a.field.clearable !== !1,
@@ -5181,7 +5198,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5181
5198
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : _.value === "date" ? (l(), Y(He, {
5182
5199
  key: 5,
5183
5200
  modelValue: F.value,
5184
- "onUpdate:modelValue": v[6] || (v[6] = (ve) => F.value = ve),
5201
+ "onUpdate:modelValue": m[6] || (m[6] = (ve) => F.value = ve),
5185
5202
  placeholder: a.field.placeholder,
5186
5203
  disabled: W.value,
5187
5204
  clearable: a.field.clearable !== !1,
@@ -5192,7 +5209,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5192
5209
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : _.value === "dateRange" ? (l(), Y(la, {
5193
5210
  key: 6,
5194
5211
  modelValue: F.value,
5195
- "onUpdate:modelValue": v[7] || (v[7] = (ve) => F.value = ve),
5212
+ "onUpdate:modelValue": m[7] || (m[7] = (ve) => F.value = ve),
5196
5213
  placeholder: a.field.placeholder || ["开始日期", "结束日期"],
5197
5214
  disabled: W.value,
5198
5215
  clearable: a.field.clearable !== !1,
@@ -5202,7 +5219,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5202
5219
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : _.value === "time" ? (l(), Y(oa, {
5203
5220
  key: 7,
5204
5221
  modelValue: F.value,
5205
- "onUpdate:modelValue": v[8] || (v[8] = (ve) => F.value = ve),
5222
+ "onUpdate:modelValue": m[8] || (m[8] = (ve) => F.value = ve),
5206
5223
  placeholder: a.field.placeholder,
5207
5224
  disabled: W.value,
5208
5225
  clearable: a.field.clearable !== !1,
@@ -5210,7 +5227,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5210
5227
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "rangeTime" ? (l(), Y(_a, {
5211
5228
  key: 8,
5212
5229
  modelValue: F.value,
5213
- "onUpdate:modelValue": v[9] || (v[9] = (ve) => F.value = ve),
5230
+ "onUpdate:modelValue": m[9] || (m[9] = (ve) => F.value = ve),
5214
5231
  placeholder: a.field.placeholder || ["开始时间", "结束时间"],
5215
5232
  disabled: W.value,
5216
5233
  clearable: a.field.clearable !== !1,
@@ -5218,13 +5235,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5218
5235
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : _.value === "switch" ? (l(), Y(Wa, {
5219
5236
  key: 9,
5220
5237
  modelValue: F.value,
5221
- "onUpdate:modelValue": v[10] || (v[10] = (ve) => F.value = ve),
5238
+ "onUpdate:modelValue": m[10] || (m[10] = (ve) => F.value = ve),
5222
5239
  disabled: W.value,
5223
5240
  onChange: D
5224
5241
  }, null, 8, ["modelValue", "disabled"])) : _.value === "rate" ? (l(), Y(Ya, {
5225
5242
  key: 10,
5226
5243
  modelValue: F.value,
5227
- "onUpdate:modelValue": v[11] || (v[11] = (ve) => F.value = ve),
5244
+ "onUpdate:modelValue": m[11] || (m[11] = (ve) => F.value = ve),
5228
5245
  disabled: W.value,
5229
5246
  max: a.field.max || 5,
5230
5247
  half: a.field.allowHalf,
@@ -5232,7 +5249,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5232
5249
  }, null, 8, ["modelValue", "disabled", "max", "half"])) : _.value === "radio" ? (l(), Y(Ja, {
5233
5250
  key: 11,
5234
5251
  modelValue: F.value,
5235
- "onUpdate:modelValue": v[12] || (v[12] = (ve) => F.value = ve),
5252
+ "onUpdate:modelValue": m[12] || (m[12] = (ve) => F.value = ve),
5236
5253
  disabled: W.value,
5237
5254
  onChange: D
5238
5255
  }, {
@@ -5251,7 +5268,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5251
5268
  }, 8, ["modelValue", "disabled"])) : _.value === "checkbox" ? (l(), Y(Ka, {
5252
5269
  key: 12,
5253
5270
  modelValue: F.value,
5254
- "onUpdate:modelValue": v[13] || (v[13] = (ve) => F.value = ve),
5271
+ "onUpdate:modelValue": m[13] || (m[13] = (ve) => F.value = ve),
5255
5272
  disabled: W.value,
5256
5273
  onChange: D
5257
5274
  }, {
@@ -5270,7 +5287,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5270
5287
  }, 8, ["modelValue", "disabled"])) : _.value === "cascader" ? (l(), Y(Ra, {
5271
5288
  key: 13,
5272
5289
  modelValue: F.value,
5273
- "onUpdate:modelValue": v[14] || (v[14] = (ve) => F.value = ve),
5290
+ "onUpdate:modelValue": m[14] || (m[14] = (ve) => F.value = ve),
5274
5291
  placeholder: a.field.placeholder,
5275
5292
  disabled: W.value,
5276
5293
  clearable: a.field.clearable !== !1,
@@ -5280,7 +5297,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5280
5297
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : _.value === "treeSelect" ? (l(), Y(Ga, {
5281
5298
  key: 14,
5282
5299
  modelValue: F.value,
5283
- "onUpdate:modelValue": v[15] || (v[15] = (ve) => F.value = ve),
5300
+ "onUpdate:modelValue": m[15] || (m[15] = (ve) => F.value = ve),
5284
5301
  placeholder: a.field.placeholder,
5285
5302
  disabled: W.value,
5286
5303
  clearable: a.field.clearable !== !1,
@@ -5292,7 +5309,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5292
5309
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : _.value === "autoComplete" ? (l(), Y(Xa, {
5293
5310
  key: 15,
5294
5311
  modelValue: F.value,
5295
- "onUpdate:modelValue": v[16] || (v[16] = (ve) => F.value = ve),
5312
+ "onUpdate:modelValue": m[16] || (m[16] = (ve) => F.value = ve),
5296
5313
  placeholder: a.field.placeholder,
5297
5314
  disabled: W.value,
5298
5315
  clearable: a.field.clearable !== !1,
@@ -5301,7 +5318,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5301
5318
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : _.value === "uploadImg" ? (l(), Y(Ea, {
5302
5319
  key: 16,
5303
5320
  modelValue: F.value,
5304
- "onUpdate:modelValue": v[17] || (v[17] = (ve) => F.value = ve),
5321
+ "onUpdate:modelValue": m[17] || (m[17] = (ve) => F.value = ve),
5305
5322
  disabled: W.value,
5306
5323
  max: a.field.limit || 1,
5307
5324
  accept: a.field.accept || "image/*",
@@ -5319,7 +5336,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5319
5336
  }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : _.value === "upload" ? (l(), Y(Ea, {
5320
5337
  key: 17,
5321
5338
  modelValue: F.value,
5322
- "onUpdate:modelValue": v[18] || (v[18] = (ve) => F.value = ve),
5339
+ "onUpdate:modelValue": m[18] || (m[18] = (ve) => F.value = ve),
5323
5340
  disabled: W.value,
5324
5341
  max: a.field.limit || 1,
5325
5342
  accept: a.field.accept,
@@ -5328,11 +5345,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5328
5345
  }, {
5329
5346
  default: i(() => [
5330
5347
  s(ma, { disabled: a.disabled }, {
5331
- icon: i(() => [...v[38] || (v[38] = [
5348
+ icon: i(() => [...m[38] || (m[38] = [
5332
5349
  e("i", { class: "ri-upload-line" }, null, -1)
5333
5350
  ])]),
5334
5351
  default: i(() => [
5335
- v[39] || (v[39] = U(" 选择文件 ", -1))
5352
+ m[39] || (m[39] = U(" 选择文件 ", -1))
5336
5353
  ]),
5337
5354
  _: 1
5338
5355
  }, 8, ["disabled"])
@@ -5341,13 +5358,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5341
5358
  }, 8, ["modelValue", "disabled", "max", "accept", "size-limit"])) : _.value === "colorPicker" ? (l(), Y(Qa, {
5342
5359
  key: 18,
5343
5360
  modelValue: F.value,
5344
- "onUpdate:modelValue": v[19] || (v[19] = (ve) => F.value = ve),
5361
+ "onUpdate:modelValue": m[19] || (m[19] = (ve) => F.value = ve),
5345
5362
  disabled: W.value,
5346
5363
  onChange: D
5347
5364
  }, null, 8, ["modelValue", "disabled"])) : _.value === "slider" ? (l(), Y(Pa, {
5348
5365
  key: 19,
5349
5366
  modelValue: F.value,
5350
- "onUpdate:modelValue": v[20] || (v[20] = (ve) => F.value = ve),
5367
+ "onUpdate:modelValue": m[20] || (m[20] = (ve) => F.value = ve),
5351
5368
  disabled: W.value,
5352
5369
  min: a.field.min || 0,
5353
5370
  max: a.field.max || 100,
@@ -5382,7 +5399,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5382
5399
  theme: a.field.type || "primary",
5383
5400
  disabled: W.value,
5384
5401
  variant: a.field.variant || "base",
5385
- onClick: v[21] || (v[21] = (ve) => ie(a.field))
5402
+ onClick: m[21] || (m[21] = (ve) => ie(a.field))
5386
5403
  }, {
5387
5404
  default: i(() => [
5388
5405
  a.field.icon ? (l(), o("i", {
@@ -5410,7 +5427,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5410
5427
  key: 0,
5411
5428
  src: F.value,
5412
5429
  class: "sign-img"
5413
- }, null, 8, iu)) : (l(), o("div", su, [...v[40] || (v[40] = [
5430
+ }, null, 8, iu)) : (l(), o("div", su, [...m[40] || (m[40] = [
5414
5431
  e("i", { class: "ri-edit-box-line" }, null, -1),
5415
5432
  e("span", null, "点击签名", -1)
5416
5433
  ])]))
@@ -5423,14 +5440,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5423
5440
  key: 0,
5424
5441
  src: F.value,
5425
5442
  class: "signature-img"
5426
- }, null, 8, ru)) : (l(), o("div", du, [...v[41] || (v[41] = [
5443
+ }, null, 8, ru)) : (l(), o("div", du, [...m[41] || (m[41] = [
5427
5444
  e("i", { class: "ri-stamp-line" }, null, -1),
5428
5445
  e("span", null, "点击盖章", -1)
5429
5446
  ])]))
5430
5447
  ])) : _.value === "tag" ? (l(), Y(al, {
5431
5448
  key: 27,
5432
5449
  modelValue: F.value,
5433
- "onUpdate:modelValue": v[22] || (v[22] = (ve) => F.value = ve),
5450
+ "onUpdate:modelValue": m[22] || (m[22] = (ve) => F.value = ve),
5434
5451
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5435
5452
  disabled: W.value,
5436
5453
  clearable: a.field.clearable !== !1,
@@ -5440,10 +5457,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5440
5457
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : _.value === "billno" ? (l(), o(fe, { key: 28 }, [
5441
5458
  W.value ? (l(), o("div", uu, [
5442
5459
  e("span", cu, V(F.value), 1)
5443
- ])) : (l(), Y(ae, {
5460
+ ])) : (l(), Y(le, {
5444
5461
  key: 1,
5445
5462
  modelValue: F.value,
5446
- "onUpdate:modelValue": v[23] || (v[23] = (ve) => F.value = ve),
5463
+ "onUpdate:modelValue": m[23] || (m[23] = (ve) => F.value = ve),
5447
5464
  placeholder: a.field.placeholder || "请输入单据编号",
5448
5465
  clearable: a.field.clearable !== !1,
5449
5466
  onBlur: te,
@@ -5451,10 +5468,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5451
5468
  onClear: b,
5452
5469
  onChange: D
5453
5470
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5454
- ], 64)) : _.value === "relationFormAttr" ? (l(), Y(ae, {
5471
+ ], 64)) : _.value === "relationFormAttr" ? (l(), Y(le, {
5455
5472
  key: 29,
5456
5473
  modelValue: ue.value,
5457
- "onUpdate:modelValue": v[24] || (v[24] = (ve) => ue.value = ve),
5474
+ "onUpdate:modelValue": m[24] || (m[24] = (ve) => ue.value = ve),
5458
5475
  placeholder: a.field.placeholder,
5459
5476
  readonly: "",
5460
5477
  disabled: W.value
@@ -5470,7 +5487,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5470
5487
  }, V(a.field.defaultValue || F.value), 5)) : _.value === "relationForm" ? (l(), Y(Dl, {
5471
5488
  key: 31,
5472
5489
  value: F.value,
5473
- "onUpdate:value": v[25] || (v[25] = (ve) => F.value = ve),
5490
+ "onUpdate:value": m[25] || (m[25] = (ve) => F.value = ve),
5474
5491
  "release-id": a.field.releaseId,
5475
5492
  "relation-field": a.field.relationField,
5476
5493
  "search-fields": a.field.searchFields,
@@ -5485,16 +5502,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5485
5502
  placeholder: a.field.placeholder,
5486
5503
  disabled: W.value,
5487
5504
  clearable: a.field.clearable !== !1,
5488
- "search-results": ke(a.field.__vModel__ || "", "searchResults"),
5489
- "dialog-table-data": ke(a.field.__vModel__ || "", "dialogTableData"),
5490
- "dialog-loading": ke(a.field.__vModel__ || "", "dialogLoading"),
5491
- "dialog-pagination": ke(a.field.__vModel__ || "", "dialogPagination"),
5492
- "cd-form-config": ke(a.field.__vModel__ || "", "cdFormConfig"),
5505
+ "search-results": ke.value.searchResults,
5506
+ "dialog-table-data": ke.value.dialogTableData,
5507
+ "dialog-loading": ke.value.dialogLoading,
5508
+ "dialog-pagination": ke.value.dialogPagination,
5509
+ "cd-form-config": ke.value.cdFormConfig,
5493
5510
  onChange: D,
5494
- onSearch: v[26] || (v[26] = (ve) => X(a.field, ve.keyword)),
5495
- onAdvancedSelect: v[27] || (v[27] = (ve) => ee(a.field)),
5496
- onDialogSearch: v[28] || (v[28] = (ve) => Ue(a.field, ve)),
5497
- onDialogPageChange: v[29] || (v[29] = (ve) => Ne(a.field, ve))
5511
+ onSearch: m[26] || (m[26] = (ve) => X(a.field, ve.keyword)),
5512
+ onAdvancedSelect: m[27] || (m[27] = (ve) => ee(a.field)),
5513
+ onDialogSearch: m[28] || (m[28] = (ve) => Ue(a.field, ve)),
5514
+ onDialogPageChange: m[29] || (m[29] = (ve) => Be(a.field, ve))
5498
5515
  }, null, 8, ["value", "release-id", "relation-field", "search-fields", "form-type", "column-options", "has-page", "page-size", "multiple", "popup-type", "popup-title", "popup-width", "placeholder", "disabled", "clearable", "search-results", "dialog-table-data", "dialog-loading", "dialog-pagination", "cd-form-config"])) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "popupSelect", "popupTableSelect"].includes(_.value) ? (l(), o(fe, { key: 32 }, [
5499
5516
  W.value ? (l(), o("div", fu, [
5500
5517
  _.value === "userSelect" && F.value ? (l(), Y(ca(Od), {
@@ -5504,7 +5521,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5504
5521
  "show-avatar": "",
5505
5522
  clickable: ""
5506
5523
  }, null, 8, ["user-id", "name"])) : (l(), o("span", mu, V(ge()), 1))
5507
- ])) : (l(), Y(ae, {
5524
+ ])) : (l(), Y(le, {
5508
5525
  key: 1,
5509
5526
  "model-value": ge(),
5510
5527
  placeholder: a.field.placeholder || `请选择${a.field.__config__.label}`,
@@ -5523,10 +5540,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5523
5540
  ]),
5524
5541
  _: 1
5525
5542
  }, 8, ["model-value", "placeholder", "disabled", "clearable"]))
5526
- ], 64)) : (l(), Y(ae, {
5543
+ ], 64)) : (l(), Y(le, {
5527
5544
  key: 33,
5528
5545
  modelValue: F.value,
5529
- "onUpdate:modelValue": v[30] || (v[30] = (ve) => F.value = ve),
5546
+ "onUpdate:modelValue": m[30] || (m[30] = (ve) => F.value = ve),
5530
5547
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5531
5548
  disabled: W.value,
5532
5549
  clearable: a.field.clearable !== !1,
@@ -5558,7 +5575,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5558
5575
  size: "small",
5559
5576
  theme: "primary"
5560
5577
  }, {
5561
- suffix: i(() => [...v[42] || (v[42] = [
5578
+ suffix: i(() => [...m[42] || (m[42] = [
5562
5579
  e("i", { class: "ri-arrow-down-s-line" }, null, -1)
5563
5580
  ])]),
5564
5581
  default: i(() => [
@@ -5610,8 +5627,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5610
5627
  "keyboard-config": k.value
5611
5628
  }), null, 16, ["data", "columns", "keyboard-config"]),
5612
5629
  s(tu, {
5613
- visible: m.value,
5614
- "onUpdate:visible": v[31] || (v[31] = (xe) => m.value = xe),
5630
+ visible: v.value,
5631
+ "onUpdate:visible": m[31] || (m[31] = (xe) => v.value = xe),
5615
5632
  columns: G.value,
5616
5633
  "field-configs": w.value,
5617
5634
  onAddData: re,
@@ -5645,7 +5662,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5645
5662
  "form-model": a.formModel,
5646
5663
  "form-conf": a.formConf,
5647
5664
  disabled: W.value,
5648
- onChange: v[32] || (v[32] = (Ie, ve) => p.$emit("change", Ie, ve))
5665
+ onChange: m[32] || (m[32] = (Ie, ve) => p.$emit("change", Ie, ve))
5649
5666
  }, null, 8, ["field", "form-model", "form-conf", "disabled"])
5650
5667
  ]),
5651
5668
  _: 2
@@ -5671,7 +5688,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5671
5688
  ], 2)) : _.value === "tab" ? (l(), Y(rl, {
5672
5689
  key: 5,
5673
5690
  modelValue: y.value,
5674
- "onUpdate:modelValue": v[34] || (v[34] = (xe) => y.value = xe),
5691
+ "onUpdate:modelValue": m[34] || (m[34] = (xe) => y.value = xe),
5675
5692
  class: Ve(a.field.__config__.className),
5676
5693
  placement: a.field.tabPosition || "top",
5677
5694
  theme: a.field.type || "normal",
@@ -5703,7 +5720,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5703
5720
  "form-model": a.formModel,
5704
5721
  "form-conf": a.formConf,
5705
5722
  disabled: W.value,
5706
- onChange: v[33] || (v[33] = (ve, va) => p.$emit("change", ve, va))
5723
+ onChange: m[33] || (m[33] = (ve, va) => p.$emit("change", ve, va))
5707
5724
  }, null, 8, ["field", "form-model", "form-conf", "disabled"])
5708
5725
  ]),
5709
5726
  _: 2
@@ -5746,7 +5763,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5746
5763
  "form-model": a.formModel,
5747
5764
  "form-conf": a.formConf,
5748
5765
  disabled: W.value,
5749
- onChange: v[35] || (v[35] = (Na, cl) => p.$emit("change", Na, cl))
5766
+ onChange: m[35] || (m[35] = (Na, cl) => p.$emit("change", Na, cl))
5750
5767
  }, null, 8, ["field", "form-model", "form-conf", "disabled"]))
5751
5768
  ], 64))), 128))
5752
5769
  ], 4))), 128))
@@ -5756,7 +5773,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5756
5773
  ], 6)) : _.value === "collapse" ? (l(), Y(dl, {
5757
5774
  key: 7,
5758
5775
  modelValue: u.value,
5759
- "onUpdate:modelValue": v[37] || (v[37] = (xe) => u.value = xe),
5776
+ "onUpdate:modelValue": m[37] || (m[37] = (xe) => u.value = xe),
5760
5777
  class: Ve(a.field.__config__.className),
5761
5778
  "default-value": a.field.__config__.active,
5762
5779
  "expand-icon-placement": a.field.expandIconPosition || "left",
@@ -5788,7 +5805,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5788
5805
  "form-model": a.formModel,
5789
5806
  "form-conf": a.formConf,
5790
5807
  disabled: W.value,
5791
- onChange: v[36] || (v[36] = (ve, va) => p.$emit("change", ve, va))
5808
+ onChange: m[36] || (m[36] = (ve, va) => p.$emit("change", ve, va))
5792
5809
  }, null, 8, ["field", "form-model", "form-conf", "disabled"])
5793
5810
  ]),
5794
5811
  _: 2
@@ -5959,7 +5976,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5959
5976
  ], 2)) : H("", !0);
5960
5977
  };
5961
5978
  }
5962
- }), zl = /* @__PURE__ */ aa(xu, [["__scopeId", "data-v-19934227"]]), $u = /* @__PURE__ */ Ge({
5979
+ }), zl = /* @__PURE__ */ aa(xu, [["__scopeId", "data-v-5c5ee2d1"]]), $u = /* @__PURE__ */ Ge({
5963
5980
  __name: "FormRender",
5964
5981
  props: {
5965
5982
  formConf: {},
@@ -5969,9 +5986,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5969
5986
  relationFormData: { default: () => ({}) }
5970
5987
  },
5971
5988
  emits: ["update:modelValue", "field-change", "submit", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
5972
- setup(a, { expose: le, emit: n }) {
5973
- const y = a, u = n, c = z(), m = z({});
5974
- wa("dynamicFieldOptions", m);
5989
+ setup(a, { expose: ae, emit: n }) {
5990
+ const y = a, u = n, c = z(), v = z({});
5991
+ wa("dynamicFieldOptions", v);
5975
5992
  const R = pa({});
5976
5993
  wa("relationFormData", R), xl(() => {
5977
5994
  const x = y.relationFormData;
@@ -6197,7 +6214,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6197
6214
  for (const ce of Ae)
6198
6215
  ce.children.length === 0 ? delete ce.children : ge(ce.children);
6199
6216
  };
6200
- ge(Ce), _.options = Ce, m.value = { ...m.value, [_.__vModel__]: Ce }, _.props || (_.props = { keys: { label: "label", value: "value", children: "children" } });
6217
+ ge(Ce), _.options = Ce, v.value = { ...v.value, [_.__vModel__]: Ce }, _.props || (_.props = { keys: { label: "label", value: "value", children: "children" } });
6201
6218
  } catch (q) {
6202
6219
  console.error(`[FormRender] 加载 treeSelect "${_.__vModel__}" 选项失败:`, q);
6203
6220
  }
@@ -6227,7 +6244,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6227
6244
  } catch (_) {
6228
6245
  console.error("执行表单 onLoad 事件出错:", _);
6229
6246
  }
6230
- }), le({
6247
+ }), ae({
6231
6248
  formRef: c,
6232
6249
  validate: E,
6233
6250
  resetFields: O,
@@ -11826,9 +11843,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11826
11843
  size: {}
11827
11844
  },
11828
11845
  emits: ["search"],
11829
- setup(a, { emit: le }) {
11846
+ setup(a, { emit: ae }) {
11830
11847
  var n, y, u;
11831
- const c = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], m = me(() => Vu.map((P) => c.includes(P.name) ? {
11848
+ const c = ["北京市", "上海市", "天津市", "重庆市", "香港特别行政区", "澳门特别行政区"], v = me(() => Vu.map((P) => c.includes(P.name) ? {
11832
11849
  label: P.name,
11833
11850
  value: P.name,
11834
11851
  children: P.city[0].area.map((j) => ({
@@ -11879,7 +11896,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11879
11896
  function w(P) {
11880
11897
  return [...P].sort((j, r) => j.value.localeCompare(r.value, "zh-CN"));
11881
11898
  }
11882
- const d = a, I = le, A = z({
11899
+ const d = a, I = ae, A = z({
11883
11900
  field: ((n = d.filterCondition) == null ? void 0 : n.field) || "",
11884
11901
  operator: ((y = d.filterCondition) == null ? void 0 : y.operator) || "eq",
11885
11902
  value: ((u = d.filterCondition) == null ? void 0 : u.value) || null
@@ -12090,7 +12107,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12090
12107
  key: 5,
12091
12108
  modelValue: d.filterCondition.value,
12092
12109
  "onUpdate:modelValue": j[7] || (j[7] = (de) => d.filterCondition.value = de),
12093
- options: m.value,
12110
+ options: v.value,
12094
12111
  placeholder: "请选择地区",
12095
12112
  size: d.size,
12096
12113
  style: { "min-width": "80px", "max-width": "120px" },
@@ -12110,9 +12127,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12110
12127
  ]);
12111
12128
  };
12112
12129
  }
12113
- }), Ua = (a, le) => {
12130
+ }), Ua = (a, ae) => {
12114
12131
  const n = a.__vccOpts || a;
12115
- for (const [y, u] of le)
12132
+ for (const [y, u] of ae)
12116
12133
  n[y] = u;
12117
12134
  return n;
12118
12135
  }, Ul = /* @__PURE__ */ Ua(Mu, [["__scopeId", "data-v-d96560aa"]]), Fu = { class: "save-plan-content" }, Du = {
@@ -12161,17 +12178,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12161
12178
  }
12162
12179
  },
12163
12180
  emits: ["update:visible", "confirm", "close", "load-users", "search", "dept-click"],
12164
- setup(a, { emit: le }) {
12165
- const n = a, y = le, u = z({
12181
+ setup(a, { emit: ae }) {
12182
+ const n = a, y = ae, u = z({
12166
12183
  planName: "",
12167
12184
  shareMode: "none",
12168
12185
  shareType: "specific",
12169
12186
  selectedUsers: []
12170
- }), c = z([]), m = z([]), R = me(() => n.isEditing && n.originalShareMode === "copy");
12187
+ }), c = z([]), v = z([]), R = me(() => n.isEditing && n.originalShareMode === "copy");
12171
12188
  ze(() => n.visible, (B) => {
12172
12189
  B ? n.isEditing && n.planName && (u.value.planName = n.planName, u.value.shareMode = n.originalShareMode || "none", u.value.shareType = n.originalShareType || "specific", n.originalSelectedUsers && n.originalSelectedUsers.length > 0 && (u.value.selectedUsers = [...n.originalSelectedUsers])) : k();
12173
12190
  }), ze(() => n.deptMembersDataProp, (B) => {
12174
- B && (m.value = B);
12191
+ B && (v.value = B);
12175
12192
  });
12176
12193
  const k = () => {
12177
12194
  u.value = {
@@ -12179,7 +12196,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12179
12196
  shareMode: "none",
12180
12197
  shareType: "specific",
12181
12198
  selectedUsers: []
12182
- }, c.value = [], m.value = [];
12199
+ }, c.value = [], v.value = [];
12183
12200
  }, w = (B) => {
12184
12201
  console.log("选中人员:", B), B.map((G) => ({
12185
12202
  id: G.id,
@@ -12332,7 +12349,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12332
12349
  edit: !0,
12333
12350
  "person-tabs": a.tabs,
12334
12351
  "person-organizations": a.organizations,
12335
- "dept-members-data": m.value,
12352
+ "dept-members-data": v.value,
12336
12353
  onPersonSelect: w,
12337
12354
  onLoadUsers: d,
12338
12355
  onSearch: I,
@@ -12451,8 +12468,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12451
12468
  "dept-click",
12452
12469
  "column-change"
12453
12470
  ],
12454
- setup(a, { emit: le }) {
12455
- const n = a, y = le, u = z(JSON.parse(JSON.stringify(n.filterCards))), c = z(n.topOp), m = z(null), R = z(!1), k = z([]), w = z("filter"), d = z(!1), I = z(""), A = z("none"), L = z("specific"), Q = z([]), B = z(null);
12471
+ setup(a, { emit: ae }) {
12472
+ const n = a, y = ae, u = z(JSON.parse(JSON.stringify(n.filterCards))), c = z(n.topOp), v = z(null), R = z(!1), k = z([]), w = z("filter"), d = z(!1), I = z(""), A = z("none"), L = z("specific"), Q = z([]), B = z(null);
12456
12473
  let G = 100;
12457
12474
  ze(() => n.filterCards, (X) => {
12458
12475
  u.value = JSON.parse(JSON.stringify(X));
@@ -12479,11 +12496,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12479
12496
  Ue.conditions.length > 1 && ee >= 0 && ee < Ue.conditions.length ? Ue.conditions.splice(ee, 1) : Ue.conditions.length <= 1 && Te.warning("每个卡片至少需要一个筛选条件");
12480
12497
  }
12481
12498
  }, r = (X) => X.map((ee) => {
12482
- const Ue = ee.conditions.filter((Ne) => Ne.field && Ne.field.trim() !== "").map((Ne) => {
12499
+ const Ue = ee.conditions.filter((Be) => Be.field && Be.field.trim() !== "").map((Be) => {
12483
12500
  let Me = "";
12484
- return Ne.value !== null && Ne.value !== void 0 && (Array.isArray(Ne.value) ? Me = Ne.value.join("/") : Me = String(Ne.value)), {
12485
- field: Ne.field.trim(),
12486
- operator: Ne.operator || "eq",
12501
+ return Be.value !== null && Be.value !== void 0 && (Array.isArray(Be.value) ? Me = Be.value.join("/") : Me = String(Be.value)), {
12502
+ field: Be.field.trim(),
12503
+ operator: Be.operator || "eq",
12487
12504
  value: Me
12488
12505
  };
12489
12506
  });
@@ -12493,16 +12510,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12493
12510
  conditions: Ue.length > 0 ? Ue : [{ field: "", operator: "eq", value: "" }]
12494
12511
  };
12495
12512
  }).filter((ee) => ee.conditions.length > 0 && ee.conditions[0].field !== ""), S = (X) => {
12496
- if (X.value !== "empty" && (m.value = X, y("plan-click", X), X.precepts && (u.value = JSON.parse(JSON.stringify(X.precepts))), X.sqlConnectType && (c.value = X.sqlConnectType), X.columns && X.columns.length > 0)) {
12513
+ if (X.value !== "empty" && (v.value = X, y("plan-click", X), X.precepts && (u.value = JSON.parse(JSON.stringify(X.precepts))), X.sqlConnectType && (c.value = X.sqlConnectType), X.columns && X.columns.length > 0)) {
12497
12514
  b.value = {}, q.value = {}, D.value = X.columns.filter((Ee) => Ee.show !== !1).map((Ee) => Ee.value), X.columns.forEach((Ee) => {
12498
12515
  Ee.width && (b.value[Ee.value] = parseInt(Ee.width)), Ee.fixed ? q.value[Ee.value] = Ee.fixed : q.value[Ee.value] = "none";
12499
12516
  });
12500
12517
  const ee = X.columns.map((Ee) => Ee.value), Ue = ee.map(
12501
12518
  (Ee) => n.fieldOptions.find((ra) => ra.value === Ee)
12502
- ).filter(Boolean), Ne = n.fieldOptions.filter(
12519
+ ).filter(Boolean), Be = n.fieldOptions.filter(
12503
12520
  (Ee) => !ee.includes(Ee.value)
12504
12521
  );
12505
- ie.value = [...Ue, ...Ne], T.value = D.value.length === n.fieldOptions.length;
12522
+ ie.value = [...Ue, ...Be], T.value = D.value.length === n.fieldOptions.length;
12506
12523
  const Me = X.columns.filter((Ee) => Ee.show !== !1);
12507
12524
  y("column-change", Me);
12508
12525
  }
@@ -12510,12 +12527,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12510
12527
  d.value = !1, B.value = null, I.value = "", A.value = "none", L.value = "specific", Q.value = [], R.value = !0;
12511
12528
  }, E = (X) => {
12512
12529
  const ee = ie.value.map((Ue) => {
12513
- const Ne = b.value[Ue.value], Me = q.value[Ue.value] || "none";
12530
+ const Be = b.value[Ue.value], Me = q.value[Ue.value] || "none";
12514
12531
  return {
12515
12532
  value: Ue.value,
12516
12533
  show: D.value.includes(Ue.value),
12517
12534
  // 是否显示
12518
- width: Ne ? `${Ne}px` : "120px",
12535
+ width: Be ? `${Be}px` : "120px",
12519
12536
  fixed: Me
12520
12537
  // 冻结状态
12521
12538
  };
@@ -12541,7 +12558,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12541
12558
  }, W = (X) => {
12542
12559
  y("set-default-plan", X);
12543
12560
  }, x = () => {
12544
- m.value = null, u.value = [
12561
+ v.value = null, u.value = [
12545
12562
  {
12546
12563
  id: 1,
12547
12564
  connector: "and",
@@ -12579,16 +12596,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12579
12596
  });
12580
12597
  const ee = X.map((Me) => Me.value), Ue = ee.map(
12581
12598
  (Me) => n.fieldOptions.find((Ee) => Ee.value === Me)
12582
- ).filter(Boolean), Ne = n.fieldOptions.filter(
12599
+ ).filter(Boolean), Be = n.fieldOptions.filter(
12583
12600
  (Me) => !ee.includes(Me.value)
12584
12601
  );
12585
- ie.value = [...Ue, ...Ne];
12602
+ ie.value = [...Ue, ...Be];
12586
12603
  } else {
12587
12604
  D.value = [...X];
12588
12605
  const ee = X.map(
12589
- (Ne) => n.fieldOptions.find((Me) => Me.value === Ne)
12606
+ (Be) => n.fieldOptions.find((Me) => Me.value === Be)
12590
12607
  ).filter(Boolean), Ue = n.fieldOptions.filter(
12591
- (Ne) => !X.includes(Ne.value)
12608
+ (Be) => !X.includes(Be.value)
12592
12609
  );
12593
12610
  ie.value = [...ee, ...Ue];
12594
12611
  }
@@ -12631,25 +12648,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12631
12648
  const Ue = be.value;
12632
12649
  if (Ue === null || Ue === X)
12633
12650
  return;
12634
- const Ne = [...ie.value], Me = Ne[Ue];
12635
- Ne.splice(Ue, 1), Ne.splice(X, 0, Me), ie.value = Ne, be.value = null, we.value = null;
12651
+ const Be = [...ie.value], Me = Be[Ue];
12652
+ Be.splice(Ue, 1), Be.splice(X, 0, Me), ie.value = Be, be.value = null, we.value = null;
12636
12653
  }, ke = () => {
12637
12654
  const X = ie.value.filter((ee) => D.value.includes(ee.value)).map((ee) => {
12638
- const Ue = b.value[ee.value], Ne = q.value[ee.value] || "none";
12655
+ const Ue = b.value[ee.value], Be = q.value[ee.value] || "none";
12639
12656
  return {
12640
12657
  value: ee.value,
12641
12658
  show: !0,
12642
12659
  // 已通过filter筛选,都是显示的
12643
12660
  width: Ue ? `${Ue}px` : "120px",
12644
12661
  // 没有设置宽度时使用默认值120px
12645
- fixed: Ne
12662
+ fixed: Be
12646
12663
  // 冻结状态
12647
12664
  };
12648
12665
  });
12649
12666
  y("column-change", X);
12650
12667
  };
12651
12668
  return (X, ee) => {
12652
- const Ue = M("t-radio-button"), Ne = M("t-radio-group"), Me = M("t-icon"), Ee = M("t-button"), ra = M("t-tab-panel"), oe = M("t-checkbox"), ia = M("t-option"), De = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12669
+ const Ue = M("t-radio-button"), Be = M("t-radio-group"), Me = M("t-icon"), Ee = M("t-button"), ra = M("t-tab-panel"), oe = M("t-checkbox"), ia = M("t-option"), De = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12653
12670
  return l(), o(fe, null, [
12654
12671
  s(da, {
12655
12672
  header: "方案设置",
@@ -12681,7 +12698,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12681
12698
  e("div", Pu, [
12682
12699
  u.value.length > 1 ? (l(), o("div", Iu, [
12683
12700
  e("div", Ou, [
12684
- s(Ne, {
12701
+ s(Be, {
12685
12702
  size: a.size,
12686
12703
  class: "connector-selector",
12687
12704
  modelValue: c.value,
@@ -12706,17 +12723,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12706
12723
  ])
12707
12724
  ])) : H("", !0),
12708
12725
  e("div", Tu, [
12709
- (l(!0), o(fe, null, _e(u.value, (p, v) => (l(), o("div", {
12726
+ (l(!0), o(fe, null, _e(u.value, (p, m) => (l(), o("div", {
12710
12727
  key: p.id,
12711
12728
  class: "filter-card-item"
12712
12729
  }, [
12713
12730
  e("div", Nu, [
12714
12731
  e("div", Bu, [
12715
- e("span", qu, "筛选卡片 " + V(v + 1), 1),
12716
- s(Ne, {
12732
+ e("span", qu, "筛选卡片 " + V(m + 1), 1),
12733
+ s(Be, {
12717
12734
  size: a.size,
12718
12735
  modelValue: p.connector,
12719
- "onUpdate:modelValue": (ae) => p.connector = ae,
12736
+ "onUpdate:modelValue": (le) => p.connector = le,
12720
12737
  class: "connector-selector"
12721
12738
  }, {
12722
12739
  default: i(() => [
@@ -12740,7 +12757,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12740
12757
  theme: "default",
12741
12758
  variant: "text",
12742
12759
  size: a.size,
12743
- onClick: (ae) => J(v),
12760
+ onClick: (le) => J(m),
12744
12761
  disabled: u.value.length === 1
12745
12762
  }, {
12746
12763
  icon: i(() => [
@@ -12750,13 +12767,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12750
12767
  }, 8, ["size", "onClick", "disabled"])
12751
12768
  ]),
12752
12769
  e("div", Lu, [
12753
- (l(!0), o(fe, null, _e(p.conditions, (ae, Be) => (l(), o("div", {
12754
- key: Be,
12770
+ (l(!0), o(fe, null, _e(p.conditions, (le, Ne) => (l(), o("div", {
12771
+ key: Ne,
12755
12772
  class: "filter-combination"
12756
12773
  }, [
12757
12774
  s(Ul, {
12758
12775
  "field-options": a.fieldOptions,
12759
- "filter-condition": p.conditions[Be],
12776
+ "filter-condition": p.conditions[Ne],
12760
12777
  "select-options": a.selectOptions,
12761
12778
  size: a.size
12762
12779
  }, null, 8, ["field-options", "filter-condition", "select-options", "size"]),
@@ -12764,7 +12781,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12764
12781
  theme: "default",
12765
12782
  variant: "text",
12766
12783
  size: a.size,
12767
- onClick: (Re) => j(v, Be),
12784
+ onClick: (Re) => j(m, Ne),
12768
12785
  disabled: p.conditions.length === 1
12769
12786
  }, {
12770
12787
  icon: i(() => [
@@ -12777,7 +12794,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12777
12794
  s(Ee, {
12778
12795
  theme: "default",
12779
12796
  size: a.size,
12780
- onClick: (ae) => P(v)
12797
+ onClick: (le) => P(m)
12781
12798
  }, {
12782
12799
  icon: i(() => [
12783
12800
  s(Me, { name: "add" })
@@ -12825,14 +12842,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12825
12842
  ee[16] || (ee[16] = e("div", { class: "column-title column-title-sort" }, "排序", -1))
12826
12843
  ]),
12827
12844
  e("div", Ku, [
12828
- (l(!0), o(fe, null, _e(ie.value, (p, v) => (l(), o("div", {
12845
+ (l(!0), o(fe, null, _e(ie.value, (p, m) => (l(), o("div", {
12829
12846
  key: p.value,
12830
- class: Ve(["column-item-row", { dragging: be.value === v }]),
12847
+ class: Ve(["column-item-row", { dragging: be.value === m }]),
12831
12848
  draggable: "true",
12832
- onDragstart: (ae) => N(v, ae),
12833
- onDragover: (ae) => h(v, ae),
12849
+ onDragstart: (le) => N(m, le),
12850
+ onDragover: (le) => h(m, le),
12834
12851
  onDragend: Fe,
12835
- onDrop: (ae) => Ye(v, ae)
12852
+ onDrop: (le) => Ye(m, le)
12836
12853
  }, [
12837
12854
  e("div", Xu, [
12838
12855
  s(Me, {
@@ -12844,13 +12861,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12844
12861
  e("div", Qu, [
12845
12862
  s(oe, {
12846
12863
  checked: D.value.includes(p.value),
12847
- onChange: (ae) => Ce(p.value, ae)
12864
+ onChange: (le) => Ce(p.value, le)
12848
12865
  }, null, 8, ["checked", "onChange"])
12849
12866
  ]),
12850
12867
  e("div", Zu, [
12851
12868
  s(De, {
12852
12869
  modelValue: q.value[p.value],
12853
- "onUpdate:modelValue": (ae) => q.value[p.value] = ae,
12870
+ "onUpdate:modelValue": (le) => q.value[p.value] = le,
12854
12871
  size: "small",
12855
12872
  style: { width: "120px" }
12856
12873
  }, {
@@ -12874,7 +12891,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12874
12891
  e("div", ec, [
12875
12892
  s(sa, {
12876
12893
  modelValue: b.value[p.value],
12877
- "onUpdate:modelValue": (ae) => b.value[p.value] = ae,
12894
+ "onUpdate:modelValue": (le) => b.value[p.value] = le,
12878
12895
  min: 50,
12879
12896
  max: 500,
12880
12897
  step: 10,
@@ -12888,8 +12905,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12888
12905
  theme: "default",
12889
12906
  variant: "text",
12890
12907
  size: "small",
12891
- onClick: (ae) => Ae(v),
12892
- disabled: v === 0
12908
+ onClick: (le) => Ae(m),
12909
+ disabled: m === 0
12893
12910
  }, {
12894
12911
  icon: i(() => [
12895
12912
  s(Me, {
@@ -12903,8 +12920,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12903
12920
  theme: "default",
12904
12921
  variant: "text",
12905
12922
  size: "small",
12906
- onClick: (ae) => ce(v),
12907
- disabled: v === ie.value.length - 1
12923
+ onClick: (le) => ce(m),
12924
+ disabled: m === ie.value.length - 1
12908
12925
  }, {
12909
12926
  icon: i(() => [
12910
12927
  s(Me, {
@@ -12929,11 +12946,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12929
12946
  ee[17] || (ee[17] = e("div", { class: "filter-plan-title" }, "我的方案", -1)),
12930
12947
  e("div", tc, [
12931
12948
  (l(!0), o(fe, null, _e(a.planFilterOptions, (p) => {
12932
- var v;
12949
+ var m;
12933
12950
  return l(), o("div", {
12934
12951
  key: p.value,
12935
- class: Ve(["filter-plan-item", { active: ((v = m.value) == null ? void 0 : v.value) === p.value }]),
12936
- onClick: (ae) => S(p)
12952
+ class: Ve(["filter-plan-item", { active: ((m = v.value) == null ? void 0 : m.value) === p.value }]),
12953
+ onClick: (le) => S(p)
12937
12954
  }, [
12938
12955
  s(Me, {
12939
12956
  name: "file-text",
@@ -12954,7 +12971,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12954
12971
  theme: "default",
12955
12972
  variant: "text",
12956
12973
  size: "small",
12957
- onClick: Ze((ae) => O(p), ["stop"]),
12974
+ onClick: Ze((le) => O(p), ["stop"]),
12958
12975
  disabled: !p.value || p.value === "empty"
12959
12976
  }, {
12960
12977
  icon: i(() => [
@@ -12977,7 +12994,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12977
12994
  theme: "default",
12978
12995
  variant: "text",
12979
12996
  size: "small",
12980
- onClick: (ae) => W(p),
12997
+ onClick: (le) => W(p),
12981
12998
  disabled: !p.value || p.value === "empty"
12982
12999
  }, {
12983
13000
  icon: i(() => [
@@ -13000,7 +13017,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13000
13017
  theme: "default",
13001
13018
  variant: "text",
13002
13019
  size: "small",
13003
- onClick: (ae) => re(p),
13020
+ onClick: (le) => re(p),
13004
13021
  disabled: !p.value || p.value === "empty"
13005
13022
  }, {
13006
13023
  icon: i(() => [
@@ -13023,7 +13040,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13023
13040
  theme: "default",
13024
13041
  variant: "text",
13025
13042
  size: "small",
13026
- onClick: (ae) => de(p),
13043
+ onClick: (le) => de(p),
13027
13044
  disabled: !p.value || p.value === "empty"
13028
13045
  }, {
13029
13046
  icon: i(() => [
@@ -13120,8 +13137,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13120
13137
  initialRules: { type: Array, default: () => [] }
13121
13138
  },
13122
13139
  emits: ["update:visible", "confirm", "clear", "smart-colors-change"],
13123
- setup(a, { emit: le }) {
13124
- const n = a, y = le, u = z(n.visible), c = [
13140
+ setup(a, { emit: ae }) {
13141
+ const n = a, y = ae, u = z(n.visible), c = [
13125
13142
  // 第一行 - 暖色系
13126
13143
  "#FFE7BA",
13127
13144
  "#FFD6E7",
@@ -13155,7 +13172,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13155
13172
  "#B0BEC5",
13156
13173
  "#E7F5E8",
13157
13174
  "#F8F9FA"
13158
- ], m = [
13175
+ ], v = [
13159
13176
  { label: "等于", value: "eq" },
13160
13177
  { label: "不等于", value: "ne" },
13161
13178
  { label: "大于", value: "gt" },
@@ -13352,7 +13369,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13352
13369
  s(E, {
13353
13370
  modelValue: W.operator,
13354
13371
  "onUpdate:modelValue": (_) => W.operator = _,
13355
- options: m,
13372
+ options: v,
13356
13373
  placeholder: "选择操作符",
13357
13374
  size: a.size,
13358
13375
  style: { width: "120px" },
@@ -13488,8 +13505,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13488
13505
  "keyword-clear",
13489
13506
  "smart-colors-change"
13490
13507
  ],
13491
- setup(a, { emit: le }) {
13492
- const n = a, y = le, u = z([]), c = () => ({ field: "", operator: "eq", value: "" });
13508
+ setup(a, { emit: ae }) {
13509
+ const n = a, y = ae, u = z([]), c = () => ({ field: "", operator: "eq", value: "" });
13493
13510
  (() => {
13494
13511
  var b, q;
13495
13512
  if (n.filterCount === 0) {
@@ -13499,7 +13516,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13499
13516
  const ie = ((q = (b = n.filterCards) == null ? void 0 : b[0]) == null ? void 0 : q.conditions) || [];
13500
13517
  u.value = Array.from({ length: n.filterCount }, (be, we) => ie[we] ? JSON.parse(JSON.stringify(ie[we])) : c());
13501
13518
  })();
13502
- const m = () => {
13519
+ const v = () => {
13503
13520
  if (n.filterCount === 0) {
13504
13521
  u.value = [];
13505
13522
  return;
@@ -13575,7 +13592,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13575
13592
  const S = () => {
13576
13593
  re.value = !1;
13577
13594
  }, g = () => {
13578
- m(), I.value = null, A.value = "", d.value = [
13595
+ v(), I.value = null, A.value = "", d.value = [
13579
13596
  {
13580
13597
  id: 1,
13581
13598
  connector: "and",
@@ -13853,8 +13870,8 @@ ${b.map((q) => {
13853
13870
  var a = document.createElement("style");
13854
13871
  a.appendChild(document.createTextNode(".cd-share-content[data-v-bd14b324]{display:flex;flex-direction:column;gap:10px;box-sizing:border-box}.cd-share-content[data-v-bd14b324] *{box-sizing:border-box}.cd-share-header[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px}.cd-share-title[data-v-bd14b324]{font:500 16px Microsoft Yahei;display:flex;align-items:center;gap:8px}.cd-share-back-icon[data-v-bd14b324]{margin-right:3px;cursor:pointer}.cd-share-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-cooperators[data-v-bd14b324]{display:flex;align-items:center;gap:12px;margin:0 16px}.cd-share-label[data-v-bd14b324]{width:80px;flex-shrink:0;color:#000}.cd-share-collaborators-wrapper[data-v-bd14b324]{display:flex;align-items:center;gap:12px;margin-left:auto}.cd-share-avatars-container[data-v-bd14b324]{display:flex;align-items:center;flex:1;gap:12px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s}.cd-share-avatars-container[data-v-bd14b324]:hover{background-color:#f5f5f5}.cd-share-avatar-owner[data-v-bd14b324]{flex-shrink:0}.cd-share-divider[data-v-bd14b324]{width:1px;height:32px;background-color:#e5e7eb;flex-shrink:0}.cd-share-collaborators-avatars[data-v-bd14b324]{display:flex;align-items:center;gap:8px;flex:1}.cd-share-more-avatars[data-v-bd14b324]{width:32px;height:32px;border-radius:50%;background-color:#f0f0f0;color:#666;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}.cd-share-expand-icon[data-v-bd14b324]{margin-left:auto;flex-shrink:0;color:#999;cursor:pointer}.cd-share-add-collaborator-btn[data-v-bd14b324]{width:32px;height:32px;border:1px dashed #d9d9d9;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#999;transition:all .2s;flex-shrink:0}.cd-share-add-collaborator-btn[data-v-bd14b324]:hover{border-color:#0052d9;color:#0052d9;background-color:#f0f5ff}.cd-share-collaborator-list[data-v-bd14b324]{margin:8px 16px 0;border:1px solid #e5e7eb;border-radius:4px;overflow:hidden}.cd-share-collaborator-list-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #f0f0f0}.cd-share-collaborator-list-item[data-v-bd14b324]:last-child{border-bottom:none}.cd-share-collaborator-info[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-collaborator-name[data-v-bd14b324]{font-size:14px;color:#333}.cd-share-collaborator-role[data-v-bd14b324]{font-size:14px;color:#999}.cd-share-collaborator-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-selector-wrapper[data-v-bd14b324]{margin:0 16px}.cd-share-selector-content[data-v-bd14b324]{display:flex;align-items:center;flex:1}.cd-share-readonly-tip[data-v-bd14b324]{margin:0 16px;padding:12px;background-color:#f5f5f5;border-radius:4px;font-size:14px;color:#666;display:flex;align-items:center}.cd-share-options[data-v-bd14b324]{margin-left:16px;display:flex;height:30px;align-items:center;gap:16px}.cd-share-form-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px;margin-top:8px;justify-content:flex-end;padding:16px 16px 0}.cd-share-footer[data-v-bd14b324]{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-top:15px}.cd-share-footer-top[data-v-bd14b324]{width:100%;padding:0 16px}.cd-share-footer-title[data-v-bd14b324]{margin-bottom:10px;color:#000}.cd-share-footer-controls[data-v-bd14b324]{display:flex;align-items:center;width:100%;margin-top:6px;justify-content:space-between}.cd-share-footer-bottom[data-v-bd14b324]{display:flex;align-items:center;gap:10px;padding:16px;width:100%;background-color:#f5f6f7;margin-bottom:-10px;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.cd-share-org-control[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-share-org-icon[data-v-bd14b324]{background-color:#0594fa;width:35px;height:35px;color:#fff;padding:6px;border-radius:50%}.cd-share-org-content[data-v-bd14b324]{display:flex;flex-direction:column}.cd-share-org-note[data-v-bd14b324]{font-size:12px;color:#666}.cd-share-copy-action[data-v-bd14b324]{cursor:pointer;border:1px solid rgb(208,211,214);padding:5px 12px;border-radius:26px;transition:color .2s ease;display:flex;align-items:center;gap:4px}.cd-share-copy-action[data-v-bd14b324]:hover,.cd-share-copy-action[data-v-bd14b324]:hover .t-icon{color:#0594fa}.cd-share-icon-actions[data-v-bd14b324]{display:flex;align-items:center;gap:12px}.cd-share-icon-btn[data-v-bd14b324]{width:36px;height:36px;border:1px solid rgb(208,211,214);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.cd-share-icon-btn[data-v-bd14b324] .t-icon{font-size:20px}.cd-share-icon-btn.is-disabled[data-v-bd14b324]{opacity:.4;cursor:not-allowed;pointer-events:none}[data-v-bd14b324] .t-textarea{padding:0 10px}.cd-permission-settings[data-v-bd14b324]{display:flex;flex-direction:column;gap:24px;padding:16px}.cd-permission-section[data-v-bd14b324]{display:flex;flex-direction:column;gap:12px}.cd-permission-section-title[data-v-bd14b324]{font-size:14px;font-weight:500;color:#000;margin-bottom:4px}.cd-permission-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:8px 0}.cd-permission-item-label[data-v-bd14b324]{font-size:14px;color:#333;flex:1}.cd-permission-item-note[data-v-bd14b324]{font-size:12px;color:#999;margin-top:-8px}.cd-permission-actions[data-v-bd14b324]{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid #e5e7eb}.cd-collaborator-list-content[data-v-bd14b324]{max-height:400px;overflow-y:auto}.cd-collaborator-list-item[data-v-bd14b324]{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid #f0f0f0}.cd-collaborator-list-item[data-v-bd14b324]:last-child{border-bottom:none}.cd-collaborator-list-item[data-v-bd14b324]:hover{background-color:#f5f5f5}.cd-collaborator-item-info[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-collaborator-item-name[data-v-bd14b324]{font-size:14px;color:#333}.cd-collaborator-item-role[data-v-bd14b324]{font-size:14px;color:#999}.cd-collaborator-item-actions[data-v-bd14b324]{display:flex;align-items:center;gap:8px}.cd-collaborator-item-permission-text[data-v-bd14b324]{font-size:14px;color:#666;padding:4px 12px;background-color:#f5f5f5;border-radius:4px}.cd-qrcode-content[data-v-bd14b324]{display:flex;flex-direction:column;align-items:center;padding:24px;gap:16px}.cd-qrcode-image[data-v-bd14b324]{width:300px;height:300px;border:1px solid #e5e7eb;border-radius:8px}.cd-qrcode-url[data-v-bd14b324]{font-size:14px;color:#666;word-break:break-all;text-align:center;padding:0 16px}.cd-qrcode-tip[data-v-bd14b324]{font-size:12px;color:#999}.cd-encrypt-content[data-v-bd14b324]{display:flex;flex-direction:column;padding:16px;gap:16px}.cd-encrypt-field[data-v-bd14b324]{display:flex;flex-direction:column;gap:8px}.cd-encrypt-label[data-v-bd14b324]{font-size:14px;font-weight:500;color:#333}.cd-encrypt-note[data-v-bd14b324]{display:flex;align-items:flex-start;font-size:12px;color:#666;background-color:#f5f5f5;padding:12px;border-radius:4px;line-height:1.6}.cd-encrypt-actions[data-v-bd14b324]{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid #e5e7eb}.cd-share-dialog .t-dialog{padding:0!important}.cd-share-dialog .t-dialog__header,.cd-share-dialog .t-dialog__body,.cd-share-dialog .t-dialog__content{padding:0!important;overflow:visible!important;max-height:none!important}.cd-share-dialog .t-dialog__body{overflow-y:visible!important}:deep(.t-select__dropdown)>.t-select__dropdown-inner>.t-select-option-group>.t-select-option-group__header{color:#999!important}")), document.head.appendChild(a);
13855
13872
  }
13856
- } catch (le) {
13857
- console.error("vite-plugin-css-injected-by-js", le);
13873
+ } catch (ae) {
13874
+ console.error("vite-plugin-css-injected-by-js", ae);
13858
13875
  }
13859
13876
  })();
13860
13877
  const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc = {
@@ -13899,9 +13916,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13899
13916
  defaultPermissionSettings: {}
13900
13917
  },
13901
13918
  emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
13902
- setup(a, { emit: le }) {
13919
+ setup(a, { emit: ae }) {
13903
13920
  var n;
13904
- const y = a, u = le, c = z(y.visible), m = z(y.shareUrl), R = z([]), k = z(!1), w = z(1), d = z("read"), I = z(!0), A = z(!1), L = z(""), Q = z(""), B = z(!1), G = z(!1), he = z(!1), J = z(!1), P = z(""), j = z({
13921
+ const y = a, u = ae, c = z(y.visible), v = z(y.shareUrl), R = z([]), k = z(!1), w = z(1), d = z("read"), I = z(!0), A = z(!1), L = z(""), Q = z(""), B = z(!1), G = z(!1), he = z(!1), J = z(!1), P = z(""), j = z({
13905
13922
  allowExternalShare: ((n = y.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
13906
13923
  collaboratorManagement: "org-only",
13907
13924
  copyPermission: "edit",
@@ -13933,8 +13950,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13933
13950
  name: N.displayName || N.name || String(N.id),
13934
13951
  avatar: N.avatar || "",
13935
13952
  isUser: !0
13936
- }))), de = me(() => m.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(m.value)}` : ""), W = (N) => N ? N.substring(0, 2).toUpperCase() : "所";
13937
- ze(() => y.visible, (N) => c.value = N), ze(() => y.shareUrl, (N) => m.value = N), ze(c, (N) => {
13953
+ }))), de = me(() => v.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(v.value)}` : ""), W = (N) => N ? N.substring(0, 2).toUpperCase() : "所";
13954
+ ze(() => y.visible, (N) => c.value = N), ze(() => y.shareUrl, (N) => v.value = N), ze(c, (N) => {
13938
13955
  u("update:visible", N), N && x();
13939
13956
  }), ze(R, (N) => {
13940
13957
  if (O.value === "read") {
@@ -13966,7 +13983,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13966
13983
  console.log("分享参数:", N), u("confirm", N), c.value = !1;
13967
13984
  }, se = async () => {
13968
13985
  try {
13969
- await navigator.clipboard.writeText(m.value || ""), Te.success("链接已复制");
13986
+ await navigator.clipboard.writeText(v.value || ""), Te.success("链接已复制");
13970
13987
  } catch {
13971
13988
  Te.error("复制失败");
13972
13989
  }
@@ -14023,7 +14040,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14023
14040
  Te.warning("请先生成或输入6位密码");
14024
14041
  return;
14025
14042
  }
14026
- const N = m.value || "", h = N.includes("?") ? "&" : "?", Fe = `链接:${`${N}${h}pwd=${P.value}`} 密码:${P.value}`;
14043
+ const N = v.value || "", h = N.includes("?") ? "&" : "?", Fe = `链接:${`${N}${h}pwd=${P.value}`} 密码:${P.value}`;
14027
14044
  try {
14028
14045
  await navigator.clipboard.writeText(Fe), Te.success("链接和密码已复制");
14029
14046
  } catch {
@@ -14043,7 +14060,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14043
14060
  return ze(J, (N) => {
14044
14061
  N && !P.value && ge();
14045
14062
  }), (N, h) => {
14046
- const Fe = M("t-icon"), Ye = M("t-tooltip"), ke = M("t-button"), X = M("t-avatar"), ee = M("t-select"), Ue = M("t-checkbox"), Ne = M("t-input"), Me = M("t-textarea"), Ee = M("t-dialog"), ra = M("t-switch"), oe = M("t-radio"), ia = M("t-radio-group");
14063
+ const Fe = M("t-icon"), Ye = M("t-tooltip"), ke = M("t-button"), X = M("t-avatar"), ee = M("t-select"), Ue = M("t-checkbox"), Be = M("t-input"), Me = M("t-textarea"), Ee = M("t-dialog"), ra = M("t-switch"), oe = M("t-radio"), ia = M("t-radio-group");
14047
14064
  return l(), o(fe, null, [
14048
14065
  s(Ee, {
14049
14066
  visible: c.value,
@@ -14199,7 +14216,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14199
14216
  ])]),
14200
14217
  _: 1
14201
14218
  }, 8, ["modelValue"]),
14202
- A.value ? (l(), Y(Ne, {
14219
+ A.value ? (l(), Y(Be, {
14203
14220
  key: 0,
14204
14221
  modelValue: L.value,
14205
14222
  "onUpdate:modelValue": h[11] || (h[11] = (Le) => L.value = Le),
@@ -14301,7 +14318,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14301
14318
  }),
14302
14319
  h[31] || (h[31] = U(" 您当前为只读权限,无法添加协作者 ", -1))
14303
14320
  ])),
14304
- m.value ? (l(), o("div", jc, [
14321
+ v.value ? (l(), o("div", jc, [
14305
14322
  e("div", Wc, [
14306
14323
  h[33] || (h[33] = e("div", { class: "cd-share-footer-title" }, "链接分享", -1)),
14307
14324
  e("div", Yc, [
@@ -14624,7 +14641,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14624
14641
  alt: "分享二维码",
14625
14642
  class: "cd-qrcode-image"
14626
14643
  }, null, 8, Mf)) : H("", !0),
14627
- e("div", Ff, V(m.value), 1),
14644
+ e("div", Ff, V(v.value), 1),
14628
14645
  h[56] || (h[56] = e("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
14629
14646
  ])
14630
14647
  ]),
@@ -14643,7 +14660,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14643
14660
  e("div", Df, [
14644
14661
  e("div", zf, [
14645
14662
  h[58] || (h[58] = e("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
14646
- s(Ne, {
14663
+ s(Be, {
14647
14664
  modelValue: P.value,
14648
14665
  "onUpdate:modelValue": h[24] || (h[24] = (De) => P.value = De),
14649
14666
  placeholder: "6位数字和字母组合",
@@ -14717,9 +14734,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14717
14734
  ], 64);
14718
14735
  };
14719
14736
  }
14720
- }), Ef = (a, le) => {
14737
+ }), Ef = (a, ae) => {
14721
14738
  const n = a.__vccOpts || a;
14722
- for (const [y, u] of le)
14739
+ for (const [y, u] of ae)
14723
14740
  n[y] = u;
14724
14741
  return n;
14725
14742
  }, Rl = /* @__PURE__ */ Ef(Rf, [["__scopeId", "data-v-bd14b324"]]), Pf = { class: "cd-form-container" }, If = { class: "cd-form-toolbar" }, Of = { class: "toolbar-left" }, Tf = {
@@ -14771,7 +14788,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14771
14788
  }) }
14772
14789
  },
14773
14790
  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"],
14774
- setup(a, { expose: le, emit: n }) {
14791
+ setup(a, { expose: ae, emit: n }) {
14775
14792
  var bl, yl;
14776
14793
  const y = (t, f) => {
14777
14794
  var $;
@@ -14872,16 +14889,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14872
14889
  }, Oe)) : [ml("span", {}, Pe.join(", "))];
14873
14890
  }
14874
14891
  });
14875
- const m = a, R = pa({});
14892
+ const v = a, R = pa({});
14876
14893
  wa("relationFormData", R), xl(() => {
14877
- const t = m.relationFormData;
14894
+ const t = v.relationFormData;
14878
14895
  t && typeof t == "object" && Object.keys(t).forEach((f) => {
14879
14896
  t[f] !== void 0 && (R[f] = { ...R[f] || {}, ...t[f] });
14880
14897
  });
14881
14898
  });
14882
14899
  const k = me(() => {
14883
14900
  var $;
14884
- const f = m.columnData && Object.keys(m.columnData).length > 0 ? m.columnData : (($ = m.formData) == null ? void 0 : $.columnData) || {
14901
+ const f = v.columnData && Object.keys(v.columnData).length > 0 ? v.columnData : (($ = v.formData) == null ? void 0 : $.columnData) || {
14885
14902
  btnsList: [],
14886
14903
  columnBtnsList: [],
14887
14904
  customBtnsList: [],
@@ -14918,11 +14935,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14918
14935
  mode: "cell",
14919
14936
  showStatus: !0
14920
14937
  };
14921
- }), he = z(!1), J = z(/* @__PURE__ */ new Map()), P = z(/* @__PURE__ */ new Map()), j = z(/* @__PURE__ */ new Set()), r = z(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = z(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = z(!1), E = z([]), O = z(!0), re = z(!1), de = z(""), W = z("add"), x = z(null);
14938
+ }), he = z(!1), J = z(/* @__PURE__ */ new Map()), P = z(/* @__PURE__ */ new Map()), j = z(/* @__PURE__ */ new Set()), r = z(((bl = v.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = z(((yl = v.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = z(!1), E = z([]), O = z(!0), re = z(!1), de = z(""), W = z("add"), x = z(null);
14922
14939
  let _ = pa({});
14923
14940
  const F = me(() => {
14924
14941
  var Pe, Oe;
14925
- const t = ((Pe = m.formData) == null ? void 0 : Pe.fields) || [], f = k.value.treeConfig;
14942
+ const t = ((Pe = v.formData) == null ? void 0 : Pe.fields) || [], f = k.value.treeConfig;
14926
14943
  if (!(f != null && f.enabled)) return t;
14927
14944
  const $ = f.parentField || "parentId";
14928
14945
  if (t.some(
@@ -14931,7 +14948,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14931
14948
  return qe.__vModel__ === $ || ((Je = qe.__vModel__) == null ? void 0 : Je.toUpperCase()) === "FPARENTID" || ((We = qe.__config__) == null ? void 0 : We.cdkey) === "treeSelect";
14932
14949
  }
14933
14950
  )) return t;
14934
- const K = f.rowField || "fid", Z = m.data || [], ne = ((Oe = t.find(
14951
+ const K = f.rowField || "fid", Z = v.data || [], ne = ((Oe = t.find(
14935
14952
  (qe) => {
14936
14953
  var Je, We;
14937
14954
  return ((Je = qe.__config__) == null ? void 0 : Je.cdkey) === "input" && ((We = qe.__config__) == null ? void 0 : We.required);
@@ -15048,12 +15065,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15048
15065
  Z && K.push(Z);
15049
15066
  }
15050
15067
  return K.length > 0 ? K.join(" ") : null;
15051
- }, Ae = me(() => m.data || []), ce = me(() => {
15068
+ }, Ae = me(() => v.data || []), ce = me(() => {
15052
15069
  var f, $;
15053
15070
  let t = Ae.value;
15054
15071
  if (k.value.groupField || ((f = k.value.treeConfig) == null ? void 0 : f.enabled) === !0)
15055
15072
  return t;
15056
- if (($ = m.pageConfig) != null && $.enabled && !m.enableVirtualScroll) {
15073
+ if (($ = v.pageConfig) != null && $.enabled && !v.enableVirtualScroll) {
15057
15074
  const C = (r.value - 1) * S.value, K = C + S.value;
15058
15075
  t = t.slice(C, K);
15059
15076
  }
@@ -15062,14 +15079,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15062
15079
  fid: "__empty_row__",
15063
15080
  _isEmpty: !0
15064
15081
  };
15065
- return h(m.formData.fields).forEach((ne) => {
15082
+ return h(v.formData.fields).forEach((ne) => {
15066
15083
  const pe = ne.__vModel__;
15067
15084
  pe && (K[pe] = "");
15068
15085
  }), C.push(K), C;
15069
15086
  }
15070
15087
  return t;
15071
15088
  });
15072
- ze(() => m.pageConfig, (t) => {
15089
+ ze(() => v.pageConfig, (t) => {
15073
15090
  t && (r.value = t.currentPage || 1, S.value = t.pageSize || 20);
15074
15091
  }, { deep: !0 }), ze(() => k.value.groupField, (t) => {
15075
15092
  if (t) {
@@ -15100,10 +15117,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15100
15117
  }
15101
15118
  });
15102
15119
  const ee = me(() => {
15103
- if (m.fieldOptions && m.fieldOptions.length > 0)
15104
- return Array.isArray(m.fieldOptions) ? m.fieldOptions : [];
15120
+ if (v.fieldOptions && v.fieldOptions.length > 0)
15121
+ return Array.isArray(v.fieldOptions) ? v.fieldOptions : [];
15105
15122
  const t = [];
15106
- return h(m.formData.fields).forEach(($) => {
15123
+ return h(v.formData.fields).forEach(($) => {
15107
15124
  const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
15108
15125
  if (!K || C.noShow || Z === "billno" || Z === "divider" || Z === "vxeSubGrid" || Z === "table")
15109
15126
  return;
@@ -15117,7 +15134,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15117
15134
  }), t;
15118
15135
  }), Ue = me(() => {
15119
15136
  const t = [];
15120
- return h(m.formData.fields).forEach(($) => {
15137
+ return h(v.formData.fields).forEach(($) => {
15121
15138
  const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
15122
15139
  if (["select", "radio", "checkbox"].includes(Z) && $.options && Array.isArray($.options)) {
15123
15140
  const ne = $.options.map((pe) => pe.label || pe.fullName || String(pe.value));
@@ -15130,9 +15147,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15130
15147
  value: ["是", "否"]
15131
15148
  });
15132
15149
  }), t;
15133
- }), Ne = me(() => {
15150
+ }), Be = me(() => {
15134
15151
  const t = [];
15135
- return h(m.formData.fields).forEach(($) => {
15152
+ return h(v.formData.fields).forEach(($) => {
15136
15153
  const C = $.__config__;
15137
15154
  !$.__vModel__ || C.noShow || C.cdkey === "billno" || C.cdkey === "calculate" || t.push({
15138
15155
  label: C.label,
@@ -15337,8 +15354,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15337
15354
  })));
15338
15355
  }, ra = () => {
15339
15356
  var $;
15340
- if (m.tableColumns && m.tableColumns.length > 0)
15341
- return m.tableColumns.map((C, K) => ({
15357
+ if (v.tableColumns && v.tableColumns.length > 0)
15358
+ return v.tableColumns.map((C, K) => ({
15342
15359
  ...C,
15343
15360
  sortable: C.sortable !== void 0 ? C.sortable : !0
15344
15361
  }));
@@ -15355,7 +15372,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15355
15372
  slots: {
15356
15373
  footer: "checkbox_footer"
15357
15374
  }
15358
- }), f && t.push(f), (!m.formData.fields || m.formData.fields.length === 0) && Ae.value.length > 0) {
15375
+ }), f && t.push(f), (!v.formData.fields || v.formData.fields.length === 0) && Ae.value.length > 0) {
15359
15376
  const C = Ae.value[0];
15360
15377
  return Object.keys(C).forEach((K) => {
15361
15378
  const Z = {
@@ -15368,13 +15385,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15368
15385
  Ee(Z, { __config__: { cdkey: "input" } }), t.push(Z);
15369
15386
  }), t;
15370
15387
  }
15371
- if (m.formData.fields && m.formData.fields.length > 0) {
15388
+ if (v.formData.fields && v.formData.fields.length > 0) {
15372
15389
  const C = (Z, ne = !1) => {
15373
15390
  const pe = Z.__config__;
15374
15391
  if (pe.noShow)
15375
15392
  return null;
15376
15393
  const Se = pe.showInList;
15377
- if (Se && Array.isArray(Se) && !Se.includes(m.deviceType))
15394
+ if (Se && Array.isArray(Se) && !Se.includes(v.deviceType))
15378
15395
  return null;
15379
15396
  if (pe.cdkey === "vxeSubGrid") {
15380
15397
  const Pe = Z.__vModel__;
@@ -15411,10 +15428,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15411
15428
  }
15412
15429
  return null;
15413
15430
  };
15414
- m.formData.fields.forEach((Z) => {
15431
+ v.formData.fields.forEach((Z) => {
15415
15432
  const ne = C(Z);
15416
15433
  ne && t.push(ne);
15417
- }), t.length < 6 && (t[t.length - 1].width = "20%"), m.formData.fields.some(
15434
+ }), t.length < 6 && (t[t.length - 1].width = "20%"), v.formData.fields.some(
15418
15435
  (Z) => {
15419
15436
  var ne, pe;
15420
15437
  return ((ne = Z.__config__) == null ? void 0 : ne.cdkey) === "vxeSubGrid" && !((pe = Z.__config__) != null && pe.noShow);
@@ -15433,10 +15450,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15433
15450
  border: !1,
15434
15451
  size: "medium",
15435
15452
  round: !0,
15436
- loading: m.loading,
15453
+ loading: v.loading,
15437
15454
  autoResize: !0,
15438
15455
  stripe: !0,
15439
- height: m.showType === "dialog" ? "500px" : "100%",
15456
+ height: v.showType === "dialog" ? "500px" : "100%",
15440
15457
  // dialog模式使用固定高度,列表模式使用100%
15441
15458
  keepSource: !0,
15442
15459
  showOverflow: "tooltip",
@@ -15479,24 +15496,24 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15479
15496
  trigger: "cell"
15480
15497
  },
15481
15498
  scrollY: {
15482
- enabled: m.enableVirtualScroll,
15483
- gt: m.virtualScrollGt || 100
15499
+ enabled: v.enableVirtualScroll,
15500
+ gt: v.virtualScrollGt || 100
15484
15501
  },
15485
15502
  columns: [],
15486
15503
  data: [],
15487
15504
  footerData: []
15488
15505
  });
15489
- ze(() => m.loading, (t) => {
15506
+ ze(() => v.loading, (t) => {
15490
15507
  oe.loading = t;
15491
- }, { immediate: !0 }), ze(() => m.showType, (t) => {
15508
+ }, { immediate: !0 }), ze(() => v.showType, (t) => {
15492
15509
  oe.height = t === "dialog" ? "500px" : "100%";
15493
15510
  }, { immediate: !0 }), ze(() => ce.value, (t) => {
15494
15511
  oe.data = t || [];
15495
- }, { immediate: !1 }), ze(() => [m.formData.fields, m.tableColumns, k.value.groupField], () => {
15512
+ }, { immediate: !1 }), ze(() => [v.formData.fields, v.tableColumns, k.value.groupField], () => {
15496
15513
  oe.columns = ra();
15497
15514
  }, { deep: !0, immediate: !0 }), ze(() => Ae.value.length, () => {
15498
15515
  if (!Ae.value.length || !oe.columns) return;
15499
- const t = h(m.formData.fields), f = new Map(t.map(($) => [$.__vModel__, $]));
15516
+ const t = h(v.formData.fields), f = new Map(t.map(($) => [$.__vModel__, $]));
15500
15517
  oe.columns.forEach(($) => {
15501
15518
  const C = f.get($.field);
15502
15519
  C && Ee($, C);
@@ -15602,7 +15619,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15602
15619
  enabled: !1,
15603
15620
  operations: []
15604
15621
  };
15605
- return h(m.formData.fields).forEach((C) => {
15622
+ return h(v.formData.fields).forEach((C) => {
15606
15623
  const K = C.__config__, Z = C.__vModel__, ne = K.cdkey;
15607
15624
  if (!Z || K.noShow || ne === "billno" || ne === "divider")
15608
15625
  return;
@@ -15643,16 +15660,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15643
15660
  oe.footerData = sa(t);
15644
15661
  }, { deep: !0, immediate: !0 });
15645
15662
  const Le = () => {
15646
- const t = m.formData.popupType;
15647
- return t === "fullScreen" ? "100%" : t === "drawer" ? m.formData.drawerWidth || "70vh" : m.formData.generalWidth || "70vh";
15663
+ const t = v.formData.popupType;
15664
+ return t === "fullScreen" ? "100%" : t === "drawer" ? v.formData.drawerWidth || "70vh" : v.formData.generalWidth || "70vh";
15648
15665
  }, je = (t) => {
15649
15666
  const f = t.value;
15650
15667
  switch (f) {
15651
15668
  case "add":
15652
- ae();
15669
+ le();
15653
15670
  break;
15654
15671
  case "copy":
15655
- Be();
15672
+ Ne();
15656
15673
  break;
15657
15674
  case "edit":
15658
15675
  Re();
@@ -15686,15 +15703,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15686
15703
  }, p = (t) => {
15687
15704
  const { field: f, filterValue: $ } = t;
15688
15705
  w("column-filter", { field: f, filterValue: $ });
15689
- }, v = (t) => {
15706
+ }, m = (t) => {
15690
15707
  const { field: f } = t;
15691
15708
  w("column-filter-reset", f);
15692
- }, ae = () => {
15709
+ }, le = () => {
15693
15710
  W.value = "add", de.value = "新增", re.value = !0, na(() => {
15694
15711
  var t;
15695
15712
  (t = I.value) == null || t.initFormData({});
15696
15713
  });
15697
- }, Be = () => {
15714
+ }, Ne = () => {
15698
15715
  var f;
15699
15716
  const t = (f = d.value) == null ? void 0 : f.getCheckboxRecords();
15700
15717
  if (!t || t.length === 0) {
@@ -15742,8 +15759,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15742
15759
  if (!t || t._isEmpty)
15743
15760
  return;
15744
15761
  w("row-dblclick", t);
15745
- const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1, C = t.FDOCUMENTSTATE === "C" || t.fdocumentstate === "C", K = !($ && C);
15746
- if (m.showType !== "dialog")
15762
+ const $ = ((Z = v.formData) == null ? void 0 : Z.hasWorkflow) || !1, C = t.FDOCUMENTSTATE === "C" || t.fdocumentstate === "C", K = !($ && C);
15763
+ if (v.showType !== "dialog")
15747
15764
  if (B.value && K) {
15748
15765
  const Se = f && ((pe = (ne = d.value) == null ? void 0 : ne.getColumnByField) == null ? void 0 : pe.call(ne, f.field));
15749
15766
  Se != null && Se.editRender || (W.value = "edit", x.value = t, de.value = "编辑", re.value = !0, na(() => {
@@ -15756,8 +15773,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15756
15773
  }), w("detail", t));
15757
15774
  }, la = ({ row: t, column: f }) => {
15758
15775
  if (!(!t || t._isEmpty)) {
15759
- if (m.showType === "dialog" && d.value)
15760
- if (m.selectionMode === "single")
15776
+ if (v.showType === "dialog" && d.value)
15777
+ if (v.selectionMode === "single")
15761
15778
  d.value.clearCheckboxRow(), d.value.setCheckboxRow(t, !0), w("selection-change", [t]);
15762
15779
  else {
15763
15780
  const $ = d.value.isCheckedByCheckboxRow(t);
@@ -15844,11 +15861,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15844
15861
  return;
15845
15862
  }
15846
15863
  const f = (C = I.value) == null ? void 0 : C.getFormData();
15847
- if ((K = m.formData.funcs) != null && K.beforeSubmit)
15864
+ if ((K = v.formData.funcs) != null && K.beforeSubmit)
15848
15865
  try {
15849
15866
  await new Function("context", `
15850
15867
  const { formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
15851
- return ${m.formData.funcs.beforeSubmit}
15868
+ return ${v.formData.funcs.beforeSubmit}
15852
15869
  `)({
15853
15870
  formData: f,
15854
15871
  setFormData: (Se) => Object.assign(f, Se),
@@ -15864,11 +15881,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15864
15881
  console.error("执行 beforeSubmit 出错:", ne), Te.error("提交前验证失败");
15865
15882
  return;
15866
15883
  }
15867
- if (W.value === "add" ? w("add", f) : W.value === "edit" && (x.value && (x.value.fid !== void 0 && (f.fid = x.value.fid), x.value.id !== void 0 && (f.id = x.value.id)), w("edit", f)), (Z = m.formData.funcs) != null && Z.afterSubmit)
15884
+ if (W.value === "add" ? w("add", f) : W.value === "edit" && (x.value && (x.value.fid !== void 0 && (f.fid = x.value.fid), x.value.id !== void 0 && (f.id = x.value.id)), w("edit", f)), (Z = v.formData.funcs) != null && Z.afterSubmit)
15868
15885
  try {
15869
15886
  new Function("context", `
15870
15887
  const { formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
15871
- ${m.formData.funcs.afterSubmit}
15888
+ ${v.formData.funcs.afterSubmit}
15872
15889
  `)({
15873
15890
  formData: f,
15874
15891
  setFormData: () => {
@@ -15887,7 +15904,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15887
15904
  re.value = !1, w("refresh");
15888
15905
  }, Ka = async () => {
15889
15906
  await xa(), setTimeout(() => {
15890
- ae();
15907
+ le();
15891
15908
  }, 300);
15892
15909
  }, Ra = () => {
15893
15910
  re.value = !1;
@@ -15904,7 +15921,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15904
15921
  pageSize: t
15905
15922
  });
15906
15923
  }, ma = (t) => {
15907
- if (m.selectionMode === "single" && d.value) {
15924
+ if (v.selectionMode === "single" && d.value) {
15908
15925
  const f = t.records || [];
15909
15926
  if (f.length > 1) {
15910
15927
  const $ = f[f.length - 1];
@@ -15916,7 +15933,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15916
15933
  }
15917
15934
  w("selection-change", t.records || []);
15918
15935
  }, Qa = (t) => {
15919
- if (m.selectionMode === "single" && d.value) {
15936
+ if (v.selectionMode === "single" && d.value) {
15920
15937
  const f = t.records || [];
15921
15938
  if (f.length > 0) {
15922
15939
  na(() => {
@@ -15962,7 +15979,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15962
15979
  te.value = [], w("color-filter-clear");
15963
15980
  }, rl = me(() => {
15964
15981
  var t;
15965
- return ((t = m.businessFlow) == null ? void 0 : t.downstream) && m.businessFlow.downstream.length > 0;
15982
+ return ((t = v.businessFlow) == null ? void 0 : t.downstream) && v.businessFlow.downstream.length > 0;
15966
15983
  }), Ia = () => {
15967
15984
  var $, C;
15968
15985
  const t = ($ = d.value) == null ? void 0 : $.getCheckboxRecords();
@@ -15970,7 +15987,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15970
15987
  Te.warning("请选择要下推的数据");
15971
15988
  return;
15972
15989
  }
15973
- const f = ((C = m.businessFlow) == null ? void 0 : C.downstream) || [];
15990
+ const f = ((C = v.businessFlow) == null ? void 0 : C.downstream) || [];
15974
15991
  if (f.length === 0) {
15975
15992
  Te.warning("未配置下游单据");
15976
15993
  return;
@@ -16039,7 +16056,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16039
16056
  w("share", t), q.value = !1;
16040
16057
  }, ua = z(/* @__PURE__ */ new Map()), Na = me(() => {
16041
16058
  const t = [];
16042
- return !m.formData.fields || m.formData.fields.length === 0 || m.formData.fields.forEach((f) => {
16059
+ return !v.formData.fields || v.formData.fields.length === 0 || v.formData.fields.forEach((f) => {
16043
16060
  const $ = f.__config__;
16044
16061
  if ($.cdkey === "vxeSubGrid" && !$.noShow) {
16045
16062
  const C = f.__vModel__, K = f.children || f.__config__.children || [];
@@ -16098,10 +16115,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16098
16115
  resizable: !0
16099
16116
  }
16100
16117
  });
16101
- return le({
16118
+ return ae({
16102
16119
  tableRef: d,
16103
16120
  formRenderRef: I,
16104
- handleAdd: ae,
16121
+ handleAdd: le,
16105
16122
  handleEdit: Re,
16106
16123
  handleDelete: oa,
16107
16124
  handleDetail: ea,
@@ -16129,7 +16146,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16129
16146
  "field-options": ee.value,
16130
16147
  "filter-count": 2,
16131
16148
  "select-options": Ue.value,
16132
- "plan-filter-options": m.planFilterOptions || [],
16149
+ "plan-filter-options": v.planFilterOptions || [],
16133
16150
  "person-tabs": [],
16134
16151
  "person-organizations": [],
16135
16152
  "visible-columns": [],
@@ -16274,7 +16291,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16274
16291
  modelValue: E.value,
16275
16292
  "onUpdate:modelValue": f[1] || (f[1] = (ye) => E.value = ye),
16276
16293
  placeholder: "请选择要分组的字段(可多选)",
16277
- options: Ne.value,
16294
+ options: Be.value,
16278
16295
  keys: { label: "label", value: "value" },
16279
16296
  multiple: "",
16280
16297
  clearable: ""
@@ -16388,12 +16405,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16388
16405
  visible: q.value,
16389
16406
  "onUpdate:visible": f[9] || (f[9] = (ye) => q.value = ye),
16390
16407
  title: "单据分享",
16391
- shareUrl: m.shareUrl || "",
16392
- currentPermission: ((Va = m.shareConfig) == null ? void 0 : Va.currentPermission) || "manage",
16393
- owner: (Sa = m.shareConfig) == null ? void 0 : Sa.owner,
16394
- collaborators: ((Ba = m.shareConfig) == null ? void 0 : Ba.collaborators) || [],
16395
- tabs: ((qa = m.shareConfig) == null ? void 0 : qa.tabs) || [],
16396
- organizations: ((La = m.shareConfig) == null ? void 0 : La.organizations) || [],
16408
+ shareUrl: v.shareUrl || "",
16409
+ currentPermission: ((Va = v.shareConfig) == null ? void 0 : Va.currentPermission) || "manage",
16410
+ owner: (Sa = v.shareConfig) == null ? void 0 : Sa.owner,
16411
+ collaborators: ((Ba = v.shareConfig) == null ? void 0 : Ba.collaborators) || [],
16412
+ tabs: ((qa = v.shareConfig) == null ? void 0 : qa.tabs) || [],
16413
+ organizations: ((La = v.shareConfig) == null ? void 0 : La.organizations) || [],
16397
16414
  onConfirm: va
16398
16415
  }, null, 8, ["visible", "shareUrl", "currentPermission", "owner", "collaborators", "tabs", "organizations"])) : H("", !0),
16399
16416
  e("div", {
@@ -16414,7 +16431,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16414
16431
  onCellClick: la,
16415
16432
  onCellDblclick: He,
16416
16433
  onFilterChange: p,
16417
- onFilterReset: v,
16434
+ onFilterReset: m,
16418
16435
  style: {
16419
16436
  "--vxe-ui-table-header-background-color": "#f0f2f5",
16420
16437
  "--vxe-ui-table-footer-background-color": "#fcfffa"
@@ -16492,8 +16509,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16492
16509
  "onUpdate:modelValue": f[10] || (f[10] = (ye) => r.value = ye),
16493
16510
  pageSize: S.value,
16494
16511
  "onUpdate:pageSize": f[11] || (f[11] = (ye) => S.value = ye),
16495
- total: m.pageConfig.total || 0,
16496
- "page-size-options": m.pageConfig.pageSizes || [10, 20, 50, 100, 200],
16512
+ total: v.pageConfig.total || 0,
16513
+ "page-size-options": v.pageConfig.pageSizes || [10, 20, 50, 100, 200],
16497
16514
  "show-jumper": "",
16498
16515
  "show-page-size": "",
16499
16516
  "show-total": !0,
@@ -16587,15 +16604,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16587
16604
  fields: {}
16588
16605
  },
16589
16606
  emits: ["update:modelValue", "save", "advanced-edit", "advanced-design"],
16590
- setup(a, { emit: le }) {
16591
- const n = a, y = le, u = me({
16607
+ setup(a, { emit: ae }) {
16608
+ const n = a, y = ae, u = me({
16592
16609
  get: () => n.modelValue,
16593
16610
  set: (r) => y("update:modelValue", r)
16594
16611
  }), c = z([]);
16595
16612
  ze(() => n.fields, (r) => {
16596
16613
  c.value = JSON.parse(JSON.stringify(r));
16597
16614
  }, { immediate: !0, deep: !0 });
16598
- const m = [
16615
+ const v = [
16599
16616
  { label: "单行文本", value: "input" },
16600
16617
  { label: "多行文本", value: "textarea" },
16601
16618
  { label: "数字", value: "number" },
@@ -16952,7 +16969,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16952
16969
  s(O, {
16953
16970
  modelValue: x.type,
16954
16971
  "onUpdate:modelValue": (_) => x.type = _,
16955
- options: m,
16972
+ options: v,
16956
16973
  size: "small",
16957
16974
  style: { width: "100%" }
16958
16975
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
@@ -17017,12 +17034,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
17017
17034
  }), lm = /* @__PURE__ */ aa(am, [["__scopeId", "data-v-36fbcb77"]]);
17018
17035
  function sm(a) {
17019
17036
  const {
17020
- formModel: le,
17037
+ formModel: ae,
17021
17038
  formConf: n,
17022
17039
  fields: y,
17023
17040
  formId: u = "",
17024
17041
  formStatus: c = "add",
17025
- context: m = {},
17042
+ context: v = {},
17026
17043
  onRefresh: R,
17027
17044
  onClose: k,
17028
17045
  onSave: w,
@@ -17041,12 +17058,12 @@ function sm(a) {
17041
17058
  return A(y), {
17042
17059
  field: (r, S) => {
17043
17060
  if (S !== void 0)
17044
- return le[r] = S, S;
17061
+ return ae[r] = S, S;
17045
17062
  const g = I.get(r);
17046
17063
  return {
17047
- value: () => le[r],
17064
+ value: () => ae[r],
17048
17065
  empty: () => {
17049
- const E = le[r];
17066
+ const E = ae[r];
17050
17067
  return E == null || E === "" || Array.isArray(E) && E.length === 0;
17051
17068
  },
17052
17069
  lock: () => {
@@ -17104,29 +17121,29 @@ function sm(a) {
17104
17121
  save: () => w == null ? void 0 : w(),
17105
17122
  // 子表操作
17106
17123
  entry_row_count: (r) => {
17107
- const S = le[r];
17124
+ const S = ae[r];
17108
17125
  return Array.isArray(S) ? S.length : 0;
17109
17126
  },
17110
17127
  entry_value: (r, S) => {
17111
- const g = S.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : S, re = E ? le[E] : le;
17128
+ const g = S.split("."), E = g.length > 1 ? g[0] : "", O = g.length > 1 ? g[1] : S, re = E ? ae[E] : ae;
17112
17129
  if (Array.isArray(re) && re[r])
17113
17130
  return re[r][O];
17114
17131
  },
17115
17132
  entry_field_set: (r, S, g) => {
17116
- const E = S.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : S, de = O ? le[O] : le;
17133
+ const E = S.split("."), O = E.length > 1 ? E[0] : "", re = E.length > 1 ? E[1] : S, de = O ? ae[O] : ae;
17117
17134
  Array.isArray(de) && de[r] && (de[r][re] = g);
17118
17135
  },
17119
17136
  entry_add_row: (r) => {
17120
- le[r] || (le[r] = []), le[r].push({});
17137
+ ae[r] || (ae[r] = []), ae[r].push({});
17121
17138
  },
17122
17139
  entry_delete_row: (r, S) => {
17123
- Array.isArray(le[r]) && le[r].splice(S, 1);
17140
+ Array.isArray(ae[r]) && ae[r].splice(S, 1);
17124
17141
  },
17125
17142
  entry_clear: (r) => {
17126
- le[r] = [];
17143
+ ae[r] = [];
17127
17144
  }
17128
17145
  },
17129
- context: m,
17146
+ context: v,
17130
17147
  date: {
17131
17148
  today: () => {
17132
17149
  const r = /* @__PURE__ */ new Date();
@@ -17233,7 +17250,7 @@ function sm(a) {
17233
17250
  }
17234
17251
  };
17235
17252
  }
17236
- async function rm(a, le, n) {
17253
+ async function rm(a, ae, n) {
17237
17254
  if (!a || !a.trim())
17238
17255
  return { success: !0 };
17239
17256
  try {
@@ -17253,15 +17270,15 @@ async function rm(a, le, n) {
17253
17270
  ${a}
17254
17271
  })();`
17255
17272
  )(
17256
- le.field,
17257
- le.msg,
17258
- le.form,
17259
- le.context,
17260
- le.date,
17261
- le.util,
17262
- le.event,
17263
- le.db,
17264
- le.api,
17273
+ ae.field,
17274
+ ae.msg,
17275
+ ae.form,
17276
+ ae.context,
17277
+ ae.date,
17278
+ ae.util,
17279
+ ae.event,
17280
+ ae.db,
17281
+ ae.api,
17265
17282
  ...Object.values(n || {})
17266
17283
  ), { success: !0 };
17267
17284
  } catch (y) {