@skyfox2000/webui 1.4.6 → 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 (40) hide show
  1. package/lib/TemplateFile.d.ts +1 -0
  2. package/lib/assets/modules/{baseLayout-CUZpKmC0.js → baseLayout-DOrecPPK.js} +6 -6
  3. package/lib/assets/modules/{file-upload-BrTPBL29.js → file-upload-lbkluj3p.js} +1 -1
  4. package/lib/assets/modules/{index-DP1u2P1k.js → index-B1MSCuqH.js} +2 -2
  5. package/lib/assets/modules/{index-BqoqvtEv.js → index-BLNKcgk-.js} +1 -1
  6. package/lib/assets/modules/{index-NDOzpgzV.js → index-DQ-VDAr-.js} +10 -10
  7. package/lib/assets/modules/{menuTabs-BaZAmaXz.js → menuTabs-DOtYQ9Zu.js} +7 -7
  8. package/lib/assets/modules/{toolIcon-DHKszGtC.js → toolIcon-CqJWc5B7.js} +1 -1
  9. package/lib/assets/modules/{uploadList-C5R2XD5x.js → uploadList-3SuA7du0.js} +150 -138
  10. package/lib/assets/modules/{uploadList-DSN9t4r8.js → uploadList-DafDrGgh.js} +143 -133
  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 +8 -2
  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/utils/tree.ts +20 -0
  30. package/.eslintrc.js +0 -23
  31. package/.prettierrc +0 -11
  32. package/.vscode/settings.json +0 -25
  33. package/env.d.ts +0 -11
  34. package/index.html +0 -19
  35. package/plugins/vite-plugin-auto-generate-vue.ts +0 -105
  36. package/postcss.config.ts +0 -6
  37. package/tailwind.config.ts +0 -11
  38. package/tsconfig.json +0 -46
  39. package/vite.config.ts +0 -120
  40. 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
@@ -881,7 +881,7 @@ const re = {
881
881
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
882
882
  const a = Re(e, t);
883
883
  return t.url = a, Te(e, t);
884
- }, 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 = {}) => {
885
885
  const a = t.primaryKey || "Id";
886
886
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
887
887
  return E.error("错误!无保存数据!"), Promise.resolve(null);
@@ -911,9 +911,18 @@ const re = {
911
911
  loadingState: e.isTreeLoading,
912
912
  loadingText: !1,
913
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) || []), []));
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
+ };
915
924
  let ie;
