@skyfox2000/webui 1.3.5 → 1.3.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 (46) hide show
  1. package/.vscode/settings.json +1 -1
  2. package/lib/assets/modules/{file-upload-C0twqMV5.js → file-upload-CKliLHBF.js} +50 -50
  3. package/lib/assets/modules/{index-D1XAa1Uo.js → index-CTOX9glc.js} +2 -2
  4. package/lib/assets/modules/index-Cm_1mhHh.js +377 -0
  5. package/lib/assets/modules/{index-C4CryM-R.js → index-DTFrhJdN.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-BrYQa4UO.js → menuTabs-ylnnzjNu.js} +2 -2
  7. package/lib/assets/modules/{toolIcon-B-g9pyE4.js → toolIcon-CNfvNkNh.js} +1 -1
  8. package/lib/assets/modules/{uploadList-DCWRIxPJ.js → uploadList-DroJGtBI.js} +4 -4
  9. package/lib/assets/modules/{uploadList-0f2FA_5s.js → uploadList-M21hxVQy.js} +129 -128
  10. package/lib/components/common/alert/index.vue.d.ts +13 -0
  11. package/lib/components/common/icon/helper.vue.d.ts +1 -0
  12. package/lib/components/common/index.d.ts +2 -0
  13. package/lib/components/content/form/formItem.vue.d.ts +1 -0
  14. package/lib/components/form/input/index.vue.d.ts +4 -1
  15. package/lib/components/form/select/index.vue.d.ts +2 -0
  16. package/lib/components/form/treeSelect/index.vue.d.ts +11 -2
  17. package/lib/components/index.d.ts +1 -1
  18. package/lib/es/AceEditor/index.js +3 -3
  19. package/lib/es/BasicLayout/index.js +3 -3
  20. package/lib/es/Error403/index.js +1 -1
  21. package/lib/es/Error404/index.js +1 -1
  22. package/lib/es/ExcelForm/index.js +309 -275
  23. package/lib/es/UploadForm/index.js +4 -4
  24. package/lib/index.d.ts +1 -1
  25. package/lib/typings/form.d.ts +2 -2
  26. package/lib/utils/excel-preview.d.ts +24 -0
  27. package/lib/utils/form-excel.d.ts +17 -4
  28. package/lib/webui.css +1 -1
  29. package/lib/webui.es.js +677 -662
  30. package/package.json +2 -2
  31. package/src/components/common/alert/index.vue +76 -0
  32. package/src/components/common/icon/helper.vue +7 -1
  33. package/src/components/common/index.ts +4 -1
  34. package/src/components/content/dialog/excelForm.vue +337 -311
  35. package/src/components/content/form/formItem.vue +6 -2
  36. package/src/components/form/input/index.vue +16 -3
  37. package/src/components/form/select/index.vue +5 -11
  38. package/src/components/form/treeSelect/index.vue +22 -17
  39. package/src/components/index.ts +1 -0
  40. package/src/index.ts +1 -0
  41. package/src/typings/form.d.ts +2 -2
  42. package/src/utils/data.ts +10 -1
  43. package/src/utils/excel-preview.ts +189 -0
  44. package/src/utils/file-upload.ts +0 -2
  45. package/src/utils/form-excel.ts +132 -126
  46. package/lib/assets/modules/index-CKJIxasX.js +0 -333
@@ -1,9 +1,9 @@
1
1
  var da = Object.defineProperty;
