@okiss/oms 0.0.104 → 0.0.106

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.
package/dist/index.es.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import { Fragment as e, Transition as t, TransitionGroup as n, computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, getCurrentInstance as f, guardReactiveProps as p, h as m, isRef as h, mergeProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeMount as b, onMounted as x, onUnmounted as S, openBlock as C, provide as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDirective as ee, resolveDynamicComponent as te, toDisplayString as k, toRaw as ne, toRefs as re, unref as A, watch as j, withCtx as M, withDirectives as ie, withKeys as ae, withModifiers as oe } from "vue";
2
2
  import { Cache as se, addNewStyle as ce, addNewStyleTag as le, applyDocumentTheme as ue, compactObject as de, createIFrame as fe, dispatchThemeChange as pe, effectDataTrans as me, getQueryParam as he, isArray as ge, isExternal as _e, isObject as N, isString as ve, logGroup as ye, normalizeTheme as be, obj2Param as xe, queryParams as Se, showEleByClassName as Ce, strVarReplace as P, waterMarker as we } from "@okiss/utils";
3
- import { createPinia as Te, defineStore as Ee } from "pinia";
4
- import F from "js-cookie";
5
- import De from "element-plus/es/locale/lang/zh-cn";
6
- import Oe, { cloneDeep as I, get as L, isObject as ke, merge as R, unset as Ae } from "lodash";
7
- import je from "mockjs";
8
- import Me from "axios";
9
- import Ne, { ElCard as Pe, ElCol as Fe, ElMessage as Ie, ElMessageBox as Le, ElRow as Re } from "element-plus";
3
+ import { createRouter as Te, createWebHashHistory as Ee, onBeforeRouteLeave as De, onBeforeRouteUpdate as Oe, useRoute as F, useRouter as ke } from "vue-router";
4
+ import { createPinia as Ae, defineStore as je } from "pinia";
5
+ import I from "js-cookie";
6
+ import Me from "element-plus/es/locale/lang/zh-cn";
7
+ import Ne, { cloneDeep as L, get as R, isObject as Pe, merge as z, unset as Fe } from "lodash";
8
+ import Ie from "mockjs";
9
+ import Le from "axios";
10
+ import Re, { ElCard as ze, ElCol as Be, ElMessage as Ve, ElMessageBox as He, ElRow as Ue } from "element-plus";
10
11
  import "element-plus/theme-chalk/src/index.scss";
11
12
  import "element-plus/theme-chalk/src/dark/css-vars.scss";
12
13
  import "dayjs/locale/zh-cn";
13
- import ze from "nprogress";
14
+ import We from "nprogress";
14
15
  import "nprogress/nprogress.css";
15
- import { JsonView as Be, VBtn as Ve, VChart as He, VForm as z, VIcon as Ue, VTable as B, setUploadHeaderHandle as We } from "@okiss/vbtf";
16
- import { ElAlert as Ge, ElAside as Ke, ElAvatar as qe, ElBacktop as Je, ElBreadcrumb as Ye, ElBreadcrumbItem as Xe, ElButton as V, ElCard as Ze, ElCol as Qe, ElContainer as $e, ElDivider as et, ElDrawer as tt, ElDropdown as nt, ElDropdownItem as rt, ElDropdownMenu as it, ElForm as at, ElFormItem as ot, ElIcon as st, ElImage as ct, ElInput as lt, ElMain as ut, ElMenu as dt, ElMenuItem as ft, ElOption as pt, ElOptionGroup as mt, ElRow as H, ElScrollbar as ht, ElSelect as gt, ElSubMenu as _t, ElTooltip as vt, ElTree as yt } from "element-plus/es";
16
+ import { JsonView as Ge, VBtn as Ke, VChart as qe, VForm as B, VIcon as Je, VTable as V, setUploadHeaderHandle as Ye } from "@okiss/vbtf";
17
+ import { ElAlert as Xe, ElAside as Ze, ElAvatar as Qe, ElBacktop as $e, ElBreadcrumb as et, ElBreadcrumbItem as tt, ElButton as H, ElCard as nt, ElCol as rt, ElContainer as it, ElDivider as at, ElDrawer as ot, ElDropdown as st, ElDropdownItem as ct, ElDropdownMenu as lt, ElForm as ut, ElFormItem as dt, ElIcon as ft, ElImage as pt, ElInput as mt, ElMain as ht, ElMenu as gt, ElMenuItem as _t, ElOption as vt, ElOptionGroup as yt, ElRow as U, ElScrollbar as bt, ElSelect as xt, ElSubMenu as St, ElTooltip as Ct, ElTree as wt } from "element-plus/es";
17
18
  import "element-plus/es/components/base/style/css";
18
19
  import "element-plus/es/components/alert/style/css";
19
- import { createRouter as bt, createWebHashHistory as xt, onBeforeRouteLeave as St, onBeforeRouteUpdate as Ct, useRoute as U, useRouter as wt } from "vue-router";
20
20
  import "element-plus/es/components/row/style/css";
21
21
  import "element-plus/es/components/col/style/css";
22
22
  import "element-plus/es/components/card/style/css";
