@jari-ace/element-plus-component 0.0.2 → 0.1.1

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.
Files changed (128) hide show
  1. package/README.md +18 -18
  2. package/dist/components/rolePicker/RoleEditor.vue.js +2 -2
  3. package/dist/components/rolePicker/RoleEditor.vue.js.map +1 -1
  4. package/dist/components/tip/index.d.ts +1 -35
  5. package/dist/components/tip/index.d.ts.map +1 -1
  6. package/dist/components/upload/index.d.ts +1 -1
  7. package/dist/components/upload/index.d.ts.map +1 -1
  8. package/dist/hooks/useBridage.d.ts +3 -3
  9. package/dist/hooks/useBridage.d.ts.map +1 -1
  10. package/dist/hooks/useBridage.js +29 -22
  11. package/dist/hooks/useBridage.js.map +1 -1
  12. package/dist/hooks/useUserRefQuery.d.ts +2 -2
  13. package/lib/index.css +1 -1
  14. package/lib/index.js +148 -141
  15. package/lib/index.umd.cjs +2 -2
  16. package/package.json +61 -61
  17. package/packages/components/autoComplete/JaAutoComplete.vue +47 -47
  18. package/packages/components/autoComplete/index.ts +5 -5
  19. package/packages/components/avatar/JaAvatar.vue +126 -126
  20. package/packages/components/avatar/avatarToken.ts +11 -11
  21. package/packages/components/avatar/defaultImg.ts +14 -14
  22. package/packages/components/avatar/index.ts +7 -7
  23. package/packages/components/button/JaButton.vue +51 -51
  24. package/packages/components/button/index.ts +4 -4
  25. package/packages/components/channelPicker/index.ts +7 -7
  26. package/packages/components/channelPicker/src/ChannelPicker.vue +43 -43
  27. package/packages/components/channelPicker/src/JaChannelPicker.vue +42 -42
  28. package/packages/components/checkbox/JaCheckbox.vue +73 -73
  29. package/packages/components/checkbox/index.ts +4 -4
  30. package/packages/components/checkboxGroup/JaCheckboxGroup.vue +45 -45
  31. package/packages/components/checkboxGroup/index.ts +4 -4
  32. package/packages/components/customGroupTree/index.ts +10 -10
  33. package/packages/components/customGroupTree/src/customGroupTree.vue +91 -91
  34. package/packages/components/datePicker/JaDatePicker.vue +52 -52
  35. package/packages/components/datePicker/index.ts +4 -4
  36. package/packages/components/departmentPicker/index.ts +4 -4
  37. package/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -107
  38. package/packages/components/departmentPicker/src/consts.ts +2 -2
  39. package/packages/components/departmentTree/index.ts +10 -10
  40. package/packages/components/departmentTree/src/departmentTree.vue +135 -135
  41. package/packages/components/dropdownButton/JaDropdownButton.vue +59 -59
  42. package/packages/components/dropdownButton/index.ts +4 -4
  43. package/packages/components/enumList/EnumListInput.vue +107 -107
  44. package/packages/components/enumList/JaEnumList.vue +39 -39
  45. package/packages/components/enumList/index.ts +7 -7
  46. package/packages/components/form/JaForm.vue +126 -126
  47. package/packages/components/form/index.ts +5 -5
  48. package/packages/components/form/types.ts +4 -4
  49. package/packages/components/formItem/JaFormItem.vue +68 -68
  50. package/packages/components/formItem/index.ts +4 -4
  51. package/packages/components/index.ts +33 -33
  52. package/packages/components/input/JaInput.vue +143 -143
  53. package/packages/components/input/index.ts +4 -4
  54. package/packages/components/inputI18n/I18nBundleEditor.vue +76 -76
  55. package/packages/components/inputI18n/InputI18n.vue +142 -142
  56. package/packages/components/inputI18n/JaInputI18n.vue +50 -50
  57. package/packages/components/inputI18n/index.ts +8 -8
  58. package/packages/components/inputNumber/JaInputNumber.vue +98 -98
  59. package/packages/components/inputNumber/index.ts +4 -4
  60. package/packages/components/mapItemList/JaMapItemList.vue +35 -35
  61. package/packages/components/mapItemList/MapItemListInput.vue +191 -191
  62. package/packages/components/mapItemList/index.ts +7 -7
  63. package/packages/components/numberList/JaNumberList.vue +36 -36
  64. package/packages/components/numberList/NumberListInput.vue +111 -111
  65. package/packages/components/numberList/index.ts +7 -7
  66. package/packages/components/properyPicker/JaPropertyPicker.vue +38 -38
  67. package/packages/components/properyPicker/PropertyPicker.vue +314 -314
  68. package/packages/components/properyPicker/index.ts +7 -7
  69. package/packages/components/radioGroup/JaRadioGroup.vue +50 -50
  70. package/packages/components/radioGroup/index.ts +4 -4
  71. package/packages/components/rolePicker/RoleEditor.vue +129 -129
  72. package/packages/components/rolePicker/RolePicker.vue +44 -44
  73. package/packages/components/rolePicker/RolePickerRaw.vue +56 -56
  74. package/packages/components/rolePicker/baseRolePicker.vue +86 -86
  75. package/packages/components/rolePicker/index.ts +10 -10
  76. package/packages/components/scrollbar/Scrollbar.vue +89 -89
  77. package/packages/components/scrollbar/index.ts +5 -5
  78. package/packages/components/scrollbar/utils.ts +17 -17
  79. package/packages/components/select/JaSelect.vue +48 -48
  80. package/packages/components/select/index.ts +4 -4
  81. package/packages/components/stringList/JaStringList.vue +36 -36
  82. package/packages/components/stringList/StringListInput.vue +96 -96
  83. package/packages/components/stringList/index.ts +7 -7
  84. package/packages/components/switch/JaSwitch.vue +50 -50
  85. package/packages/components/switch/index.ts +4 -4
  86. package/packages/components/timePicker/JaTimePicker.vue +52 -52
  87. package/packages/components/timePicker/index.ts +5 -5
  88. package/packages/components/tip/index.ts +4 -4
  89. package/packages/components/tip/src/AceTip.vue +43 -43
  90. package/packages/components/upload/index.ts +6 -6
  91. package/packages/components/upload/src/Upload.vue +25 -25
  92. package/packages/components/upload/src/type.ts +3 -3
  93. package/packages/components/userGroupPicker/index.ts +4 -4
  94. package/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -94
  95. package/packages/components/userGroupTree/index.ts +10 -10
  96. package/packages/components/userGroupTree/src/userGroupTree.vue +149 -149
  97. package/packages/components/userPicker/index.ts +10 -10
  98. package/packages/components/userPicker/src/CustomGroupManager.vue +189 -189
  99. package/packages/components/userPicker/src/JaUserList.vue +283 -283
  100. package/packages/components/userPicker/src/JaUserPicker.vue +37 -37
  101. package/packages/components/userPicker/src/UserPicker.vue +366 -366
  102. package/packages/components/userSelectDialog/index.ts +6 -6
  103. package/packages/components/userSelectDialog/src/userSelectDialog.vue +447 -447
  104. package/packages/components/userTag/UserInfoTag.vue +397 -397
  105. package/packages/components/userTag/index.ts +6 -6
  106. package/packages/components/userTag/sharedAxios.ts +8 -8
  107. package/packages/directives/auth/index.ts +41 -41
  108. package/packages/directives/autofocus/index.ts +29 -29
  109. package/packages/directives/index.ts +10 -10
  110. package/packages/directives/shortcut/index.ts +192 -192
  111. package/packages/hooks/useAppInstances.ts +34 -34
  112. package/packages/hooks/useBackendValidations.ts +55 -55
  113. package/packages/hooks/useBridage.ts +157 -148
  114. package/packages/hooks/useDateTimeShortCuts.ts +65 -65
  115. package/packages/hooks/useTreeData.ts +45 -45
  116. package/packages/hooks/useUserRefQuery.ts +222 -222
  117. package/packages/index.ts +21 -21
  118. package/packages/list.json +7 -7
  119. package/packages/types/custom.d.ts +13 -13
  120. package/packages/types/window.d.ts +16 -16
  121. package/packages/utils/install.ts +43 -43
  122. package/packages/utils/objectUtils.ts +31 -31
  123. package/theme-style/fonts/iconfont.json +5196 -5196
  124. package/theme-style/index.scss +10 -10
  125. package/theme-style/styles/element-plus-var.scss +1419 -1419
  126. package/theme-style/styles/iconfont.css +2979 -2979
  127. package/theme-style/styles/theme-var.scss +72 -72
  128. package/theme-style/styles/transition.scss +122 -122
