@skyfox2000/webui 1.3.5 → 1.3.6

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