@skyfox2000/webui 1.4.5 → 1.4.7

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 (42) hide show
  1. package/lib/TemplateFile.d.ts +1 -0
  2. package/lib/assets/modules/{baseLayout-BT7tGUB1.js → baseLayout-DOrecPPK.js} +6 -6
  3. package/lib/assets/modules/{file-upload-DicHRX1r.js → file-upload-lbkluj3p.js} +3 -3
  4. package/lib/assets/modules/{index-BURe9YrF.js → index-B1MSCuqH.js} +2 -2
  5. package/lib/assets/modules/{index-iozooZXX.js → index-BLNKcgk-.js} +1 -1
  6. package/lib/assets/modules/{index-BjXLzCF2.js → index-DQ-VDAr-.js} +10 -10
  7. package/lib/assets/modules/{menuTabs-D_UlXkmm.js → menuTabs-DOtYQ9Zu.js} +7 -7
  8. package/lib/assets/modules/{toolIcon-BiWBb2pJ.js → toolIcon-CqJWc5B7.js} +1 -1
  9. package/lib/assets/modules/{uploadList-61wZlPUk.js → uploadList-3SuA7du0.js} +150 -138
  10. package/lib/assets/modules/{uploadList-C_hqJ4X1.js → uploadList-DafDrGgh.js} +251 -239
  11. package/lib/components/content/tree/index.vue.d.ts +3 -14
  12. package/lib/components/form/upload/uploadList.vue.d.ts +3 -0
  13. package/lib/es/AceEditor/index.js +3 -3
  14. package/lib/es/BasicLayout/index.js +6 -6
  15. package/lib/es/Error403/index.js +1 -1
  16. package/lib/es/Error404/index.js +1 -1
  17. package/lib/es/ExcelForm/index.js +5 -5
  18. package/lib/es/MenuLayout/index.js +6 -6
  19. package/lib/es/TemplateFile/index.js +208 -0
  20. package/lib/es/UploadForm/index.js +6 -6
  21. package/lib/utils/tree.d.ts +9 -0
  22. package/lib/webui.css +1 -1
  23. package/lib/webui.es.js +396 -378
  24. package/package.json +7 -1
  25. package/src/components/content/dialog/templateFile.vue +259 -0
  26. package/src/components/content/dialog/uploadForm.vue +6 -14
  27. package/src/components/content/tree/index.vue +26 -25
  28. package/src/components/form/upload/uploadList.vue +66 -89
  29. package/src/stores/userInfo.ts +6 -0
  30. package/src/utils/file-upload.ts +2 -2
  31. package/src/utils/tree.ts +20 -0
  32. package/.eslintrc.js +0 -23
  33. package/.prettierrc +0 -11
  34. package/.vscode/settings.json +0 -25
  35. package/env.d.ts +0 -11
  36. package/index.html +0 -19
  37. package/plugins/vite-plugin-auto-generate-vue.ts +0 -105
  38. package/postcss.config.ts +0 -6
  39. package/tailwind.config.ts +0 -11
  40. package/tsconfig.json +0 -46
  41. package/vite.config.ts +0 -120
  42. package//344/273/243/347/240/201/350/247/204/350/214/203/345/217/212/351/243/216/346/240/274/346/214/207/345/215/227.md +0 -116
@@ -1,12 +1,12 @@
1
1
  var ha = Object.defineProperty;