package/lib/index.js CHANGED
@@ -73,7 +73,7 @@ const L = (e, l) => (e.install = (a) => {
73
73
  for (const [t, o] of l)
74
74
  a[t] = o;
75
75
  return a;
76
- }, cl = /* @__PURE__ */ pe(dl, [["__scopeId", "data-v-2cc0dc68"]]), pl = L(cl);
76
+ }, cl = /* @__PURE__ */ pe(dl, [["__scopeId", "data-v-2d61860f"]]), pl = L(cl);
77
77
  function ml(e, l) {
78
78
  const a = Oe({});
79
79
  let t = [];
@@ -1116,7 +1116,7 @@ const ea = {
1116
1116
  ]);
1117
1117
  };
1118
1118
  }
1119
- }), aa = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-a3fae0c2"]]), Hl = /* @__PURE__ */ z({
1119
+ }), aa = /* @__PURE__ */ pe(Gl, [["__scopeId", "data-v-d4e93caa"]]), Hl = /* @__PURE__ */ z({
1120
1120
  __name: "JaNumberList",
1121
1121
  emits: ["change"],
1122
1122
  setup(e, { emit: l }) {
@@ -1244,7 +1244,7 @@ const ea = {
1244
1244
  ]);
1245
1245
  };
1246
1246
  }
1247
- }), la = /* @__PURE__ */ pe(Zl, [["__scopeId", "data-v-49923459"]]), eo = /* @__PURE__ */ z({
1247
+ }), la = /* @__PURE__ */ pe(Zl, [["__scopeId", "data-v-7f910f6d"]]), eo = /* @__PURE__ */ z({
1248
1248
  __name: "JaEnumList",
1249
1249
  props: {
1250
1250
  enumValues: {}
@@ -1402,7 +1402,7 @@ const ea = {
1402
1402
  b(s(me), {
1403
1403
  link: "",
1404
1404
  icon: s(Je),
1405
- onClick: ($) => o(M),
1405
+ onClick: (C) => o(M),
1406
1406
  size: v.size
1407
1407
  }, null, 8, ["icon", "onClick", "size"])
1408
1408
  ], 512), [
@@ -1421,7 +1421,7 @@ const ea = {
1421
1421
  return [
1422
1422
  Y(j("div", ro, [
1423
1423
  b(s(me), {
1424
- onClick: _[0] || (_[0] = ($) => d()),
1424
+ onClick: _[0] || (_[0] = (C) => d()),
1425
1425
  size: v.size,
1426
1426
  link: "",
1427
1427
  icon: s(De)
@@ -1437,7 +1437,7 @@ const ea = {
1437
1437
  ]);
1438
1438
  };
1439
1439
  }
1440
- }), oa = /* @__PURE__ */ pe(so, [["__scopeId", "data-v-bebb510c"]]), uo = /* @__PURE__ */ z({
1440
+ }), oa = /* @__PURE__ */ pe(so, [["__scopeId", "data-v-f8df7c64"]]), uo = /* @__PURE__ */ z({
1441
1441
  __name: "JaMapItemList",
1442
1442
  emits: ["change"],
1443
1443
  setup(e, { emit: l }) {
@@ -1610,7 +1610,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1610
1610
  _: 1
1611
1611
  }, 16, ["src"]));
1612
1612
  }
1613
- }), ho = /* @__PURE__ */ pe(go, [["__scopeId", "data-v-575c2d3a"]]), ut = L(ho);
1613
+ }), ho = /* @__PURE__ */ pe(go, [["__scopeId", "data-v-23297931"]]), ut = L(ho);
1614
1614
  let lt;
1615
1615
  function yo() {
1616
1616
  return lt || (lt = se()), lt;
@@ -1718,7 +1718,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
1718
1718
  ], 2)
1719
1719
  ]),