2
2
  var ha = (e, t, a) => t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var $ = (e, t, a) => ha(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { inject as ee, ref as f, provide as Pe, watch as I, toRaw as Ye, h as _, nextTick as ma, shallowRef as H, defineComponent as W, reactive as va, onMounted as Se, onUnmounted as re, createBlock as Ie, createCommentVNode as q, openBlock as A, unref as b, mergeProps as oe, useAttrs as xe, createElementBlock as L, createVNode as B, withCtx as D, createTextVNode as Ae, toDisplayString as z, Fragment as te, renderList as _e, normalizeClass as Xe, createElementVNode as ga } from "vue";
4
+ import { inject as ae, ref as f, provide as Pe, watch as I, toRaw as Ye, h as _, nextTick as ma, shallowRef as H, defineComponent as W, reactive as va, onMounted as Se, onUnmounted as oe, createBlock as Ie, createCommentVNode as q, openBlock as E, unref as b, mergeProps as ie, useAttrs as xe, createElementBlock as L, createVNode as B, withCtx as D, createTextVNode as Ae, toDisplayString as z, Fragment as se, renderList as _e, normalizeClass as Xe, createElementVNode as ga } from "vue";
5
5
  import { Switch as ya, AutoComplete as ba, Input as Sa, CheckboxGroup as Ia, Checkbox as xa, RadioGroup as Aa, Radio as Ea, Select as Oa, SelectOption as Ra } from "ant-design-vue";
6
- import { createPinia as Ta, defineStore as ie } from "pinia";
6
+ import { createPinia as Ta, defineStore as le } from "pinia";
7
7
  import wa from "pinia-plugin-persistedstate";
8
8
  import { combineParams as Ee, EnvConfig as ve, AppAction as qe, AppSource as Be, isMicroApp as ge, mainAppApis as M, isBaseMicroApp as Pa } from "@skyfox2000/microbase";
9
9
  import { ResStatus as R, httpPost as Q, setToken as de, fieldMapping as ka, parseFieldTemplate as ye, API_HOST as ke, SERVER_HOST as La } from "@skyfox2000/fapi";
@@ -110,7 +110,7 @@ F.setOptions("EnableDisable", F.EnableDisable);
110
110
  F.setOptions("SuccessResult", F.SuccessResult);
111
111
  F.setOptions("YesNo", F.YesNo);
112
112
  F.setOptions("MaleFemale", F.MaleFemale);
113
- const le = {
113
+ const ue = {
114
114
  /**
115
115
  * 选项数据接口
116
116
  */
@@ -175,10 +175,11 @@ const le = {
175
175
  }
176
176
  }, P = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Oe = (e, t) => {
177
177
  var n;
178
+ const a = e.page;
178
179
  return {
179
180
  url: "",
180
- ...(n = e.page.urls) == null ? void 0 : n[t.urlKey],
181
181
  ...e.url,
182
+ ...(n = a.urls) == null ? void 0 : n[t.urlKey],
182
183
  ...t.url,
183
184
  loadingText: t.loadingText
184
185
  };
@@ -226,9 +227,9 @@ const le = {
226
227
  loadingText: !1,
227
228
  processParams: () => Ee(e.treeQuery, t)
228
229
  }).then((a) => (a == null ? void 0 : a.status) === R.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
229
- let se;
230
+ let ne;
230
231
  const Lt = (e) => {
231
- se = new Ue({}), se.messages({
232
+ ne = new Ue({}), ne.messages({
232
233
  required: "${label}不能为空",
233
234
  types: {
234
235
  number: "${label}必须是数字"
@@ -257,7 +258,7 @@ const Lt = (e) => {
257
258
  }, $t = (e) => {
258
259
  if (!e || P(e))
259
260
  return [];
260
- const t = [], a = se.messages(), s = (o, r, l) => {
261
+ const t = [], a = ne.messages(), s = (o, r, l) => {
261
262
  const i = r.type;
262
263
  if (i && a.types && i in a.types) {
263
264
  const c = a.types[i];
@@ -308,15 +309,15 @@ const Lt = (e) => {
308
309
  rules: i
309
310
  });
310
311
  }), t;
311
- }, ue = async (e) => {
312
+ }, ce = async (e) => {
312
313
  const t = e.formData.value, a = e.formRules.value;
313
- P(a) || (He(e), e.ruleValidator || (e.ruleValidator = new Ue({}), e.ruleValidator.messages(se.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
314
+ P(a) || (He(e), e.ruleValidator || (e.ruleValidator = new Ue({}), e.ruleValidator.messages(ne.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
314
315
  }).catch(({ fields: s }) => s));
315
- }, Ft = async (e, t, a) => (a || (a = new Ue({}), a.messages(se.messages()), a.define(t)), a.validate(e).then(() => {
316
+ }, Ft = async (e, t, a) => (a || (a = new Ue({}), a.messages(ne.messages()), a.define(t)), a.validate(e).then(() => {
316
317
  }).catch(({ fields: s }) => s)), He = (e) => {
317
318
  e.ruleResults.value = void 0;
318
319
  }, C = () => {
319
- const e = ee(N.EditorControl, void 0), t = f(ee(N.LabelText, "")), a = f(ee(N.RuleKey, "")), s = ee(N.ErrInfo, void 0);
320
+ const e = ae(N.EditorControl, void 0), t = f(ae(N.LabelText, "")), a = f(ae(N.RuleKey, "")), s = ae(N.ErrInfo, void 0);
320
321
  return {
321
322
  editorCtrl: e,
322
323
  labelText: t,
@@ -391,7 +392,7 @@ const Lt = (e) => {
391
392
  const t = e.page;
392
393
  if (e.isFormSaving.value = !0, He(e), e.beforeSave && e.beforeSave() === !1)
393
394
  return e.isFormSaving.value = !1, Promise.resolve();
394
- if (e.formRules.value && await ue(e), e.ruleResults.value)
395
+ if (e.formRules.value && await ce(e), e.ruleResults.value)
395
396
  return x.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
396
397
  const a = e.formData.value;
397
398
  return Ze(
@@ -457,12 +458,12 @@ const Lt = (e) => {
457
458
  }, be = "/login/", me = [], Ha = (e) => {
458
459
  for (const t of e) {
459
460
  const a = me.findIndex((s) => s.path === t.path);
460
- a !== -1 && me.splice(a, 1), me.push(t), ne.addRoute(t);
461
+ a !== -1 && me.splice(a, 1), me.push(t), re.addRoute(t);
461
462
  }
462
463
  }, ta = (e, t, a, s = "") => {
463
464
  const n = s + (s ? "/" : "") + e.path;
464
465
  t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => ta(o, t, e, n));
465
- }, ne = $a({
466
+ }, re = $a({
466
467
  history: Fa("/"),
467
468
  routes: me
468
469
  }), Va = (e, t) => {
@@ -482,8 +483,8 @@ const Lt = (e) => {
482
483
  }
483
484
  }
484
485
  return !1;
485
- }, ae = f(null);
486
- ne.beforeEach((e, t, a) => {
486
+ }, te = f(null);
487
+ re.beforeEach((e, t, a) => {
487
488
  var l;
488
489
  const s = e;
489
490
  if (e.path.startsWith("/error/") || e.path.startsWith(be))
@@ -492,7 +493,7 @@ ne.beforeEach((e, t, a) => {
492
493
  if (e.path === "/") {
493
494
  const i = U();
494
495
  if (!i.menuLoaded) {
495
- ae.value = {
496
+ te.value = {
496
497
  to: e,
497
498
  next: (u) => {
498
499
  a({ path: u });
@@ -511,7 +512,7 @@ ne.beforeEach((e, t, a) => {
511
512
  a({ path: be });
512
513
  else {
513
514
  if (!U().menuLoaded) {
514
- ae.value = {
515
+ te.value = {
515
516
  to: e,
516
517
  next: a
517
518
  };
@@ -523,9 +524,9 @@ ne.beforeEach((e, t, a) => {
523
524
  }
524
525
  });
525
526
  const Ka = (e) => {
526
- if (ae.value) {
527
- const { to: t, next: a } = ae.value;
528
- ae.value = null, t.path === "/" ? a(e) : a(t.path);
527
+ if (te.value) {
528
+ const { to: t, next: a } = te.value;
529
+ te.value = null, t.path === "/" ? a(e) : a(t.path);
529
530
  }
530
531
  }, Qa = (e) => {
531
532
  const t = Ke();
@@ -534,7 +535,7 @@ const Ka = (e) => {
534
535
  return;
535
536
  t.TabPanes.push(e);
536
537
  }
537
- }, Ja = (e, t) => t.find((a) => a.key === e), Ke = ie("pageInfo", {
538
+ }, Ja = (e, t) => t.find((a) => a.key === e), Ke = le("pageInfo", {
538
539
  state: () => ({
539
540
  TabActive: "",
540
541
  TabPanes: [],
@@ -583,14 +584,14 @@ const Ka = (e) => {
583
584
  }
584
585
  },
585
586
  persist: !1
586
- }), Ga = {
587
+ }), ja = {
587
588
  appList: {
588
589
  api: "PLATFORM_API",
589
590
  authorize: !0,
590
591
  url: "/api/RCTenanetOpSrv/getApps",
591
592
  loadingText: !1
592
593
  }
593
- }, Le = /* @__PURE__ */ new Map(), ja = (e) => {
594
+ }, Le = /* @__PURE__ */ new Map(), Ga = (e) => {
594
595
  const t = K(), { roles: a, permission: s } = e.meta || {};
595
596
  if (P(a) && P(s))
596
597
  return !0;
@@ -603,7 +604,7 @@ const Ka = (e) => {
603
604
  return !1;
604
605
  }, sa = (e) => e.map((t) => {
605
606
  const a = { ...t };
606
- return ja(a) ? (a.children && (a.children = sa(a.children)), a) : null;
607
+ return Ga(a) ? (a.children && (a.children = sa(a.children)), a) : null;
607
608
  }).filter(Boolean), na = (e, t = "") => {
608
609
  for (const a of e) {
609
610
  if (!a.children && !a.redirect) {
@@ -616,7 +617,7 @@ const Ka = (e) => {
616
617
  return s;
617
618
  }
618
619
  }
619
- }, U = ie("appInfo", {
620
+ }, U = le("appInfo", {
620
621
  state: () => ({
621
622
  appInfo: {
622
623
  Id: "",
@@ -650,7 +651,7 @@ const Ka = (e) => {
650
651
  });
651
652
  },
652
653
  async getRemoteAppList() {
653
- return Q(Ga.appList, {
654
+ return Q(ja.appList, {
654
655
  Query: {
655
656
  AppCode: this.appInfo.AppCode,
656
657
  Enabled: 1
@@ -734,7 +735,7 @@ const Ka = (e) => {
734
735
  */
735
736
  push(e) {
736
737
  this.findRoute(e) && Ke().setTabActive(e), ma(() => {
737
- if (ne.push({ path: e }), M.value && M.value.mainAppPush) {
738
+ if (re.push({ path: e }), M.value && M.value.mainAppPush) {
738
739
  const a = this.formatRoute(e);
739
740
  M.value.mainAppPush(a);
740
741
  }
@@ -804,7 +805,7 @@ const Ka = (e) => {
804
805
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
805
806
  },
806
807
  logout() {
807
- this.clean(), ne.push({ path: be + "#/" }), ge() && M.value && M.value.mainAppPush && M.value.mainAppPush(be + "#/");
808
+ this.clean(), re.push({ path: be + "#/" }), ge() && M.value && M.value.mainAppPush && M.value.mainAppPush(be + "#/");
808
809
  }
809
810
  },
810
811
  persist: !1
@@ -867,7 +868,7 @@ const Ka = (e) => {
867
868
  } catch (t) {
868
869
  return console.error(ra, t), !1;
869
870
  }
870
- }, k = f(""), X = f(null), K = ie("userInfo", {
871
+ }, k = f(""), Z = f(null), K = le("userInfo", {
871
872
  state: () => ({
872
873
  isLogin: !1,
873
874
  userInfo: {
@@ -921,11 +922,11 @@ const Ka = (e) => {
921
922
  async getRolePermits(e) {
922
923
  if (!this.isLogin || !this.token)
923
924
  return !1;
924
- if (X.value && X.value.appId === e)
925
+ if (Z.value && Z.value.appId === e)
925
926
  return !0;
926
927
  try {
927
928
  const t = await Ba(e);
928
- return t ? (X.value = {
929
+ return t ? (Z.value = {
929
930
  appId: e,
930
931
  permits: t.permits || [],
931
932
  lastTime: t.lastTime
@@ -950,7 +951,7 @@ const Ka = (e) => {
950
951
  */
951
952
  hasPermit(e, t) {
952
953
  var s;
953
- const a = X.value;
954
+ const a = Z.value;
954
955
  return !a || !a.permits ? !1 : ((s = a.permits[e]) == null ? void 0 : s.includes(t)) ?? !1;
955
956
  },
956
957
  /**
@@ -1014,7 +1015,7 @@ const Ka = (e) => {
1014
1015
  Code: "",
1015
1016
  TenantId: "",
1016
1017
  UserLevel: ""
1017
- }, this.token = "", de(this.token), this.isLogin = !1, X.value = null, k.value = "", U().clean(), Promise.resolve();
1018
+ }, this.token = "", de(this.token), this.isLogin = !1, Z.value = null, k.value = "", U().clean(), Promise.resolve();
1018
1019
  },
1019
1020
  /**
1020
1021
  * 登出操作
@@ -1046,7 +1047,7 @@ const Ka = (e) => {
1046
1047
  }
1047
1048
  }), Vt = (e, t) => {
1048
1049
  const a = K();
1049
- return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(ne.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1050
+ return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(re.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1050
1051
  if (!t) {
1051
1052
  if (n.visible === !1)
1052
1053
  return !1;
@@ -1113,10 +1114,10 @@ const Ka = (e) => {
1113
1114
  }), Jt = (e, t) => {
1114
1115
  const a = t;
1115
1116
  return ia(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === R.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1116
- }, Gt = (e, t) => {
1117
+ }, jt = (e, t) => {
1117
1118
  let a = e.editor;
1118
1119
  e.rowData.value = t, a && (aa(a, t), a.visible.value = !0);
1119
- }, jt = (e, t) => Na(e, t, {
1120
+ }, Gt = (e, t) => Na(e, t, {
1120
1121
  url: e.deleteUrl,
1121
1122
  primaryKey: e.primaryKey
1122
1123
  }).then((a) => ((a == null ? void 0 : a.status) === R.SUCCESS && setTimeout(() => {
@@ -1169,12 +1170,12 @@ class Za {
1169
1170
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1170
1171
  }
1171
1172
  }
1172
- const j = new Za(), Y = (e, t, a) => {
1173
+ const G = new Za(), Y = (e, t, a) => {
1173
1174
  if (t.inputFactory && (a != null && a.reloadEvent)) {
1174
1175
  const s = t.inputFactory.value;
1175
1176
  s.reloadHandler = (n, o) => {
1176
1177
  et(t.url, t, o);
1177
- }, j.on(a.reloadEvent, s.reloadHandler);
1178
+ }, G.on(a.reloadEvent, s.reloadHandler);
1178
1179
  }
1179
1180
  if (a != null && a.data)
1180
1181
  I(
@@ -1187,7 +1188,7 @@ const j = new Za(), Y = (e, t, a) => {
1187
1188
  else if (t.url && t.url.url)
1188
1189
  e && la(t.url, t, t.params ?? {});
1189
1190
  else {
1190
- const s = f(ee(N.LabelText, ""));
1191
+ const s = f(ae(N.LabelText, ""));
1191
1192
  x.error("`" + s.value + "` 未配置选项数据!", {
1192
1193
  duration: 5e3
1193
1194
  });
@@ -1205,9 +1206,9 @@ const j = new Za(), Y = (e, t, a) => {
1205
1206
  }), e.options.value = t;
1206
1207
  }, et = (e, t, a) => {
1207
1208
  Array.isArray(a) ? Je(t, a, !0) : la(e, t, a);
1208
- }, ce = (e, t) => {
1209
+ }, fe = (e, t) => {
1209
1210
  var a;
1210
- (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && j.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1211
+ (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && G.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1211
1212
  }, la = (e, t, a) => {
1212
1213
  const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = Ee(s, n, a);
1213
1214
  at(e, t, t.fieldMap, o).then((r) => {
@@ -1248,7 +1249,7 @@ const j = new Za(), Y = (e, t, a) => {
1248
1249
  const o = n([e], t);
1249
1250
  return o.length > 0 ? o[0] : void 0;
1250
1251
  }
1251
- }, Te = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], Z = (e, t, a) => {
1252
+ }, Te = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], ee = (e, t, a) => {
1252
1253
  const s = t.split(".");
1253
1254
  let n = e;
1254
1255
  for (let o = 0; o < s.length - 1; o++) {
@@ -1259,7 +1260,7 @@ const j = new Za(), Y = (e, t, a) => {
1259
1260
  }, ua = (e, t, a) => {
1260
1261
  if (a == null) {
1261
1262
  Object.entries(t).forEach(([s]) => {
1262
- Z(e, s, a);
1263
+ ee(e, s, a);
1263
1264
  });
1264
1265
  return;
1265
1266
  }
@@ -1270,9 +1271,9 @@ const j = new Za(), Y = (e, t, a) => {
1270
1271
  const l = parseInt(((r = n.match(/\$\{(\d+)\}/)) == null ? void 0 : r[1]) ?? "0"), i = a[l], u = n.replace(/\$\{\d+\}\./, "");
1271
1272
  if (u && i) {
1272
1273
  const c = ye(u, i);
1273
- Z(e, s, c);
1274
+ ee(e, s, c);
1274
1275
  } else
1275
- Z(e, s, i);
1276
+ ee(e, s, i);
1276
1277
  } catch {
1277
1278
  console.error("outFields 格式错误:" + n, "必须是 ${index} 或者 ${index}.${key}");
1278
1279
  }
@@ -1281,14 +1282,14 @@ const j = new Za(), Y = (e, t, a) => {
1281
1282
  }) : Object.entries(t).forEach(([s, n]) => {
1282
1283
  if (n.includes("${")) {
1283
1284
  const o = ye(n, a);
1284
- Z(e, s, o);
1285
+ ee(e, s, o);
1285
1286
  } else
1286
- Z(e, s, a[n]);
1287
+ ee(e, s, a[n]);
1287
1288
  });
1288
1289
  }, we = (e, t, a) => {
1289
1290
  var o, r;
1290
1291
  const s = (o = e.inputFactory) == null ? void 0 : o.value;
1291
- s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && ue(s.editorCtrl), e.selected.value = a;
1292
+ s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && ce(s.editorCtrl), e.selected.value = a;
1292
1293
  const n = tt(a, e.options.value);
1293
1294
  if (e.selectedOptions.value = n, t.formData && t.outFields && ua(t.formData, t.outFields, n), t.changeEvent) {
1294
1295
  const [l, i] = t.changeEvent;
@@ -1298,7 +1299,7 @@ const j = new Za(), Y = (e, t, a) => {
1298
1299
  const c = ye(i, { selectedValues: a });
1299
1300
  try {
1300
1301
  const p = JSON.parse(c);
1301
- j.emit(u, p, a, n);
1302
+ G.emit(u, p, a, n);
1302
1303
  } catch (p) {
1303
1304
  console.error("eventParamsValue: ", c, p);
1304
1305
  }
@@ -1307,15 +1308,15 @@ const j = new Za(), Y = (e, t, a) => {
1307
1308
  const u = ye(i, { selectedValues: a });
1308
1309
  try {
1309
1310
  const c = JSON.parse(u);
1310
- j.emit(l, c, a, n);
1311
+ G.emit(l, c, a, n);
1311
1312
  } catch (c) {
1312
1313
  console.error("eventParamsValue: ", u, c);
1313
1314
  }
1314
1315
  }
1315
1316
  else
1316
1317
  Array.isArray(l) ? l.every((u) => {
1317
- j.emit(u, n, a);
1318
- }) : j.emit(l, n, a);
1318
+ G.emit(u, n, a);
1319
+ }) : G.emit(l, n, a);
1319
1320
  }
1320
1321
  return s != null && s.inputEmit && s.inputEmit("change", a, n), n;
1321
1322
  }, y = {
@@ -1444,7 +1445,7 @@ const j = new Za(), Y = (e, t, a) => {
1444
1445
  ), {
1445
1446
  treeCtrl: a
1446
1447
  };
1447
- }, fe = (e, t) => {
1448
+ }, pe = (e, t) => {
1448
1449
  const a = {
1449
1450
  ...y.OptionOption,
1450
1451
  url: e,
@@ -1672,14 +1673,14 @@ const j = new Za(), Y = (e, t, a) => {
1672
1673
  continue;
1673
1674
  const m = p.path.split("/");
1674
1675
  m.unshift(...t);
1675
- const d = pa(p.children || [], m, a, s), E = {
1676
+ const d = pa(p.children || [], m, a, s), A = {
1676
1677
  key: m.join("/"),
1677
1678
  label: ((u = p.name) == null ? void 0 : u.toString()) ?? "",
1678
1679
  title: ((c = p.name) == null ? void 0 : c.toString()) ?? "",
1679
1680
  icon: p.icon ? _(a, { ...s, icon: p.icon }) : void 0,
1680
1681
  children: d.length > 0 ? d : void 0
1681
1682
  };
1682
- (d.length > 0 || !p.children) && n.push(E);
1683
+ (d.length > 0 || !p.children) && n.push(A);
1683
1684
  }
1684
1685
  return n;
1685
1686
  }, We = va([]), Zt = () => {
@@ -1707,7 +1708,7 @@ const j = new Za(), Y = (e, t, a) => {
1707
1708
  // 不显示错误
1708
1709
  hideErrorToast: !0
1709
1710
  }
1710
- }, es = ie("hostInfo", {
1711
+ }, es = le("hostInfo", {
1711
1712
  state: () => ({
1712
1713
  hostInfo: {
1713
1714
  Host: "",
@@ -1769,7 +1770,7 @@ const j = new Za(), Y = (e, t, a) => {
1769
1770
  // storage: localStorage,
1770
1771
  // pick: ['hostInfo'],
1771
1772
  // },
1772
- }), as = ie("settingInfo", {
1773
+ }), as = le("settingInfo", {
1773
1774
  state: () => ({
1774
1775
  fullscreen: !1,
1775
1776
  menuCollapse: !1,
@@ -1814,7 +1815,7 @@ const j = new Za(), Y = (e, t, a) => {
1814
1815
  }), ts = /* @__PURE__ */ W({
1815
1816
  __name: "index",
1816
1817
  props: {
1817
- ...le,
1818
+ ...ue,
1818
1819
  /**
1819
1820
  * 选择项数据
1820
1821
  */
@@ -1825,7 +1826,7 @@ const j = new Za(), Y = (e, t, a) => {
1825
1826
  },
1826
1827
  emits: ["change"],
1827
1828
  setup(e, { emit: t }) {
1828
- const a = e, s = C(), n = fe(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
1829
+ const a = e, s = C(), n = pe(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
1829
1830
  o.inputFactory = H(s);
1830
1831
  const r = f([]);
1831
1832
  o && I(
@@ -1836,7 +1837,7 @@ const j = new Za(), Y = (e, t, a) => {
1836
1837
  { immediate: !0, deep: !0 }
1837
1838
  );
1838
1839
  const l = t, { editorCtrl: i, errInfo: u } = C(), c = (p) => {
1839
- u != null && u.value.errClass && i && ue(i), l("change", p);
1840
+ u != null && u.value.errClass && i && ce(i), l("change", p);
1840
1841
  };
1841
1842
  return Se(() => {
1842
1843
  if (!a.data || a.data.length != 2) {
@@ -1844,11 +1845,11 @@ const j = new Za(), Y = (e, t, a) => {
1844
1845
  return;
1845
1846
  }
1846
1847
  o && Y(o.autoload, o, a);
1847
- }), re(() => {
1848
- o && ce(o, a);
1848
+ }), oe(() => {
1849
+ o && fe(o, a);
1849
1850
  }), (p, m) => {
1850
1851
  var d;
1851
- return r.value.length === 2 ? (A(), Ie(b(ya), oe({
1852
+ return r.value.length === 2 ? (E(), Ie(b(ya), ie({
1852
1853
  key: 0,
1853
1854
  class: [
1854
1855
  ((d = b(u)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
@@ -1867,7 +1868,7 @@ const j = new Za(), Y = (e, t, a) => {
1867
1868
  inheritAttrs: !1,
1868
1869
  __name: "index",
1869
1870
  props: {
1870
- ...le,
1871
+ ...ue,
1871
1872
  value: {
1872
1873
  type: [String, Number, Array, null],
1873
1874
  default: void 0
@@ -1884,7 +1885,7 @@ const j = new Za(), Y = (e, t, a) => {
1884
1885
  },
1885
1886
  emits: ["update:value", "select", "change", "update:labels"],
1886
1887
  setup(e, { emit: t }) {
1887
- const a = e, s = xe(), n = C(), o = fe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1888
+ const a = e, s = xe(), n = C(), o = pe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1888
1889
  r.inputFactory = H(n), r.fieldMap = {
1889
1890
  label: "Name",
1890
1891
  value: "Id",
@@ -1921,24 +1922,24 @@ const j = new Za(), Y = (e, t, a) => {
1921
1922
  }
1922
1923
  };
1923
1924
  r.params = Ee(r.params, h), r && Y(!0, r, a);
1924
- }, E = (v) => {
1925
+ }, A = (v) => {
1925
1926
  const w = we(r, a, v);
1926
1927
  p("update:value", v), p("select", v);
1927
1928
  const h = Te(w);
1928
- p("update:labels", h), u != null && u.value.errClass && i && ue(i);
1929
+ p("update:labels", h), u != null && u.value.errClass && i && ce(i);
1929
1930
  };
1930
- return re(() => {
1931
- r && ce(r, a);
1931
+ return oe(() => {
1932
+ r && fe(r, a);
1932
1933
  }), (v, w) => {
1933
1934
  var h;
1934
- return A(), L("div", null, [
1935
- B(b(ba), oe({
1935
+ return E(), L("div", null, [
1936
+ B(b(ba), ie({
1936
1937
  value: l.value,
1937
1938
  "onUpdate:value": w[0] || (w[0] = (S) => l.value = S),
1938
1939
  class: ["w-full", (h = b(u)) == null ? void 0 : h.errClass],
1939
1940
  options: m.value,
1940
1941
  onSearch: d,
1941
- onSelect: E
1942
+ onSelect: A
1942
1943
  }, b(s), { "allow-clear": !1 }), {
1943
1944
  option: D(({ label: S }) => [
1944
1945
  Ae(z(S), 1)
@@ -1961,7 +1962,7 @@ const j = new Za(), Y = (e, t, a) => {
1961
1962
  inheritAttrs: !1,
1962
1963
  __name: "index",
1963
1964
  props: {
1964
- ...le,
1965
+ ...ue,
1965
1966
  nodata: {
1966
1967
  type: String,
1967
1968
  default: ""
@@ -1978,14 +1979,14 @@ const j = new Za(), Y = (e, t, a) => {
1978
1979
  },
1979
1980
  emits: ["change", "update:labels"],
1980
1981
  setup(e, { emit: t }) {
1981
- var m, d, E;
1982
- const a = e, s = xe(), n = C(), o = fe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1982
+ var m, d, A;
1983
+ const a = e, s = xe(), n = C(), o = pe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1983
1984
  r.inputFactory = H(n);
1984
1985
  const l = f({
1985
1986
  ...r == null ? void 0 : r.url,
1986
1987
  url: ((m = r == null ? void 0 : r.url) == null ? void 0 : m.url) || "",
1987
1988
  fieldMap: (r == null ? void 0 : r.fieldMap) || ((d = r == null ? void 0 : r.url) == null ? void 0 : d.fieldMap),
1988
- params: (r == null ? void 0 : r.params) || ((E = r == null ? void 0 : r.url) == null ? void 0 : E.params),
1989
+ params: (r == null ? void 0 : r.params) || ((A = r == null ? void 0 : r.url) == null ? void 0 : A.params),
1989
1990
  loadingText: !1
1990
1991
  }), { errInfo: i } = n, u = t;
1991
1992
  n.inputEmit = u;
@@ -2008,17 +2009,17 @@ const j = new Za(), Y = (e, t, a) => {
2008
2009
  value: "Id",
2009
2010
  key: "Id"
2010
2011
  }), r && Y(r.autoload, r, a);
2011
- }), re(() => {
2012
- r && ce(r, a);
2013
- }), (v, w) => (A(), L("div", dt, [
2014
- B(b(Ia), oe({
2012
+ }), oe(() => {
2013
+ r && fe(r, a);
2014
+ }), (v, w) => (E(), L("div", dt, [
2015
+ B(b(Ia), ie({
2015
2016
  onChange: p,
2016
2017
  class: "w-full mb-[-3px]"
2017
2018
  }, b(s)), {
2018
2019
  default: D(() => [
2019
- c.value.length > 0 ? (A(!0), L(te, { key: 0 }, _e(c.value, (h) => {
2020
+ c.value.length > 0 ? (E(!0), L(se, { key: 0 }, _e(c.value, (h) => {
2020
2021
  var S;
2021
- return A(), Ie(b(xa), {
2022
+ return E(), Ie(b(xa), {
2022
2023
  key: h.value,
2023
2024
  value: h.value,
2024
2025
  disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
@@ -2034,7 +2035,7 @@ const j = new Za(), Y = (e, t, a) => {
2034
2035
  ]),
2035
2036
  _: 2
2036
2037
  }, 1032, ["value", "disabled", "class"]);
2037
- }), 128)) : e.nodata ? (A(), L("div", ht, z(e.nodata), 1)) : q("", !0)
2038
+ }), 128)) : e.nodata ? (E(), L("div", ht, z(e.nodata), 1)) : q("", !0)
2038
2039
  ]),
2039
2040
  _: 1
2040
2041
  }, 16)
@@ -2047,7 +2048,7 @@ const j = new Za(), Y = (e, t, a) => {
2047
2048
  inheritAttrs: !1,
2048
2049
  __name: "index",
2049
2050
  props: {
2050
- ...le,
2051
+ ...ue,
2051
2052
  value: {
2052
2053
  type: [String, Number, null, Array],
2053
2054
  default: void 0
@@ -2065,12 +2066,12 @@ const j = new Za(), Y = (e, t, a) => {
2065
2066
  },
2066
2067
  emits: ["change", "update:value", "update:labels"],
2067
2068
  setup(e, { emit: t }) {
2068
- var E, v, w;
2069
- const a = e, s = xe(), n = C(), o = fe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2069
+ var A, v, w;
2070
+ const a = e, s = xe(), n = C(), o = pe(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2070
2071
  r.inputFactory = H(n);
2071
2072
  const l = f({
2072
2073
  ...r == null ? void 0 : r.url,
2073
- url: ((E = r == null ? void 0 : r.url) == null ? void 0 : E.url) || "",
2074
+ url: ((A = r == null ? void 0 : r.url) == null ? void 0 : A.url) || "",
2074
2075
  fieldMap: (r == null ? void 0 : r.fieldMap) || ((v = r == null ? void 0 : r.url) == null ? void 0 : v.fieldMap),
2075
2076
  params: (r == null ? void 0 : r.params) || ((w = r == null ? void 0 : r.url) == null ? void 0 : w.params),
2076
2077
  loadingText: !1
@@ -2103,10 +2104,10 @@ const j = new Za(), Y = (e, t, a) => {
2103
2104
  value: "Id",
2104
2105
  key: "Id"
2105
2106
  }), r && Y(r.autoload, r, a);
2106
- }), re(() => {
2107
- r && ce(r, a);
2108
- }), (h, S) => (A(), L("div", mt, [
2109
- B(b(Aa), oe({
2107
+ }), oe(() => {
2108
+ r && fe(r, a);
2109
+ }), (h, S) => (E(), L("div", mt, [
2110
+ B(b(Aa), ie({
2110
2111
  value: i.value,
2111
2112
  "onUpdate:value": S[0] || (S[0] = (O) => i.value = O),
2112
2113
  autocheck: !1,
@@ -2114,12 +2115,12 @@ const j = new Za(), Y = (e, t, a) => {
2114
2115
  class: "w-full flex align-items flex-wrap mb-[-3px]"
2115
2116
  }, b(s)), {
2116
2117
  default: D(() => [
2117
- c.value.length > 0 ? (A(!0), L(te, { key: 0 }, _e(c.value, (O) => {
2118
+ c.value.length > 0 ? (E(!0), L(se, { key: 0 }, _e(c.value, (O) => {
2118
2119
  var g;
2119
- return A(), L(te, {
2120
+ return E(), L(se, {
2120
2121
  key: O.value
2121
2122
  }, [
2122
- O.visible !== !1 ? (A(), Ie(b(Ea), {
2123
+ O.visible !== !1 ? (E(), Ie(b(Ea), {
2123
2124
  key: 0,
2124
2125
  checked: m(O.value, a.value),
2125
2126
  value: O.value,
@@ -2136,7 +2137,7 @@ const j = new Za(), Y = (e, t, a) => {
2136
2137
  _: 2
2137
2138
  }, 1032, ["checked", "value", "class"])) : q("", !0)
2138
2139
  ], 64);
2139
- }), 128)) : e.nodata ? (A(), L("div", vt, z(e.nodata), 1)) : q("", !0)
2140
+ }), 128)) : e.nodata ? (E(), L("div", vt, z(e.nodata), 1)) : q("", !0)
2140
2141
  ]),
2141
2142
  _: 1
2142
2143
  }, 16, ["value"])
@@ -2149,7 +2150,7 @@ const j = new Za(), Y = (e, t, a) => {
2149
2150
  inheritAttrs: !1,
2150
2151
  __name: "index",
2151
2152
  props: {
2152
- ...le,
2153
+ ...ue,
2153
2154
  value: {
2154
2155
  type: [String, Number, Array, null],
2155
2156
  default: void 0
@@ -2169,10 +2170,10 @@ const j = new Za(), Y = (e, t, a) => {
2169
2170
  required: !1
2170
2171
  }
2171
2172
  },
2172
- emits: ["change", "update:value", "update:labels"],
2173
+ emits: ["change", "update:value", "update:label", "update:labels"],
2173
2174
  setup(e, { emit: t }) {
2174
2175
  var h, S, O;
2175
- const a = e, s = C(), { editorCtrl: n, errInfo: o, labelText: r } = s, l = fe(a.url, a), i = a.optionCtrl ?? l.optionCtrl;
2176
+ const a = e, s = C(), { editorCtrl: n, errInfo: o, labelText: r } = s, l = pe(a.url, a), i = a.optionCtrl ?? l.optionCtrl;
2176
2177
  i.inputFactory = H(s);
2177
2178
  const u = xe(), c = f({
2178
2179
  ...i == null ? void 0 : i.url,
@@ -2180,8 +2181,8 @@ const j = new Za(), Y = (e, t, a) => {
2180
2181
  fieldMap: (i == null ? void 0 : i.fieldMap) || ((S = i == null ? void 0 : i.url) == null ? void 0 : S.fieldMap),
2181
2182
  params: (i == null ? void 0 : i.params) || ((O = i == null ? void 0 : i.url) == null ? void 0 : O.params),
2182
2183
  loadingText: !1
2183
- }), p = f(a.value), m = f(u.placeholder), d = f((i == null ? void 0 : i.selected.value) || void 0), E = t;
2184
- s.inputEmit = E;
2184
+ }), p = f(a.value), m = f(u.placeholder), d = f((i == null ? void 0 : i.selected.value) || void 0), A = t;
2185
+ s.inputEmit = A;
2185
2186
  const v = f((i == null ? void 0 : i.options.value) || []);
2186
2187
  i && I(
2187
2188
  () => i.options.value,
@@ -2191,8 +2192,8 @@ const j = new Za(), Y = (e, t, a) => {
2191
2192
  { immediate: !0, deep: !0 }
2192
2193
  );
2193
2194
  const w = (g) => {
2194
- const J = we(i, a, g), pe = Te(J);
2195
- d.value = g, E("update:labels", pe), E("change", g), o != null && o.value.errClass && n && ue(n);
2195
+ const J = we(i, a, g), X = Te(J);
2196
+ d.value = g, A("update:labels", X), A("update:label", X.join(";")), A("change", g), o != null && o.value.errClass && n && ce(n);
2196
2197
  };
2197
2198
  return I(
2198
2199
  () => v.value,
@@ -2209,10 +2210,10 @@ const j = new Za(), Y = (e, t, a) => {
2209
2210
  () => d.value,
2210
2211
  (g) => {
2211
2212
  if (u.mode === "multiple" && P(g) && P(p.value)) {
2212
- E("update:value", p.value);
2213
+ A("update:value", p.value);
2213
2214
  return;
2214
2215
  }
2215
- E("update:value", g);
2216
+ A("update:value", g);
2216
2217
  }
2217
2218
  ), Se(() => {
2218
2219
  if (c.value && !c.value.fieldMap && (c.value.fieldMap = {
@@ -2223,34 +2224,34 @@ const j = new Za(), Y = (e, t, a) => {
2223
2224
  const g = JSON.parse(JSON.stringify(F.getOptions(a.dataKey)));
2224
2225
  v.value = g;
2225
2226
  } else i && Y(i.autoload, i, a);
2226
- }), re(() => {
2227
- i && ce(i, a);
2227
+ }), oe(() => {
2228
+ i && fe(i, a);
2228
2229
  }), (g, J) => {
2229
- var pe, Ge, je;
2230
- return A(), L("div", null, [
2231
- (Ge = (pe = b(i)) == null ? void 0 : pe.url) != null && Ge.loading ? (A(), L("div", gt, [
2230
+ var X, je, Ge;
2231
+ return E(), L("div", null, [
2232
+ (je = (X = b(i)) == null ? void 0 : X.url) != null && je.loading ? (E(), L("div", gt, [
2232
2233
  B(b(Ne), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2233
2234
  J[1] || (J[1] = ga("span", null, "数据加载中...", -1))
2234
2235
  ])) : q("", !0),
2235
- B(b(Oa), oe({
2236
- class: [(je = b(o)) == null ? void 0 : je.errClass, "w-full"],
2236
+ B(b(Oa), ie({
2237
+ class: [(Ge = b(o)) == null ? void 0 : Ge.errClass, "w-full"],
2237
2238
  value: d.value,
2238
- "onUpdate:value": J[0] || (J[0] = (G) => d.value = G),
2239
+ "onUpdate:value": J[0] || (J[0] = (j) => d.value = j),
2239
2240
  "allow-clear": !0,
2240
2241
  onChange: w,
2241
2242
  placeholder: m.value,
2242
2243
  "label-in-value": !1
2243
2244
  }, b(u)), {
2244
2245
  default: D(() => [
2245
- (A(!0), L(te, null, _e(v.value, (G) => (A(), L(te, {
2246
- key: G.value
2246
+ (E(!0), L(se, null, _e(v.value, (j) => (E(), L(se, {
2247
+ key: j.value
2247
2248
  }, [
2248
- G.visible !== !1 ? (A(), Ie(b(Ra), {
2249
+ j.visible !== !1 ? (E(), Ie(b(Ra), {
2249
2250
  key: 0,
2250
- value: G.value
2251
+ value: j.value
2251
2252
  }, {
2252
2253
  default: D(() => [
2253
- Ae(z(G.label), 1)
2254
+ Ae(z(j.label), 1)
2254
2255
  ]),
2255
2256
  _: 2
2256
2257
  }, 1032, ["value"])) : q("", !0)
@@ -2264,7 +2265,7 @@ const j = new Za(), Y = (e, t, a) => {
2264
2265
  });
2265
2266
  export {
2266
2267
  Ft as $,
2267
- ue as A,
2268
+ ce as A,
2268
2269
  ns as B,
2269
2270
  rs as C,
2270
2271
  os as D,
@@ -2302,19 +2303,19 @@ export {
2302
2303
  Ze as a7,
2303
2304
  Na as a8,
2304
2305
  Me as a9,
2305
- j as aa,
2306
- ae as ab,
2306
+ G as aa,
2307
+ te as ab,
2307
2308
  me as ac,
2308
2309
  U as ad,
2309
2310
  es as ae,
2310
2311
  Ke as af,
2311
- se as ag,
2312
+ ne as ag,
2312
2313
  _t as b,
2313
2314
  Wt as c,
2314
2315
  Ut as d,
2315
2316
  Mt as e,
2316
- Gt as f,
2317
- jt as g,
2317
+ jt as f,
2318
+ Gt as g,
2318
2319
  Vt as h,
2319
2320
  P as i,
2320
2321
  Ht as j,
@@ -2323,14 +2324,14 @@ export {
2323
2324
  Qt as m,
2324
2325
  ss as n,
2325
2326
  Nt as o,
2326
- le as p,
2327
+ ue as p,
2327
2328
  _a as q,
2328
- ne as r,
2329
+ re as r,
2329
2330
  C as s,
2330
- fe as t,
2331
+ pe as t,
2331
2332
  K as u,
2332
2333
  Y as v,
2333
- ce as w,
2334
+ fe as w,
2334
2335
  Ne as x,
2335
2336
  we as y,
2336
2337
  Te as z