2
2
  var ma = (e, t, a) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var L = (e, t, a) => ma(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { ref as f, h as H, nextTick as va, inject as se, provide as Me, watch as g, toRaw as Ze, shallowRef as Q, defineComponent as Z, reactive as ga, onMounted as Ie, onUnmounted as ie, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as b, mergeProps as le, useAttrs as Ee, createElementBlock as $, createVNode as C, withCtx as K, createTextVNode as xe, toDisplayString as Y, Fragment as re, renderList as Ue, normalizeClass as ea, createElementVNode as ya } from "vue";
4
+ import { ref as f, h as H, nextTick as va, inject as se, provide as Me, watch as g, toRaw as Ze, shallowRef as J, defineComponent as Z, reactive as ga, onMounted as Ie, onUnmounted as le, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as b, mergeProps as ue, useAttrs as Ee, createElementBlock as $, createVNode as C, withCtx as Q, createTextVNode as xe, toDisplayString as Y, Fragment as oe, renderList as Ue, normalizeClass as ea, createElementVNode as ya } from "vue";
5
5
  import { Switch as Sa, AutoComplete as ba, Input as Ia, CheckboxGroup as Aa, Checkbox as Ea, RadioGroup as xa, Radio as wa, Select as Oa, SelectOption as Ra } from "ant-design-vue";
6
- import { createPinia as Ta, defineStore as ue } from "pinia";
6
+ import { createPinia as Ta, defineStore as ce } from "pinia";
7
7
  import Pa from "pinia-plugin-persistedstate";
8
- import { EnvConfig as Se, AppAction as Be, AppSource as ze, isMicroApp as j, isBaseMicroApp as ka, combineParams as ce } from "@skyfox2000/microbase";
9
- import { httpPost as q, ResStatus as T, setToken as me, fieldMapping as La, parseFieldTemplate as be, API_HOST as $e, SERVER_HOST as Ma } from "@skyfox2000/fapi";
8
+ import { EnvConfig as Se, AppAction as Be, AppSource as ze, isMicroApp as V, isBaseMicroApp as ka, combineParams as fe } from "@skyfox2000/microbase";
9
+ import { httpPost as q, ResStatus as T, setToken as ve, fieldMapping as La, parseFieldTemplate as be, API_HOST as $e, SERVER_HOST as Ma } from "@skyfox2000/fapi";
10
10
  import E from "vue-m-message";
11
11
  import { createRouter as $a, createWebHashHistory as Fa } from "vue-router";
12
12
  import He from "async-validator";
@@ -110,7 +110,7 @@ N.setOptions("EnableDisable", N.EnableDisable);
110
110
  N.setOptions("SuccessResult", N.SuccessResult);
111
111
  N.setOptions("YesNo", N.YesNo);
112
112
  N.setOptions("MaleFemale", N.MaleFemale);
113
- const fe = {
113
+ const pe = {
114
114
  /**
115
115
  * 选项数据接口
116
116
  */
@@ -173,17 +173,17 @@ const fe = {
173
173
  type: Object,
174
174
  required: !1
175
175
  }
176
- }, F = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ce = "/login/", ge = [], Na = (e) => {
176
+ }, F = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ce = "/login/", ye = [], Na = (e) => {
177
177
  for (const t of e) {
178
- const a = ge.findIndex((s) => s.path === t.path);
179
- a !== -1 && ge.splice(a, 1), ge.push(t), we.addRoute(t);
178
+ const a = ye.findIndex((s) => s.path === t.path);
179
+ a !== -1 && ye.splice(a, 1), ye.push(t), we.addRoute(t);
180
180
  }
181
181
  }, aa = (e, t, a, s = "") => {
182
182
  const n = s + (s ? "/" : "") + e.path;
183
183
  t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => aa(o, t, e, n));
184
184
  }, we = $a({
185
185
  history: Fa("/"),
186
- routes: ge
186
+ routes: ye
187
187
  }), Da = (e, t) => {
188
188
  var n, o;
189
189
  const a = ((n = e.meta) == null ? void 0 : n.roles) ?? [], s = (o = e.meta) == null ? void 0 : o.permission;
@@ -209,7 +209,7 @@ we.beforeEach((e, t, a) => {
209
209
  return a();
210
210
  const n = s.meta, r = ((n == null ? void 0 : n.roles) ?? []).length > 0 || ((l = n == null ? void 0 : n.permission) == null ? void 0 : l.length);
211
211
  if (e.path === "/") {
212
- const u = V();
212
+ const u = K();
213
213
  if (!u.menuLoaded) {
214
214
  ne.value = {
215
215
  to: e,
@@ -229,7 +229,7 @@ we.beforeEach((e, t, a) => {
229
229
  if (!u.isLogin)
230
230
  a({ path: Ce });
231
231
  else {
232
- if (!V().menuLoaded) {
232
+ if (!K().menuLoaded) {
233
233
  ne.value = {
234
234
  to: e,
235
235
  next: a
@@ -253,7 +253,7 @@ const Ua = (e) => {
253
253
  return;
254
254
  t.TabPanes.push(e);
255
255
  }
256
- }, Va = (e, t) => t.find((a) => a.key === e), Ve = ue("pageInfo", {
256
+ }, Va = (e, t) => t.find((a) => a.key === e), Ve = ce("pageInfo", {
257
257
  state: () => ({
258
258
  TabActive: "",
259
259
  TabPanes: [],
@@ -266,7 +266,7 @@ const Ua = (e) => {
266
266
  */
267
267
  removeTabPane(e) {
268
268
  if (this.TabEnabled) {
269
- V().excludeComponent(e);
269
+ K().excludeComponent(e);
270
270
  let a = 0, s = [...this.TabPanes];
271
271
  for (let n = 0; n < s.length; n++)
272
272
  if (s[n].key === e) {
@@ -287,7 +287,7 @@ const Ua = (e) => {
287
287
  * @returns
288
288
  */
289
289
  async setTabActive(e) {
290
- let a = V().findRoute(e);
290
+ let a = K().findRoute(e);
291
291
  if (!a) return;
292
292
  const s = {
293
293
  key: e,
@@ -389,7 +389,7 @@ class A {
389
389
  }
390
390
  L(A, "messageId", 0), L(A, "callbacks", /* @__PURE__ */ new Map());
391
391
  A.init();
392
- const ye = {
392
+ const re = {
393
393
  getAppInfo: A.getAppInfo.bind(A),
394
394
  getHostInfo: A.getHostInfo.bind(A),
395
395
  getUserInfo: A.getUserInfo.bind(A),
@@ -430,7 +430,7 @@ const ye = {
430
430
  return s;
431
431
  }
432
432
  }
433
- }, V = ue("appInfo", {
433
+ }, K = ce("appInfo", {
434
434
  state: () => ({
435
435
  appInfo: {
436
436
  Id: "",
@@ -508,7 +508,7 @@ const ye = {
508
508
  flattenRoutes: {},
509
509
  Routes: t ?? [],
510
510
  defaultPage: ""
511
- }), (!j() || !ka()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
511
+ }), (!V() || !ka()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
512
512
  },
513
513
  /**
514
514
  * 设置当前应用路由信息
@@ -530,9 +530,9 @@ const ye = {
530
530
  }), _().isLogin) {
531
531
  const a = ta(this.appInfo.Routes);
532
532
  if (Na(a), this.appInfo.defaultPage = sa(a) || "", this.appInfo.defaultPage) {
533
- if (this.menuLoaded = !0, j()) {
533
+ if (this.menuLoaded = !0, V()) {
534
534
  const s = this.formatRoute(this.appInfo.defaultPage);
535
- ye.mainAppPush(s);
535
+ re.mainAppPush(s);
536
536
  }
537
537
  Ua(this.appInfo.defaultPage);
538
538
  }
@@ -553,9 +553,9 @@ const ye = {
553
553
  */
554
554
  push(e) {
555
555
  this.findRoute(e) && Ve().setTabActive(e), va(() => {
556
- if (we.push({ path: e }), j()) {
556
+ if (we.push({ path: e }), V()) {
557
557
  const a = this.formatRoute(e);
558
- ye.mainAppPush(a);
558
+ re.mainAppPush(a);
559
559
  }
560
560
  });
561
561
  },
@@ -623,7 +623,7 @@ const ye = {
623
623
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
624
624
  },
625
625
  logout() {
626
- this.clean(), j() ? ye.mainAppPush("/") : window.location.assign("/");
626
+ this.clean(), V() ? re.mainAppPush("/") : window.location.assign("/");
627
627
  }
628
628
  },
629
629
  persist: !1
@@ -681,7 +681,7 @@ const ye = {
681
681
  } catch (t) {
682
682
  return console.error(Ja, t), !1;
683
683
  }
684
- }, M = f(""), ae = f(null), _ = ue("userInfo", {
684
+ }, M = f(""), ae = f(null), _ = ce("userInfo", {
685
685
  state: () => ({
686
686
  isLogin: !1,
687
687
  userInfo: {
@@ -699,7 +699,7 @@ const ye = {
699
699
  * 启动时初始化用户信息
700
700
  */
701
701
  init() {
702
- j() || (this.token ? (me(this.token), M.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
702
+ V() || (this.token ? (ve(this.token), M.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
703
703
  },
704
704
  /**
705
705
  * 登录操作
@@ -714,7 +714,7 @@ const ye = {
714
714
  return s;
715
715
  {
716
716
  const n = a.data;
717
- if (this.token = n.token, me(this.token), this.isLogin = !0, Wa(n))
717
+ if (this.token = n.token, ve(this.token), this.isLogin = !0, Wa(n))
718
718
  this.userInfo = {
719
719
  ...this.userInfo,
720
720
  ...n.UserInfo
@@ -723,7 +723,7 @@ const ye = {
723
723
  E.error("用户信息解析失败");
724
724
  return;
725
725
  }
726
- t && V().toDefaultApp();
726
+ t && K().toDefaultApp();
727
727
  }
728
728
  }
729
729
  },
@@ -784,7 +784,7 @@ const ye = {
784
784
  M.value || (M.value = e.UserLevel, this.userInfo = {
785
785
  ...this.userInfo,
786
786
  ...e
787
- }, this.token = t, me(this.token), this.isLogin = !0);
787
+ }, this.token = t, ve(this.token), this.isLogin = !0);
788
788
  },
789
789
  /**
790
790
  * 获取用户Token
@@ -822,7 +822,7 @@ const ye = {
822
822
  Code: "",
823
823
  TenantId: "",
824
824
  UserLevel: ""
825
- }, this.token = "", me(this.token), this.isLogin = !1, ae.value = null, M.value = "", V().clean(), Promise.resolve();
825
+ }, this.token = "", ve(this.token), this.isLogin = !1, ae.value = null, M.value = "", K().clean(), Promise.resolve();
826
826
  },
827
827
  /**
828
828
  * 登出操作
@@ -830,6 +830,8 @@ const ye = {
830
830
  * @returns
831
831
  */
832
832
  async logout(e) {
833
+ if (V())
834
+ return re.userLogout(), Promise.resolve();
833
835
  try {
834
836
  e && await qa();
835
837
  } catch (t) {
@@ -838,13 +840,13 @@ const ye = {
838
840
  await this.clean(), e && setTimeout(async () => {
839
841
  E.success("已退出登录");
840
842
  }, 1e3), setTimeout(async () => {
841
- V().logout();
843
+ K().logout();
842
844
  }, 2e3);
843
845
  }
844
846
  return Promise.resolve();
845
847
  }
846
848
  },
847
- persist: j() ? !1 : {
849
+ persist: V() ? !1 : {
848
850
  key: "MICROAPP_USER_INFO",
849
851
  storage: localStorage,
850
852
  pick: ["token", "userInfo"],
@@ -870,7 +872,7 @@ const ye = {
870
872
  return console.warn(o), Promise.reject(new Error(o));
871
873
  }
872
874
  s.api || (s.api = a.api), s.authorize === void 0 && (s.authorize = a.authorize);
873
- let n = ce(
875
+ let n = fe(
874
876
  JSON.parse(JSON.stringify(s.params ?? {})),
875
877
  JSON.parse(JSON.stringify(t.params ?? {}))
876
878
  );
@@ -879,7 +881,7 @@ const ye = {
879
881
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
880
882
  const a = Re(e, t);
881
883
  return t.url = a, Te(e, t);
882
- }, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || E.success("执行成功!")), a))), na = (e, t = {}) => {
884
+ }, Mt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || E.success("执行成功!")), a))), na = (e, t = {}) => {
883
885
  const a = t.primaryKey || "Id";
884
886
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
885
887
  return E.error("错误!无保存数据!"), Promise.resolve(null);
@@ -908,11 +910,20 @@ const ye = {
908
910
  params: {},
909
911
  loadingState: e.isTreeLoading,
910
912
  loadingText: !1,
911
- processParams: () => ce(e.treeQuery, t)
912
- }).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), []));
913
- let oe;
914
- const Mt = (e) => {
915
- oe = new He({}), oe.messages({
913
+ processParams: () => fe(e.treeQuery, t)
914
+ }).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? (e.data.value = a.data || [], e.afterLoad && e.afterLoad(e.data.value), e.data.value) : (e.afterLoad && e.afterLoad((a == null ? void 0 : a.data) || []), [])), Ca = (e, t) => {
915
+ for (const a of e) {
916
+ if (a.key === t) return a;
917
+ if (a.children) {
918
+ const s = Ca(a.children, t);
919
+ if (s) return s;
920
+ }
921
+ }
922
+ return null;
923
+ };
924
+ let ie;
925
+ const $t = (e) => {
926
+ ie = new He({}), ie.messages({
916
927
  required: "${label}不能为空",
917
928
  types: {
918
929
  number: "${label}必须是数字"
@@ -938,10 +949,10 @@ const Mt = (e) => {
938
949
  },
939
950
  ...e
940
951
  });
941
- }, $t = (e) => {
952
+ }, Ft = (e) => {
942
953
  if (!e || F(e))
943
954
  return [];
944
- const t = [], a = oe.messages(), s = (o, r, l) => {
955
+ const t = [], a = ie.messages(), s = (o, r, l) => {
945
956
  const u = r.type;
946
957
  if (u && a.types && u in a.types) {
947
958
  const c = a.types[u];
@@ -992,11 +1003,11 @@ const Mt = (e) => {
992
1003
  rules: u
993
1004
  });
994
1005
  }), t;
995
- }, pe = async (e) => {
1006
+ }, de = async (e) => {
996
1007
  const t = e.formData.value, a = e.formRules.value;
997
- F(a) || (Je(e), e.ruleValidator || (e.ruleValidator = new He({}), e.ruleValidator.messages(oe.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
1008
+ F(a) || (Je(e), e.ruleValidator || (e.ruleValidator = new He({}), e.ruleValidator.messages(ie.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
998
1009
  }).catch(({ fields: s }) => s));
999
- }, Ft = async (e, t, a) => (a || (a = new He({}), a.messages(oe.messages()), a.define(t)), a.validate(e).then(() => {
1010
+ }, _t = async (e, t, a) => (a || (a = new He({}), a.messages(ie.messages()), a.define(t)), a.validate(e).then(() => {
1000
1011
  }).catch(({ fields: s }) => s)), Je = (e) => {
1001
1012
  e.ruleResults.value = void 0;
1002
1013
  }, X = () => {
@@ -1007,7 +1018,7 @@ const Mt = (e) => {
1007
1018
  ruleKey: a,
1008
1019
  errInfo: s
1009
1020
  };
1010
- }, Ca = (e, t) => {
1021
+ }, Ya = (e, t) => {
1011
1022
  let a = f({
1012
1023
  msg: "",
1013
1024
  errClass: ""
@@ -1019,7 +1030,7 @@ const Mt = (e) => {
1019
1030
  () => s == null ? void 0 : s.value,
1020
1031
  (n) => {
1021
1032
  if (a.value.errClass = "", a.value.msg = "", !F(n)) {
1022
- const o = Ya(
1033
+ const o = Xa(
1023
1034
  {
1024
1035
  label: e.label,
1025
1036
  rule: e.rule
@@ -1032,7 +1043,7 @@ const Mt = (e) => {
1032
1043
  },
1033
1044
  { deep: !0 }
1034
1045
  ), a;
1035
- }, Ya = (e, t, a) => {
1046
+ }, Xa = (e, t, a) => {
1036
1047
  const s = f([]), n = f(""), o = f("");
1037
1048
  if (!e.rule || !t || !a)
1038
1049
  return { msg: n, ruleErrors: s, errClass: o };
@@ -1059,23 +1070,23 @@ const Mt = (e) => {
1059
1070
  });
1060
1071
  }
1061
1072
  }), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
1062
- }, _t = (e, t) => {
1073
+ }, Nt = (e, t) => {
1063
1074
  Me(U.LabelText, e.label || ""), Me(U.RuleKey, e.rule || "");
1064
- const a = Ca(e, t);
1075
+ const a = Ya(e, t);
1065
1076
  return Me(U.ErrInfo, a), a;
1066
- }, Nt = (e) => {
1067
- ra(e);
1068
1077
  }, Dt = (e) => {
1078
+ ra(e);
1079
+ }, Ut = (e) => {
1069
1080
  const t = e.page, a = e.formData.value;
1070
1081
  a[e.primaryKey ?? t.primaryKey] = null, ra(e);
1071
- }, Ut = (e) => {
1082
+ }, Ht = (e) => {
1072
1083
  je(e), e.visible.value = !1;
1073
1084
  }, ra = async (e) => {
1074
1085
  var s;
1075
1086
  const t = e.page;
1076
1087
  if (e.isFormSaving.value = !0, Je(e), e.beforeSave && e.beforeSave() === !1)
1077
1088
  return e.isFormSaving.value = !1, Promise.resolve();
1078
- if (e.formRules.value && await pe(e), e.ruleResults.value)
1089
+ if (e.formRules.value && await de(e), e.ruleResults.value)
1079
1090
  return E.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
1080
1091
  const a = e.formData.value;
1081
1092
  return na(
@@ -1121,14 +1132,14 @@ const Mt = (e) => {
1121
1132
  } else
1122
1133
  E.error((n == null ? void 0 : n.msg) ?? "保存失败!"), e.afterSave && e.afterSave(n);
1123
1134
  });
1124
- }, Ht = async (e) => {
1135
+ }, Vt = async (e) => {
1125
1136
  const t = e.page, a = e.grid;
1126
1137
  e.isFormLoading.value = !0;
1127
1138
  const s = e.formData.value, n = e.primaryKey ?? t.primaryKey;
1128
1139
  return la(a, { [n]: s[n] }, e.detailUrl).then((o) => {
1129
1140
  e.isFormLoading.value = !1, o && oa(e, o);
1130
1141
  });
1131
- }, Vt = (e) => {
1142
+ }, Kt = (e) => {
1132
1143
  const t = e.grid;
1133
1144
  t && (t.rowData.value = void 0), e && (je(e), e.visible && (e.visible.value = !1), setTimeout(() => {
1134
1145
  e.visible.value = !0;
@@ -1139,7 +1150,7 @@ const Mt = (e) => {
1139
1150
  e.formData.value = JSON.parse(JSON.stringify(a));
1140
1151
  }, je = (e) => {
1141
1152
  e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Je(e);
1142
- }, Kt = (e, t) => {
1153
+ }, Qt = (e, t) => {
1143
1154
  const a = _();
1144
1155
  return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(we.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1145
1156
  if (!t) {
@@ -1150,7 +1161,7 @@ const Mt = (e) => {
1150
1161
  }
1151
1162
  return !0;
1152
1163
  });
1153
- }, Qt = (e, t) => {
1164
+ }, Jt = (e, t) => {
1154
1165
  const a = t == null ? void 0 : t.filter((s) => {
1155
1166
  const n = e.find(
1156
1167
  (o) => o.dataIndex === s.dataIndex || o.key === s.key || o.title === s.title
@@ -1158,7 +1169,7 @@ const Mt = (e) => {
1158
1169
  return n ? { ...s, ...n } : !1;
1159
1170
  });
1160
1171
  return [...a || [], ...e.filter((s) => !(a != null && a.includes(s)))];
1161
- }, Xa = (e) => (e.remotePage = !1, ia(e).then((t) => t.rows)), ia = (e) => {
1172
+ }, Za = (e) => (e.remotePage = !1, ia(e).then((t) => t.rows)), ia = (e) => {
1162
1173
  e.gridQuery || (e.gridQuery = {});
1163
1174
  const t = e.remotePage ? "find" : "list";
1164
1175
  return Qe(e, {
@@ -1168,7 +1179,7 @@ const Mt = (e) => {
1168
1179
  loadingState: e.isGridLoading,
1169
1180
  processParams: (a) => {
1170
1181
  var n;
1171
- return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), ce((n = e.gridUrl) == null ? void 0 : n.params, a, e.gridQuery);
1182
+ return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), fe((n = e.gridUrl) == null ? void 0 : n.params, a, e.gridQuery);
1172
1183
  }
1173
1184
  }).then((a) => {
1174
1185
  if ((a == null ? void 0 : a.status) === T.SUCCESS) {
@@ -1186,7 +1197,7 @@ const Mt = (e) => {
1186
1197
  rows: []
1187
1198
  };
1188
1199
  });
1189
- }, Za = (e, t, a = {}) => na(e, {
1200
+ }, et = (e, t, a = {}) => na(e, {
1190
1201
  urlKey: "update",
1191
1202
  url: e.updateUrl,
1192
1203
  params: {
@@ -1197,9 +1208,9 @@ const Mt = (e) => {
1197
1208
  ...a
1198
1209
  }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && setTimeout(() => {
1199
1210
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1200
- }, 50), s)), Jt = (e, t) => {
1211
+ }, 50), s)), jt = (e, t) => {
1201
1212
  const a = {};
1202
- return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], Za(e, a, {
1213
+ return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], et(e, a, {
1203
1214
  loadingText: !1,
1204
1215
  hideErrorToast: !0
1205
1216
  });
@@ -1208,20 +1219,20 @@ const Mt = (e) => {
1208
1219
  url: a,
1209
1220
  params: t,
1210
1221
  loadingState: e.isGridLoading
1211
- }), jt = (e, t) => {
1222
+ }), Gt = (e, t) => {
1212
1223
  const a = t;
1213
1224
  return la(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1214
- }, Gt = (e, t) => {
1225
+ }, qt = (e, t) => {
1215
1226
  let a = e.editor;
1216
1227
  e.rowData.value = t, a && (oa(a, t), a.visible.value = !0);
1217
- }, qt = (e, t) => Ba(e, t, {
1228
+ }, Wt = (e, t) => Ba(e, t, {
1218
1229
  url: e.deleteUrl,
1219
1230
  primaryKey: e.primaryKey
1220
1231
  }).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && setTimeout(() => {
1221
1232
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1222
1233
  }, 50), a));
1223
1234
  var Ne = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(Ne || {});
1224
- class et {
1235
+ class at {
1225
1236
  constructor() {
1226
1237
  L(this, "listeners", {});
1227
1238
  }
@@ -1267,11 +1278,11 @@ class et {
1267
1278
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1268
1279
  }
1269
1280
  }
1270
- const B = new et(), ee = (e, t, a) => {
1281
+ const B = new at(), ee = (e, t, a) => {
1271
1282
  if (t.inputFactory && (a != null && a.reloadEvent)) {
1272
1283
  const s = t.inputFactory.value;
1273
1284
  s.reloadHandler = (n, o) => {
1274
- at(t.url, t, o);
1285
+ tt(t.url, t, o);
1275
1286
  }, B.on(a.reloadEvent, s.reloadHandler);
1276
1287
  }
1277
1288
  if (a != null && a.data)
@@ -1301,17 +1312,17 @@ const B = new et(), ee = (e, t, a) => {
1301
1312
  label: "全部",
1302
1313
  value: e.allValue ?? void 0
1303
1314
  }), e.options.value = t;
1304
- }, at = (e, t, a) => {
1315
+ }, tt = (e, t, a) => {
1305
1316
  Array.isArray(a) ? Ge(t, a, !0) : ua(e, t, a);
1306
- }, de = (e, t) => {
1317
+ }, he = (e, t) => {
1307
1318
  var a;
1308
1319
  (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && B.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1309
1320
  }, ua = (e, t, a) => {
1310
- const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = ce(s, n, a);
1311
- tt(e, t, t.fieldMap, o).then((r) => {
1321
+ const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = fe(s, n, a);
1322
+ st(e, t, t.fieldMap, o).then((r) => {
1312
1323
  Ge(t, r, !1);
1313
1324
  });
1314
- }, tt = (e, t, a, s) => {
1325
+ }, st = (e, t, a, s) => {
1315
1326
  const { fieldMap: n, ...o } = e, l = {
1316
1327
  ...{
1317
1328
  url: "",
@@ -1335,7 +1346,7 @@ const B = new et(), ee = (e, t, a) => {
1335
1346
  }).finally(() => {
1336
1347
  t.isOptionLoading.value = !1;
1337
1348
  });
1338
- }, st = (e, t, a) => {
1349
+ }, nt = (e, t, a) => {
1339
1350
  if (e === void 0) return;
1340
1351
  const s = (o) => {
1341
1352
  const r = { ...o };
@@ -1395,8 +1406,8 @@ const B = new et(), ee = (e, t, a) => {
1395
1406
  }, ke = (e, t, a) => {
1396
1407
  var o, r;
1397
1408
  const s = (o = e.inputFactory) == null ? void 0 : o.value;
1398
- s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && pe(s.editorCtrl), e.selected.value = a;
1399
- const n = st(a, e.options.value);
1409
+ s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && de(s.editorCtrl), e.selected.value = a;
1410
+ const n = nt(a, e.options.value);
1400
1411
  if (e.selectedOptions.value = n, t.formData && t.outFields && ca(t.formData, t.outFields, n), t.changeEvent) {
1401
1412
  const [l, u] = t.changeEvent;
1402
1413
  if (u)
@@ -1463,7 +1474,7 @@ const B = new et(), ee = (e, t, a) => {
1463
1474
  value: "Id"
1464
1475
  }
1465
1476
  }
1466
- }, Wt = (e) => {
1477
+ }, Bt = (e) => {
1467
1478
  S.PageOption = {
1468
1479
  ...S.PageOption,
1469
1480
  ...e.pageOption
@@ -1480,7 +1491,7 @@ const B = new et(), ee = (e, t, a) => {
1480
1491
  }, Le = (e) => {
1481
1492
  for (let t in e.urls)
1482
1493
  e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
1483
- }, nt = (e, t, a, s) => (Le(e), {
1494
+ }, rt = (e, t, a, s) => (Le(e), {
1484
1495
  editorCtrl: {
1485
1496
  ...S.EditorOption,
1486
1497
  name: "",
@@ -1496,7 +1507,7 @@ const B = new et(), ee = (e, t, a) => {
1496
1507
  isFormSaving: f(!1),
1497
1508
  isFormLoading: f(!1)
1498
1509
  }
1499
- }), rt = (e, t, a) => {
1510
+ }), ot = (e, t, a) => {
1500
1511
  Le(e);
1501
1512
  const s = {
1502
1513
  ...S.GridOption,
@@ -1517,7 +1528,7 @@ const B = new et(), ee = (e, t, a) => {
1517
1528
  selectRows: f([]),
1518
1529
  rowData: f(void 0),
1519
1530
  gridQuery: {},
1520
- tableData: Q(void 0),
1531
+ tableData: J(void 0),
1521
1532
  expandRows: f({}),
1522
1533
  isGridLoading: f(!1),
1523
1534
  isGridSaving: f(!1),
@@ -1530,12 +1541,12 @@ const B = new et(), ee = (e, t, a) => {
1530
1541
  (n) => {
1531
1542
  n && (setTimeout(() => {
1532
1543
  s.reload.value = !1;
1533
- }, 1), s.remotePage ? ia(s) : Xa(s));
1544
+ }, 1), s.remotePage ? ia(s) : Za(s));
1534
1545
  }
1535
1546
  ), {
1536
1547
  gridCtrl: s
1537
1548
  };
1538
- }, Bt = (e, t) => {
1549
+ }, zt = (e, t) => {
1539
1550
  Le(e);
1540
1551
  const a = {
1541
1552
  ...S.TreeOption,
@@ -1543,7 +1554,7 @@ const B = new et(), ee = (e, t, a) => {
1543
1554
  page: t,
1544
1555
  node: f(void 0),
1545
1556
  url: e.urls.tree,
1546
- data: Q(void 0),
1557
+ data: J(void 0),
1547
1558
  isTreeLoading: f(!1)
1548
1559
  };
1549
1560
  return g(
@@ -1556,13 +1567,13 @@ const B = new et(), ee = (e, t, a) => {
1556
1567
  ), {
1557
1568
  treeCtrl: a
1558
1569
  };
1559
- }, he = (e, t) => {
1570
+ }, me = (e, t) => {
1560
1571
  const a = {
1561
1572
  ...S.OptionOption,
1562
1573
  url: e,
1563
1574
  reload: f(!1),
1564
1575
  optionQuery: {},
1565
- data: Q([]),
1576
+ data: J([]),
1566
1577
  selected: f([]),
1567
1578
  selectedOptions: f([]),
1568
1579
  options: f([]),
@@ -1578,24 +1589,24 @@ const B = new et(), ee = (e, t, a) => {
1578
1589
  ), {
1579
1590
  optionCtrl: a
1580
1591
  };
1581
- }, zt = (e, t, a) => {
1592
+ }, Ct = (e, t, a) => {
1582
1593
  Le(e);
1583
1594
  const s = {
1584
1595
  ...S.PageOption,
1585
1596
  ...e
1586
- }, { editorCtrl: n } = nt(e, s, t, a), { gridCtrl: o } = rt(e, s);
1597
+ }, { editorCtrl: n } = rt(e, s, t, a), { gridCtrl: o } = ot(e, s);
1587
1598
  return s.editor = n, s.grid = o, o.editor = n, o.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = o, {
1588
1599
  pageCtrl: s,
1589
1600
  editorCtrl: n,
1590
1601
  gridCtrl: o
1591
1602
  };
1592
- }, ot = 7 * 24 * 60 * 60 * 1e3, _e = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), G = f({}), Ct = G, Yt = (e) => {
1603
+ }, it = 7 * 24 * 60 * 60 * 1e3, _e = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), G = f({}), Yt = G, Xt = (e) => {
1593
1604
  var n;
1594
1605
  if (!e.iconUrl) return De;
1595
1606
  const t = f(!0), a = f("");
1596
1607
  let s = !0;
1597
- return (n = e.icons) != null && n.length && (s = e.icons.every((o) => G.value[o] !== void 0)), (e.icon && !G.value[e.icon] || !s) && it(e, t).then(() => {
1598
- ct(e.iconUrl, e.monoColor || !1), t.value = !0;
1608
+ return (n = e.icons) != null && n.length && (s = e.icons.every((o) => G.value[o] !== void 0)), (e.icon && !G.value[e.icon] || !s) && lt(e, t).then(() => {
1609
+ ft(e.iconUrl, e.monoColor || !1), t.value = !0;
1599
1610
  }), Z({
1600
1611
  props: {
1601
1612
  icon: {
@@ -1635,21 +1646,21 @@ const B = new et(), ee = (e, t, a) => {
1635
1646
  ), g(
1636
1647
  () => u.value,
1637
1648
  (c) => {
1638
- o.icons && (c >= o.icons.length && (u.value = 0), l.value = o.icons[u.value], ve(a, l, l.value), r("update:iconIndex", u.value));
1649
+ o.icons && (c >= o.icons.length && (u.value = 0), l.value = o.icons[u.value], ge(a, l, l.value), r("update:iconIndex", u.value));
1639
1650
  },
1640
1651
  { immediate: !0 }
1641
1652
  ), g(
1642
1653
  () => G.value,
1643
1654
  () => {
1644
- ve(a, l, l.value);
1655
+ ge(a, l, l.value);
1645
1656
  },
1646
1657
  { deep: !0 }
1647
1658
  ), g(
1648
1659
  () => o.icon,
1649
1660
  (c) => {
1650
- ve(a, l, c);
1661
+ ge(a, l, c);
1651
1662
  }
1652
- ), ve(a, l, l.value), { isLoaded: t, Icon: a, handleClick: i };
1663
+ ), ge(a, l, l.value), { isLoaded: t, Icon: a, handleClick: i };
1653
1664
  },
1654
1665
  render() {
1655
1666
  if (!t.value)
@@ -1663,12 +1674,12 @@ const B = new et(), ee = (e, t, a) => {
1663
1674
  style: {
1664
1675
  fill: "currentColor",
1665
1676
  cursor: this.$props.clickable ? "pointer" : "default",
1666
- transform: pt(this.angle, this.flip)
1677
+ transform: dt(this.angle, this.flip)
1667
1678
  }
1668
1679
  }) : H("div", { class: "w-[14px] h-[14px]" });
1669
1680
  }
1670
1681
  });
1671
- }, it = (e, t) => {
1682
+ }, lt = (e, t) => {
1672
1683
  let a = e.iconUrl;
1673
1684
  if (!a)
1674
1685
  return console.error("图标库地址不能为空"), Promise.resolve();
@@ -1679,10 +1690,10 @@ const B = new et(), ee = (e, t, a) => {
1679
1690
  return new Promise(async (o) => (fa(s.scriptContent), o()));
1680
1691
  t.value = !1;
1681
1692
  const n = new Promise(async (o) => {
1682
- await lt(a, e.monoColor || !1), o(), _e.delete(a);
1693
+ await ut(a, e.monoColor || !1), o(), _e.delete(a);
1683
1694
  });
1684
1695
  return _e.set(a, n), n;
1685
- }, lt = async (e, t) => {
1696
+ }, ut = async (e, t) => {
1686
1697
  try {
1687
1698
  const a = await fetch(e);
1688
1699
  if (!a.ok) {
@@ -1695,7 +1706,7 @@ const B = new et(), ee = (e, t, a) => {
1695
1706
  const o = s.match(n);
1696
1707
  if (o && o.length > 1) {
1697
1708
  let r = o[1];
1698
- ut(e, r, t, s);
1709
+ ct(e, r, t, s);
1699
1710
  }
1700
1711
  fa(s);
1701
1712
  return;
@@ -1705,13 +1716,13 @@ const B = new et(), ee = (e, t, a) => {
1705
1716
  }, fa = (e) => {
1706
1717
  const t = document.createElement("script");
1707
1718
  t.textContent = e, document.head.appendChild(t);
1708
- }, ut = (e, t, a, s) => {
1719
+ }, ct = (e, t, a, s) => {
1709
1720
  let n = `icon_cache:${e}`;
1710
1721
  const o = {
1711
1722
  windowKey: t,
1712
1723
  monoColor: a,
1713
1724
  scriptContent: s,
1714
- expireTime: Date.now() + ot
1725
+ expireTime: Date.now() + it
1715
1726
  // 缓存时间:7天
1716
1727
  };
1717
1728
  localStorage.setItem(n, JSON.stringify(o));
@@ -1726,14 +1737,14 @@ const B = new et(), ee = (e, t, a) => {
1726
1737
  return console.error("解析缓存失败:", n), null;
1727
1738
  }
1728
1739
  return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
1729
- }, Xt = () => {
1740
+ }, Zt = () => {
1730
1741
  const e = Date.now();
1731
1742
  for (const t in localStorage)
1732
1743
  if (t.startsWith("icon_cache:")) {
1733
1744
  const a = localStorage.getItem(t);
1734
1745
  a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
1735
1746
  }
1736
- }, ve = (e, t, a) => {
1747
+ }, ge = (e, t, a) => {
1737
1748
  setTimeout(() => {
1738
1749
  t.value = a, t.value && (e.value = G.value[t.value]);
1739
1750
  }, 1);
@@ -1757,12 +1768,12 @@ const B = new et(), ee = (e, t, a) => {
1757
1768
  fill: "currentColor"
1758
1769
  })
1759
1770
  ]
1760
- ), ct = (e, t) => {
1771
+ ), ft = (e, t) => {
1761
1772
  const a = pa(e);
1762
1773
  Object.keys(window).forEach((s) => {
1763
- s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !Ye.has(s) && (Ye.add(s), ft(s, t));
1774
+ s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !Ye.has(s) && (Ye.add(s), pt(s, t));
1764
1775
  });
1765
- }, ft = (e, t) => {
1776
+ }, pt = (e, t) => {
1766
1777
  const a = window[e], o = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), r = document.querySelectorAll("symbol");
1767
1778
  for (const l of o) {
1768
1779
  const u = l.id, i = Array.from(r).find((c) => c.id === u);
@@ -1770,10 +1781,10 @@ const B = new et(), ee = (e, t, a) => {
1770
1781
  c.hasAttribute("fill") && c.removeAttribute("fill");
1771
1782
  })), G.value[u] || (G.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
1772
1783
  }
1773
- }, pt = (e, t) => {
1784
+ }, dt = (e, t) => {
1774
1785
  let a = "";
1775
1786
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
1776
- }, Zt = (e, t, a, s) => {
1787
+ }, es = (e, t, a, s) => {
1777
1788
  da(e, [], a, s).forEach((o) => t.push(o));
1778
1789
  }, da = (e, t, a, s) => {
1779
1790
  var r, l, u, i, c;
@@ -1793,9 +1804,9 @@ const B = new et(), ee = (e, t, a) => {
1793
1804
  (d.length > 0 || !p.children) && n.push(O);
1794
1805
  }
1795
1806
  return n;
1796
- }, Xe = ga([]), es = () => {
1807
+ }, Xe = ga([]), as = () => {
1797
1808
  Xe.length = 0;
1798
- const e = V();
1809
+ const e = K();
1799
1810
  let a = Ve().TabActive;
1800
1811
  e.matchedRoutes(a).forEach((n, o) => {
1801
1812
  var l;
@@ -1806,7 +1817,7 @@ const B = new et(), ee = (e, t, a) => {
1806
1817
  };
1807
1818
  Xe.push(r);
1808
1819
  });
1809
- }, dt = {
1820
+ }, ht = {
1810
1821
  host: {
1811
1822
  api: "SITEHOST_API",
1812
1823
  url: "/openapi/RCSiteHostSrv/get",
@@ -1818,7 +1829,7 @@ const B = new et(), ee = (e, t, a) => {
1818
1829
  // 不显示错误
1819
1830
  hideErrorToast: !0
1820
1831
  }
1821
- }, as = ue("hostInfo", {
1832
+ }, ts = ce("hostInfo", {
1822
1833
  state: () => ({
1823
1834
  hostInfo: {
1824
1835
  Host: "",
@@ -1842,8 +1853,8 @@ const B = new et(), ee = (e, t, a) => {
1842
1853
  * @param hostKey 站点信息,默认为当前主域名
1843
1854
  */
1844
1855
  async loadHostInfo(e, t) {
1845
- if (j()) {
1846
- const s = await ye.getHostInfo();
1856
+ if (V()) {
1857
+ const s = await re.getHostInfo();
1847
1858
  this._setHostInfo(s);
1848
1859
  return;
1849
1860
  }
@@ -1851,7 +1862,7 @@ const B = new et(), ee = (e, t, a) => {
1851
1862
  return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((s) => {
1852
1863
  $e.SITEHOST_API || ($e.SITEHOST_API = a);
1853
1864
  const n = t || window.location.origin;
1854
- q(dt.host, {
1865
+ q(ht.host, {
1855
1866
  Query: {
1856
1867
  Host: n
1857
1868
  }
@@ -1908,7 +1919,7 @@ const B = new et(), ee = (e, t, a) => {
1908
1919
  // storage: localStorage,
1909
1920
  // pick: ['hostInfo'],
1910
1921
  // },
1911
- }), ts = ue("settingInfo", {
1922
+ }), ss = ce("settingInfo", {
1912
1923
  state: () => ({
1913
1924
  fullscreen: !1,
1914
1925
  menuCollapse: !1,
@@ -1950,10 +1961,10 @@ const B = new et(), ee = (e, t, a) => {
1950
1961
  }
1951
1962
  },
1952
1963
  persist: !1
1953
- }), ss = /* @__PURE__ */ Z({
1964
+ }), ns = /* @__PURE__ */ Z({
1954
1965
  __name: "index",
1955
1966
  props: {
1956
- ...fe,
1967
+ ...pe,
1957
1968
  /**
1958
1969
  * 选择项数据
1959
1970
  */
@@ -1964,8 +1975,8 @@ const B = new et(), ee = (e, t, a) => {
1964
1975
  },
1965
1976
  emits: ["change"],
1966
1977
  setup(e, { emit: t }) {
1967
- const a = e, s = X(), n = he(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
1968
- o.inputFactory = Q(s);
1978
+ const a = e, s = X(), n = me(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
1979
+ o.inputFactory = J(s);
1969
1980
  const r = f([]);
1970
1981
  o && g(
1971
1982
  () => o.options.value,
@@ -1975,7 +1986,7 @@ const B = new et(), ee = (e, t, a) => {
1975
1986
  { immediate: !0, deep: !0 }
1976
1987
  );
1977
1988
  const l = t, { editorCtrl: u, errInfo: i } = X(), c = (p) => {
1978
- i != null && i.value.errClass && u && pe(u), l("change", p);
1989
+ i != null && i.value.errClass && u && de(u), l("change", p);
1979
1990
  };
1980
1991
  return Ie(() => {
1981
1992
  if (!a.data || a.data.length != 2) {
@@ -1983,11 +1994,11 @@ const B = new et(), ee = (e, t, a) => {
1983
1994
  return;
1984
1995
  }
1985
1996
  o && ee(o.autoload, o, a);
1986
- }), ie(() => {
1987
- o && de(o, a);
1997
+ }), le(() => {
1998
+ o && he(o, a);
1988
1999
  }), (p, v) => {
1989
2000
  var d;
1990
- return r.value.length === 2 ? (w(), Ae(b(Sa), le({
2001
+ return r.value.length === 2 ? (w(), Ae(b(Sa), ue({
1991
2002
  key: 0,
1992
2003
  class: [
1993
2004
  ((d = b(i)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
@@ -2002,11 +2013,11 @@ const B = new et(), ee = (e, t, a) => {
2002
2013
  }, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : z("", !0);
2003
2014
  };
2004
2015
  }
2005
- }), ns = /* @__PURE__ */ Z({
2016
+ }), rs = /* @__PURE__ */ Z({
2006
2017
  inheritAttrs: !1,
2007
2018
  __name: "index",
2008
2019
  props: {
2009
- ...fe,
2020
+ ...pe,
2010
2021
  value: {
2011
2022
  type: [String, Number, Array, null],
2012
2023
  default: void 0
@@ -2023,8 +2034,8 @@ const B = new et(), ee = (e, t, a) => {
2023
2034
  },
2024
2035
  emits: ["update:value", "select", "change", "update:labels"],
2025
2036
  setup(e, { emit: t }) {
2026
- const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2027
- r.inputFactory = Q(n), r.fieldMap = {
2037
+ const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2038
+ r.inputFactory = J(n), r.fieldMap = {
2028
2039
  label: "Name",
2029
2040
  value: "Id",
2030
2041
  ...r == null ? void 0 : r.fieldMap
@@ -2059,19 +2070,19 @@ const B = new et(), ee = (e, t, a) => {
2059
2070
  SearchField: "%" + y.trim() + "%"
2060
2071
  }
2061
2072
  };
2062
- r.params = ce(r.params, h), r && ee(!0, r, a);
2073
+ r.params = fe(r.params, h), r && ee(!0, r, a);
2063
2074
  }, O = (y) => {
2064
2075
  const x = ke(r, a, y);
2065
2076
  p("update:value", y), p("select", y);
2066
2077
  const h = Pe(x);
2067
- p("update:labels", h), i != null && i.value.errClass && u && pe(u);
2078
+ p("update:labels", h), i != null && i.value.errClass && u && de(u);
2068
2079
  };
2069
- return ie(() => {
2070
- r && de(r, a);
2080
+ return le(() => {
2081
+ r && he(r, a);
2071
2082
  }), (y, x) => {
2072
2083
  var h;
2073
2084
  return w(), $("div", null, [
2074
- C(b(ba), le({
2085
+ C(b(ba), ue({
2075
2086
  value: l.value,
2076
2087
  "onUpdate:value": x[0] || (x[0] = (I) => l.value = I),
2077
2088
  class: ["w-full", (h = b(i)) == null ? void 0 : h.errClass],
@@ -2079,10 +2090,10 @@ const B = new et(), ee = (e, t, a) => {
2079
2090
  onSearch: d,
2080
2091
  onSelect: O
2081
2092
  }, b(s), { "allow-clear": !1 }), {
2082
- option: K(({ label: I }) => [
2093
+ option: Q(({ label: I }) => [
2083
2094
  xe(Y(I), 1)
2084
2095
  ]),
2085
- default: K(() => [
2096
+ default: Q(() => [
2086
2097
  C(b(Ia), {
2087
2098
  "allow-clear": "",
2088
2099
  placeholder: "请输入并选择" + b(c)
@@ -2093,14 +2104,14 @@ const B = new et(), ee = (e, t, a) => {
2093
2104
  ]);
2094
2105
  };
2095
2106
  }
2096
- }), ht = { class: "min-h-[32px] pt-[5px]" }, mt = {
2107
+ }), mt = { class: "min-h-[32px] pt-[5px]" }, vt = {
2097
2108
  key: 1,
2098
2109
  class: "text-center text-gray-500"
2099
- }, rs = /* @__PURE__ */ Z({
2110
+ }, os = /* @__PURE__ */ Z({
2100
2111
  inheritAttrs: !1,
2101
2112
  __name: "index",
2102
2113
  props: {
2103
- ...fe,
2114
+ ...pe,
2104
2115
  nodata: {
2105
2116
  type: String,
2106
2117
  default: ""
@@ -2118,8 +2129,8 @@ const B = new et(), ee = (e, t, a) => {
2118
2129
  emits: ["change", "update:labels"],
2119
2130
  setup(e, { emit: t }) {
2120
2131
  var v, d, O;
2121
- const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2122
- r.inputFactory = Q(n);
2132
+ const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2133
+ r.inputFactory = J(n);
2123
2134
  const l = f({
2124
2135
  ...r == null ? void 0 : r.url,
2125
2136
  url: ((v = r == null ? void 0 : r.url) == null ? void 0 : v.url) || "",
@@ -2147,15 +2158,15 @@ const B = new et(), ee = (e, t, a) => {
2147
2158
  value: "Id",
2148
2159
  key: "Id"
2149
2160
  }), r && ee(r.autoload, r, a);
2150
- }), ie(() => {
2151
- r && de(r, a);
2152
- }), (y, x) => (w(), $("div", ht, [
2153
- C(b(Aa), le({
2161
+ }), le(() => {
2162
+ r && he(r, a);
2163
+ }), (y, x) => (w(), $("div", mt, [
2164
+ C(b(Aa), ue({
2154
2165
  onChange: p,
2155
2166
  class: "w-full mb-[-3px]"
2156
2167
  }, b(s)), {
2157
- default: K(() => [
2158
- c.value.length > 0 ? (w(!0), $(re, { key: 0 }, Ue(c.value, (h) => {
2168
+ default: Q(() => [
2169
+ c.value.length > 0 ? (w(!0), $(oe, { key: 0 }, Ue(c.value, (h) => {
2159
2170
  var I;
2160
2171
  return w(), Ae(b(Ea), {
2161
2172
  key: h.value,
@@ -2168,25 +2179,25 @@ const B = new et(), ee = (e, t, a) => {
2168
2179
  e.wrap ? `w-1/${a.wrap}` : ""
2169
2180
  ])
2170
2181
  }, {
2171
- default: K(() => [
2182
+ default: Q(() => [
2172
2183
  xe(Y(h.label), 1)
2173
2184
  ]),
2174
2185
  _: 2
2175
2186
  }, 1032, ["value", "disabled", "class"]);
2176
- }), 128)) : e.nodata ? (w(), $("div", mt, Y(e.nodata), 1)) : z("", !0)
2187
+ }), 128)) : e.nodata ? (w(), $("div", vt, Y(e.nodata), 1)) : z("", !0)
2177
2188
  ]),
2178
2189
  _: 1
2179
2190
  }, 16)
2180
2191
  ]));
2181
2192
  }
2182
- }), vt = { class: "min-h-[32px] pt-1" }, gt = {
2193
+ }), gt = { class: "min-h-[32px] pt-1" }, yt = {
2183
2194
  key: 1,
2184
2195
  class: "text-center text-gray-500"
2185
- }, os = /* @__PURE__ */ Z({
2196
+ }, is = /* @__PURE__ */ Z({
2186
2197
  inheritAttrs: !1,
2187
2198
  __name: "index",
2188
2199
  props: {
2189
- ...fe,
2200
+ ...pe,
2190
2201
  value: {
2191
2202
  type: [String, Number, null, Array],
2192
2203
  default: void 0
@@ -2205,8 +2216,8 @@ const B = new et(), ee = (e, t, a) => {
2205
2216
  emits: ["change", "update:value", "update:labels"],
2206
2217
  setup(e, { emit: t }) {
2207
2218
  var O, y, x;
2208
- const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2209
- r.inputFactory = Q(n);
2219
+ const a = e, s = Ee(), n = X(), o = me(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2220
+ r.inputFactory = J(n);
2210
2221
  const l = f({
2211
2222
  ...r == null ? void 0 : r.url,
2212
2223
  url: ((O = r == null ? void 0 : r.url) == null ? void 0 : O.url) || "",
@@ -2238,8 +2249,8 @@ const B = new et(), ee = (e, t, a) => {
2238
2249
  }
2239
2250
  return h === I;
2240
2251
  }, d = (h) => {
2241
- const I = h.target.value, R = ke(r, a, I), J = Pe(R);
2242
- p("update:labels", J);
2252
+ const I = h.target.value, R = ke(r, a, I), j = Pe(R);
2253
+ p("update:labels", j);
2243
2254
  };
2244
2255
  return Ie(() => {
2245
2256
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
@@ -2247,20 +2258,20 @@ const B = new et(), ee = (e, t, a) => {
2247
2258
  value: "Id",
2248
2259
  key: "Id"
2249
2260
  }), r && ee(r.autoload, r, a);
2250
- }), ie(() => {
2251
- r && de(r, a);
2252
- }), (h, I) => (w(), $("div", vt, [
2253
- C(b(xa), le({
2261
+ }), le(() => {
2262
+ r && he(r, a);
2263
+ }), (h, I) => (w(), $("div", gt, [
2264
+ C(b(xa), ue({
2254
2265
  value: u.value,
2255
2266
  "onUpdate:value": I[0] || (I[0] = (R) => u.value = R),
2256
2267
  autocheck: !1,
2257
2268
  onChange: d,
2258
2269
  class: "w-full flex align-items flex-wrap mb-[-3px]"
2259
2270
  }, b(s)), {
2260
- default: K(() => [
2261
- c.value.length > 0 ? (w(!0), $(re, { key: 0 }, Ue(c.value, (R) => {
2262
- var J;
2263
- return w(), $(re, {
2271
+ default: Q(() => [
2272
+ c.value.length > 0 ? (w(!0), $(oe, { key: 0 }, Ue(c.value, (R) => {
2273
+ var j;
2274
+ return w(), $(oe, {
2264
2275
  key: R.value
2265
2276
  }, [
2266
2277
  R.visible !== !1 ? (w(), Ae(b(wa), {
@@ -2268,32 +2279,32 @@ const B = new et(), ee = (e, t, a) => {
2268
2279
  checked: v(R.value, a.value),
2269
2280
  value: R.value,
2270
2281
  class: ea([
2271
- ((J = b(i)) == null ? void 0 : J.errClass) === "error" ? "error !text-red-400" : "",
2282
+ ((j = b(i)) == null ? void 0 : j.errClass) === "error" ? "error !text-red-400" : "",
2272
2283
  "text-nowrap",
2273
2284
  "pb-1",
2274
2285
  e.wrap ? `w-1/${a.wrap}` : ""
2275
2286
  ])
2276
2287
  }, {
2277
- default: K(() => [
2288
+ default: Q(() => [
2278
2289
  xe(Y(R.label), 1)
2279
2290
  ]),
2280
2291
  _: 2
2281
2292
  }, 1032, ["checked", "value", "class"])) : z("", !0)
2282
2293
  ], 64);
2283
- }), 128)) : e.nodata ? (w(), $("div", gt, Y(e.nodata), 1)) : z("", !0)
2294
+ }), 128)) : e.nodata ? (w(), $("div", yt, Y(e.nodata), 1)) : z("", !0)
2284
2295
  ]),
2285
2296
  _: 1
2286
2297
  }, 16, ["value"])
2287
2298
  ]));
2288
2299
  }
2289
- }), yt = {
2300
+ }), St = {
2290
2301
  key: 0,
2291
2302
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2292
- }, is = /* @__PURE__ */ Z({
2303
+ }, ls = /* @__PURE__ */ Z({
2293
2304
  inheritAttrs: !1,
2294
2305
  __name: "index",
2295
2306
  props: {
2296
- ...fe,
2307
+ ...pe,
2297
2308
  value: {
2298
2309
  type: [String, Number, Array, null],
2299
2310
  default: void 0
@@ -2324,20 +2335,20 @@ const B = new et(), ee = (e, t, a) => {
2324
2335
  },
2325
2336
  emits: ["change", "update:value", "update:label", "update:labels"],
2326
2337
  setup(e, { emit: t }) {
2327
- var I, R, J;
2328
- const a = e, s = a.value === void 0 ? !0 : a.undefValue, n = X(), { editorCtrl: o, errInfo: r, labelText: l } = n, u = he(a.url, a), i = a.optionCtrl ?? u.optionCtrl;
2329
- i.inputFactory = Q(n);
2338
+ var I, R, j;
2339
+ const a = e, s = a.value === void 0 ? !0 : a.undefValue, n = X(), { editorCtrl: o, errInfo: r, labelText: l } = n, u = me(a.url, a), i = a.optionCtrl ?? u.optionCtrl;
2340
+ i.inputFactory = J(n);
2330
2341
  const c = Ee(), p = f({
2331
2342
  ...i == null ? void 0 : i.url,
2332
2343
  url: ((I = i == null ? void 0 : i.url) == null ? void 0 : I.url) || "",
2333
2344
  fieldMap: (i == null ? void 0 : i.fieldMap) || ((R = i == null ? void 0 : i.url) == null ? void 0 : R.fieldMap),
2334
- params: (i == null ? void 0 : i.params) || ((J = i == null ? void 0 : i.url) == null ? void 0 : J.params),
2345
+ params: (i == null ? void 0 : i.params) || ((j = i == null ? void 0 : i.url) == null ? void 0 : j.params),
2335
2346
  loadingText: !1
2336
2347
  }), v = f(c.placeholder), d = f(i == null ? void 0 : i.selected.value), O = t;
2337
2348
  n.inputEmit = O;
2338
2349
  const y = (m) => {
2339
2350
  const k = ke(i, a, m), D = Pe(k);
2340
- d.value = m, O("update:labels", D), O("update:label", D.join(";")), O("change", m), r != null && r.value.errClass && o && pe(o);
2351
+ d.value = m, O("update:labels", D), O("update:label", D.join(";")), O("change", m), r != null && r.value.errClass && o && de(o);
2341
2352
  }, x = f((i == null ? void 0 : i.options.value) || []), h = (m) => {
2342
2353
  if (m.length > 0 && F(a.value) && a.selectFirst)
2343
2354
  for (let k = 0; k < m.length; k++) {
@@ -2396,16 +2407,16 @@ const B = new et(), ee = (e, t, a) => {
2396
2407
  const m = i.options.value || [];
2397
2408
  m.length > 0 ? (x.value = m, h(m)) : ee(i.autoload, i, a);
2398
2409
  }
2399
- }), ie(() => {
2400
- i && de(i, a);
2410
+ }), le(() => {
2411
+ i && he(i, a);
2401
2412
  }), (m, k) => {
2402
2413
  var D, qe, We;
2403
2414
  return w(), $("div", null, [
2404
- (qe = (D = b(i)) == null ? void 0 : D.url) != null && qe.loading ? (w(), $("div", yt, [
2415
+ (qe = (D = b(i)) == null ? void 0 : D.url) != null && qe.loading ? (w(), $("div", St, [
2405
2416
  C(b(De), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2406
2417
  k[1] || (k[1] = ya("span", null, "数据加载中...", -1))
2407
2418
  ])) : z("", !0),
2408
- C(b(Oa), le({
2419
+ C(b(Oa), ue({
2409
2420
  class: [(We = b(r)) == null ? void 0 : We.errClass, "w-full"],
2410
2421
  value: d.value,
2411
2422
  "onUpdate:value": k[0] || (k[0] = (W) => d.value = W),
@@ -2414,15 +2425,15 @@ const B = new et(), ee = (e, t, a) => {
2414
2425
  placeholder: v.value,
2415
2426
  "label-in-value": !1
2416
2427
  }, b(c)), {
2417
- default: K(() => [
2418
- (w(!0), $(re, null, Ue(x.value, (W) => (w(), $(re, {
2428
+ default: Q(() => [
2429
+ (w(!0), $(oe, null, Ue(x.value, (W) => (w(), $(oe, {
2419
2430
  key: W.value
2420
2431
  }, [
2421
2432
  W.visible !== !1 ? (w(), Ae(b(Ra), {
2422
2433
  key: 0,
2423
2434
  value: W.value
2424
2435
  }, {
2425
- default: K(() => [
2436
+ default: Q(() => [
2426
2437
  xe(Y(W.label), 1)
2427
2438
  ]),
2428
2439
  _: 2
@@ -2436,77 +2447,78 @@ const B = new et(), ee = (e, t, a) => {
2436
2447
  }
2437
2448
  });
2438
2449
  export {
2439
- Mt as $,
2440
- pe as A,
2441
- rs as B,
2450
+ oa as $,
2451
+ Pe as A,
2452
+ de as B,
2442
2453
  os as C,
2443
2454
  is as D,
2444
- Qe as E,
2445
- _a as F,
2446
- Wt as G,
2447
- nt as H,
2455
+ ls as E,
2456
+ Qe as F,
2457
+ _a as G,
2458
+ Bt as H,
2448
2459
  rt as I,
2449
- Bt as J,
2460
+ ot as J,
2450
2461
  zt as K,
2451
2462
  Oe as L,
2452
- st as M,
2453
- ca as N,
2463
+ Ct as M,
2464
+ nt as N,
2454
2465
  N as O,
2455
2466
  U as P,
2456
- Ct as Q,
2457
- Xt as R,
2458
- ft as S,
2467
+ ca as Q,
2468
+ Yt as R,
2469
+ Zt as S,
2459
2470
  pt as T,
2460
- Zt as U,
2461
- Xe as V,
2462
- es as W,
2463
- ra as X,
2464
- Ht as Y,
2465
- oa as Z,
2466
- ss as _,
2467
- ts as a,
2468
- Ft as a0,
2469
- Je as a1,
2470
- $t as a2,
2471
- Qt as a3,
2472
- Za as a4,
2473
- la as a5,
2474
- jt as a6,
2475
- Lt as a7,
2476
- na as a8,
2477
- Ba as a9,
2478
- Ne as aa,
2479
- B as ab,
2480
- ye as ac,
2481
- ne as ad,
2482
- ge as ae,
2483
- V as af,
2484
- as as ag,
2485
- Ve as ah,
2486
- oe as ai,
2487
- Dt as b,
2488
- Yt as c,
2489
- Ut as d,
2490
- _t as e,
2491
- Gt as f,
2492
- qt as g,
2493
- Kt as h,
2471
+ dt as U,
2472
+ es as V,
2473
+ Xe as W,
2474
+ as as X,
2475
+ ra as Y,
2476
+ Vt as Z,
2477
+ ns as _,
2478
+ ss as a,
2479
+ $t as a0,
2480
+ _t as a1,
2481
+ Je as a2,
2482
+ Ft as a3,
2483
+ Jt as a4,
2484
+ et as a5,
2485
+ la as a6,
2486
+ Gt as a7,
2487
+ Mt as a8,
2488
+ na as a9,
2489
+ Ba as aa,
2490
+ Ne as ab,
2491
+ B as ac,
2492
+ re as ad,
2493
+ ne as ae,
2494
+ ye as af,
2495
+ K as ag,
2496
+ ts as ah,
2497
+ Ve as ai,
2498
+ ie as aj,
2499
+ Ut as b,
2500
+ Xt as c,
2501
+ Ht as d,
2502
+ Nt as e,
2503
+ qt as f,
2504
+ Wt as g,
2505
+ Qt as h,
2494
2506
  F as i,
2495
- Vt as j,
2507
+ Kt as j,
2496
2508
  ia as k,
2497
- Xa as l,
2498
- Jt as m,
2499
- ns as n,
2500
- Nt as o,
2501
- fe as p,
2509
+ Za as l,
2510
+ jt as m,
2511
+ Ca as n,
2512
+ Dt as o,
2513
+ rs as p,
2502
2514
  za as q,
2503
2515
  we as r,
2504
- X as s,
2505
- he as t,
2516
+ pe as s,
2517
+ X as t,
2506
2518
  _ as u,
2507
- ee as v,
2508
- de as w,
2509
- De as x,
2510
- ke as y,
2511
- Pe as z
2519
+ me as v,
2520
+ ee as w,
2521
+ he as x,
2522
+ De as y,
2523
+ ke as z
2512
2524
  };