1720
1720
  default: g(() => {
1721
- var S, M, k, $, T, q, H;
1721
+ var S, M, k, C, T, q, H;
1722
1722
  return [
1723
1723
  Y((w(), N("div", _o, [
1724
1724
  j("div", ko, [
@@ -1766,7 +1766,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
1766
1766
  ]),
1767
1767
  j("p", $o, [
1768
1768
  f[4] || (f[4] = j("span", { class: "label" }, "手机:", -1)),
1769
- G(" " + ae(!(($ = o.value) != null && $.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (T = o.value) == null ? void 0 : T.mobile) + " ", 1),
1769
+ G(" " + ae(!((C = o.value) != null && C.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (T = o.value) == null ? void 0 : T.mobile) + " ", 1),
1770
1770
  f[5] || (f[5] = j("br", null, null, -1)),
1771
1771
  f[6] || (f[6] = j("span", { class: "label" }, "邮箱:", -1)),
1772
1772
  G(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (H = o.value) == null ? void 0 : H.email), 1)
@@ -1780,7 +1780,7 @@ const bo = { class: "portrait" }, wo = { class: "user-info" }, _o = { class: "dr
1780
1780
  _: 1
1781
1781
  }, 8, ["placement", "visible"]));
1782
1782
  }
1783
- }), Do = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-51ad1216"]]), et = L(Do);
1783
+ }), Do = /* @__PURE__ */ pe(Ao, [["__scopeId", "data-v-b26877d9"]]), et = L(Do);
1784
1784
  function Ke(e) {
1785
1785
  var l = typeof e;
1786
1786
  return e != null && (l == "object" || l == "function");
@@ -1875,7 +1875,7 @@ function wt(e, l, a) {
1875
1875
  function k() {
1876
1876
  return n === void 0 ? u : S(ot());
1877
1877
  }
1878
- function $() {
1878
+ function C() {
1879
1879
  var T = ot(), q = y(T);
1880
1880
  if (t = arguments, o = this, c = T, q) {
1881
1881
  if (n === void 0)
@@ -1885,7 +1885,7 @@ function wt(e, l, a) {
1885
1885
  }
1886
1886
  return n === void 0 && (n = setTimeout(f, l)), u;
1887
1887
  }
1888
- return $.cancel = M, $.flush = k, $;
1888
+ return C.cancel = M, C.flush = k, C;
1889
1889
  }
1890
1890
  function pa(e, l, a, t, o, d) {
1891
1891
  const u = h({}), n = h({
@@ -1930,9 +1930,9 @@ function pa(e, l, a, t, o, d) {
1930
1930
  M && y.and(f.userGroups.any().group.sortPath.startWith(M.sortPath));
1931
1931
  const k = u.value.currentCustomGroup;
1932
1932
  k && y.and(f.customGroups.any().customGroup.sortPath.startWith(k.sortPath));
1933
- const $ = u.value.name;
1934
- if ($) {
1935
- const H = "%" + $.split("").join("%") + "%";
1933
+ const C = u.value.name;
1934
+ if (C) {
1935
+ const H = "%" + C.split("").join("%") + "%";
1936
1936
  y.and(f.username.like(H).or(f.fullName.like(H)).or(f.pinYinName.like(H)).or(f.mobile.like(H)));
1937
1937
  }
1938
1938
  l && y.and(l(f));
@@ -2054,7 +2054,7 @@ const Xo = /* @__PURE__ */ z({
2054
2054
  [s(Ae), s(d)]
2055
2055
  ]);
2056
2056
  }
2057
- }), Zo = /* @__PURE__ */ pe(Xo, [["__scopeId", "data-v-b247a32f"]]), ma = L(Zo), fa = "com.csicit.ace.scrollbar.wrapped";
2057
+ }), Zo = /* @__PURE__ */ pe(Xo, [["__scopeId", "data-v-3d45613c"]]), ma = L(Zo), fa = "com.csicit.ace.scrollbar.wrapped";
2058
2058
  var en = "Expected a function";
2059
2059
  function xe(e, l, a) {
2060
2060
  var t = !0, o = !0;
@@ -2087,14 +2087,14 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2087
2087
  return (k = m.value) == null ? void 0 : k.id;
2088
2088
  },
2089
2089
  set(k) {
2090
- m.value = f.groups.find(($) => $.id === k) ?? null;
2090
+ m.value = f.groups.find((C) => C.id === k) ?? null;
2091
2091
  }
2092
2092
  }), [I, y] = ([t, o] = pt(() => Promise.all([
2093
2093
  p.getGlobalApp(),
2094
2094
  p.getAccessible()
2095
2095
  ])), t = await t, o(), t);
2096
2096
  if (y.unshift(I), !r.showConsoleApp) {
2097
- const k = y.findIndex(($) => $.name == "ace-app-manage");
2097
+ const k = y.findIndex((C) => C.name == "ace-app-manage");
2098
2098
  k >= 0 && y.splice(k, 1);
2099
2099
  }
2100
2100
  v.value || (v.value = I.id);
@@ -2121,11 +2121,11 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2121
2121
  }), l({
2122
2122
  reload: S,
2123
2123
  elTree: d
2124
- }), S(), (k, $) => (w(), N("div", tn, [
2124
+ }), S(), (k, C) => (w(), N("div", tn, [
2125
2125
  r.appId ? de("", !0) : (w(), A(s(Me), {
2126
2126
  key: 0,
2127
2127
  modelValue: v.value,
2128
- "onUpdate:modelValue": $[0] || ($[0] = (T) => v.value = T),
2128
+ "onUpdate:modelValue": C[0] || (C[0] = (T) => v.value = T),
2129
2129
  style: { width: "100%" }
2130
2130
  }, {
2131
2131
  default: g(() => [
@@ -2161,7 +2161,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2161
2161
  ])
2162
2162
  ]));
2163
2163
  }
2164
- }), ln = /* @__PURE__ */ pe(an, [["__scopeId", "data-v-d45cc589"]]), va = L(ln), on = /* @__PURE__ */ z({
2164
+ }), ln = /* @__PURE__ */ pe(an, [["__scopeId", "data-v-69d218a4"]]), va = L(ln), on = /* @__PURE__ */ z({
2165
2165
  __name: "customGroupTree",
2166
2166
  props: /* @__PURE__ */ Q({
2167
2167
  multiple: { type: Boolean }
@@ -2212,7 +2212,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2212
2212
  [s(Ae), s(d)]
2213
2213
  ]);
2214
2214
  }
2215
- }), nn = /* @__PURE__ */ pe(on, [["__scopeId", "data-v-4e04bc5c"]]), rn = L(nn), sn = {
2215
+ }), nn = /* @__PURE__ */ pe(on, [["__scopeId", "data-v-78c7dcfc"]]), rn = L(nn), sn = {
2216
2216
  class: "ja-user-select-dialog"
2217
2217
  }, un = {
2218
2218
  class: "ja-user-select-dialog__content"
@@ -2302,7 +2302,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2302
2302
  style: "flex:auto"
2303
2303
  })]);
2304
2304
  }