@@ -76,14 +76,14 @@ String.prototype.format || (String.prototype.format = function() {
76
76
  //#region src/utils/token.ts
77
77
  var Ft = "oms:token";
78
78
  function W() {
79
- return F.get(Ft) || "";
79
+ return I.get(Ft) || "";
80
80
  }
81
81
  function It(e) {
82
82
  let t = G(J), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
83
- return F.set(Ft, e, { expires: n });
83
+ return I.set(Ft, e, { expires: n });
84
84
  }
85
85
  function Lt() {
86
- return F.remove(Ft);
86
+ return I.remove(Ft);
87
87
  }
88
88
  //#endregion
89
89
  //#region src/store/http.ts
@@ -114,7 +114,7 @@ var Vt = {
114
114
  ElementPlus: {
115
115
  size: "default",
116
116
  zIndex: 3e3,
117
- locale: De
117
+ locale: Me
118
118
  },
119
119
  nav: [],
120
120
  whiteRoutes: ["/login"],
@@ -133,10 +133,10 @@ var Vt = {
133
133
  settings: Ht,
134
134
  plugins: [],
135
135
  mock: !1
136
- }, Wt = I(Ht), G = Ee("settings", {
136
+ }, Wt = L(Ht), G = je("settings", {
137
137
  state: () => ({ ...Wt }),
138
138
  actions: { updateSettings(e) {
139
- R(this, e);
139
+ z(this, e);
140
140
  } }
141
141
  }), Gt = {
142
142
  name: "",
@@ -152,7 +152,7 @@ var Vt = {
152
152
  path: "",
153
153
  env: "",
154
154
  expired: !1
155
- }, Kt = (e) => typeof e.name == "string" ? e.name : e.path, K = Ee("user", {
155
+ }, Kt = (e) => typeof e.name == "string" ? e.name : e.path, K = je("user", {
156
156
  state: () => ({ ...Gt }),
157
157
  actions: {
158
158
  updateToken(e) {
@@ -226,7 +226,7 @@ var Vt = {
226
226
  value: t.data?.env
227
227
  });
228
228
  let r = t.data?.website || {};
229
- G().updateSettings(r), !F.get("username") && F.set("username", t.data?.name), e(!0);
229
+ G().updateSettings(r), !I.get("username") && I.set("username", t.data?.name), e(!0);
230
230
  }).catch((e) => t(e));
231
231
  });
232
232
  },
@@ -251,11 +251,11 @@ function Jt() {
251
251
  if (typeof window > "u") return;
252
252
  let e = window.localStorage.getItem(qt);
253
253
  if (e !== null) return e === "1";
254
- let t = F.get(qt);
254
+ let t = I.get(qt);
255
255
  if (t !== void 0) return !!t;
256
256
  }
257
257
  function Yt(e) {
258
- typeof window < "u" && window.localStorage.setItem(qt, e ? "1" : "0"), F.set(qt, e ? "1" : "0");
258
+ typeof window < "u" && window.localStorage.setItem(qt, e ? "1" : "0"), I.set(qt, e ? "1" : "0");
259
259
  }
260
260
  var Xt = {
261
261
  sidebar: {
@@ -267,7 +267,7 @@ var Xt = {
267
267
  currentRouteMeta: {},
268
268
  builderSchema: {},
269
269
  baseURL: ""
270
- }, q = Ee("app", {
270
+ }, q = je("app", {
271
271
  state: () => ({ ...Xt }),
272
272
  actions: {
273
273
  TOGGLE_SIDEBAR() {
@@ -313,7 +313,7 @@ var Xt = {
313
313
  this.SET_BASE_API(e);
314
314
  }
315
315
  }
316
- }), Zt = { currentCellItem: {} }, Qt = Ee("builderSchema", {
316
+ }), Zt = { currentCellItem: {} }, Qt = je("builderSchema", {
317
317
  state: () => ({ ...Zt }),
318
318
  actions: {
319
319
  SET_CURRENT_CELLITEM(e) {
@@ -323,7 +323,7 @@ var Xt = {
323
323
  this.SET_CURRENT_CELLITEM(e);
324
324
  }
325
325
  }
326
- }), J = Te();
326
+ }), J = Ae();
327
327
  function $t(e) {
328
328
  e.use(J);
329
329
  }
@@ -384,12 +384,14 @@ function ln() {
384
384
  var un = /* @__PURE__ */ d({
385
385
  __name: "App",
386
386
  setup(e) {
387
- return ln(), b(() => {
387
+ ln();
388
+ let t = F(), n = r(() => t.matched.map((e) => e.name || e.path).join("|") || t.fullPath);
389
+ return b(() => {
388
390
  let e = document.getElementById("preloader");
389
391
  e !== null && (document.body.removeChild(e), document.getElementById("preloader")?.remove(), ce("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), le(".iconfont {\n font-size: 19px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n font-family: iconfont !important;\n }"));
390
392
  }), window?.OmsOptions?.form?.vsPath && w("vsPath", window?.OmsOptions?.form?.vsPath), (e, t) => {
391
- let n = O("router-view");
392
- return C(), a(n);
393
+ let r = O("router-view");
394
+ return C(), a(r, { key: A(n) });
393
395
  };
394
396
  }
395
397
  }), dn = /* @__PURE__ */ function(e) {
@@ -862,7 +864,7 @@ var un = /* @__PURE__ */ d({
862
864
  }
863
865
  }
864
866
  ],
865
- normalButton: [...Oe.cloneDeep(pn), {
867
+ normalButton: [...Ne.cloneDeep(pn), {
866
868
  type: "jump",
867
869
  target: "/user/form",
868
870
  props: {
@@ -1023,23 +1025,23 @@ function vn(e) {
1023
1025
  function yn() {
1024
1026
  Object.keys(gn).forEach((e) => {
1025
1027
  let t = gn[e], n = vn(t);
1026
- je.mock(n, t.method, function(e) {
1028
+ Ie.mock(n, t.method, function(e) {
1027
1029
  let { url: n, type: r, body: i } = e, a = Se(n), o = i ? JSON.parse(i) : {}, s = t.response({
1028
1030
  query: a,
1029
1031
  data: o
1030
- }), c = je.mock(s);
1032
+ }), c = Ie.mock(s);
1031
1033
  return ye(n, {
1032
1034
  type: r,
1033
1035
  query: a,
1034
1036
  data: o,
1035
1037
  response: c
1036
- }), je.mock(c);
1038
+ }), Ie.mock(c);
1037
1039
  });
1038
1040
  }), console.log("%c ApiMock is stared! ", "background: #606060; color: #fff; padding: 4px 5px; border-radius: 1px;");
1039
1041
  }
1040
1042
  //#endregion
1041
1043
  //#region src/plugins/element-plus.ts
1042
- var bn = Ie, xn = Le, Sn = Ne, Cn = Me.CancelToken, wn = {
1044
+ var bn = Ve, xn = He, Sn = Re, Cn = Le.CancelToken, wn = {
1043
1045
  taskList: {},
1044
1046
  cacheList: /* @__PURE__ */ new Map(),
1045
1047
  uniqueId(e) {
@@ -1097,16 +1099,16 @@ var bn = Ie, xn = Le, Sn = Ne, Cn = Me.CancelToken, wn = {
1097
1099
  };
1098
1100
  //#endregion
1099
1101
  //#region src/router/guard/nprogress.ts
1100
- ze.configure({ showSpinner: !1 });
1102
+ We.configure({ showSpinner: !1 });
1101
1103
  function Dn(e) {
1102
1104
  e.beforeEach((e, t, n) => {
1103
- ze.start(), e.preHash = location.hash.replace("#", ""), n();
1105
+ We.start(), e.preHash = location.hash.replace("#", ""), n();
1104
1106
  }), e.afterEach((e) => {
1105
1107
  let t = K(J);
1106
1108
  e.matched.length > 0 && t.updateState({
1107
1109
  key: "path",
1108
1110
  value: e.matched[e.matched.length - 1].path.replace("(\\d+)", "")
1109
- }), ze.done();
1111
+ }), We.done();
1110
1112
  });
1111
1113
  }
1112
1114
  //#endregion
@@ -1189,7 +1191,7 @@ var jn = class {
1189
1191
  }
1190
1192
  }, Pn = {};
1191
1193
  function Fn() {
1192
- return R(G(J).sso || {}, Pn);
1194
+ return z(G(J).sso || {}, Pn);
1193
1195
  }
1194
1196
  function In() {
1195
1197
  let e = Fn(), t = G(J).activeSsoKey || "";
@@ -1215,7 +1217,7 @@ function Ln(e) {
1215
1217
  return;
1216
1218
  }
1217
1219
  let a = i.flag(), o = K(J);
1218
- if (a && await o.login(ke(a) ? a : { ticket: a })) {
1220
+ if (a && await o.login(Pe(a) ? a : { ticket: a })) {
1219
1221
  n();
1220
1222
  return;
1221
1223
  }
@@ -1264,7 +1266,7 @@ var Vn = /* @__PURE__ */ Z(Rn, [["render", Bn]]), Hn = {
1264
1266
  }
1265
1267
  };
1266
1268
  function Un(e, t, n, r, i, c) {
1267
- let l = Ge;
1269
+ let l = Xe;
1268
1270
  return C(), s("div", null, [i.hasNotice ? (C(), a(l, v(g({ key: 0 }, i.noticeProps)), null, 16)) : o("", !0)]);
1269
1271
  }
1270
1272
  var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @__PURE__ */ Z(/* @__PURE__ */ d({
@@ -1277,17 +1279,29 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1277
1279
  schemaApi: { default: "" }
1278
1280
  },
1279
1281
  setup(t) {
1280
- let n = t, i = q(), c = G(), l = K(), u = U(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), x = r(() => l.env), S = r(() => c);
1281
- return b(() => {
1282
- let e = u.path.split("/").filter((e) => e), t = e.length > 1 ? e.slice(0, e.length - 1).join("/") : e[0], r = "/schema" + u.meta.path, a = { params: u.params };
1283
- (window?.App?.config?.globalProperties?.$http).get(n.schemaApi || r, a).then(({ data: e }) => {
1284
- d.value = !1, N(e) && (e.notice !== void 0 && (f.value = !0, ve(e.notice) ? p.value = { title: e.notice } : N(e.notice) && (p.value = e.notice, m.value = e.notice.noticeApi), delete e.notice), _.value = e.ownerNames || [], y.value = e.serviceOffLine || !1), h.value = n.schemaHandler(e, t), i.SET_PAGE_JSON_SCHEMA({
1282
+ let n = t, i = q(), c = G(), l = K(), u = F(), d = T(!0), f = T(!1), p = T({}), m = T(""), h = T({}), _ = T([]), y = T(!1), b = T(0), x = r(() => l.env), S = r(() => c);
1283
+ function w() {
1284
+ d.value = !0, f.value = !1, p.value = {}, m.value = "", h.value = {}, _.value = [], y.value = !1;
1285
+ }
1286
+ function E() {
1287
+ let e = ++b.value;
1288
+ w();
1289
+ let t = u.path.split("/").filter((e) => e), r = t.length > 1 ? t.slice(0, t.length - 1).join("/") : t[0], a = "/schema" + u.meta.path, o = { params: u.params };
1290
+ (window?.App?.config?.globalProperties?.$http).get(n.schemaApi || a, o).then(({ data: t }) => {
1291
+ e === b.value && (d.value = !1, N(t) && (t.notice !== void 0 && (f.value = !0, ve(t.notice) ? p.value = { title: t.notice } : N(t.notice) && (p.value = t.notice, m.value = t.notice.noticeApi), delete t.notice), _.value = t.ownerNames || [], y.value = t.serviceOffLine || !1), h.value = n.schemaHandler(t, r), i.SET_PAGE_JSON_SCHEMA({
1285
1292
  page: u.path,
1286
1293
  json: h.value
1287
- });
1294
+ }));
1288
1295
  });
1289
- }), (t, n) => {
1290
- let r = Ge;
1296
+ }
1297
+ return j(() => [
1298
+ u.fullPath,
1299
+ u.meta?.path,
1300
+ n.schemaApi
1301
+ ], () => {
1302
+ E();
1303
+ }, { immediate: !0 }), (t, n) => {
1304
+ let r = Xe;
1291
1305
  return C(), s(e, null, [A(_).length > 0 ? (C(), a(r, {
1292
1306
  key: 0,
1293
1307
  title: `该页面功能对应开发: [ ${A(_).join(", ")} ] 有问题可直接企微反馈`,
@@ -1306,7 +1320,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1306
1320
  }, null, 8, ["notice", "data-api"])) : o("", !0), A(d) ? (C(), a(Vn, { key: 1 })) : D(t.$slots, "default", v(g({ key: 2 }, A(h))), void 0, !0)], 64))], 64);
1307
1321
  };
1308
1322
  }
1309
- }), [["__scopeId", "data-v-e330fdc7"]]), qn = {
1323
+ }), [["__scopeId", "data-v-f11e8aa5"]]), qn = {
1310
1324
  __name: "table",
1311
1325
  setup(e) {
1312
1326
  let t = (e, t) => {
@@ -1315,30 +1329,30 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1315
1329
  prop: e.orderBy.field,
1316
1330
  order: e.orderBy.mod === "desc" ? "descending" : "ascending"
1317
1331
  };
1318
- e.tableProps = R(e.tableProps, { defaultSort: t });
1332
+ e.tableProps = z(e.tableProps, { defaultSort: t });
1319
1333
  }
1320
- let n = Object.keys(B.props);
1334
+ let n = Object.keys(V.props);
1321
1335
  return Object.keys(e).forEach((t) => {
1322
1336
  n.indexOf(t) === -1 && delete e[t];
1323
1337
  }), e.listApi === void 0 && (e.listApi = `/${t}/list`), e;
1324
1338
  };
1325
1339
  return (e, n) => (C(), a(Kn, { "schema-handler": t }, {
1326
- default: M((e) => [u(A(B), v(p(e)), null, 16)]),
1340
+ default: M((e) => [u(A(V), v(p(e)), null, 16)]),
1327
1341
  _: 1
1328
1342
  }));
1329
1343
  }
1330
1344
  }, Jn = {
1331
1345
  __name: "form",
1332
1346
  setup(e) {
1333
- let t = U(), n = wt(), r = (e, n) => {
1334
- let r = Object.keys(z.props);
1347
+ let t = F(), n = ke(), r = (e, n) => {
1348
+ let r = Object.keys(B.props);
1335
1349
  return Object.keys(e).forEach((n) => {
1336
1350
  if (r.indexOf(n) === -1) {
1337
1351
  delete e[n];
1338
1352
  return;
1339
1353
  }
1340
1354
  /.*Api$/.test(n) && (e[n] = P(e[n], t.params));
1341
- }), e.saveApi === void 0 && (t.params.id === void 0 ? (delete e.getApi, e.saveApi = `/${n}/create`) : (e.saveApi = `/${n}/update/${t.params.id}`, e.getApi ||= `/${n}/get/${t.params.id}`)), e = R({
1355
+ }), e.saveApi === void 0 && (t.params.id === void 0 ? (delete e.getApi, e.saveApi = `/${n}/create`) : (e.saveApi = `/${n}/update/${t.params.id}`, e.getApi ||= `/${n}/get/${t.params.id}`)), e = z({
1342
1356
  saveApi: n + "/save",
1343
1357
  afterSubmit: "goback",
1344
1358
  afterReset: "goback",
@@ -1350,7 +1364,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1350
1364
  method: "get",
1351
1365
  params: { path: t.fullPath }
1352
1366
  }).then((e) => {
1353
- console.log(e), e.data && (clearInterval(i.value), Le.alert(`${e.data}`, "操作提醒", {
1367
+ console.log(e), e.data && (clearInterval(i.value), He.alert(`${e.data}`, "操作提醒", {
1354
1368
  showClose: !1,
1355
1369
  showCancelButton: !0,
1356
1370
  confirmButtonText: "返回",
@@ -1371,13 +1385,13 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1371
1385
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
1372
1386
  }
1373
1387
  return (e, t) => (C(), a(Kn, { "schema-handler": r }, {
1374
- default: M((e) => [u(A(z), v(p(e)), null, 16)]),
1388
+ default: M((e) => [u(A(B), v(p(e)), null, 16)]),
1375
1389
  _: 1
1376
1390
  }));
1377
1391
  }
1378
1392
  }, Yn = d({
1379
1393
  name: "VTree",
1380
- components: { VForm: z },
1394
+ components: { VForm: B },
1381
1395
  props: {
1382
1396
  treeApi: {
1383
1397
  type: String,
@@ -1426,7 +1440,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1426
1440
  type: 0,
1427
1441
  treeData: [],
1428
1442
  formData: {},
1429
- localTreeProps: R({
1443
+ localTreeProps: z({
1430
1444
  "default-expand-all": !0,
1431
1445
  "expand-on-click-node": !1,
1432
1446
  props: {
@@ -1526,7 +1540,7 @@ var Wn = /* @__PURE__ */ Z(Hn, [["render", Un]]), Gn = ["innerHTML"], Kn = /* @_
1526
1540
  style: { color: "#E6A23C" }
1527
1541
  }, er = { class: "card-header" };
1528
1542
  function tr(e, t, n, r, i, d) {
1529
- let f = V, p = yt, m = Ze, h = Qe, _ = O("v-form"), v = H;
1543
+ let f = H, p = wt, m = nt, h = rt, _ = O("v-form"), v = U;
1530
1544
  return C(), a(v, {
1531
1545
  class: "tree-box",
1532
1546
  gutter: 20
@@ -1632,7 +1646,7 @@ var nr = /* @__PURE__ */ Z(Yn, [["render", tr]]), rr = {
1632
1646
  __name: "container",
1633
1647
  setup(e) {
1634
1648
  let t = T(0);
1635
- return Ct(() => {
1649
+ return Oe(() => {
1636
1650
  t.value++;
1637
1651
  }), (e, t) => {
1638
1652
  let n = O("router-view");
@@ -1656,7 +1670,7 @@ var nr = /* @__PURE__ */ Z(Yn, [["render", tr]]), rr = {
1656
1670
  };
1657
1671
  function or(e, t, n) {
1658
1672
  if (n.length === 0) return {};
1659
- let r = R({}, ar);
1673
+ let r = z({}, ar);
1660
1674
  if (r.title.text = e, ve(t)) {
1661
1675
  let e = [], i = Object.keys(n[0]), a = i[0], o = i.filter((e, t) => t > 0), s = t;
1662
1676
  if (t.indexOf(":") > -1) {
@@ -1677,7 +1691,7 @@ function or(e, t, n) {
1677
1691
  e.push(t[a]);
1678
1692
  }), r.xAxis.data = e;
1679
1693
  }
1680
- return N(t) && (r = R(r, t)), console.log(111, r), r;
1694
+ return N(t) && (r = z(r, t)), console.log(111, r), r;
1681
1695
  }
1682
1696
  //#endregion
1683
1697
  //#region src/components/report/NumberPanel.vue
@@ -1701,10 +1715,10 @@ function dr(t, n, r, i, a, o) {
1701
1715
  //#region src/components/report/part.vue?vue&type=script&lang.ts
1702
1716
  var fr = {
1703
1717
  components: {
1704
- Chart: He,
1718
+ Chart: qe,
1705
1719
  Md: Tt,
1706
- Json: Be,
1707
- Table: B,
1720
+ Json: Ge,
1721
+ Table: V,
1708
1722
  Number: /* @__PURE__ */ Z(sr, [["render", dr], ["__scopeId", "data-v-cc0d8293"]]),
1709
1723
  Html: ""
1710
1724
  },
@@ -1743,7 +1757,7 @@ var fr = {
1743
1757
  //#endregion
1744
1758
  //#region src/components/report/part.vue
1745
1759
  function pr(e, t, n, r, i, o) {
1746
- let s = Ze, c = ee("resize");
1760
+ let s = nt, c = ee("resize");
1747
1761
  return ie((C(), a(s, {
1748
1762
  shadow: "never",
1749
1763
  class: "part"
@@ -1765,7 +1779,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1765
1779
  }
1766
1780
  },
1767
1781
  setup(t) {
1768
- let n = U();
1782
+ let n = F();
1769
1783
  x(() => {});
1770
1784
  let i = t, c = T({});
1771
1785
  b(() => {
@@ -1792,7 +1806,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1792
1806
  });
1793
1807
  };
1794
1808
  return (t, n) => {
1795
- let r = Ze, i = Qe, g = Ge, v = H;
1809
+ let r = nt, i = rt, g = Xe, v = U;
1796
1810
  return C(), a(v, null, {
1797
1811
  default: M(() => [A(p).length > 0 ? (C(), a(i, {
1798
1812
  key: 0,
@@ -1802,7 +1816,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1802
1816
  shadow: "never",
1803
1817
  class: "part-filter"
1804
1818
  }, {
1805
- default: M(() => [u(A(z), {
1819
+ default: M(() => [u(A(B), {
1806
1820
  modelValue: A(c),
1807
1821
  "onUpdate:modelValue": n[0] ||= (e) => h(c) ? c.value = e : null,
1808
1822
  "form-items": A(p),
@@ -1842,7 +1856,7 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1842
1856
  }), gr = {
1843
1857
  __name: "report",
1844
1858
  setup(e) {
1845
- let t = U(), n = r(() => {
1859
+ let t = F(), n = r(() => {
1846
1860
  let e = t.params.id;
1847
1861
  if (!e) {
1848
1862
  let n = t.path.split("/");
@@ -1856,12 +1870,12 @@ var mr = /* @__PURE__ */ Z(fr, [["render", pr], ["__scopeId", "data-v-a5a65cc1"]
1856
1870
  }, 8, ["schema-api"]));
1857
1871
  }
1858
1872
  }, _r = {
1859
- card: Pe,
1860
- form: z,
1861
- table: B,
1873
+ card: ze,
1874
+ form: B,
1875
+ table: V,
1862
1876
  test: (e) => u("div", null, [e.test]),
1863
- row: Re,
1864
- col: Fe
1877
+ row: Ue,
1878
+ col: Be
1865
1879
  }, vr = {
1866
1880
  card: {
1867
1881
  type: "card",
@@ -1921,7 +1935,7 @@ function br(e) {
1921
1935
  });
1922
1936
  return;
1923
1937
  }
1924
- n = R({ props: {} }, vr[n.type] || {}, n);
1938
+ n = z({ props: {} }, vr[n.type] || {}, n);
1925
1939
  let i = xr(n.children);
1926
1940
  i.length && (n.children = br(i)), t.children.push({
1927
1941
  type: "col",
@@ -2102,7 +2116,7 @@ var jr = (e) => {
2102
2116
  class: "no-redirect"
2103
2117
  }, Fr = ["onClick"];
2104
2118
  function Ir(t, r, i, o, c, l) {
2105
- let d = Xe, f = Ye;
2119
+ let d = tt, f = et;
2106
2120
  return C(), a(f, {
2107
2121
  class: "app-breadcrumb",
2108
2122
  separator: "/"
@@ -2143,7 +2157,7 @@ function zr(e, t, n, r, i, a) {
2143
2157
  }
2144
2158
  var Br = /* @__PURE__ */ Z(Rr, [["render", zr]]), Vr = {};
2145
2159
  function Hr(e, t) {
2146
- let n = H, r = ut, i = Ke, o = $e;
2160
+ let n = U, r = ht, i = Ze, o = it;
2147
2161
  return C(), a(o, { style: {
2148
2162
  width: "100%",
2149
2163
  height: "100%"
@@ -2410,7 +2424,7 @@ var Ur = /* @__PURE__ */ Z(Vr, [["render", Hr], ["__scopeId", "data-v-7c3d697b"]
2410
2424
  }
2411
2425
  ],
2412
2426
  trans(e) {
2413
- let t = I(e);
2427
+ let t = L(e);
2414
2428
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
2415
2429
  }
2416
2430
  }, Jr = {
@@ -2836,7 +2850,7 @@ var ci = {
2836
2850
  type: "select",
2837
2851
  field: "type",
2838
2852
  label: "类型",
2839
- options: I(si)
2853
+ options: L(si)
2840
2854
  },
2841
2855
  {
2842
2856
  type: "input",
@@ -2849,9 +2863,9 @@ var ci = {
2849
2863
  }, li = {
2850
2864
  components: {
2851
2865
  DevLayout: Ur,
2852
- VForm: z,
2853
- VButton: Ve,
2854
- JsonView: Be
2866
+ VForm: B,
2867
+ VButton: Ke,
2868
+ JsonView: Ge
2855
2869
  },
2856
2870
  props: { schema: {
2857
2871
  type: Object,
@@ -2880,7 +2894,7 @@ var ci = {
2880
2894
  tableStruct: "",
2881
2895
  activeName: "1",
2882
2896
  currentCtrlType: "input",
2883
- types: I(si)
2897
+ types: L(si)
2884
2898
  };
2885
2899
  },
2886
2900
  computed: { getSaveSchema() {
@@ -2891,14 +2905,14 @@ var ci = {
2891
2905
  deep: !0,
2892
2906
  immediate: !0,
2893
2907
  handler(e) {
2894
- let t = I(e);
2895
- e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = R(this.builderSchema, { options: t }), this.key++);
2908
+ let t = L(e);
2909
+ e.showSubmitButton === !1 && (t.submitButton = !1), e.cancelSubmitButton === !1 && (t.cancelButton = !1), delete t.showSubmitButton, delete t.showCancelButton, Object.keys(t).length > 0 && (this.builderSchema = z(this.builderSchema, { options: t }), this.key++);
2896
2910
  }
2897
2911
  },
2898
2912
  ctrlOptions: {
2899
2913
  deep: !0,
2900
2914
  handler(e) {
2901
- let t = L(this.builderSchema, this.activeIndex);
2915
+ let t = R(this.builderSchema, this.activeIndex);
2902
2916
  if (!t) return;
2903
2917
  let n = t ? t.type : "", r = this.ctrlMap[n], i = r.trans ? r.trans(e) : e;
2904
2918
  if (i && Object.keys(i).length > 0) {
@@ -2912,10 +2926,10 @@ var ci = {
2912
2926
  },
2913
2927
  currentCtrlType: { handler(e) {
2914
2928
  let t = this.ctrlMap[e];
2915
- this.ctrlSchema = I({
2916
- options: I(oi),
2917
- formItems: I(t.builder)
2918
- }), this.ctrlOptions = I(L(this.builderSchema, this.activeIndex)), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2929
+ this.ctrlSchema = L({
2930
+ options: L(oi),
2931
+ formItems: L(t.builder)
2932
+ }), this.ctrlOptions = L(R(this.builderSchema, this.activeIndex)), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
2919
2933
  } }
2920
2934
  },
2921
2935
  beforeCreate() {
@@ -2934,18 +2948,18 @@ var ci = {
2934
2948
  let t = "formItems";
2935
2949
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
2936
2950
  let n = this.ctrlMap[e];
2937
- this.activeCtrl = n, this.builderSchema[t].push(I(n.default)), this.ctrlSchema = I({
2938
- options: I(oi),
2939
- formItems: I(n.builder)
2951
+ this.activeCtrl = n, this.builderSchema[t].push(L(n.default)), this.ctrlSchema = L({
2952
+ options: L(oi),
2953
+ formItems: L(n.builder)
2940
2954
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2941
2955
  },
2942
2956
  removeOne() {
2943
- Ae(this.builderSchema, this.activeIndex), this.builderSchema = I(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2957
+ Fe(this.builderSchema, this.activeIndex), this.builderSchema = L(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2944
2958
  },
2945
2959
  clicklabel() {
2946
2960
  let e = this.activeIndex;
2947
2961
  if (e.match(this.activeIndexReg)) {
2948
- let t = I(L(this.builderSchema, e)), n = t.type, r = this.ctrlMap[n];
2962
+ let t = L(R(this.builderSchema, e)), n = t.type, r = this.ctrlMap[n];
2949
2963
  if (!r) {
2950
2964
  this.$message({
2951
2965
  type: "warning",
@@ -2953,9 +2967,9 @@ var ci = {
2953
2967
  });
2954
2968
  return;
2955
2969
  }
2956
- this.currentCtrlType = n, this.ctrlOptions = t, this.ctrlSchema = I({
2957
- options: I(oi),
2958
- formItems: I(r.builder)
2970
+ this.currentCtrlType = n, this.ctrlOptions = t, this.ctrlSchema = L({
2971
+ options: L(oi),
2972
+ formItems: L(r.builder)
2959
2973
  }), this.ctrlKey++;
2960
2974
  }
2961
2975
  },
@@ -2974,7 +2988,7 @@ var ci = {
2974
2988
  }
2975
2989
  };
2976
2990
  function ui(t, n, r, i, c, d) {
2977
- let f = O("v-form"), p = et, m = V, h = O("JsonView"), _ = O("VButton"), v = pt, y = gt, b = ot, x = at, S = O("dev-layout");
2991
+ let f = O("v-form"), p = at, m = H, h = O("JsonView"), _ = O("VButton"), v = vt, y = xt, b = dt, x = ut, S = O("dev-layout");
2978
2992
  return C(), a(S, null, {
2979
2993
  main: M(() => [
2980
2994
  c.builderSchema.formItems ? (C(), a(f, g({
@@ -3163,7 +3177,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3163
3177
  }
3164
3178
  ],
3165
3179
  trans(e) {
3166
- let t = I(e);
3180
+ let t = L(e);
3167
3181
  return e.optionType === 0 ? t.props && t.props.selectApi !== void 0 && delete t.props.selectApi : e.optionType === 1 && t.options && delete t.options, delete t.optionType, t;
3168
3182
  }
3169
3183
  }, mi = {
@@ -3733,11 +3747,11 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3733
3747
  }
3734
3748
  }, yi = {
3735
3749
  components: {
3736
- JsonView: Be,
3750
+ JsonView: Ge,
3737
3751
  DevLayout: Ur,
3738
- VTable: B,
3739
- VForm: z,
3740
- VButton: Ve
3752
+ VTable: V,
3753
+ VForm: B,
3754
+ VButton: Ke
3741
3755
  },
3742
3756
  props: { schema: {
3743
3757
  type: Object,
@@ -3799,7 +3813,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3799
3813
  deep: !0,
3800
3814
  immediate: !0,
3801
3815
  handler(e) {
3802
- this.builderSchema = R(this.builderSchema, e), this.key++, this.updateBuilderSchema();
3816
+ this.builderSchema = z(this.builderSchema, e), this.key++, this.updateBuilderSchema();
3803
3817
  }
3804
3818
  },
3805
3819
  ctrlOptions: {
@@ -3824,13 +3838,13 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3824
3838
  },
3825
3839
  currentCtrlType: { handler(e) {
3826
3840
  let t = this.ctrlMap[this.activeBrick][e];
3827
- this.ctrlSchema = I({
3828
- options: I(gi),
3829
- formItems: I(t.builder)
3841
+ this.ctrlSchema = L({
3842
+ options: L(gi),
3843
+ formItems: L(t.builder)
3830
3844
  });
3831
- let n = L(this.builderSchema, this.activeIndex);
3845
+ let n = R(this.builderSchema, this.activeIndex);
3832
3846
  n.type = e;
3833
- let r = I(n);
3847
+ let r = L(n);
3834
3848
  this.ctrlOptions = r, r.text && (this.ctrlOptions.text = r.text, this.ctrlOptions.props = r.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
3835
3849
  } }
3836
3850
  },
@@ -3874,18 +3888,18 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3874
3888
  });
3875
3889
  return;
3876
3890
  }
3877
- this.activeCtrl = i[e], this.activeBrick = r, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(I(i[e].default)), this.ctrlSchema = I({
3878
- options: I(gi),
3879
- formItems: I(i[e].builder)
3891
+ this.activeCtrl = i[e], this.activeBrick = r, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(L(i[e].default)), this.ctrlSchema = L({
3892
+ options: L(gi),
3893
+ formItems: L(i[e].builder)
3880
3894
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
3881
3895
  },
3882
3896
  removeOne() {
3883
- Ae(this.builderSchema, this.activeIndex), this.builderSchema = I(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3897
+ Fe(this.builderSchema, this.activeIndex), this.builderSchema = L(de(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
3884
3898
  },
3885
3899
  clicklabel() {
3886
3900
  let e = this.activeIndex, t = e.match(this.activeIndexReg);
3887
3901
  if (t) {
3888
- let n = I(L(this.builderSchema, e));
3902
+ let n = L(R(this.builderSchema, e));
3889
3903
  this.activeBrick = t[1], [
3890
3904
  "normalButton",
3891
3905
  "batchButton",
@@ -3901,9 +3915,9 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3901
3915
  });
3902
3916
  return;
3903
3917
  }
3904
- this.ctrlOptions = n, this.currentCtrlType = r, this.ctrlSchema = I({
3905
- options: I(gi),
3906
- formItems: I(i.builder)
3918
+ this.ctrlOptions = n, this.currentCtrlType = r, this.ctrlSchema = L({
3919
+ options: L(gi),
3920
+ formItems: L(i.builder)
3907
3921
  }), this.ctrlKey++;
3908
3922
  }
3909
3923
  },
@@ -3931,7 +3945,7 @@ var di = /* @__PURE__ */ Z(li, [["render", ui], ["__scopeId", "data-v-875f0171"]
3931
3945
  //#endregion
3932
3946
  //#region src/scaffold/devtool/tableBuilder/index.vue
3933
3947
  function bi(t, n, r, i, c, d) {
3934
- let f = Qe, p = V, m = H, h = O("v-table"), _ = et, v = V, y = O("JsonView"), b = O("VButton"), x = pt, S = gt, w = ot, T = at, D = O("v-form"), ee = O("dev-layout");
3948
+ let f = rt, p = H, m = U, h = O("v-table"), _ = at, v = H, y = O("JsonView"), b = O("VButton"), x = vt, S = xt, w = dt, T = ut, D = O("v-form"), ee = O("dev-layout");
3935
3949
  return C(), a(ee, null, {
3936
3950
  "left-aside": M(() => [u(m, { style: { width: "200px" } }, {
3937
3951
  default: M(() => [
@@ -4128,9 +4142,9 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4128
4142
  setup(t) {
4129
4143
  let n = T(!1);
4130
4144
  T(1);
4131
- let i = U(), c = q(), l = r(() => c.pages[i.path]);
4145
+ let i = F(), c = q(), l = r(() => c.pages[i.path]);
4132
4146
  return (t, r) => {
4133
- let i = O("VIcon"), c = tt;
4147
+ let i = O("VIcon"), c = ot;
4134
4148
  return C(), s(e, null, [u(i, {
4135
4149
  name: "ra-set",
4136
4150
  onClick: r[0] ||= (e) => n.value = !A(n)
@@ -4236,7 +4250,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4236
4250
  re.value || (re.value = !0, ne.value = "");
4237
4251
  }
4238
4252
  return (e, t) => {
4239
- let n = Qe, r = st, i = vt, f = qe, h = rt, b = it, x = nt, S = tt, T = H;
4253
+ let n = rt, r = ft, i = Ct, f = Qe, h = ct, b = lt, x = st, S = ot, T = U;
4240
4254
  return C(), a(T, {
4241
4255
  ref_key: "header",
4242
4256
  ref: ee,
@@ -4258,7 +4272,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4258
4272
  u(n, { span: 8 }, {
4259
4273
  default: M(() => [c("div", wi, [
4260
4274
  w.value ? (C(), s("div", Ti, [u(Ci)])) : o("", !0),
4261
- c("div", Ei, [u(A(Ve), { buttons: v.value }, null, 8, ["buttons"])]),
4275
+ c("div", Ei, [u(A(Ke), { buttons: v.value }, null, 8, ["buttons"])]),
4262
4276
  u(i, {
4263
4277
  placement: "bottom",
4264
4278
  content: A(E) ? "切换为明亮模式" : "切换为暗黑模式"
@@ -4341,7 +4355,7 @@ var xi = /* @__PURE__ */ Z(yi, [["render", bi], ["__scopeId", "data-v-cd18f87f"]
4341
4355
  l.value = !0;
4342
4356
  }
4343
4357
  return (n, r) => {
4344
- let l = ct, m = O("router-link");
4358
+ let l = pt, m = O("router-link");
4345
4359
  return C(), s("div", { class: _(["sidebar-logo-container", { collapse: e.collapse }]) }, [u(t, { name: "sidebarLogoFade" }, {
4346
4360
  default: M(() => [e.collapse ? (C(), a(m, {
4347
4361
  key: "collapse",
@@ -4492,7 +4506,7 @@ var Ri = /* @__PURE__ */ Z(Ii, [["render", Li]]), zi = {
4492
4506
  class: "menu-wrapper"
4493
4507
  };
4494
4508
  function Ui(t, n, r, i, c, l) {
4495
- let d = O("menu-content"), f = ft, p = O("app-link"), m = vt, h = O("sidebar-item", !0), g = _t;
4509
+ let d = O("menu-content"), f = _t, p = O("app-link"), m = Ct, h = O("sidebar-item", !0), g = St;
4496
4510
  return r.item.hidden === !1 ? o("", !0) : (C(), s("div", Hi, [r.item.meta && r.item.meta.menuType === 2 ? (C(), a(m, {
4497
4511
  key: 0,
4498
4512
  disabled: !r.isCollapse,
@@ -4561,10 +4575,10 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4561
4575
  function i(e) {
4562
4576
  return e.filter((e) => e.meta?.menuType === 0 ? !1 : (e.children && (e.children = i(e.children), e.children.length === 0 && delete e.children), !0));
4563
4577
  }
4564
- let c = T(""), l = r(() => n.remoteRouter), u = wt(), d = r(() => {
4578
+ let c = T(""), l = r(() => n.remoteRouter), u = ke(), d = r(() => {
4565
4579
  let e = [];
4566
4580
  return l.value.forEach((t) => {
4567
- e = e.concat(I(t.routes));
4581
+ e = e.concat(L(t.routes));
4568
4582
  }), i(e);
4569
4583
  });
4570
4584
  function f(e) {
@@ -4581,7 +4595,7 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4581
4595
  u.push(e), c.value = "";
4582
4596
  }
4583
4597
  return (t, n) => {
4584
- let r = pt, i = mt, l = gt;
4598
+ let r = vt, i = yt, l = xt;
4585
4599
  return C(), a(l, {
4586
4600
  modelValue: A(c),
4587
4601
  "onUpdate:modelValue": n[0] ||= (e) => h(c) ? c.value = e : null,
@@ -4612,11 +4626,11 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4612
4626
  }), [["__scopeId", "data-v-02f2e7b9"]]), Ki = /* @__PURE__ */ Z(/* @__PURE__ */ d({
4613
4627
  __name: "index",
4614
4628
  setup(t) {
4615
- let n = q(), i = K(), c = G(), l = r(() => n.sidebar), d = r(() => i.remoteRouter), f = r(() => i.customRouter), p = wt(), m = U(), h = r(() => {
4629
+ let n = q(), i = K(), c = G(), l = r(() => n.sidebar), d = r(() => i.remoteRouter), f = r(() => i.customRouter), p = ke(), m = F(), h = r(() => {
4616
4630
  let e = [];
4617
4631
  return p.options.routes.concat(f.value || []).forEach((t) => {
4618
4632
  t.path === "/" ? e = e.concat(t.children || []) : e.push(t);
4619
- }), I([{
4633
+ }), L([{
4620
4634
  label: "",
4621
4635
  routes: e
4622
4636
  }, ...d.value]);
@@ -4636,7 +4650,7 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4636
4650
  return e.filter((e) => [X.dir, X.menu].indexOf(e.meta.menuType) !== -1).map((e) => (e = Object.assign({}, e), e.children &&= S(e.children), e));
4637
4651
  }
4638
4652
  return (t, n) => {
4639
- let r = dt, i = ht;
4653
+ let r = gt, i = bt;
4640
4654
  return C(), s("div", { class: _({ "has-logo": A(v) }) }, [A(v) ? (C(), a(Fi, {
4641
4655
  key: 0,
4642
4656
  collapse: A(y)
@@ -4667,18 +4681,18 @@ var Wi = /* @__PURE__ */ Z(Vi, [["render", Ui]]), Gi = /* @__PURE__ */ Z(/* @__P
4667
4681
  }), [["__scopeId", "data-v-ed591c64"]]), qi = { class: "app-main" }, Ji = /* @__PURE__ */ Z({
4668
4682
  __name: "AppMain",
4669
4683
  setup(e) {
4670
- let t = U(), n = [], r = T(0);
4671
- return St(() => {
4684
+ let t = F(), n = [], r = T(0);
4685
+ return De(() => {
4672
4686
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), r.value++;
4673
4687
  }), (e, t) => {
4674
- let n = O("router-view"), i = Je;
4688
+ let n = O("router-view"), i = $e;
4675
4689
  return C(), s("section", qi, [(C(), a(n, { key: e.$route.fullPath + A(r) })), u(i, { bottom: 50 })]);
4676
4690
  };
4677
4691
  }
4678
4692
  }, [["__scopeId", "data-v-ca0f0d98"]]), Yi = { class: "main-container" }, Xi = 992, Zi = /* @__PURE__ */ Z({
4679
4693
  __name: "index",
4680
4694
  setup(e) {
4681
- let { body: t } = document, n = q(), i = G(), a = U(), l = r(() => n.sidebar), d = r(() => n.device), f = r(() => i.fixedHeader), p = r(() => ({
4695
+ let { body: t } = document, n = q(), i = G(), a = F(), l = r(() => n.sidebar), d = r(() => n.device), f = r(() => i.fixedHeader), p = r(() => ({
4682
4696
  hideSidebar: !l.value.opened,
4683
4697
  openSidebar: l.value.opened,
4684
4698
  withoutAnimation: l.value.withoutAnimation,
@@ -4838,7 +4852,7 @@ var ma = /* @__PURE__ */ d({
4838
4852
  }, Ea = { class: "login-footer" }, Da = /* @__PURE__ */ d({
4839
4853
  __name: "login",
4840
4854
  setup(e) {
4841
- let n = wt(), i = U(), d = G(), f = q(), p = K(), m = r(() => d.loginTips), h = r(() => d.captcha), g = r(() => f.baseURL), _ = T(0), v = T(!1), y = T({
4855
+ let n = ke(), i = F(), d = G(), f = q(), p = K(), m = r(() => d.loginTips), h = r(() => d.captcha), g = r(() => f.baseURL), _ = T(0), v = T(!1), y = T({
4842
4856
  username: "",
4843
4857
  password: "",
4844
4858
  captcha: "",
@@ -4851,7 +4865,7 @@ var ma = /* @__PURE__ */ d({
4851
4865
  }, S = r(() => y.value.username.length > 0 && y.value.password.length >= 4 && (h.value ? y.value.captcha.length === 4 : !0)), w = () => {
4852
4866
  if (!v.value) {
4853
4867
  if (!S.value) {
4854
- Ie.error("请填写完整的登录信息");
4868
+ Ve.error("请填写完整的登录信息");
4855
4869
  return;
4856
4870
  }
4857
4871
  h.value && (y.value.sing = jt.MD5(`${y.value.username}${y.value.password}${y.value.captcha}`).toString()), v.value = !0, p.login(y.value).then((e) => {
@@ -4864,7 +4878,7 @@ var ma = /* @__PURE__ */ d({
4864
4878
  }
4865
4879
  };
4866
4880
  return (e, n) => {
4867
- let r = lt, i = ot, f = st, p = V, T = at, E = Ze;
4881
+ let r = mt, i = dt, f = ft, p = H, T = ut, E = nt;
4868
4882
  return C(), s("div", ha, [n[7] ||= c("div", { class: "login-background" }, [
4869
4883
  c("div", { class: "shape shape-1" }),
4870
4884
  c("div", { class: "shape shape-2" }),
@@ -5061,8 +5075,8 @@ var ja = [
5061
5075
  hidden: !0
5062
5076
  }
5063
5077
  ];
5064
- function Ma(e = xt()) {
5065
- return bt({
5078
+ function Ma(e = Ee()) {
5079
+ return Te({
5066
5080
  history: e,
5067
5081
  routes: ja
5068
5082
  });
@@ -5141,14 +5155,14 @@ var Wa = [{
5141
5155
  })), e.data;
5142
5156
  },
5143
5157
  onRejected(e) {
5144
- return Me.isCancel(e) ? Promise.reject("") : (Ua(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5158
+ return Le.isCancel(e) ? Promise.reject("") : (Ua(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
5145
5159
  }
5146
5160
  }
5147
5161
  }];
5148
5162
  //#endregion
5149
5163
  //#region src/utils/request/index.ts
5150
5164
  function Ga(e = {}) {
5151
- let t = R(Ut.axios || {}, e || {}), n = Me.create({ ...t });
5165
+ let t = z(Ut.axios || {}, e || {}), n = Le.create({ ...t });
5152
5166
  return Wa.forEach((e) => {
5153
5167
  n.interceptors.request.use(e.request.onFulfilled, e.request.onRejected), n.interceptors.response.use(e.response.onFulfilled, e.response.onRejected);
5154
5168
  }), n;
@@ -5215,34 +5229,48 @@ var Za = { mounted: (e, t) => {
5215
5229
  outClick: () => qa,
5216
5230
  resize: () => Ya,
5217
5231
  rightClick: () => Ja
5218
- }), $a, eo = /* @__PURE__ */ new WeakMap(), to = (e) => typeof e.name == "string" ? e.name : e.path;
5232
+ }), $a, eo = /* @__PURE__ */ new WeakMap(), to = (e) => {
5233
+ if (e.path === "/" && !e.name && e.children && e.children.length === 1) {
5234
+ let t = e.children[0];
5235
+ return typeof t.name == "string" ? `layout:${t.name}` : `layout:${t.path}`;
5236
+ }
5237
+ return typeof e.name == "string" ? e.name : e.path;
5238
+ };
5219
5239
  function no(e) {
5240
+ let t = { ...e };
5241
+ return t.path === "/" && Array.isArray(t.children) ? t : {
5242
+ path: "/",
5243
+ component: Zi,
5244
+ children: [t]
5245
+ };
5246
+ }
5247
+ function ro(e) {
5220
5248
  let t = eo.get(e);
5221
5249
  return t || (t = {
5222
5250
  pendingRoutes: [],
5223
5251
  registeredRouteKeys: /* @__PURE__ */ new Set()
5224
5252
  }, eo.set(e, t)), t;
5225
5253
  }
5226
- function ro(e) {
5227
- return e ? Ga(R(Ut.axios, e)) : $a;
5228
- }
5229
5254
  function io(e) {
5230
- let t = R(Ut, e), n = Ra(t.router), r = i(un), a = po(t, n), o = t.plugins || [];
5255
+ return e ? Ga(z(Ut.axios, e)) : $a;
5256
+ }
5257
+ function ao(e) {
5258
+ let t = z(Ut, e), n = Ra(t.router), r = i(un), a = mo(t, n), o = t.plugins || [];
5231
5259
  o.unshift(a), o.forEach((e) => {
5232
- fo(r, e, n);
5260
+ po(r, e, n);
5233
5261
  }), t?.mock && yn(), $a = Ga(t.axios), $t(r);
5234
5262
  let s = q(J), c = G(J), l = K(J);
5235
- zt($a), c.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), r.config.globalProperties.$http = $a, r.config.globalProperties.$router = n, za(n), window.App = r, window.OmsOptions = t, We(() => ({ "X-Token": W() })), j(() => l.token, () => {
5236
- oo(n);
5263
+ zt($a), c.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), r.config.globalProperties.$http = $a, r.config.globalProperties.$router = n, za(n), window.App = r, window.OmsOptions = t, Ye(() => ({ "X-Token": W() })), j(() => l.token, () => {
5264
+ so(n);
5237
5265
  }, { immediate: !0 }), n.isReady().then(() => r.mount("#app"));
5238
5266
  }
5239
- function ao(e, t = {}) {
5267
+ function oo(e, t = {}) {
5240
5268
  Object.keys(t).forEach((n) => {
5241
5269
  e.component(n, t[n]);
5242
5270
  });
5243
5271
  }
5244
- function oo(e) {
5245
- let t = no(e), n = sa(W()), r = ra(t.pendingRoutes, n), i = K(J), a = new Set(i.customRouter.map((e) => to(e))), o = r.filter((e) => {
5272
+ function so(e) {
5273
+ let t = ro(e), n = sa(W()), r = ra(t.pendingRoutes, n), i = K(J), a = new Set(i.customRouter.map((e) => to(e))), o = r.filter((e) => {
5246
5274
  let n = to(e);
5247
5275
  return t.registeredRouteKeys.has(n) || a.has(n) ? !1 : (t.registeredRouteKeys.add(n), !0);
5248
5276
  });
@@ -5250,20 +5278,20 @@ function oo(e) {
5250
5278
  e.addRoute(t);
5251
5279
  }), o.length && i.setCustomRoutes(o);
5252
5280
  }
5253
- function so(e, t = []) {
5254
- no(e).pendingRoutes.push(...t), oo(e);
5281
+ function co(e, t = []) {
5282
+ ro(e).pendingRoutes.push(...t.map(no)), so(e);
5255
5283
  }
5256
- function co(e, t) {
5284
+ function lo(e, t) {
5257
5285
  t.forEach((t) => {
5258
5286
  N(t) && (t = [t]), e.use(...t);
5259
5287
  });
5260
5288
  }
5261
- function lo(e, t = {}) {
5289
+ function uo(e, t = {}) {
5262
5290
  Object.keys(t).forEach((n) => {
5263
5291
  e.directive(n, t[n]);
5264
5292
  });
5265
5293
  }
5266
- function uo(e = {}) {
5294
+ function fo(e = {}) {
5267
5295
  let t = [
5268
5296
  "app",
5269
5297
  "settings",
@@ -5277,20 +5305,20 @@ function uo(e = {}) {
5277
5305
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", e);
5278
5306
  });
5279
5307
  }
5280
- function fo(e, t, n = Ra()) {
5281
- ao(e, t.components || {}), so(n, t.routes || []), co(e, t.use || []), lo(e, t.directives || {}), uo(t.storeModules || {}), _n(t.mockApis || []);
5308
+ function po(e, t, n = Ra()) {
5309
+ oo(e, t.components || {}), co(n, t.routes || []), lo(e, t.use || []), uo(e, t.directives || {}), fo(t.storeModules || {}), _n(t.mockApis || []);
5282
5310
  }
5283
- function po(e, t = Ra(e.router)) {
5311
+ function mo(e, t = Ra(e.router)) {
5284
5312
  return {
5285
- components: { VIcon: Ue },
5313
+ components: { VIcon: Je },
5286
5314
  directives: Qa,
5287
5315
  use: [t, [Sn, {
5288
- locale: De,
5316
+ locale: Me,
5289
5317
  ...e.settings?.ElementPlus
5290
5318
  }]]
5291
5319
  };
5292
5320
  }
5293
5321
  //#endregion
5294
- export { jn as BaseSso, ir as Container, Nn as DingTalk, Mn as Github, Zi as Layout, X as MenuType, bn as Message, xn as MessageBox, Y as PageType, Fn as allSso, Xt as appState, Zt as builderSchemaState, io as createAdmin, Ma as createOmsRouter, Ia as ensureOmsRouterGuards, $ as eventBus, Ba as getActiveOmsRouter, pa as getCmp, La as getDefaultOmsRouter, Bt as getHttp, $a as http, Ga as instance, J as pinia, Dr as regViews, Ra as resolveOmsRouter, za as setActiveOmsRouter, fa as setCmp, zt as setHttp, Wt as settings, $t as setupStore, Mr as transRemoteModules, q as useAppStore, Qt as useBuilderSchemaStore, ro as useHttp, G as useSettingsStore, K as useUserStore, Gt as userState };
5322
+ export { jn as BaseSso, ir as Container, Nn as DingTalk, Mn as Github, Zi as Layout, X as MenuType, bn as Message, xn as MessageBox, Y as PageType, Fn as allSso, Xt as appState, Zt as builderSchemaState, ao as createAdmin, Ma as createOmsRouter, Ia as ensureOmsRouterGuards, $ as eventBus, Ba as getActiveOmsRouter, pa as getCmp, La as getDefaultOmsRouter, Bt as getHttp, $a as http, Ga as instance, J as pinia, Dr as regViews, Ra as resolveOmsRouter, za as setActiveOmsRouter, fa as setCmp, zt as setHttp, Wt as settings, $t as setupStore, Mr as transRemoteModules, q as useAppStore, Qt as useBuilderSchemaStore, io as useHttp, G as useSettingsStore, K as useUserStore, Gt as userState };
5295
5323
 
5296
5324
  //# sourceMappingURL=index.es.js.map