916
- const Mt = (e) => {
925
+ const $t = (e) => {
917
926
  ie = new He({}), ie.messages({
918
927
  required: "${label}不能为空",
919
928
  types: {
@@ -940,7 +949,7 @@ const Mt = (e) => {
940
949
  },
941
950
  ...e
942
951
  });
943
- }, $t = (e) => {
952
+ }, Ft = (e) => {
944
953
  if (!e || F(e))
945
954
  return [];
946
955
  const t = [], a = ie.messages(), s = (o, r, l) => {
@@ -998,7 +1007,7 @@ const Mt = (e) => {
998
1007
  const t = e.formData.value, a = e.formRules.value;
999
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(() => {
1000
1009
  }).catch(({ fields: s }) => s));
1001
- }, Ft = async (e, t, a) => (a || (a = new He({}), a.messages(ie.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(() => {
1002
1011
  }).catch(({ fields: s }) => s)), Je = (e) => {
1003
1012
  e.ruleResults.value = void 0;
1004
1013
  }, X = () => {
@@ -1009,7 +1018,7 @@ const Mt = (e) => {
1009
1018
  ruleKey: a,
1010
1019
  errInfo: s
1011
1020
  };
1012
- }, Ca = (e, t) => {
1021
+ }, Ya = (e, t) => {
1013
1022
  let a = f({
1014
1023
  msg: "",
1015
1024
  errClass: ""
@@ -1021,7 +1030,7 @@ const Mt = (e) => {
1021
1030
  () => s == null ? void 0 : s.value,
1022
1031
  (n) => {
1023
1032
  if (a.value.errClass = "", a.value.msg = "", !F(n)) {
1024
- const o = Ya(
1033
+ const o = Xa(
1025
1034
  {
1026
1035
  label: e.label,
1027
1036
  rule: e.rule
@@ -1034,7 +1043,7 @@ const Mt = (e) => {
1034
1043
  },
1035
1044
  { deep: !0 }
1036
1045
  ), a;
1037
- }, Ya = (e, t, a) => {
1046
+ }, Xa = (e, t, a) => {
1038
1047
  const s = f([]), n = f(""), o = f("");
1039
1048
  if (!e.rule || !t || !a)
1040
1049
  return { msg: n, ruleErrors: s, errClass: o };
@@ -1061,16 +1070,16 @@ const Mt = (e) => {
1061
1070
  });
1062
1071
  }
1063
1072
  }), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
1064
- }, _t = (e, t) => {
1073
+ }, Nt = (e, t) => {
1065
1074
  Me(U.LabelText, e.label || ""), Me(U.RuleKey, e.rule || "");
1066
- const a = Ca(e, t);
1075
+ const a = Ya(e, t);
1067
1076
  return Me(U.ErrInfo, a), a;
1068
- }, Nt = (e) => {
1069
- ra(e);
1070
1077
  }, Dt = (e) => {
1078
+ ra(e);
1079
+ }, Ut = (e) => {
1071
1080
  const t = e.page, a = e.formData.value;
1072
1081
  a[e.primaryKey ?? t.primaryKey] = null, ra(e);
1073
- }, Ut = (e) => {
1082
+ }, Ht = (e) => {
1074
1083
  je(e), e.visible.value = !1;
1075
1084
  }, ra = async (e) => {
1076
1085
  var s;
@@ -1123,14 +1132,14 @@ const Mt = (e) => {
1123
1132
  } else
1124
1133
  E.error((n == null ? void 0 : n.msg) ?? "保存失败!"), e.afterSave && e.afterSave(n);
1125
1134
  });
1126
- }, Ht = async (e) => {
1135
+ }, Vt = async (e) => {
1127
1136
  const t = e.page, a = e.grid;
1128
1137
  e.isFormLoading.value = !0;
1129
1138
  const s = e.formData.value, n = e.primaryKey ?? t.primaryKey;
1130
1139
  return la(a, { [n]: s[n] }, e.detailUrl).then((o) => {
1131
1140
  e.isFormLoading.value = !1, o && oa(e, o);
1132
1141
  });
1133
- }, Vt = (e) => {
1142
+ }, Kt = (e) => {
1134
1143
  const t = e.grid;
1135
1144
  t && (t.rowData.value = void 0), e && (je(e), e.visible && (e.visible.value = !1), setTimeout(() => {
1136
1145
  e.visible.value = !0;
@@ -1141,7 +1150,7 @@ const Mt = (e) => {
1141
1150
  e.formData.value = JSON.parse(JSON.stringify(a));
1142
1151
  }, je = (e) => {
1143
1152
  e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Je(e);
1144
- }, Kt = (e, t) => {
1153
+ }, Qt = (e, t) => {
1145
1154
  const a = _();
1146
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) => {
1147
1156
  if (!t) {
@@ -1152,7 +1161,7 @@ const Mt = (e) => {
1152
1161
  }
1153
1162
  return !0;
1154
1163
  });
1155
- }, Qt = (e, t) => {
1164
+ }, Jt = (e, t) => {
1156
1165
  const a = t == null ? void 0 : t.filter((s) => {
1157
1166
  const n = e.find(
1158
1167
  (o) => o.dataIndex === s.dataIndex || o.key === s.key || o.title === s.title
@@ -1160,7 +1169,7 @@ const Mt = (e) => {
1160
1169
  return n ? { ...s, ...n } : !1;
1161
1170
  });
1162
1171
  return [...a || [], ...e.filter((s) => !(a != null && a.includes(s)))];
1163
- }, 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) => {
1164
1173
  e.gridQuery || (e.gridQuery = {});
1165
1174
  const t = e.remotePage ? "find" : "list";
1166
1175
  return Qe(e, {
@@ -1188,7 +1197,7 @@ const Mt = (e) => {
1188
1197
  rows: []
1189
1198
  };
1190
1199
  });
1191
- }, Za = (e, t, a = {}) => na(e, {
1200
+ }, et = (e, t, a = {}) => na(e, {
1192
1201
  urlKey: "update",
1193
1202
  url: e.updateUrl,
1194
1203
  params: {
@@ -1199,9 +1208,9 @@ const Mt = (e) => {
1199
1208
  ...a
1200
1209
  }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && setTimeout(() => {
1201
1210
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1202
- }, 50), s)), Jt = (e, t) => {
1211
+ }, 50), s)), jt = (e, t) => {
1203
1212
  const a = {};
1204
- 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, {
1205
1214
  loadingText: !1,
1206
1215
  hideErrorToast: !0
1207
1216
  });
@@ -1210,20 +1219,20 @@ const Mt = (e) => {
1210
1219
  url: a,
1211
1220
  params: t,
1212
1221
  loadingState: e.isGridLoading
1213
- }), jt = (e, t) => {
1222
+ }), Gt = (e, t) => {
1214
1223
  const a = t;
1215
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));
1216
- }, Gt = (e, t) => {
1225
+ }, qt = (e, t) => {
1217
1226
  let a = e.editor;
1218
1227
  e.rowData.value = t, a && (oa(a, t), a.visible.value = !0);
1219
- }, qt = (e, t) => Ba(e, t, {
1228
+ }, Wt = (e, t) => Ba(e, t, {
1220
1229
  url: e.deleteUrl,
1221
1230
  primaryKey: e.primaryKey
1222
1231
  }).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && setTimeout(() => {
1223
1232
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1224
1233
  }, 50), a));
1225
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 || {});
1226
- class et {
1235
+ class at {
1227
1236
  constructor() {
1228
1237
  L(this, "listeners", {});
1229
1238
  }
@@ -1269,11 +1278,11 @@ class et {
1269
1278
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1270
1279
  }
1271
1280
  }
1272
- const B = new et(), ee = (e, t, a) => {
1281
+ const B = new at(), ee = (e, t, a) => {
1273
1282
  if (t.inputFactory && (a != null && a.reloadEvent)) {
1274
1283
  const s = t.inputFactory.value;
1275
1284
  s.reloadHandler = (n, o) => {
1276
- at(t.url, t, o);
1285
+ tt(t.url, t, o);
1277
1286
  }, B.on(a.reloadEvent, s.reloadHandler);
1278
1287
  }
1279
1288
  if (a != null && a.data)
@@ -1303,17 +1312,17 @@ const B = new et(), ee = (e, t, a) => {
1303
1312
  label: "全部",
1304
1313
  value: e.allValue ?? void 0
1305
1314
  }), e.options.value = t;
1306
- }, at = (e, t, a) => {
1315
+ }, tt = (e, t, a) => {
1307
1316
  Array.isArray(a) ? Ge(t, a, !0) : ua(e, t, a);
1308
1317
  }, he = (e, t) => {
1309
1318
  var a;
1310
1319
  (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && B.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1311
1320
  }, ua = (e, t, a) => {
1312
1321
  const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = fe(s, n, a);
1313
- tt(e, t, t.fieldMap, o).then((r) => {
1322
+ st(e, t, t.fieldMap, o).then((r) => {
1314
1323
  Ge(t, r, !1);
1315
1324
  });
1316
- }, tt = (e, t, a, s) => {
1325
+ }, st = (e, t, a, s) => {
1317
1326
  const { fieldMap: n, ...o } = e, l = {
1318
1327
  ...{
1319
1328
  url: "",
@@ -1337,7 +1346,7 @@ const B = new et(), ee = (e, t, a) => {
1337
1346
  }).finally(() => {
1338
1347
  t.isOptionLoading.value = !1;
1339
1348
  });
1340
- }, st = (e, t, a) => {
1349
+ }, nt = (e, t, a) => {
1341
1350
  if (e === void 0) return;
1342
1351
  const s = (o) => {
1343
1352
  const r = { ...o };
@@ -1398,7 +1407,7 @@ const B = new et(), ee = (e, t, a) => {
1398
1407
  var o, r;
1399
1408
  const s = (o = e.inputFactory) == null ? void 0 : o.value;
1400
1409
  s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && de(s.editorCtrl), e.selected.value = a;
1401
- const n = st(a, e.options.value);
1410
+ const n = nt(a, e.options.value);
1402
1411
  if (e.selectedOptions.value = n, t.formData && t.outFields && ca(t.formData, t.outFields, n), t.changeEvent) {
1403
1412
  const [l, u] = t.changeEvent;
1404
1413
  if (u)
@@ -1465,7 +1474,7 @@ const B = new et(), ee = (e, t, a) => {
1465
1474
  value: "Id"
1466
1475
  }
1467
1476
  }
1468
- }, Wt = (e) => {
1477
+ }, Bt = (e) => {
1469
1478
  S.PageOption = {
1470
1479
  ...S.PageOption,
1471
1480
  ...e.pageOption
@@ -1482,7 +1491,7 @@ const B = new et(), ee = (e, t, a) => {
1482
1491
  }, Le = (e) => {
1483
1492
  for (let t in e.urls)
1484
1493
  e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
1485
- }, nt = (e, t, a, s) => (Le(e), {
1494
+ }, rt = (e, t, a, s) => (Le(e), {
1486
1495
  editorCtrl: {
1487
1496
  ...S.EditorOption,
1488
1497
  name: "",
@@ -1498,7 +1507,7 @@ const B = new et(), ee = (e, t, a) => {
1498
1507
  isFormSaving: f(!1),
1499
1508
  isFormLoading: f(!1)
1500
1509
  }
1501
- }), rt = (e, t, a) => {
1510
+ }), ot = (e, t, a) => {
1502
1511
  Le(e);
1503
1512
  const s = {
1504
1513
  ...S.GridOption,
@@ -1532,12 +1541,12 @@ const B = new et(), ee = (e, t, a) => {
1532
1541
  (n) => {
1533
1542
  n && (setTimeout(() => {
1534
1543
  s.reload.value = !1;
1535
- }, 1), s.remotePage ? ia(s) : Xa(s));
1544
+ }, 1), s.remotePage ? ia(s) : Za(s));
1536
1545
  }
1537
1546
  ), {
1538
1547
  gridCtrl: s
1539
1548
  };
1540
- }, Bt = (e, t) => {
1549
+ }, zt = (e, t) => {
1541
1550
  Le(e);
1542
1551
  const a = {
1543
1552
  ...S.TreeOption,
@@ -1580,24 +1589,24 @@ const B = new et(), ee = (e, t, a) => {
1580
1589
  ), {
1581
1590
  optionCtrl: a
1582
1591
  };
1583
- }, zt = (e, t, a) => {
1592
+ }, Ct = (e, t, a) => {
1584
1593
  Le(e);
1585
1594
  const s = {
1586
1595
  ...S.PageOption,
1587
1596
  ...e
1588
- }, { 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);
1589
1598
  return s.editor = n, s.grid = o, o.editor = n, o.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = o, {
1590
1599
  pageCtrl: s,
1591
1600
  editorCtrl: n,
1592
1601
  gridCtrl: o
1593
1602
  };
1594
- }, 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) => {
1595
1604
  var n;
1596
1605
  if (!e.iconUrl) return De;
1597
1606
  const t = f(!0), a = f("");
1598
1607
  let s = !0;
1599
- 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(() => {
1600
- 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;
1601
1610
  }), Z({
1602
1611
  props: {
1603
1612
  icon: {
@@ -1665,12 +1674,12 @@ const B = new et(), ee = (e, t, a) => {
1665
1674
  style: {
1666
1675
  fill: "currentColor",
1667
1676
  cursor: this.$props.clickable ? "pointer" : "default",
1668
- transform: pt(this.angle, this.flip)
1677
+ transform: dt(this.angle, this.flip)
1669
1678
  }
1670
1679
  }) : H("div", { class: "w-[14px] h-[14px]" });
1671
1680
  }
1672
1681
  });
1673
- }, it = (e, t) => {
1682
+ }, lt = (e, t) => {
1674
1683
  let a = e.iconUrl;
1675
1684
  if (!a)
1676
1685
  return console.error("图标库地址不能为空"), Promise.resolve();
@@ -1681,10 +1690,10 @@ const B = new et(), ee = (e, t, a) => {
1681
1690
  return new Promise(async (o) => (fa(s.scriptContent), o()));
1682
1691
  t.value = !1;
1683
1692
  const n = new Promise(async (o) => {
1684
- await lt(a, e.monoColor || !1), o(), _e.delete(a);
1693
+ await ut(a, e.monoColor || !1), o(), _e.delete(a);
1685
1694
  });
1686
1695
  return _e.set(a, n), n;
1687
- }, lt = async (e, t) => {
1696
+ }, ut = async (e, t) => {
1688
1697
  try {
1689
1698
  const a = await fetch(e);
1690
1699
  if (!a.ok) {
@@ -1697,7 +1706,7 @@ const B = new et(), ee = (e, t, a) => {
1697
1706
  const o = s.match(n);
1698
1707
  if (o && o.length > 1) {
1699
1708
  let r = o[1];
1700
- ut(e, r, t, s);
1709
+ ct(e, r, t, s);
1701
1710
  }
1702
1711
  fa(s);
1703
1712
  return;
@@ -1707,13 +1716,13 @@ const B = new et(), ee = (e, t, a) => {
1707
1716
  }, fa = (e) => {
1708
1717
  const t = document.createElement("script");
1709
1718
  t.textContent = e, document.head.appendChild(t);
1710
- }, ut = (e, t, a, s) => {
1719
+ }, ct = (e, t, a, s) => {
1711
1720
  let n = `icon_cache:${e}`;
1712
1721
  const o = {
1713
1722
  windowKey: t,
1714
1723
  monoColor: a,
1715
1724
  scriptContent: s,
1716
- expireTime: Date.now() + ot
1725
+ expireTime: Date.now() + it
1717
1726
  // 缓存时间:7天
1718
1727
  };
1719
1728
  localStorage.setItem(n, JSON.stringify(o));
@@ -1728,7 +1737,7 @@ const B = new et(), ee = (e, t, a) => {
1728
1737
  return console.error("解析缓存失败:", n), null;
1729
1738
  }
1730
1739
  return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
1731
- }, Xt = () => {
1740
+ }, Zt = () => {
1732
1741
  const e = Date.now();
1733
1742
  for (const t in localStorage)
1734
1743
  if (t.startsWith("icon_cache:")) {
@@ -1759,12 +1768,12 @@ const B = new et(), ee = (e, t, a) => {
1759
1768
  fill: "currentColor"
1760
1769
  })
1761
1770
  ]
1762
- ), ct = (e, t) => {
1771
+ ), ft = (e, t) => {
1763
1772
  const a = pa(e);
1764
1773
  Object.keys(window).forEach((s) => {
1765
- 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));
1766
1775
  });
1767
- }, ft = (e, t) => {
1776
+ }, pt = (e, t) => {
1768
1777
  const a = window[e], o = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), r = document.querySelectorAll("symbol");
1769
1778
  for (const l of o) {
1770
1779
  const u = l.id, i = Array.from(r).find((c) => c.id === u);
@@ -1772,10 +1781,10 @@ const B = new et(), ee = (e, t, a) => {
1772
1781
  c.hasAttribute("fill") && c.removeAttribute("fill");
1773
1782
  })), G.value[u] || (G.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
1774
1783
  }
1775
- }, pt = (e, t) => {
1784
+ }, dt = (e, t) => {
1776
1785
  let a = "";
1777
1786
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
1778
- }, Zt = (e, t, a, s) => {
1787
+ }, es = (e, t, a, s) => {
1779
1788
  da(e, [], a, s).forEach((o) => t.push(o));
1780
1789
  }, da = (e, t, a, s) => {
1781
1790
  var r, l, u, i, c;
@@ -1795,7 +1804,7 @@ const B = new et(), ee = (e, t, a) => {
1795
1804
  (d.length > 0 || !p.children) && n.push(O);
1796
1805
  }
1797
1806
  return n;
1798
- }, Xe = ga([]), es = () => {
1807
+ }, Xe = ga([]), as = () => {
1799
1808
  Xe.length = 0;
1800
1809
  const e = K();
1801
1810
  let a = Ve().TabActive;
@@ -1808,7 +1817,7 @@ const B = new et(), ee = (e, t, a) => {
1808
1817
  };
1809
1818
  Xe.push(r);
1810
1819
  });
1811
- }, dt = {
1820
+ }, ht = {
1812
1821
  host: {
1813
1822
  api: "SITEHOST_API",
1814
1823
  url: "/openapi/RCSiteHostSrv/get",
@@ -1820,7 +1829,7 @@ const B = new et(), ee = (e, t, a) => {
1820
1829
  // 不显示错误
1821
1830
  hideErrorToast: !0
1822
1831
  }
1823
- }, as = ce("hostInfo", {
1832
+ }, ts = ce("hostInfo", {
1824
1833
  state: () => ({
1825
1834
  hostInfo: {
1826
1835
  Host: "",
@@ -1853,7 +1862,7 @@ const B = new et(), ee = (e, t, a) => {
1853
1862
  return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((s) => {
1854
1863
  $e.SITEHOST_API || ($e.SITEHOST_API = a);
1855
1864
  const n = t || window.location.origin;
1856
- q(dt.host, {
1865
+ q(ht.host, {
1857
1866
  Query: {
1858
1867
  Host: n
1859
1868
  }
@@ -1910,7 +1919,7 @@ const B = new et(), ee = (e, t, a) => {
1910
1919
  // storage: localStorage,
1911
1920
  // pick: ['hostInfo'],
1912
1921
  // },
1913
- }), ts = ce("settingInfo", {
1922
+ }), ss = ce("settingInfo", {
1914
1923
  state: () => ({
1915
1924
  fullscreen: !1,
1916
1925
  menuCollapse: !1,
@@ -1952,7 +1961,7 @@ const B = new et(), ee = (e, t, a) => {
1952
1961
  }
1953
1962
  },
1954
1963
  persist: !1
1955
- }), ss = /* @__PURE__ */ Z({
1964
+ }), ns = /* @__PURE__ */ Z({
1956
1965
  __name: "index",
1957
1966
  props: {
1958
1967
  ...pe,
@@ -2004,7 +2013,7 @@ const B = new et(), ee = (e, t, a) => {
2004
2013
  }, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : z("", !0);
2005
2014
  };
2006
2015
  }
2007
- }), ns = /* @__PURE__ */ Z({
2016
+ }), rs = /* @__PURE__ */ Z({
2008
2017
  inheritAttrs: !1,
2009
2018
  __name: "index",
2010
2019
  props: {
@@ -2095,10 +2104,10 @@ const B = new et(), ee = (e, t, a) => {
2095
2104
  ]);
2096
2105
  };
2097
2106
  }
2098
- }), ht = { class: "min-h-[32px] pt-[5px]" }, mt = {
2107
+ }), mt = { class: "min-h-[32px] pt-[5px]" }, vt = {
2099
2108
  key: 1,
2100
2109
  class: "text-center text-gray-500"
2101
- }, rs = /* @__PURE__ */ Z({
2110
+ }, os = /* @__PURE__ */ Z({
2102
2111
  inheritAttrs: !1,
2103
2112
  __name: "index",
2104
2113
  props: {
@@ -2151,7 +2160,7 @@ const B = new et(), ee = (e, t, a) => {
2151
2160
  }), r && ee(r.autoload, r, a);
2152
2161
  }), le(() => {
2153
2162
  r && he(r, a);
2154
- }), (y, x) => (w(), $("div", ht, [
2163
+ }), (y, x) => (w(), $("div", mt, [
2155
2164
  C(b(Aa), ue({
2156
2165
  onChange: p,
2157
2166
  class: "w-full mb-[-3px]"
@@ -2175,16 +2184,16 @@ const B = new et(), ee = (e, t, a) => {
2175
2184
  ]),
2176
2185
  _: 2
2177
2186
  }, 1032, ["value", "disabled", "class"]);
2178
- }), 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)
2179
2188
  ]),
2180
2189
  _: 1
2181
2190
  }, 16)
2182
2191
  ]));
2183
2192
  }
2184
- }), vt = { class: "min-h-[32px] pt-1" }, gt = {
2193
+ }), gt = { class: "min-h-[32px] pt-1" }, yt = {
2185
2194
  key: 1,
2186
2195
  class: "text-center text-gray-500"
2187
- }, os = /* @__PURE__ */ Z({
2196
+ }, is = /* @__PURE__ */ Z({
2188
2197
  inheritAttrs: !1,
2189
2198
  __name: "index",
2190
2199
  props: {
@@ -2251,7 +2260,7 @@ const B = new et(), ee = (e, t, a) => {
2251
2260
  }), r && ee(r.autoload, r, a);
2252
2261
  }), le(() => {
2253
2262
  r && he(r, a);
2254
- }), (h, I) => (w(), $("div", vt, [
2263
+ }), (h, I) => (w(), $("div", gt, [
2255
2264
  C(b(xa), ue({
2256
2265
  value: u.value,
2257
2266
  "onUpdate:value": I[0] || (I[0] = (R) => u.value = R),
@@ -2282,16 +2291,16 @@ const B = new et(), ee = (e, t, a) => {
2282
2291
  _: 2
2283
2292
  }, 1032, ["checked", "value", "class"])) : z("", !0)
2284
2293
  ], 64);
2285
- }), 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)
2286
2295
  ]),
2287
2296
  _: 1
2288
2297
  }, 16, ["value"])
2289
2298
  ]));
2290
2299
  }
2291
- }), yt = {
2300
+ }), St = {
2292
2301
  key: 0,
2293
2302
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2294
- }, is = /* @__PURE__ */ Z({
2303
+ }, ls = /* @__PURE__ */ Z({
2295
2304
  inheritAttrs: !1,
2296
2305
  __name: "index",
2297
2306
  props: {
@@ -2403,7 +2412,7 @@ const B = new et(), ee = (e, t, a) => {
2403
2412
  }), (m, k) => {
2404
2413
  var D, qe, We;
2405
2414
  return w(), $("div", null, [
2406
- (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, [
2407
2416
  C(b(De), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2408
2417
  k[1] || (k[1] = ya("span", null, "数据加载中...", -1))
2409
2418
  ])) : z("", !0),
@@ -2438,77 +2447,78 @@ const B = new et(), ee = (e, t, a) => {
2438
2447
  }
2439
2448
  });
2440
2449
  export {
2441
- Mt as $,
2442
- de as A,
2443
- rs as B,
2450
+ oa as $,
2451
+ Pe as A,
2452
+ de as B,
2444
2453
  os as C,
2445
2454
  is as D,
2446
- Qe as E,
2447
- _a as F,
2448
- Wt as G,
2449
- nt as H,
2455
+ ls as E,
2456
+ Qe as F,
2457
+ _a as G,
2458
+ Bt as H,
2450
2459
  rt as I,
2451
- Bt as J,
2460
+ ot as J,
2452
2461
  zt as K,
2453
2462
  Oe as L,
2454
- st as M,
2455
- ca as N,
2463
+ Ct as M,
2464
+ nt as N,
2456
2465
  N as O,
2457
2466
  U as P,
2458
- Ct as Q,
2459
- Xt as R,
2460
- ft as S,
2467
+ ca as Q,
2468
+ Yt as R,
2469
+ Zt as S,
2461
2470
  pt as T,
2462
- Zt as U,
2463
- Xe as V,
2464
- es as W,
2465
- ra as X,
2466
- Ht as Y,
2467
- oa as Z,
2468
- ss as _,
2469
- ts as a,
2470
- Ft as a0,
2471
- Je as a1,
2472
- $t as a2,
2473
- Qt as a3,
2474
- Za as a4,
2475
- la as a5,
2476
- jt as a6,
2477
- Lt as a7,
2478
- na as a8,
2479
- Ba as a9,
2480
- Ne as aa,
2481
- B as ab,
2482
- re as ac,
2483
- ne as ad,
2484
- ye as ae,
2485
- K as af,
2486
- as as ag,
2487
- Ve as ah,
2488
- ie as ai,
2489
- Dt as b,
2490
- Yt as c,
2491
- Ut as d,
2492
- _t as e,
2493
- Gt as f,
2494
- qt as g,
2495
- 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,
2496
2506
  F as i,
2497
- Vt as j,
2507
+ Kt as j,
2498
2508
  ia as k,
2499
- Xa as l,
2500
- Jt as m,
2501
- ns as n,
2502
- Nt as o,
2503
- pe as p,
2509
+ Za as l,
2510
+ jt as m,
2511
+ Ca as n,
2512
+ Dt as o,
2513
+ rs as p,
2504
2514
  za as q,
2505
2515
  we as r,
2506
- X as s,
2507
- me as t,
2516
+ pe as s,
2517
+ X as t,
2508
2518
  _ as u,
2509
- ee as v,
2510
- he as w,
2511
- De as x,
2512
- ke as y,
2513
- Pe as z
2519
+ me as v,
2520
+ ee as w,
2521
+ he as x,
2522
+ De as y,
2523
+ ke as z
2514
2524
  };