2305
- }], M = h(!1), k = h(), $ = xe(B, 100), T = xe(Z, 100);
2305
+ }], M = h(!1), k = h(), C = xe(B, 100), T = xe(Z, 100);
2306
2306
  P(n, () => {
2307
2307
  I.value == "dept" && (f.queryParams.value.currentDept = n.value);
2308
2308
  }), P(c, () => {
@@ -2326,7 +2326,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2326
2326
  y.value = x;
2327
2327
  }
2328
2328
  $e(() => {
2329
- $.cancel(), T.cancel();
2329
+ C.cancel(), T.cancel();
2330
2330
  });
2331
2331
  function ye() {
2332
2332
  if (Array.isArray(y.value)) {
@@ -2337,7 +2337,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2337
2337
  function be() {
2338
2338
  Array.isArray(y.value) && (_.clear(), y.value.splice(0));
2339
2339
  }
2340
- function C() {
2340
+ function $() {
2341
2341
  if (Array.isArray(y.value)) {
2342
2342
  const x = f.queryResult.value.users.filter((U) => !q(U));
2343
2343
  _.clear(), x.forEach((U) => _.set(U.id, U)), y.value.splice(0), y.value.push(...x);
@@ -2366,7 +2366,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2366
2366
  D && D < v.value.length && k.value.scrollToRow(D + 1), D = void 0;
2367
2367
  }
2368
2368
  function ie(x, U) {
2369
- M.value = x.buttons > 0, M.value && (D = U, $());
2369
+ M.value = x.buttons > 0, M.value && (D = U, C());
2370
2370
  }
2371
2371
  return l({
2372
2372
  show() {
@@ -2543,7 +2543,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2543
2543
  link: "",
2544
2544
  tooltip: "清除选中项,并选中之前未被选中项",
2545
2545
  shortcut: "Ctrl+F",
2546
- onClick: C
2546
+ onClick: $
2547
2547
  }, {
2548
2548
  default: g(() => U[9] || (U[9] = [G("反选 ")])),
2549
2549
  _: 1,
@@ -2554,7 +2554,7 @@ const tn = { class: "ja-user-group-tree" }, an = /* @__PURE__ */ z({
2554
2554
  _: 1
2555
2555
  }, 8, ["modelValue"]));
2556
2556
  }
2557
- }), pn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-726bdb23"]]), ga = L(pn), mn = /* @__PURE__ */ z({
2557
+ }), pn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-d800ec6a"]]), ga = L(pn), mn = /* @__PURE__ */ z({
2558
2558
  __name: "Scrollbar",
2559
2559
  setup(e, { expose: l }) {
2560
2560
  const a = h(), t = h([]), o = /* @__PURE__ */ new Map();
@@ -2715,14 +2715,14 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2715
2715
  const a = h(!1), t = se(), o = Ht(t), d = h(), u = {
2716
2716
  label: "name",
2717
2717
  children: "children",
2718
- isLeaf: (k, $) => !k.hasChildren,
2718
+ isLeaf: (k, C) => !k.hasChildren,
2719
2719
  class: (k) => {
2720
- var $;
2721
- return k.id === (($ = n.value) == null ? void 0 : $.id) ? "selected-group" : "group";
2720
+ var C;
2721
+ return k.id === ((C = n.value) == null ? void 0 : C.id) ? "selected-group" : "group";
2722
2722
  }
2723
2723
  }, n = h(), c = h(!1), p = h(), r = _e(t), i = e, m = {};
2724
2724
  async function v() {
2725
- const k = Pe(await o.getAll()), $ = {
2725
+ const k = Pe(await o.getAll()), C = {
2726
2726
  id: "-1",
2727
2727
  name: "[顶级组]",
2728
2728
  children: k,
@@ -2733,7 +2733,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2733
2733
  sortIndex: 0,
2734
2734
  sortPath: ""
2735
2735
  };
2736
- return d.value = [$], $;
2736
+ return d.value = [C], C;
2737
2737
  }
2738
2738
  async function _() {
2739
2739
  n.value = await v();
@@ -2745,10 +2745,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2745
2745
  p.value = void 0, c.value = !0;
2746
2746
  }
2747
2747
  async function f() {
2748
- var k, $;
2748
+ var k, C;
2749
2749
  await o.create({
2750
2750
  name: p.value,
2751
- parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || ($ = n.value) == null ? void 0 : $.id
2751
+ parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (C = n.value) == null ? void 0 : C.id
2752
2752
  }), c.value = !1, await v();
2753
2753
  }
2754
2754
  async function S() {
@@ -2762,7 +2762,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2762
2762
  }
2763
2763
  await o.setMembers({
2764
2764
  id: n.value.id,
2765
- userIds: ((k = i.users) == null ? void 0 : k.map(($) => $.id)) ?? []
2765
+ userIds: ((k = i.users) == null ? void 0 : k.map((C) => C.id)) ?? []
2766
2766
  }, m), a.value = !1;
2767
2767
  }
2768
2768
  return l({
@@ -2772,10 +2772,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2772
2772
  close() {
2773
2773
  a.value = !1;
2774
2774
  }
2775
- }), (k, $) => (w(), N(re, null, [
2775
+ }), (k, C) => (w(), N(re, null, [
2776
2776
  b(s(rt), {
2777
2777
  modelValue: a.value,
2778
- "onUpdate:modelValue": $[1] || ($[1] = (T) => a.value = T),
2778
+ "onUpdate:modelValue": C[1] || (C[1] = (T) => a.value = T),
2779
2779
  "destroy-on-close": "",
2780
2780
  "append-to-body": "",
2781
2781
  draggable: "",
@@ -2790,16 +2790,16 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2790
2790
  loading: s(r),
2791
2791
  onClick: M
2792
2792
  }, {
2793
- default: g(() => $[6] || ($[6] = [
2793
+ default: g(() => C[6] || (C[6] = [
2794
2794
  G("确定 ")
2795
2795
  ])),
2796
2796
  _: 1,
2797
2797
  __: [6]
2798
2798
  }, 8, ["loading"]),
2799
2799
  b(s(me), {
2800
- onClick: $[0] || ($[0] = (T) => a.value = !1)
2800
+ onClick: C[0] || (C[0] = (T) => a.value = !1)
2801
2801
  }, {
2802
- default: g(() => $[7] || ($[7] = [
2802
+ default: g(() => C[7] || (C[7] = [
2803
2803
  G("取消")
2804
2804
  ])),
2805
2805
  _: 1,
@@ -2811,7 +2811,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2811
2811
  b(s(ft), null, {
2812
2812
  default: g(() => [
2813
2813
  b(s(Te), null, {
2814
- default: g(() => $[5] || ($[5] = [
2814
+ default: g(() => C[5] || (C[5] = [
2815
2815
  G("请创建或选择要保存为的自定义组:")
2816
2816
  ])),
2817
2817
  _: 1,
@@ -2861,7 +2861,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2861
2861
  }, 8, ["modelValue"]),
2862
2862
  b(s(rt), {
2863
2863
  modelValue: c.value,
2864
- "onUpdate:modelValue": $[4] || ($[4] = (T) => c.value = T),
2864
+ "onUpdate:modelValue": C[4] || (C[4] = (T) => c.value = T),
2865
2865
  "destroy-on-close": "",
2866
2866
  "append-to-body": "",
2867
2867
  title: "添加自定义组",
@@ -2875,17 +2875,17 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2875
2875
  loading: s(r),
2876
2876
  size: "default"
2877
2877
  }, {
2878
- default: g(() => $[8] || ($[8] = [
2878
+ default: g(() => C[8] || (C[8] = [
2879
2879
  G(" 确定 ")
2880
2880
  ])),
2881
2881
  _: 1,
2882
2882
  __: [8]
2883
2883
  }, 8, ["loading"]),
2884
2884
  b(s(me), {
2885
- onClick: $[3] || ($[3] = (T) => c.value = !1),
2885
+ onClick: C[3] || (C[3] = (T) => c.value = !1),
2886
2886
  size: "default"
2887
2887
  }, {
2888
- default: g(() => $[9] || ($[9] = [
2888
+ default: g(() => C[9] || (C[9] = [
2889
2889
  G("取消")
2890
2890
  ])),
2891
2891
  _: 1,
@@ -2902,7 +2902,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2902
2902
  default: g(() => [
2903
2903
  Y(b(s(we), {
2904
2904
  modelValue: p.value,
2905
- "onUpdate:modelValue": $[2] || ($[2] = (T) => p.value = T),
2905
+ "onUpdate:modelValue": C[2] || (C[2] = (T) => p.value = T),
2906
2906
  style: { width: "100%" }
2907
2907
  }, null, 8, ["modelValue"]), [
2908
2908
  [s(kt)]
@@ -2918,7 +2918,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2918
2918
  }, 8, ["modelValue"])
2919
2919
  ], 64));
2920
2920
  }
2921
- }), Yn = /* @__PURE__ */ pe(Kn, [["__scopeId", "data-v-1bab28b9"]]), Qn = { class: "ja-user-list" }, Xn = ["onMouseenter", "onMousedown", "onMouseover"], Zn = {
2921
+ }), Yn = /* @__PURE__ */ pe(Kn, [["__scopeId", "data-v-8ef9bcd8"]]), Qn = { class: "ja-user-list" }, Xn = ["onMouseenter", "onMousedown", "onMouseover"], Zn = {
2922
2922
  key: 0,
2923
2923
  class: "page-indicator"
2924
2924
  }, er = { class: "nb-spinner" }, tr = 1, ar = /* @__PURE__ */ z({
@@ -2945,27 +2945,27 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2945
2945
  setup(e, { expose: l, emit: a }) {
2946
2946
  const t = e, o = h(0), d = h(), u = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = a, i = xe(() => {
2947
2947
  var O;
2948
- const C = (O = d.value) == null ? void 0 : O.wrapRef;
2949
- C && C.scrollHeight - C.scrollTop <= C.clientHeight + tr && c.value < t.total / t.pageSize && c.value++;
2948
+ const $ = (O = d.value) == null ? void 0 : O.wrapRef;
2949
+ $ && $.scrollHeight - $.scrollTop <= $.clientHeight + tr && c.value < t.total / t.pageSize && c.value++;
2950
2950
  }, 200);
2951
- function m(C) {
2951
+ function m($) {
2952
2952
  if (t.multiple) {
2953
2953
  if (!Array.isArray(n.value))
2954
2954
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
2955
- const O = n.value.findIndex((R) => R.id == C.id);
2956
- O < 0 ? n.value.push(C) : n.value.splice(O, 1);
2955
+ const O = n.value.findIndex((R) => R.id == $.id);
2956
+ O < 0 ? n.value.push($) : n.value.splice(O, 1);
2957
2957
  } else
2958
- n.value = C;
2958
+ n.value = $;
2959
2959
  }
2960
2960
  let v;
2961
- function _(C) {
2962
- m(C), u.value = !0, v = C;
2961
+ function _($) {
2962
+ m($), u.value = !0, v = $;
2963
2963
  }
2964
2964
  function I() {
2965
2965
  u.value = !1, p("itemClicked", v), v = void 0;
2966
2966
  }
2967
- function y(C) {
2968
- u.value && m(C);
2967
+ function y($) {
2968
+ u.value && m($);
2969
2969
  }
2970
2970
  function f() {
2971
2971
  o.value < t.users.length - 1 && o.value++, M();
@@ -2976,38 +2976,38 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2976
2976
  const M = () => {
2977
2977
  Ie(() => {
2978
2978
  var R, X, ee;
2979
- const C = (R = d.value) == null ? void 0 : R.$refs.wrapRef, O = C == null ? void 0 : C.querySelectorAll("li")[o.value];
2980
- if (O && C) {
2981
- const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = C.scrollTop, B = C.scrollTop + C.clientHeight;
2979
+ const $ = (R = d.value) == null ? void 0 : R.$refs.wrapRef, O = $ == null ? void 0 : $.querySelectorAll("li")[o.value];
2980
+ if (O && $) {
2981
+ const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = $.scrollTop, B = $.scrollTop + $.clientHeight;
2982
2982
  V > B ? (X = d.value) == null || X.scrollTo(
2983
2983
  0,
2984
- V - C.clientHeight + O.offsetHeight - 38
2984
+ V - $.clientHeight + O.offsetHeight - 38
2985
2985
  ) : E < D && ((ee = d.value) == null || ee.scrollTo(0, E));
2986
2986
  }
2987
2987
  });
2988
- }, k = xe(f, 100), $ = xe(S, 100);
2989
- function T(C, O) {
2988
+ }, k = xe(f, 100), C = xe(S, 100);
2989
+ function T($, O) {
2990
2990
  var R;
2991
- if (o.value = O, u.value = C.buttons > 0, u.value) {
2992
- const X = (R = d.value) == null ? void 0 : R.$refs.wrapRef, ee = C.target;
2991
+ if (o.value = O, u.value = $.buttons > 0, u.value) {
2992
+ const X = (R = d.value) == null ? void 0 : R.$refs.wrapRef, ee = $.target;
2993
2993
  if (ee && X) {
2994
2994
  const E = ee.offsetTop, V = ee.offsetTop + ee.offsetHeight, D = X.scrollTop, B = X.scrollTop + X.clientHeight;
2995
- V + 20 > B ? k() : E < D + 20 && $();
2995
+ V + 20 > B ? k() : E < D + 20 && C();
2996
2996
  }
2997
2997
  }
2998
2998
  }
2999
- function q(C) {
3000
- return Z.value.some((O) => O.id === C.id);
2999
+ function q($) {
3000
+ return Z.value.some((O) => O.id === $.id);
3001
3001
  }
3002
- const H = (C) => Z.value.some((O) => O.id === C.id) ? "autumnOrange" : "skyGray", Z = ge(() => {
3002
+ const H = ($) => Z.value.some((O) => O.id === $.id) ? "autumnOrange" : "skyGray", Z = ge(() => {
3003
3003
  if (t.multiple && Array.isArray(n.value))
3004
3004
  return n.value;
3005
3005
  if (!t.multiple && !Array.isArray(n.value))
3006
3006
  return n.value ? [n.value] : [];
3007
3007
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
3008
3008
  });
3009
- function ye(C) {
3010
- return C === o.value ? "active" : "";
3009
+ function ye($) {
3010
+ return $ === o.value ? "active" : "";
3011
3011
  }
3012
3012
  const be = ge(() => t.loading && t.users.length == 0);
3013
3013
  return l({
@@ -3023,21 +3023,21 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3023
3023
  }, {
3024
3024
  deep: !1
3025
3025
  }), $e(() => {
3026
- k.cancel(), $.cancel(), i.cancel();
3027
- }), (C, O) => (w(), N("div", Qn, [
3026
+ k.cancel(), C.cancel(), i.cancel();
3027
+ }), ($, O) => (w(), N("div", Qn, [
3028
3028
  Y((w(), A(s(Ce), {
3029
- height: C.height,
3029
+ height: $.height,
3030
3030
  ref_key: "scrollbar",
3031
3031
  ref: d,
3032
3032
  always: "",
3033
3033
  onScroll: s(i)
3034
3034
  }, {
3035
3035
  default: g(() => [
3036
- C.users.length > 0 ? (w(), N("ul", {
3036
+ $.users.length > 0 ? (w(), N("ul", {
3037
3037
  key: 0,
3038
3038
  onMouseup: I
3039
3039
  }, [
3040
- (w(!0), N(re, null, W(C.users, (R, X) => (w(), N("li", {
3040
+ (w(!0), N(re, null, W($.users, (R, X) => (w(), N("li", {
3041
3041
  key: R.id,
3042
3042
  class: Ge(ye(X)),
3043
3043
  onMouseenter: (ee) => u.value && y(R),
@@ -3060,22 +3060,22 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3060
3060
  ], 42, Xn))), 128))
3061
3061
  ], 32)) : (w(), A(s(xt), {
3062
3062
  key: 1,
3063
- description: C.emptyText
3063
+ description: $.emptyText
3064
3064
  }, null, 8, ["description"]))
3065
3065
  ]),
3066
3066
  _: 1
3067
3067
  }, 8, ["height", "onScroll"])), [
3068
3068
  [s(Ae), be.value]
3069
3069
  ]),
3070
- C.users.length > 0 ? (w(), N("div", Zn, [
3070
+ $.users.length > 0 ? (w(), N("div", Zn, [
3071
3071
  Y(j("div", er, null, 512), [
3072
- [ve, C.loading]
3072
+ [ve, $.loading]
3073
3073
  ]),
3074
- G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(C.total / C.pageSize)) + "页 ", 1)
3074
+ G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil($.total / $.pageSize)) + "页 ", 1)
3075
3075
  ])) : de("", !0)
3076
3076
  ]));
3077
3077
  }
3078
- }), Ca = /* @__PURE__ */ pe(ar, [["__scopeId", "data-v-e4c1ead2"]]), lr = { class: "ja-user-picker__root" }, or = { class: "ja-user-picker-bookmark__dropdown" }, nr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, rr = { style: { color: "var(--el-color-info-light-5)" } }, sr = { class: "dropdown-header" }, ur = {
3078
+ }), Ca = /* @__PURE__ */ pe(ar, [["__scopeId", "data-v-6fd19ea8"]]), lr = { class: "ja-user-picker__root" }, or = { class: "ja-user-picker-bookmark__dropdown" }, nr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, rr = { style: { color: "var(--el-color-info-light-5)" } }, sr = { class: "dropdown-header" }, ur = {
3079
3079
  key: 0,
3080
3080
  class: "more-tag"
3081
3081
  }, ir = { key: 1 }, Re = 0, dr = /* @__PURE__ */ z({
@@ -3159,7 +3159,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3159
3159
  (D = c.value) == null || D.focus();
3160
3160
  }, 300);
3161
3161
  }
3162
- function $() {
3162
+ function C() {
3163
3163
  var V;
3164
3164
  (V = _.value) == null || V.$el.focus();
3165
3165
  }
@@ -3189,7 +3189,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3189
3189
  function be() {
3190
3190
  p.value = !0;
3191
3191
  }
3192
- function C() {
3192
+ function $() {
3193
3193
  const V = n.value;
3194
3194
  V.push(...u.value.filter((D) => !V.some((B) => B.id === D.id)));
3195
3195
  }
@@ -3222,7 +3222,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3222
3222
  b(s(Nt), {
3223
3223
  ref: "bookmarkDropdown",
3224
3224
  onShow: k,
3225
- onHide: $,
3225
+ onHide: C,
3226
3226
  width: "auto",
3227
3227
  teleported: "",
3228
3228
  visible: p.value,
@@ -3267,7 +3267,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3267
3267
  key: 0,
3268
3268
  circle: "",
3269
3269
  size: "small",
3270
- onClick: C,
3270
+ onClick: $,
3271
3271
  type: "success",
3272
3272
  plain: "",
3273
3273
  icon: s(ol),
@@ -3385,7 +3385,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3385
3385
  }, null, 8, ["users"])
3386
3386
  ], 64));
3387
3387
  }
3388
- }), $a = /* @__PURE__ */ pe(dr, [["__scopeId", "data-v-dfe0ab75"]]), cr = /* @__PURE__ */ z({
3388
+ }), $a = /* @__PURE__ */ pe(dr, [["__scopeId", "data-v-dff7e717"]]), cr = /* @__PURE__ */ z({
3389
3389
  __name: "JaUserPicker",
3390
3390
  emits: ["change"],
3391
3391
  setup(e, { emit: l }) {
@@ -3577,8 +3577,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3577
3577
  return S[M];
3578
3578
  const k = S[M].children;
3579
3579
  if (k) {
3580
- const $ = y(f, k);
3581
- if ($) return $;
3580
+ const C = y(f, k);
3581
+ if (C) return C;
3582
3582
  }
3583
3583
  }
3584
3584
  }
@@ -3752,14 +3752,17 @@ const Ir = /* @__PURE__ */ z({
3752
3752
  prop: "caption",
3753
3753
  required: ""
3754
3754
  }, {
3755
- default: g(() => [
3756
- b(S, {
3757
- "app-id": v.value.id,
3758
- size: "small",
3759
- modelValue: u.value.formData.caption,
3760
- "onUpdate:modelValue": f[0] || (f[0] = (k) => u.value.formData.caption = k)
3761
- }, null, 8, ["app-id", "modelValue"])
3762
- ]),
3755
+ default: g(() => {
3756
+ var k;
3757
+ return [
3758
+ b(S, {
3759
+ "app-id": (k = v.value) == null ? void 0 : k.id,
3760
+ size: "small",
3761
+ modelValue: u.value.formData.caption,
3762
+ "onUpdate:modelValue": f[0] || (f[0] = (C) => u.value.formData.caption = C)
3763
+ }, null, 8, ["app-id", "modelValue"])
3764
+ ];
3765
+ }),
3763
3766
  _: 1
3764
3767
  }),
3765
3768
  b(s(Le), {
@@ -3843,7 +3846,7 @@ const Ir = /* @__PURE__ */ z({
3843
3846
  ]), 1040, ["app-name", "modelValue"])
3844
3847
  ]));
3845
3848
  }
3846
- }), Aa = /* @__PURE__ */ pe($r, [["__scopeId", "data-v-dd3083a0"]]), Ar = /* @__PURE__ */ z({
3849
+ }), Aa = /* @__PURE__ */ pe($r, [["__scopeId", "data-v-36b2392a"]]), Ar = /* @__PURE__ */ z({
3847
3850
  __name: "RolePicker",
3848
3851
  props: {
3849
3852
  appName: {}
@@ -3982,7 +3985,7 @@ const Ir = /* @__PURE__ */ z({
3982
3985
  function k(E) {
3983
3986
  p.value = E;
3984
3987
  }
3985
- function $(E) {
3988
+ function C(E) {
3986
3989
  return p.value === E ? "active" : "";
3987
3990
  }
3988
3991
  function T(E) {
@@ -4012,7 +4015,7 @@ const Ir = /* @__PURE__ */ z({
4012
4015
  const E = n.value[p.value];
4013
4016
  E && T(E);
4014
4017
  }
4015
- function C() {
4018
+ function $() {
4016
4019
  var E;
4017
4020
  I.value && I.value.length > 0 || (E = o.value) == null || E.pop();
4018
4021
  }
@@ -4085,7 +4088,7 @@ const Ir = /* @__PURE__ */ z({
4085
4088
  onFocus: V[1] || (V[1] = (D) => m.value = !0),
4086
4089
  onBlur: V[2] || (V[2] = (D) => m.value = !1),
4087
4090
  onKeydown: [
4088
- Ve(C, ["delete"]),
4091
+ Ve($, ["delete"]),
4089
4092
  Ve(Z, ["down"]),
4090
4093
  Ve(ye, ["up"]),
4091
4094
  Ve(be, ["enter"])
@@ -4109,7 +4112,7 @@ const Ir = /* @__PURE__ */ z({
4109
4112
  key: B.id,
4110
4113
  onMouseenter: (x) => k(ie),
4111
4114
  onClick: (x) => T(B),
4112
- class: Ge($(ie))
4115
+ class: Ge(C(ie))
4113
4116
  }, [
4114
4117
  B.dataType === "ENTITY" ? (w(), N("span", zr, ae(M(B)), 1)) : (w(), N("span", Br, ae(M(B)), 1))
4115
4118
  ], 42, Ur))), 128))
@@ -4147,7 +4150,7 @@ const Ir = /* @__PURE__ */ z({
4147
4150
  _: 1
4148
4151
  }));
4149
4152
  }
4150
- }), Ea = /* @__PURE__ */ pe(Rr, [["__scopeId", "data-v-f2487dc4"]]), Lr = /* @__PURE__ */ z({
4153
+ }), Ea = /* @__PURE__ */ pe(Rr, [["__scopeId", "data-v-24d9cf5a"]]), Lr = /* @__PURE__ */ z({
4151
4154
  __name: "JaPropertyPicker",
4152
4155
  emits: ["change"],
4153
4156
  setup(e, { emit: l }) {
@@ -4263,7 +4266,7 @@ const Ir = /* @__PURE__ */ z({
4263
4266
  type: "textarea",
4264
4267
  rows: 4,
4265
4268
  modelValue: r.value[k],
4266
- "onUpdate:modelValue": ($) => r.value[k] = $
4269
+ "onUpdate:modelValue": (C) => r.value[k] = C
4267
4270
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
4268
4271
  ]),
4269
4272
  _: 2
@@ -4294,47 +4297,47 @@ const Ir = /* @__PURE__ */ z({
4294
4297
  async setup(e, { expose: l, emit: a }) {
4295
4298
  let t, o;
4296
4299
  const d = e, u = ue(e, "modelValue"), n = Qa(), c = Kt(n), p = Xe().locale, r = h(), i = h(!1), m = h(!1), v = h(), _ = h(""), I = ([t, o] = pt(() => Vt()), t = await t, o(), t), y = h(""), f = h(""), S = h(), M = a, k = wt(T, 500);
4297
- let $;
4298
- async function T(C) {
4299
- if (C || (C = u.value), !d.appId) return;
4300
+ let C;
4301
+ async function T($) {
4302
+ if ($ || ($ = u.value), !d.appId) return;
4300
4303
  const O = await I.getById(d.appId);
4301
- if (_.value = O.name, !C || !_.value) {
4304
+ if (_.value = O.name, !$ || !_.value) {
4302
4305
  f.value = "";
4303
4306
  return;
4304
4307
  }
4305
- f.value = C;
4306
- let R = C;
4307
- C && C.length > 0 && (R = Hn(R), R.startsWith("{") && R.endsWith("}") && (R = R.substring(1, R.length - 1)));
4308
+ f.value = $;
4309
+ let R = $;
4310
+ $ && $.length > 0 && (R = Hn(R), R.startsWith("{") && R.endsWith("}") && (R = R.substring(1, R.length - 1)));
4308
4311
  const ee = (await c.getByKey(_.value, R, {
4309
4312
  cancelDuplicatedRequest: !1
4310
4313
  })).find((E) => E.locale === p);
4311
4314
  ee && (f.value = ee.message);
4312
4315
  }
4313
- async function q(C) {
4314
- y.value = C, r.value = await c.searchKeys(_.value, C);
4316
+ async function q($) {
4317
+ y.value = $, r.value = await c.searchKeys(_.value, $);
4315
4318
  }
4316
4319
  async function H() {
4317
- var C;
4318
- i.value = !0, await Ie(), M("focus"), (C = v.value) == null || C.focus();
4320
+ var $;
4321
+ i.value = !0, await Ie(), M("focus"), ($ = v.value) == null || $.focus();
4319
4322
  }
4320
4323
  function Z() {
4321
- $ = setTimeout(() => {
4324
+ C = setTimeout(() => {
4322
4325
  i.value = !1;
4323
4326
  }, 200), M("blur");
4324
4327
  }
4325
4328
  $e(() => {
4326
- k.cancel(), $ && clearTimeout($);
4329
+ k.cancel(), C && clearTimeout(C);
4327
4330
  }), P(u, () => {
4328
4331
  k();
4329
4332
  }, {
4330
4333
  deep: !0,
4331
4334
  immediate: !0
4332
4335
  });
4333
- function ye(C) {
4334
- M("change", C);
4336
+ function ye($) {
4337
+ M("change", $);
4335
4338
  }
4336
- async function be(C) {
4337
- await q(y.value), u.value = "{" + C + "}", S.value.focus;
4339
+ async function be($) {
4340
+ await q(y.value), u.value = "{" + $ + "}", S.value.focus;
4338
4341
  }
4339
4342
  return l({
4340
4343
  focus() {
@@ -4343,16 +4346,16 @@ const Ir = /* @__PURE__ */ z({
4343
4346
  blur() {
4344
4347
  v == null || v.value.blur();
4345
4348
  }
4346
- }), (C, O) => (w(), N(re, null, [
4349
+ }), ($, O) => (w(), N(re, null, [
4347
4350
  Y(b(s(we), {
4348
4351
  ref_key: "selectI18n",
4349
4352
  ref: S,
4350
4353
  onFocus: H,
4351
4354
  modelValue: f.value,
4352
4355
  "onUpdate:modelValue": O[0] || (O[0] = (R) => f.value = R),
4353
- size: C.size,
4354
- disabled: C.disabled,
4355
- type: C.textarea ? "textarea" : void 0
4356
+ size: $.size,
4357
+ disabled: $.disabled,
4358
+ type: $.textarea ? "textarea" : void 0
4356
4359
  }, null, 8, ["modelValue", "size", "disabled", "type"]), [
4357
4360
  [ve, !i.value]
4358
4361
  ]),
@@ -4362,11 +4365,11 @@ const Ir = /* @__PURE__ */ z({
4362
4365
  filterable: "",
4363
4366
  remote: "",
4364
4367
  "remote-method": q,
4365
- disabled: C.disabled,
4368
+ disabled: $.disabled,
4366
4369
  "default-first-option": "",
4367
4370
  "remote-show-suffix": "",
4368
4371
  onChange: ye,
4369
- size: C.size,
4372
+ size: $.size,
4370
4373
  "allow-create": "",
4371
4374
  clearable: "",
4372
4375
  onBlur: Z,
@@ -4400,7 +4403,7 @@ const Ir = /* @__PURE__ */ z({
4400
4403
  [ve, i.value]
4401
4404
  ]),
4402
4405
  b(Or, {
4403
- "app-id": C.appId,
4406
+ "app-id": $.appId,
4404
4407
  "pre-key": y.value,
4405
4408
  modelValue: m.value,
4406
4409
  "onUpdate:modelValue": O[3] || (O[3] = (R) => m.value = R),
@@ -4544,24 +4547,28 @@ const Zr = [
4544
4547
  ];
4545
4548
  function es(e) {
4546
4549
  if (!e)
4547
- throw new Error("无法获取到应用名称,请确保VITE_APP_NAME环境变量已配置或者在创建时传入appName参数。");
4548
- const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0) => {
4549
- const i = {
4550
+ throw new Error(
4551
+ "无法获取到应用名称,请确保VITE_APP_NAME环境变量已配置或者在创建时传入appName参数。"
4552
+ );
4553
+ if (!window.microApp)
4554
+ throw new Error("无法获取到window.microApp。");
4555
+ const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0, i = !0) => {
4556
+ const m = {
4550
4557
  sender: e,
4551
- //将自己的appName填入sender字段
4558
+ // 将自己的appName填入sender字段
4552
4559
  timestamp: Date.now(),
4553
4560
  payload: p
4554
4561
  };
4555
- r ? window.microApp.forceDispatch(i) : window.microApp.dispatch(i, (m) => {
4556
- console.log("消息是否有返回值", m);
4557
- }), u();
4562
+ r ? window.microApp.forceDispatch(m) : window.microApp.dispatch(m, (v) => {
4563
+ console.log("消息是否有返回值", v);
4564
+ }), i && u();
4558
4565
  }, t = (p, r = !0) => {
4559
4566
  const i = {
4560
4567
  sender: "app-demo",
4561
4568
  timestamp: Date.now(),
4562
4569
  payload: p
4563
4570
  };
4564
- window.microApp.setGlobalData(i);
4571
+ window.microApp.setGlobalData(i), r && u();
4565
4572
  }, o = (p, r = !0) => {
4566
4573
  window.microApp.addGlobalDataListener(p, r);
4567
4574
  }, d = () => window.microApp.getData(), u = () => {
@@ -4579,18 +4586,18 @@ function es(e) {
4579
4586
  onMessage: n,
4580
4587
  // 监听消息的方法
4581
4588
  clearCache: u,
4582
- //清除缓存
4589
+ // 清除缓存
4583
4590
  getBaseAppData: d,
4584
- //获取主应用下发的消息
4591
+ // 获取主应用下发的消息
4585
4592
  offMessage: c,
4586
- //移除指定监听函数
4593
+ // 移除指定监听函数
4587
4594
  listeners: l,
4588
4595
  // 应用的监听函数集合
4589
4596
  // receivedMessage, // 接收到的消息列表
4590
4597
  sendGlobalMessage: t,
4591
- //发送全局消息的方法
4598
+ // 发送全局消息的方法
4592
4599
  onGlobalMessage: o
4593
- //监听全局消息的方法
4600
+ // 监听全局消息的方法
4594
4601
  };
4595
4602
  }
4596
4603
  const ts = {