@okiss/oms 0.0.80 → 0.0.82

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,17 +1,17 @@
1
- import { ref as R, watch as en, computed as w, defineComponent as K, onBeforeMount as ut, provide as tn, resolveComponent as A, createBlock as h, openBlock as a, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as nn, createElementBlock as y, Fragment as O, renderList as q, toDisplayString as N, normalizeClass as Z, renderSlot as re, createCommentVNode as B, mergeProps as Q, toRefs as on, unref as p, isRef as dt, onMounted as Ue, normalizeStyle as ln, createElementVNode as v, withKeys as Ze, withModifiers as Ye, resolveDynamicComponent as pt, Transition as sn, normalizeProps as le, guardReactiveProps as ke, withDirectives as Ce, vModelText as Te, onUnmounted as an, getCurrentInstance as rn, h as cn, toRaw as un, createApp as dn } from "vue";
2
- import { normalizeTheme as ce, applyDocumentTheme as pn, dispatchThemeChange as mn, addNewStyle as fn, addNewStyleTag as hn, queryParams as bn, logGroup as yn, compactObject as mt, showEleByClassName as ft, waterMarker as _n, Cache as fe, isExternal as et, getQueryParam as ht, createIFrame as vn, strVarReplace as ne, obj2Param as gn, isObject as _e, isString as bt, effectDataTrans as kn, isArray as wn } from "@okiss/utils";
3
- import { defineStore as we, createPinia as Sn } from "pinia";
1
+ import { ref as O, watch as en, computed as w, defineComponent as K, onBeforeMount as pt, provide as tn, resolveComponent as A, createBlock as f, openBlock as a, createVNode as u, createTextVNode as C, withCtx as r, TransitionGroup as nn, createElementBlock as y, Fragment as $, renderList as q, toDisplayString as N, normalizeClass as Y, renderSlot as ce, createCommentVNode as B, mergeProps as Q, toRefs as on, unref as d, isRef as dt, onMounted as Ve, normalizeStyle as ln, createElementVNode as k, withKeys as Ye, withModifiers as et, resolveDynamicComponent as mt, Transition as sn, normalizeProps as le, guardReactiveProps as we, withDirectives as Te, vModelText as Re, onUnmounted as an, getCurrentInstance as rn, h as cn, toRaw as un, createApp as pn } from "vue";
2
+ import { normalizeTheme as ue, applyDocumentTheme as dn, dispatchThemeChange as mn, addNewStyle as fn, addNewStyleTag as hn, queryParams as bn, logGroup as yn, compactObject as ft, showEleByClassName as ht, waterMarker as _n, Cache as he, isExternal as tt, getQueryParam as bt, createIFrame as gn, strVarReplace as ne, obj2Param as vn, isObject as ge, isString as yt, effectDataTrans as kn, isArray as wn } from "@okiss/utils";
3
+ import { defineStore as Se, createPinia as Sn } from "pinia";
4
4
  import de from "js-cookie";
5
- import yt from "element-plus/es/locale/lang/zh-cn";
6
- import xn, { cloneDeep as S, merge as z, get as ue, unset as _t, isObject as En } from "lodash";
5
+ import _t from "element-plus/es/locale/lang/zh-cn";
6
+ import xn, { cloneDeep as S, merge as z, get as pe, unset as gt, isObject as En } from "lodash";
7
7
  import Be from "mockjs";
8
- import Ve from "axios";
9
- import In, { ElMessageBox as vt, ElMessage as Cn, ElCol as Tn, ElRow as Bn, ElCard as Rn } from "element-plus";
8
+ import qe from "axios";
9
+ import In, { ElMessageBox as vt, ElMessage as Cn, ElCol as Tn, ElRow as Rn, ElCard as Bn } from "element-plus";
10
10
  import "element-plus/dist/index.css";
11
11
  import "element-plus/theme-chalk/dark/css-vars.css";
12
12
  import "dayjs/locale/zh-cn";
13
- import { useRoute as se, useRouter as Se, onBeforeRouteLeave as On, createRouter as $n, createWebHashHistory as An, onBeforeRouteUpdate as Pn } from "vue-router";
14
- import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as xe, ElMain as jn, ElAside as Nn, ElForm as gt, ElFormItem as kt, ElSelect as qe, ElOption as He, ElDivider as wt, ElButton as pe, ElCol as Fe, ElDrawer as St, ElTooltip as Un, ElIcon as Vn, ElDropdown as qn, ElDropdownMenu as Hn, ElDropdownItem as Fn, ElMenuItem as Gn, ElSubMenu as zn, ElOptionGroup as Kn, ElScrollbar as Jn, ElMenu as Wn, ElBacktop as Qn, ElMessage as Xn, ElAlert as xt, ElCard as Zn, ElTree as Yn } from "element-plus/es";
13
+ import { useRoute as se, useRouter as xe, onBeforeRouteLeave as On, createRouter as $n, createWebHashHistory as An, onBeforeRouteUpdate as Pn } from "vue-router";
14
+ import { ElBreadcrumb as Ln, ElBreadcrumbItem as Mn, ElContainer as Dn, ElRow as Ee, ElMain as jn, ElAside as Nn, ElForm as kt, ElFormItem as wt, ElSelect as He, ElOption as Fe, ElDivider as St, ElButton as me, ElCol as Ge, ElDrawer as xt, ElTooltip as Un, ElIcon as Vn, ElDropdown as qn, ElDropdownMenu as Hn, ElDropdownItem as Fn, ElMenuItem as Gn, ElSubMenu as zn, ElOptionGroup as Kn, ElScrollbar as Jn, ElMenu as Wn, ElBacktop as Qn, ElMessage as Xn, ElAlert as Et, ElCard as Zn, ElTree as Yn } from "element-plus/es";
15
15
  import "element-plus/es/components/base/style/css";
16
16
  import "element-plus/es/components/row/style/css";
17
17
  import "element-plus/es/components/drawer/style/css";
@@ -33,7 +33,7 @@ import "element-plus/es/components/divider/style/css";
33
33
  import "element-plus/es/components/container/style/css";
34
34
  import "element-plus/es/components/aside/style/css";
35
35
  import "element-plus/es/components/main/style/css";
36
- import { JsonView as Et, VBtn as Ge, VForm as oe, VTable as ve, setUploadHeaderHandle as to, VIcon as no } from "@okiss/vbtf";
36
+ import { JsonView as It, VBtn as ze, VForm as oe, VTable as ve, setUploadHeaderHandle as to, VIcon as no } from "@okiss/vbtf";
37
37
  import "normalize.css/normalize.css";
38
38
  import "@okiss/vbtf/style.css";
39
39
  import oo from "mitt";
@@ -50,7 +50,7 @@ import "element-plus/es/components/card/style/css";
50
50
  import "element-plus/es/components/tree/style/css";
51
51
  import ao from "crypto-js";
52
52
  import "element-plus/es/components/message/style/css";
53
- import Le from "nprogress";
53
+ import Me from "nprogress";
54
54
  import "nprogress/nprogress.css";
55
55
  String.prototype.format || (String.prototype.format = function() {
56
56
  const e = arguments;
@@ -58,29 +58,29 @@ String.prototype.format || (String.prototype.format = function() {
58
58
  return typeof e[n] < "u" ? e[n] : t;
59
59
  });
60
60
  });
61
- const ze = "oms:token";
62
- function me() {
63
- return de.get(ze) || "";
61
+ const Ke = "oms:token";
62
+ function fe() {
63
+ return de.get(Ke) || "";
64
64
  }
65
65
  function ro(e) {
66
66
  const t = U(P), n = new Date((/* @__PURE__ */ new Date()).getTime() + (t.tokenExpire || 1440 * 60 * 1e3));
67
- return de.set(ze, e, { expires: n });
67
+ return de.set(Ke, e, { expires: n });
68
68
  }
69
- function It() {
70
- return de.remove(ze);
69
+ function Ct() {
70
+ return de.remove(Ke);
71
71
  }
72
- let Ct = null;
72
+ let Tt = null;
73
73
  function co(e) {
74
- Ct = e;
74
+ Tt = e;
75
75
  }
76
- function Re() {
77
- return Ct;
76
+ function Oe() {
77
+ return Tt;
78
78
  }
79
79
  const uo = {
80
80
  baseURL: "/api",
81
81
  withCredentials: !0,
82
82
  cacheEnable: !0
83
- }, Tt = {
83
+ }, Rt = {
84
84
  title: "oms",
85
85
  fixedHeader: !1,
86
86
  sidebarLogo: !0,
@@ -94,7 +94,7 @@ const uo = {
94
94
  ElementPlus: {
95
95
  size: "default",
96
96
  zIndex: 3e3,
97
- locale: yt
97
+ locale: _t
98
98
  },
99
99
  nav: [],
100
100
  whiteRoutes: ["/login"],
@@ -108,23 +108,23 @@ const uo = {
108
108
  formMutex: !0,
109
109
  captcha: !0,
110
110
  themeMode: "light"
111
- }, Ee = {
111
+ }, Ie = {
112
112
  axios: uo,
113
- settings: Tt,
113
+ settings: Rt,
114
114
  plugins: [],
115
115
  mock: !1
116
- }, po = S(Tt), U = we("settings", {
116
+ }, po = S(Rt), U = Se("settings", {
117
117
  state: () => ({ ...po }),
118
118
  actions: {
119
119
  updateSettings(e) {
120
120
  z(this, e);
121
121
  }
122
122
  }
123
- }), tt = {
123
+ }), nt = {
124
124
  name: "",
125
125
  nickname: "",
126
126
  avatar: "",
127
- token: me(),
127
+ token: fe(),
128
128
  customRouter: [],
129
129
  rawCustomRouter: [],
130
130
  remoteRouter: [],
@@ -135,14 +135,14 @@ const uo = {
135
135
  path: "",
136
136
  env: "",
137
137
  expired: !1
138
- }, j = we("user", {
139
- state: () => ({ ...tt }),
138
+ }, j = Se("user", {
139
+ state: () => ({ ...nt }),
140
140
  actions: {
141
141
  updateToken(e) {
142
142
  this.token = e, ro(e);
143
143
  },
144
144
  removeToken() {
145
- this.token = "", It();
145
+ this.token = "", Ct();
146
146
  },
147
147
  updateRemoteRouter(e) {
148
148
  this.remoteRouter = e, this.isLodeRemoteRoutes = !0;
@@ -164,7 +164,7 @@ const uo = {
164
164
  this[e] = t;
165
165
  },
166
166
  resetUser() {
167
- const e = { ...tt, token: me() };
167
+ const e = { ...nt, token: fe() };
168
168
  Object.assign(this, e);
169
169
  },
170
170
  SET_EXPIRED() {
@@ -173,7 +173,7 @@ const uo = {
173
173
  // async actions
174
174
  login(e) {
175
175
  return new Promise((t, n) => {
176
- const o = Re();
176
+ const o = Oe();
177
177
  if (!o) {
178
178
  n("http client not init");
179
179
  return;
@@ -192,7 +192,7 @@ const uo = {
192
192
  },
193
193
  info() {
194
194
  return new Promise((e, t) => {
195
- const n = Re();
195
+ const n = Oe();
196
196
  if (!n) {
197
197
  t("http client not init");
198
198
  return;
@@ -210,7 +210,7 @@ const uo = {
210
210
  },
211
211
  loadRemoteRoutes() {
212
212
  return new Promise((e, t) => {
213
- Re()?.request({
213
+ Oe()?.request({
214
214
  url: "/user/routes",
215
215
  method: "get"
216
216
  }).then((o) => {
@@ -236,7 +236,7 @@ const uo = {
236
236
  } catch {
237
237
  return null;
238
238
  }
239
- }, nt = (e) => {
239
+ }, ot = (e) => {
240
240
  if (!(typeof window > "u"))
241
241
  try {
242
242
  window.localStorage.setItem(Bt, e);
@@ -255,14 +255,14 @@ const uo = {
255
255
  currentRouteMeta: {},
256
256
  builderSchema: {},
257
257
  baseURL: ""
258
- }, X = we("app", {
258
+ }, X = Se("app", {
259
259
  state: () => ({ ...fo }),
260
260
  actions: {
261
261
  TOGGLE_SIDEBAR() {
262
- this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, nt(this.sidebar.opened ? "1" : "0");
262
+ this.sidebar.opened = !this.sidebar.opened, this.sidebar.withoutAnimation = !1, ot(this.sidebar.opened ? "1" : "0");
263
263
  },
264
264
  CLOSE_SIDEBAR(e) {
265
- nt("0"), this.sidebar.opened = !1, this.sidebar.withoutAnimation = e;
265
+ ot("0"), this.sidebar.opened = !1, this.sidebar.withoutAnimation = e;
266
266
  },
267
267
  TOGGLE_DEVICE(e) {
268
268
  this.device = e;
@@ -305,7 +305,7 @@ const uo = {
305
305
  }), ho = {
306
306
  currentCellItem: {}
307
307
  // form/sub-form 当前单元格编辑数据
308
- }, Ra = we("builderSchema", {
308
+ }, Ba = Se("builderSchema", {
309
309
  state: () => ({ ...ho }),
310
310
  actions: {
311
311
  SET_CURRENT_CELLITEM(e) {
@@ -319,54 +319,54 @@ const uo = {
319
319
  function bo(e) {
320
320
  e.use(P);
321
321
  }
322
- const Rt = "oms-theme", Ot = R("light");
323
- let ot = !1, he = null;
322
+ const Ot = "oms-theme", $t = O("light");
323
+ let lt = !1, be = null;
324
324
  function yo(e) {
325
- const t = ce(e ?? void 0);
325
+ const t = ue(e ?? void 0);
326
326
  if (typeof window > "u")
327
327
  return t;
328
- const n = window.localStorage?.getItem(Rt);
328
+ const n = window.localStorage?.getItem(Ot);
329
329
  return n === "dark" || n === "light" ? n : e === "dark" || e === "light" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
330
330
  }
331
331
  function _o(e) {
332
- typeof window < "u" && window.localStorage?.setItem(Rt, e);
332
+ typeof window < "u" && window.localStorage?.setItem(Ot, e);
333
333
  }
334
- function Oe(e) {
335
- const t = ce(e);
336
- Ot.value = t, pn(t), mn(t), _o(t);
334
+ function $e(e) {
335
+ const t = ue(e);
336
+ $t.value = t, dn(t), mn(t), _o(t);
337
337
  }
338
- function vo(e) {
338
+ function go(e) {
339
339
  if (typeof window > "u" || typeof window.matchMedia != "function") {
340
- he = null;
340
+ be = null;
341
341
  return;
342
342
  }
343
343
  const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (o) => {
344
344
  const l = o.matches ?? t.matches;
345
345
  e(l ? "dark" : "light");
346
346
  };
347
- typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), he = () => {
348
- typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), he = null;
347
+ typeof t.addEventListener == "function" ? t.addEventListener("change", n) : t.addListener(n), be = () => {
348
+ typeof t.removeEventListener == "function" ? t.removeEventListener("change", n) : t.removeListener(n), be = null;
349
349
  };
350
350
  }
351
- function $t() {
351
+ function At() {
352
352
  const e = U(), t = (s) => {
353
- const i = ce(s);
354
- e.themeMode !== i ? e.updateSettings({ themeMode: i }) : Oe(i);
353
+ const i = ue(s);
354
+ e.themeMode !== i ? e.updateSettings({ themeMode: i }) : $e(i);
355
355
  };
356
- if (!ot) {
357
- ot = !0;
356
+ if (!lt) {
357
+ lt = !0;
358
358
  const s = yo(e.themeMode);
359
- ce(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : Oe(s), en(
359
+ ue(e.themeMode) !== s ? e.updateSettings({ themeMode: s }) : $e(s), en(
360
360
  () => e.themeMode,
361
361
  (i) => {
362
- Oe(ce(i));
362
+ $e(ue(i));
363
363
  },
364
364
  { immediate: !0 }
365
- ), he?.(), vo((i) => {
365
+ ), be?.(), go((i) => {
366
366
  t(i);
367
367
  });
368
368
  }
369
- const n = w(() => Ot.value), o = w(() => n.value === "dark");
369
+ const n = w(() => $t.value), o = w(() => n.value === "dark");
370
370
  return {
371
371
  themeMode: n,
372
372
  isDark: o,
@@ -376,10 +376,10 @@ function $t() {
376
376
  }
377
377
  };
378
378
  }
379
- const go = /* @__PURE__ */ K({
379
+ const vo = /* @__PURE__ */ K({
380
380
  __name: "App",
381
381
  setup(e) {
382
- return $t(), ut(() => {
382
+ return At(), pt(() => {
383
383
  const t = document.getElementById("preloader");
384
384
  t !== null && (document.body.removeChild(t), document.getElementById("preloader")?.remove(), fn("test-icon", "//at.alicdn.com/t/font_2246548_zclaqxwmzq8.css"), hn(`.iconfont {
385
385
  font-size: 19px;
@@ -389,11 +389,11 @@ const go = /* @__PURE__ */ K({
389
389
  }`));
390
390
  }), window?.OmsOptions?.form?.vsPath && tn("vsPath", window?.OmsOptions?.form?.vsPath), (t, n) => {
391
391
  const o = A("router-view");
392
- return a(), h(o);
392
+ return a(), f(o);
393
393
  };
394
394
  }
395
395
  });
396
- var ie = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ie || {});
396
+ var ae = /* @__PURE__ */ ((e) => (e.GET = "get", e.POST = "post", e.DELETE = "delete", e.FETCH = "fetch", e.OPTION = "option", e.PUT = "put", e))(ae || {});
397
397
  const ko = [
398
398
  {
399
399
  type: "jump",
@@ -476,7 +476,7 @@ const wo = {
476
476
  }
477
477
  }, So = { listMock: wo }, xo = [
478
478
  {
479
- method: ie.POST,
479
+ method: ae.POST,
480
480
  url: "/login",
481
481
  response(e) {
482
482
  return {
@@ -489,7 +489,7 @@ const wo = {
489
489
  }
490
490
  },
491
491
  {
492
- method: ie.GET,
492
+ method: ae.GET,
493
493
  url: "/user/info",
494
494
  response(e) {
495
495
  return {
@@ -503,7 +503,7 @@ const wo = {
503
503
  },
504
504
  {
505
505
  url: "/user/routes",
506
- method: ie.GET,
506
+ method: ae.GET,
507
507
  response: (e) => ({
508
508
  code: 0,
509
509
  data: [
@@ -517,33 +517,33 @@ const wo = {
517
517
  },
518
518
  {
519
519
  url: "/user/list",
520
- method: ie.GET,
520
+ method: ae.GET,
521
521
  response: (e) => So.listMock
522
522
  }
523
523
  ], Eo = [
524
524
  ...xo
525
- ], Me = {};
526
- function At(e) {
525
+ ], De = {};
526
+ function Pt(e) {
527
527
  e.forEach((t) => {
528
- const n = Pt(t);
529
- Me[`${t.method}::${n}`] = t;
528
+ const n = Lt(t);
529
+ De[`${t.method}::${n}`] = t;
530
530
  });
531
531
  }
532
- At(Eo);
533
- function Pt(e) {
534
- let t = e.url, n = e.baseURL || Ee.axios?.baseURL;
532
+ Pt(Eo);
533
+ function Lt(e) {
534
+ let t = e.url, n = e.baseURL || Ie.axios?.baseURL;
535
535
  return n || (n = ""), typeof t == "string" ? (t = ("/" + n + t).split("/").filter((o) => o).join("/"), t += "(|\\?.*)$", new RegExp(t)) : t;
536
536
  }
537
537
  function Io() {
538
- Object.keys(Me).forEach((e) => {
539
- const t = Me[e], n = Pt(t);
538
+ Object.keys(De).forEach((e) => {
539
+ const t = De[e], n = Lt(t);
540
540
  Be.mock(n, t.method, function(o) {
541
- const { url: l, type: s, body: i } = o, c = bn(l), d = i ? JSON.parse(i) : {}, m = t.response({ query: c, data: d }), f = Be.mock(m);
542
- return yn(l, { type: s, query: c, data: d, response: f }), Be.mock(f);
541
+ const { url: l, type: s, body: i } = o, c = bn(l), p = i ? JSON.parse(i) : {}, m = t.response({ query: c, data: p }), h = Be.mock(m);
542
+ return yn(l, { type: s, query: c, data: p, response: h }), Be.mock(h);
543
543
  });
544
544
  });
545
545
  }
546
- const Co = Cn, lt = vt, To = Ve.CancelToken, be = {
546
+ const Co = Cn, st = vt, To = qe.CancelToken, ye = {
547
547
  taskList: {},
548
548
  cacheList: /* @__PURE__ */ new Map(),
549
549
  uniqueId(e) {
@@ -579,28 +579,28 @@ const Co = Cn, lt = vt, To = Ve.CancelToken, be = {
579
579
  const t = this.uniqueId(e);
580
580
  return this.cacheList.delete(t);
581
581
  }
582
- }, Bo = {
582
+ }, Ro = {
583
583
  onFulfilled: function(e) {
584
- return e.cacheEnable === !1 || (be.pending(e) && be.delTask(e), e.cancelToken = new To((t) => {
585
- be.addTask(e, t);
584
+ return e.cacheEnable === !1 || (ye.pending(e) && ye.delTask(e), e.cancelToken = new To((t) => {
585
+ ye.addTask(e, t);
586
586
  })), e;
587
587
  },
588
588
  onRejected(e) {
589
589
  return Promise.reject(e);
590
590
  }
591
- }, Ro = {
591
+ }, Bo = {
592
592
  onFulfilled: function(e) {
593
- return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && be.addCache(e.config, e.data), e;
593
+ return e.config.cacheEnable === !1 || e.config.method === "get" && Object.keys(e.data).length > 0 && ye.addCache(e.config, e.data), e;
594
594
  },
595
595
  onRejected(e) {
596
596
  return Promise.reject(e);
597
597
  }
598
- }, Lt = {};
598
+ }, Mt = {};
599
599
  function Oa(e, t) {
600
- Lt[e] = t;
600
+ Mt[e] = t;
601
601
  }
602
602
  function Oo(e) {
603
- return Lt[e];
603
+ return Mt[e];
604
604
  }
605
605
  const $o = /* @__PURE__ */ K({
606
606
  name: "Dashboard",
@@ -669,21 +669,21 @@ const $o = /* @__PURE__ */ K({
669
669
  }, Mo = ["onClick"];
670
670
  function Do(e, t, n, o, l, s) {
671
671
  const i = Mn, c = Ln;
672
- return a(), h(c, {
672
+ return a(), f(c, {
673
673
  class: "app-breadcrumb",
674
674
  separator: "/"
675
675
  }, {
676
676
  default: r(() => [
677
677
  u(nn, { name: "breadcrumb" }, {
678
678
  default: r(() => [
679
- (a(!0), y(O, null, q(l.levelList, (d, m) => (a(), h(i, {
680
- key: d.path
679
+ (a(!0), y($, null, q(l.levelList, (p, m) => (a(), f(i, {
680
+ key: p.path
681
681
  }, {
682
682
  default: r(() => [
683
- d.path.indexOf("/DIR_") === 0 && d.redirect === void 0 || m === l.levelList.length - 1 ? (a(), y("span", Lo, N(d.meta.title), 1)) : (a(), y("a", {
683
+ p.path.indexOf("/DIR_") === 0 && p.redirect === void 0 || m === l.levelList.length - 1 ? (a(), y("span", Lo, N(p.meta.title), 1)) : (a(), y("a", {
684
684
  key: 1,
685
- onClick: (f) => s.handleLink(d)
686
- }, N(d.meta.title), 9, Mo))
685
+ onClick: (h) => s.handleLink(p)
686
+ }, N(p.meta.title), 9, Mo))
687
687
  ]),
688
688
  _: 2
689
689
  }, 1024))), 128))
@@ -716,19 +716,19 @@ function Uo(e, t, n, o, l, s) {
716
716
  onClick: t[0] || (t[0] = (...c) => s.toggleClick && s.toggleClick(...c))
717
717
  }, [
718
718
  u(i, {
719
- class: Z({ "is-active": n.isActive }),
719
+ class: Y({ "is-active": n.isActive }),
720
720
  name: "ra-leftalignment"
721
721
  }, null, 8, ["class"])
722
722
  ]);
723
723
  }
724
724
  const Vo = /* @__PURE__ */ L(No, [["render", Uo]]), qo = {};
725
725
  function Ho(e, t) {
726
- const n = xe, o = jn, l = Nn, s = Dn;
727
- return a(), h(s, { style: { width: "100%", height: "100%" } }, {
726
+ const n = Ee, o = jn, l = Nn, s = Dn;
727
+ return a(), f(s, { style: { width: "100%", height: "100%" } }, {
728
728
  default: r(() => [
729
729
  u(n, { class: "aside" }, {
730
730
  default: r(() => [
731
- re(e.$slots, "left-aside", {}, void 0, !0)
731
+ ce(e.$slots, "left-aside", {}, void 0, !0)
732
732
  ]),
733
733
  _: 3
734
734
  }),
@@ -737,7 +737,7 @@ function Ho(e, t) {
737
737
  style: { margin: "0 10px" }
738
738
  }, {
739
739
  default: r(() => [
740
- re(e.$slots, "main", {}, void 0, !0)
740
+ ce(e.$slots, "main", {}, void 0, !0)
741
741
  ]),
742
742
  _: 3
743
743
  }),
@@ -747,7 +747,7 @@ function Ho(e, t) {
747
747
  style: { padding: "20px" }
748
748
  }, {
749
749
  default: r(() => [
750
- re(e.$slots, "right-aside", {}, void 0, !0)
750
+ ce(e.$slots, "right-aside", {}, void 0, !0)
751
751
  ]),
752
752
  _: 3
753
753
  })
@@ -755,7 +755,7 @@ function Ho(e, t) {
755
755
  _: 3
756
756
  });
757
757
  }
758
- const Mt = /* @__PURE__ */ L(qo, [["render", Ho], ["__scopeId", "data-v-7c3d697b"]]), Fo = {
758
+ const Dt = /* @__PURE__ */ L(qo, [["render", Ho], ["__scopeId", "data-v-7c3d697b"]]), Fo = {
759
759
  type: "input",
760
760
  name: "文本框",
761
761
  default: {
@@ -1328,9 +1328,9 @@ const Mt = /* @__PURE__ */ L(qo, [["render", Ho], ["__scopeId", "data-v-7c3d697b
1328
1328
  }
1329
1329
  }
1330
1330
  ]
1331
- }, Dt = {};
1331
+ }, jt = {};
1332
1332
  function H(e) {
1333
- Dt[e.type] = e;
1333
+ jt[e.type] = e;
1334
1334
  }
1335
1335
  H(Fo);
1336
1336
  H(Ko);
@@ -1345,7 +1345,7 @@ H(Xo);
1345
1345
  H(Zo);
1346
1346
  H(el);
1347
1347
  H(Yo);
1348
- const De = Dt, ol = {
1348
+ const je = jt, ol = {
1349
1349
  options: {
1350
1350
  labelPosition: "top",
1351
1351
  submitButton: !1,
@@ -1443,13 +1443,13 @@ const De = Dt, ol = {
1443
1443
  }
1444
1444
  }
1445
1445
  ]
1446
- }, $e = {
1446
+ }, Ae = {
1447
1447
  labelPosition: "top",
1448
1448
  submitButton: !1,
1449
1449
  cancelButton: !1
1450
- }, Ke = [];
1451
- Object.keys(De).forEach((e) => {
1452
- Ke.push({ value: e, label: De[e].name });
1450
+ }, Je = [];
1451
+ Object.keys(je).forEach((e) => {
1452
+ Je.push({ value: e, label: je[e].name });
1453
1453
  });
1454
1454
  const ll = {
1455
1455
  options: {
@@ -1472,7 +1472,7 @@ const ll = {
1472
1472
  type: "select",
1473
1473
  field: "type",
1474
1474
  label: "类型",
1475
- options: S(Ke)
1475
+ options: S(Je)
1476
1476
  },
1477
1477
  {
1478
1478
  type: "input",
@@ -1484,7 +1484,7 @@ const ll = {
1484
1484
  }
1485
1485
  ]
1486
1486
  }, sl = {
1487
- components: { DevLayout: Mt, VForm: oe, VButton: Ge, JsonView: Et },
1487
+ components: { DevLayout: Dt, VForm: oe, VButton: ze, JsonView: It },
1488
1488
  props: {
1489
1489
  schema: {
1490
1490
  type: Object,
@@ -1516,12 +1516,12 @@ const ll = {
1516
1516
  ctrlSchema: {},
1517
1517
  ctrlName: "",
1518
1518
  activeIndex: void 0,
1519
- ctrlMap: De,
1519
+ ctrlMap: je,
1520
1520
  activeIndexReg: /(formItems)?\[(\d+)\]/,
1521
1521
  tableStruct: "",
1522
1522
  activeName: "1",
1523
1523
  currentCtrlType: "input",
1524
- types: S(Ke)
1524
+ types: S(Je)
1525
1525
  };
1526
1526
  },
1527
1527
  computed: {
@@ -1544,7 +1544,7 @@ const ll = {
1544
1544
  deep: !0,
1545
1545
  // immediate: true,
1546
1546
  handler(e) {
1547
- const t = ue(this.builderSchema, this.activeIndex);
1547
+ const t = pe(this.builderSchema, this.activeIndex);
1548
1548
  if (!t)
1549
1549
  return;
1550
1550
  const n = t ? t.type : "", o = this.ctrlMap[n], l = o.trans ? o.trans(e) : e;
@@ -1562,21 +1562,21 @@ const ll = {
1562
1562
  handler(e) {
1563
1563
  const t = this.ctrlMap[e];
1564
1564
  this.ctrlSchema = S({
1565
- options: S($e),
1565
+ options: S(Ae),
1566
1566
  formItems: S(t.builder)
1567
1567
  });
1568
- const n = ue(this.builderSchema, this.activeIndex);
1568
+ const n = pe(this.builderSchema, this.activeIndex);
1569
1569
  this.ctrlOptions = S(n), this.ctrlOptions.type = e, this.ctrlKey++, this.key++;
1570
1570
  }
1571
1571
  }
1572
1572
  },
1573
1573
  beforeCreate() {
1574
- Y.on("dev-action", ({ event: e, data: t }) => {
1574
+ ee.on("dev-action", ({ event: e, data: t }) => {
1575
1575
  this.onDevAction(t.type, t.devId);
1576
1576
  });
1577
1577
  },
1578
1578
  unmounted() {
1579
- Y.off("dev-action");
1579
+ ee.off("dev-action");
1580
1580
  },
1581
1581
  methods: {
1582
1582
  onDevAction(e, t) {
@@ -1587,23 +1587,23 @@ const ll = {
1587
1587
  this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [];
1588
1588
  const n = this.ctrlMap[e];
1589
1589
  this.activeCtrl = n, this.builderSchema[t].push(S(n.default)), this.ctrlSchema = S({
1590
- options: S($e),
1590
+ options: S(Ae),
1591
1591
  formItems: S(n.builder)
1592
1592
  }), this.ctrlKey++, this.key++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
1593
1593
  },
1594
1594
  removeOne() {
1595
- _t(this.builderSchema, this.activeIndex), this.builderSchema = S(mt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1595
+ gt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
1596
1596
  },
1597
1597
  clicklabel() {
1598
1598
  const e = this.activeIndex;
1599
1599
  if (e.match(this.activeIndexReg)) {
1600
- const n = S(ue(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
1600
+ const n = S(pe(this.builderSchema, e)), o = n.type, l = this.ctrlMap[o];
1601
1601
  if (!l) {
1602
1602
  this.$message({ type: "warning", message: "尚未支持该组件的UI编辑" });
1603
1603
  return;
1604
1604
  }
1605
1605
  this.currentCtrlType = o, this.ctrlOptions = n, this.ctrlSchema = S({
1606
- options: S($e),
1606
+ options: S(Ae),
1607
1607
  formItems: S(l.builder)
1608
1608
  }), this.ctrlKey++;
1609
1609
  }
@@ -1620,16 +1620,16 @@ const ll = {
1620
1620
  }
1621
1621
  };
1622
1622
  function il(e, t, n, o, l, s) {
1623
- const i = A("v-form"), c = wt, d = pe, m = A("JsonView"), f = A("VButton"), k = He, b = qe, x = kt, I = gt, T = A("dev-layout");
1624
- return a(), h(T, null, {
1623
+ const i = A("v-form"), c = St, p = me, m = A("JsonView"), h = A("VButton"), g = Fe, b = He, x = wt, E = kt, T = A("dev-layout");
1624
+ return a(), f(T, null, {
1625
1625
  main: r(() => [
1626
- l.builderSchema.formItems ? (a(), h(i, Q({
1626
+ l.builderSchema.formItems ? (a(), f(i, Q({
1627
1627
  ref: "form",
1628
1628
  key: l.key,
1629
1629
  dev: !0
1630
1630
  }, l.builderSchema), null, 16)) : B("", !0),
1631
1631
  u(c),
1632
- u(d, {
1632
+ u(p, {
1633
1633
  type: "primary",
1634
1634
  onClick: s.saveSchema
1635
1635
  }, {
@@ -1639,7 +1639,7 @@ function il(e, t, n, o, l, s) {
1639
1639
  _: 1
1640
1640
  }, 8, ["onClick"]),
1641
1641
  t[3] || (t[3] = C("    ", -1)),
1642
- u(f, {
1642
+ u(h, {
1643
1643
  text: "PageSchema",
1644
1644
  type: "modal"
1645
1645
  }, {
@@ -1650,19 +1650,19 @@ function il(e, t, n, o, l, s) {
1650
1650
  })
1651
1651
  ]),
1652
1652
  "right-aside": r(() => [
1653
- l.activeIndex ? (a(), h(I, { key: 0 }, {
1653
+ l.activeIndex ? (a(), f(E, { key: 0 }, {
1654
1654
  default: r(() => [
1655
1655
  u(x, { label: "控件类型" }, {
1656
1656
  default: r(() => [
1657
1657
  u(b, {
1658
1658
  modelValue: l.currentCtrlType,
1659
- "onUpdate:modelValue": t[0] || (t[0] = (g) => l.currentCtrlType = g)
1659
+ "onUpdate:modelValue": t[0] || (t[0] = (I) => l.currentCtrlType = I)
1660
1660
  }, {
1661
1661
  default: r(() => [
1662
- (a(!0), y(O, null, q(l.types, (g, E) => (a(), h(k, {
1663
- key: E,
1664
- label: g.label,
1665
- value: g.value
1662
+ (a(!0), y($, null, q(l.types, (I, R) => (a(), f(g, {
1663
+ key: R,
1664
+ label: I.label,
1665
+ value: I.value
1666
1666
  }, null, 8, ["label", "value"]))), 128))
1667
1667
  ]),
1668
1668
  _: 1
@@ -1673,10 +1673,10 @@ function il(e, t, n, o, l, s) {
1673
1673
  ]),
1674
1674
  _: 1
1675
1675
  })) : B("", !0),
1676
- (a(), h(i, Q({
1676
+ (a(), f(i, Q({
1677
1677
  key: l.ctrlKey,
1678
1678
  modelValue: l.ctrlOptions,
1679
- "onUpdate:modelValue": t[1] || (t[1] = (g) => l.ctrlOptions = g)
1679
+ "onUpdate:modelValue": t[1] || (t[1] = (I) => l.ctrlOptions = I)
1680
1680
  }, l.ctrlSchema), null, 16, ["modelValue"]))
1681
1681
  ]),
1682
1682
  _: 1
@@ -1851,7 +1851,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
1851
1851
  label: "字段key"
1852
1852
  }
1853
1853
  ]
1854
- }, st = {
1854
+ }, it = {
1855
1855
  options: {
1856
1856
  labelPosition: "top",
1857
1857
  submitButton: !1,
@@ -1876,11 +1876,11 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
1876
1876
  label: "导出按钮"
1877
1877
  }
1878
1878
  ]
1879
- }, Ae = {
1879
+ }, Pe = {
1880
1880
  labelPosition: "top",
1881
1881
  submitButton: !1,
1882
1882
  cancelButton: !1
1883
- }, dl = {
1883
+ }, pl = {
1884
1884
  type: "span",
1885
1885
  name: "文本",
1886
1886
  default: {
@@ -1910,7 +1910,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
1910
1910
  label: "排序"
1911
1911
  }
1912
1912
  ]
1913
- }, pl = {
1913
+ }, dl = {
1914
1914
  type: "enum",
1915
1915
  name: "标签",
1916
1916
  default: {
@@ -2111,7 +2111,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2111
2111
  label: "提示"
2112
2112
  }
2113
2113
  ]
2114
- }, vl = {
2114
+ }, gl = {
2115
2115
  type: "tpl",
2116
2116
  name: "模板",
2117
2117
  default: {
@@ -2142,16 +2142,16 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2142
2142
  info: "例如 <code>姓名: {name} 年龄:{age}</code>"
2143
2143
  }
2144
2144
  ]
2145
- }, gl = {
2146
- span: dl,
2147
- enum: pl,
2145
+ }, vl = {
2146
+ span: pl,
2147
+ enum: dl,
2148
2148
  html: ml,
2149
2149
  icon: fl,
2150
2150
  image: hl,
2151
2151
  json: bl,
2152
2152
  link: yl,
2153
2153
  rich: _l,
2154
- tpl: vl
2154
+ tpl: gl
2155
2155
  }, kl = {
2156
2156
  type: "jump",
2157
2157
  name: "跳转",
@@ -2382,7 +2382,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2382
2382
  form: Sl,
2383
2383
  table: xl
2384
2384
  }, Il = {
2385
- components: { JsonView: Et, DevLayout: Mt, VTable: ve, VForm: oe, VButton: Ge },
2385
+ components: { JsonView: It, DevLayout: Dt, VTable: ve, VForm: oe, VButton: ze },
2386
2386
  props: {
2387
2387
  schema: {
2388
2388
  type: Object,
@@ -2393,11 +2393,11 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2393
2393
  data() {
2394
2394
  const e = on(this.$props.schema);
2395
2395
  return delete e.listApi, e.list = [{}], {
2396
- baseSchema: st,
2396
+ baseSchema: it,
2397
2397
  activeTab: "base",
2398
2398
  builderSchema: Object.assign(
2399
2399
  {},
2400
- st,
2400
+ it,
2401
2401
  e
2402
2402
  ),
2403
2403
  baseOptions: {},
@@ -2411,7 +2411,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2411
2411
  activeIndex: void 0,
2412
2412
  ctrlMap: {
2413
2413
  filter: { input: rl, select: cl, date: ul },
2414
- headers: gl,
2414
+ headers: vl,
2415
2415
  buttons: El
2416
2416
  },
2417
2417
  activeIndexReg: /(filter|headers|normalButton|batchButton|rowButton)?\[(\d+)\]/,
@@ -2474,10 +2474,10 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2474
2474
  handler(e) {
2475
2475
  const t = this.ctrlMap[this.activeBrick][e];
2476
2476
  this.ctrlSchema = S({
2477
- options: S(Ae),
2477
+ options: S(Pe),
2478
2478
  formItems: S(t.builder)
2479
2479
  });
2480
- const n = ue(this.builderSchema, this.activeIndex);
2480
+ const n = pe(this.builderSchema, this.activeIndex);
2481
2481
  n.type = e;
2482
2482
  const o = S(n);
2483
2483
  this.ctrlOptions = o, o.text && (this.ctrlOptions.text = o.text, this.ctrlOptions.props = o.props || {}), this.ctrlKey++, this.key++, this.updateBuilderSchema();
@@ -2485,12 +2485,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2485
2485
  }
2486
2486
  },
2487
2487
  beforeCreate() {
2488
- Y.on("dev-action", ({ event: e, data: t }) => {
2488
+ ee.on("dev-action", ({ event: e, data: t }) => {
2489
2489
  this.onDevAction(t.type, t.devId);
2490
2490
  });
2491
2491
  },
2492
2492
  unmounted() {
2493
- Y.off("dev-action");
2493
+ ee.off("dev-action");
2494
2494
  },
2495
2495
  methods: {
2496
2496
  updateBuilderSchema() {
@@ -2522,17 +2522,17 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2522
2522
  return;
2523
2523
  }
2524
2524
  this.activeCtrl = l[e], this.activeBrick = o, this.ctrlOptions = {}, this.builderSchema[t] = this.builderSchema[t] || [], this.builderSchema[t].push(S(l[e].default)), this.ctrlSchema = S({
2525
- options: S(Ae),
2525
+ options: S(Pe),
2526
2526
  formItems: S(l[e].builder)
2527
2527
  }), this.key++, this.ctrlKey++, this.activeIndex = `${t}[${this.builderSchema[t].length - 1}]`, this.activeTab = "ctrl";
2528
2528
  },
2529
2529
  removeOne() {
2530
- _t(this.builderSchema, this.activeIndex), this.builderSchema = S(mt(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2530
+ gt(this.builderSchema, this.activeIndex), this.builderSchema = S(ft(this.builderSchema)), this.activeIndex = "", this.ctrlOptions = {}, this.ctrlSchema = {}, this.key++, this.ctrlKey++;
2531
2531
  },
2532
2532
  clicklabel() {
2533
2533
  const e = this.activeIndex, t = e.match(this.activeIndexReg);
2534
2534
  if (t) {
2535
- const n = S(ue(this.builderSchema, e));
2535
+ const n = S(pe(this.builderSchema, e));
2536
2536
  this.activeBrick = t[1], ["normalButton", "batchButton", "rowButton"].indexOf(t[1]) > -1 && (this.activeBrick = "buttons");
2537
2537
  let o = this.builderSchema[t[1]][parseInt(t[2])].type;
2538
2538
  t[1] === "headers" && o === void 0 && (o = "span");
@@ -2542,7 +2542,7 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2542
2542
  return;
2543
2543
  }
2544
2544
  this.ctrlOptions = n, this.currentCtrlType = o, this.ctrlSchema = S({
2545
- options: S(Ae),
2545
+ options: S(Pe),
2546
2546
  formItems: S(l.builder)
2547
2547
  }), this.ctrlKey++;
2548
2548
  }
@@ -2566,12 +2566,12 @@ const al = /* @__PURE__ */ L(sl, [["render", il], ["__scopeId", "data-v-875f0171
2566
2566
  }
2567
2567
  };
2568
2568
  function Cl(e, t, n, o, l, s) {
2569
- const i = Fe, c = pe, d = xe, m = A("v-table"), f = wt, k = pe, b = A("JsonView"), x = A("VButton"), I = He, T = qe, g = kt, E = gt, $ = A("v-form"), ee = A("dev-layout");
2570
- return a(), h(ee, null, {
2569
+ const i = Ge, c = me, p = Ee, m = A("v-table"), h = St, g = me, b = A("JsonView"), x = A("VButton"), E = Fe, T = He, I = wt, R = kt, v = A("v-form"), F = A("dev-layout");
2570
+ return a(), f(F, null, {
2571
2571
  "left-aside": r(() => [
2572
- u(d, { style: { width: "200px" } }, {
2572
+ u(p, { style: { width: "200px" } }, {
2573
2573
  default: r(() => [
2574
- u(d, null, {
2574
+ u(p, null, {
2575
2575
  default: r(() => [
2576
2576
  u(i, {
2577
2577
  class: "title",
@@ -2627,7 +2627,7 @@ function Cl(e, t, n, o, l, s) {
2627
2627
  ]),
2628
2628
  _: 1
2629
2629
  }),
2630
- u(d, null, {
2630
+ u(p, null, {
2631
2631
  default: r(() => [
2632
2632
  u(i, { class: "title" }, {
2633
2633
  default: r(() => [...t[9] || (t[9] = [
@@ -2635,14 +2635,14 @@ function Cl(e, t, n, o, l, s) {
2635
2635
  ])]),
2636
2636
  _: 1
2637
2637
  }),
2638
- (a(!0), y(O, null, q(Object.keys(l.ctrlMap.headers), (_, V) => (a(), h(i, {
2638
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.headers), (_, V) => (a(), f(i, {
2639
2639
  key: `column-${V}`,
2640
2640
  class: "ctrl"
2641
2641
  }, {
2642
2642
  default: r(() => [
2643
2643
  u(c, {
2644
2644
  class: "ctrl-btn",
2645
- onClick: (G) => s.pushHeaders(l.ctrlMap.headers[_].type)
2645
+ onClick: (Z) => s.pushHeaders(l.ctrlMap.headers[_].type)
2646
2646
  }, {
2647
2647
  default: r(() => [
2648
2648
  C(N(l.ctrlMap.headers[_].name), 1)
@@ -2655,7 +2655,7 @@ function Cl(e, t, n, o, l, s) {
2655
2655
  ]),
2656
2656
  _: 1
2657
2657
  }),
2658
- u(d, null, {
2658
+ u(p, null, {
2659
2659
  default: r(() => [
2660
2660
  u(i, { class: "title" }, {
2661
2661
  default: r(() => [...t[10] || (t[10] = [
@@ -2663,14 +2663,14 @@ function Cl(e, t, n, o, l, s) {
2663
2663
  ])]),
2664
2664
  _: 1
2665
2665
  }),
2666
- (a(!0), y(O, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), h(i, {
2666
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2667
2667
  key: `column-${V}`,
2668
2668
  class: "ctrl"
2669
2669
  }, {
2670
2670
  default: r(() => [
2671
2671
  u(c, {
2672
2672
  class: "ctrl-btn",
2673
- onClick: (G) => s.pushRowButton(l.ctrlMap.buttons[_].type)
2673
+ onClick: (Z) => s.pushRowButton(l.ctrlMap.buttons[_].type)
2674
2674
  }, {
2675
2675
  default: r(() => [
2676
2676
  C(N(l.ctrlMap.buttons[_].name), 1)
@@ -2683,7 +2683,7 @@ function Cl(e, t, n, o, l, s) {
2683
2683
  ]),
2684
2684
  _: 1
2685
2685
  }),
2686
- u(d, null, {
2686
+ u(p, null, {
2687
2687
  default: r(() => [
2688
2688
  u(i, { class: "title" }, {
2689
2689
  default: r(() => [...t[11] || (t[11] = [
@@ -2691,14 +2691,14 @@ function Cl(e, t, n, o, l, s) {
2691
2691
  ])]),
2692
2692
  _: 1
2693
2693
  }),
2694
- (a(!0), y(O, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), h(i, {
2694
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2695
2695
  key: `column-${V}`,
2696
2696
  class: "ctrl"
2697
2697
  }, {
2698
2698
  default: r(() => [
2699
2699
  u(c, {
2700
2700
  class: "ctrl-btn",
2701
- onClick: (G) => s.pushNormalButton(l.ctrlMap.buttons[_].type)
2701
+ onClick: (Z) => s.pushNormalButton(l.ctrlMap.buttons[_].type)
2702
2702
  }, {
2703
2703
  default: r(() => [
2704
2704
  C(N(l.ctrlMap.buttons[_].name), 1)
@@ -2722,7 +2722,7 @@ function Cl(e, t, n, o, l, s) {
2722
2722
  ]),
2723
2723
  _: 1
2724
2724
  }),
2725
- u(d, null, {
2725
+ u(p, null, {
2726
2726
  default: r(() => [
2727
2727
  u(i, { class: "title" }, {
2728
2728
  default: r(() => [...t[13] || (t[13] = [
@@ -2730,14 +2730,14 @@ function Cl(e, t, n, o, l, s) {
2730
2730
  ])]),
2731
2731
  _: 1
2732
2732
  }),
2733
- (a(!0), y(O, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), h(i, {
2733
+ (a(!0), y($, null, q(Object.keys(l.ctrlMap.buttons), (_, V) => (a(), f(i, {
2734
2734
  key: `column-${V}`,
2735
2735
  class: "ctrl"
2736
2736
  }, {
2737
2737
  default: r(() => [
2738
2738
  u(c, {
2739
2739
  class: "ctrl-btn",
2740
- onClick: (G) => s.pushBatchButton(l.ctrlMap.buttons[_].type)
2740
+ onClick: (Z) => s.pushBatchButton(l.ctrlMap.buttons[_].type)
2741
2741
  }, {
2742
2742
  default: r(() => [
2743
2743
  C(N(l.ctrlMap.buttons[_].name), 1)
@@ -2766,13 +2766,13 @@ function Cl(e, t, n, o, l, s) {
2766
2766
  })
2767
2767
  ]),
2768
2768
  main: r(() => [
2769
- (a(), h(m, Q({
2769
+ (a(), f(m, Q({
2770
2770
  ref: "table",
2771
2771
  key: l.key,
2772
2772
  dev: !0
2773
2773
  }, l.builderSchema), null, 16)),
2774
- u(f),
2775
- u(k, {
2774
+ u(h),
2775
+ u(g, {
2776
2776
  type: "primary",
2777
2777
  onClick: s.saveSchema
2778
2778
  }, {
@@ -2793,16 +2793,16 @@ function Cl(e, t, n, o, l, s) {
2793
2793
  })
2794
2794
  ]),
2795
2795
  "right-aside": r(() => [
2796
- l.activeIndex ? (a(), h(E, { key: 0 }, {
2796
+ l.activeIndex ? (a(), f(R, { key: 0 }, {
2797
2797
  default: r(() => [
2798
- u(g, { label: "控件类型" }, {
2798
+ u(I, { label: "控件类型" }, {
2799
2799
  default: r(() => [
2800
2800
  u(T, {
2801
2801
  modelValue: l.currentCtrlType,
2802
2802
  "onUpdate:modelValue": t[3] || (t[3] = (_) => l.currentCtrlType = _)
2803
2803
  }, {
2804
2804
  default: r(() => [
2805
- (a(!0), y(O, null, q(s.types, (_, V) => (a(), h(I, {
2805
+ (a(!0), y($, null, q(s.types, (_, V) => (a(), f(E, {
2806
2806
  key: V,
2807
2807
  label: _.label,
2808
2808
  value: _.value
@@ -2816,7 +2816,7 @@ function Cl(e, t, n, o, l, s) {
2816
2816
  ]),
2817
2817
  _: 1
2818
2818
  })) : B("", !0),
2819
- (a(), h($, Q({
2819
+ (a(), f(v, Q({
2820
2820
  key: l.ctrlKey,
2821
2821
  modelValue: l.ctrlOptions,
2822
2822
  "onUpdate:modelValue": t[4] || (t[4] = (_) => l.ctrlOptions = _)
@@ -2825,37 +2825,37 @@ function Cl(e, t, n, o, l, s) {
2825
2825
  _: 1
2826
2826
  });
2827
2827
  }
2828
- const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba"]]), Bl = "rtl", Rl = {
2828
+ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba"]]), Rl = "rtl", Bl = {
2829
2829
  __name: "PageEditor",
2830
2830
  setup(e) {
2831
- const t = R(!1);
2832
- R(1);
2831
+ const t = O(!1);
2832
+ O(1);
2833
2833
  const n = se(), o = X(), l = w(() => o.pages[n.path]);
2834
2834
  return (s, i) => {
2835
- const c = A("VIcon"), d = St;
2836
- return a(), y(O, null, [
2835
+ const c = A("VIcon"), p = xt;
2836
+ return a(), y($, null, [
2837
2837
  u(c, {
2838
2838
  name: "ra-set",
2839
- onClick: i[0] || (i[0] = (m) => t.value = !p(t))
2839
+ onClick: i[0] || (i[0] = (m) => t.value = !d(t))
2840
2840
  }),
2841
- u(d, {
2842
- modelValue: p(t),
2841
+ u(p, {
2842
+ modelValue: d(t),
2843
2843
  "onUpdate:modelValue": i[1] || (i[1] = (m) => dt(t) ? t.value = m : null),
2844
2844
  title: "页面设计",
2845
2845
  class: "my-drawer",
2846
- direction: Bl,
2846
+ direction: Rl,
2847
2847
  size: "90%",
2848
2848
  "destroy-on-close": "",
2849
2849
  "append-to-body": ""
2850
2850
  }, {
2851
2851
  default: r(() => [
2852
- p(l).formItems !== void 0 ? (a(), h(al, {
2852
+ d(l).formItems !== void 0 ? (a(), f(al, {
2853
2853
  key: 0,
2854
- schema: p(l)
2854
+ schema: d(l)
2855
2855
  }, null, 8, ["schema"])) : B("", !0),
2856
- p(l).headers !== void 0 ? (a(), h(Tl, {
2856
+ d(l).headers !== void 0 ? (a(), f(Tl, {
2857
2857
  key: 1,
2858
- schema: p(l)
2858
+ schema: d(l)
2859
2859
  }, null, 8, ["schema"])) : B("", !0)
2860
2860
  ]),
2861
2861
  _: 1
@@ -2873,12 +2873,12 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2873
2873
  __name: "Navbar",
2874
2874
  setup(e) {
2875
2875
  const t = X(), n = U(), o = j();
2876
- R(!1);
2877
- const l = R(!1);
2878
- R(""), R(0);
2879
- const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar), d = w(() => o.name), m = w(() => o.nickname), f = w(() => n.nav), k = w(() => n), b = w(() => o), x = w(() => n.showPageJsonSchema || !1), { isDark: I, toggleTheme: T } = $t(), g = w(() => {
2880
- const D = k.value.envColor?.[b.value.env];
2881
- return I.value ? {
2876
+ O(!1);
2877
+ const l = O(!1);
2878
+ O(""), O(0);
2879
+ const s = w(() => n.defaultAvatar), i = w(() => t.sidebar), c = w(() => o.avatar), p = w(() => o.name), m = w(() => o.nickname), h = w(() => n.nav), g = w(() => n), b = w(() => o), x = w(() => n.showPageJsonSchema || !1), { isDark: E, toggleTheme: T } = At(), I = w(() => {
2880
+ const D = g.value.envColor?.[b.value.env];
2881
+ return E.value ? {
2882
2882
  background: "linear-gradient(135deg, rgba(59, 130, 246, 0.55) 0%, rgba(37, 99, 235, 0.45) 45%, rgba(15, 23, 42, 0.92) 100%)",
2883
2883
  borderBottom: "1px solid rgba(148, 163, 184, 0.35)",
2884
2884
  boxShadow: "0 1px 8px rgba(15, 23, 42, 0.7)"
@@ -2892,27 +2892,27 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2892
2892
  boxShadow: "0 1px 4px rgba(15, 23, 42, 0.05)"
2893
2893
  };
2894
2894
  });
2895
- Ue(() => {
2896
- ft("el-submenu is-active");
2895
+ Ve(() => {
2896
+ ht("el-submenu is-active");
2897
2897
  const D = _("navBarNotice") || "";
2898
- D.length > 0 && !_("closeNavNotice") && G(D) && window?.App?.config?.globalProperties?.$notify({
2898
+ D.length > 0 && !_("closeNavNotice") && Z(D) && window?.App?.config?.globalProperties?.$notify({
2899
2899
  title: "提示",
2900
2900
  message: D,
2901
2901
  dangerouslyUseHTMLString: !0,
2902
2902
  duration: 0,
2903
2903
  onClose: V
2904
- }), k.value.envColor?.[b.value.env] && _n({
2905
- elRef: E.value.$el,
2904
+ }), g.value.envColor?.[b.value.env] && _n({
2905
+ elRef: R.value.$el,
2906
2906
  waterMark: b.value.env,
2907
2907
  color: "skyblue",
2908
2908
  size: "20"
2909
2909
  });
2910
2910
  });
2911
- const E = R();
2912
- function $() {
2911
+ const R = O();
2912
+ function v() {
2913
2913
  t.toggleSideBar();
2914
2914
  }
2915
- async function ee() {
2915
+ async function F() {
2916
2916
  await o.logout();
2917
2917
  const D = window?.App?.config?.globalProperties?.$router?.currentRoute?.value;
2918
2918
  location.reload(`${location.origin}/#/login?redirect=${D?.fullPath || "/"}`);
@@ -2921,71 +2921,71 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
2921
2921
  return n[D];
2922
2922
  }
2923
2923
  async function V() {
2924
- n.updateSettings({ closeNavNotice: !0 }), Kt(_("navBarNotice"));
2924
+ n.updateSettings({ closeNavNotice: !0 }), ie(_("navBarNotice"));
2925
2925
  }
2926
- function G(D) {
2926
+ function Z(D) {
2927
2927
  const M = "dismiss:navbar_notice";
2928
- return fe.exist(M) ? fe.get(M) !== D : !0;
2928
+ return he.exist(M) ? he.get(M) !== D : !0;
2929
2929
  }
2930
- function Kt(D) {
2931
- fe.set("dismiss:navbar_notice", D);
2930
+ function ie(D) {
2931
+ he.set("dismiss:navbar_notice", D);
2932
2932
  }
2933
2933
  return (D, M) => {
2934
- const Qe = Fe, Jt = Vn, Wt = Un, Xe = Fn, Qt = Hn, Xt = qn, Zt = St, Yt = xe;
2935
- return a(), h(Yt, {
2934
+ const Xe = Ge, Jt = Vn, Wt = Un, Ze = Fn, Qt = Hn, Xt = qn, Zt = xt, Yt = Ee;
2935
+ return a(), f(Yt, {
2936
2936
  ref_key: "header",
2937
- ref: E,
2937
+ ref: R,
2938
2938
  class: "navbar",
2939
- style: ln(g.value)
2939
+ style: ln(I.value)
2940
2940
  }, {
2941
2941
  default: r(() => [
2942
- u(Qe, { span: 16 }, {
2942
+ u(Xe, { span: 16 }, {
2943
2943
  default: r(() => [
2944
2944
  u(Vo, {
2945
2945
  "is-active": i.value.opened,
2946
2946
  class: "hamburger-container",
2947
- onToggleClick: $
2947
+ onToggleClick: v
2948
2948
  }, null, 8, ["is-active"]),
2949
2949
  u(jo, { class: "breadcrumb-container" })
2950
2950
  ]),
2951
2951
  _: 1
2952
2952
  }),
2953
- u(Qe, { span: 8 }, {
2953
+ u(Xe, { span: 8 }, {
2954
2954
  default: r(() => [
2955
- v("div", Ol, [
2955
+ k("div", Ol, [
2956
2956
  x.value ? (a(), y("div", $l, [
2957
- u(Rl)
2957
+ u(Bl)
2958
2958
  ])) : B("", !0),
2959
- v("div", Al, [
2960
- u(p(Ge), { buttons: f.value }, null, 8, ["buttons"])
2959
+ k("div", Al, [
2960
+ u(d(ze), { buttons: h.value }, null, 8, ["buttons"])
2961
2961
  ]),
2962
2962
  u(Wt, {
2963
2963
  placement: "bottom",
2964
- content: p(I) ? "切换为明亮模式" : "切换为暗黑模式"
2964
+ content: d(E) ? "切换为明亮模式" : "切换为暗黑模式"
2965
2965
  }, {
2966
2966
  default: r(() => [
2967
- v("div", {
2967
+ k("div", {
2968
2968
  class: "right-item theme-toggle",
2969
2969
  role: "button",
2970
2970
  tabindex: "0",
2971
2971
  onClick: M[0] || (M[0] = //@ts-ignore
2972
- (...te) => p(T) && p(T)(...te)),
2972
+ (...te) => d(T) && d(T)(...te)),
2973
2973
  onKeydown: [
2974
- M[1] || (M[1] = Ze(Ye(
2974
+ M[1] || (M[1] = Ye(et(
2975
2975
  //@ts-ignore
2976
- (...te) => p(T) && p(T)(...te),
2976
+ (...te) => d(T) && d(T)(...te),
2977
2977
  ["prevent"]
2978
2978
  ), ["enter"])),
2979
- M[2] || (M[2] = Ze(Ye(
2979
+ M[2] || (M[2] = Ye(et(
2980
2980
  //@ts-ignore
2981
- (...te) => p(T) && p(T)(...te),
2981
+ (...te) => d(T) && d(T)(...te),
2982
2982
  ["prevent"]
2983
2983
  ), ["space"]))
2984
2984
  ]
2985
2985
  }, [
2986
2986
  u(Jt, null, {
2987
2987
  default: r(() => [
2988
- (a(), h(pt(p(I) ? p(lo) : p(so))))
2988
+ (a(), f(mt(d(E) ? d(lo) : d(so))))
2989
2989
  ]),
2990
2990
  _: 1
2991
2991
  })
@@ -3000,7 +3000,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3000
3000
  dropdown: r(() => [
3001
3001
  u(Qt, { class: "user-dropdown" }, {
3002
3002
  default: r(() => [
3003
- u(Xe, {
3003
+ u(Ze, {
3004
3004
  icon: "oms-icon-index",
3005
3005
  onClick: M[3] || (M[3] = (te) => D.$router.push("/"))
3006
3006
  }, {
@@ -3009,10 +3009,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3009
3009
  ])]),
3010
3010
  _: 1
3011
3011
  }),
3012
- u(Xe, {
3012
+ u(Ze, {
3013
3013
  divided: "",
3014
3014
  icon: "el-icon-switch-button",
3015
- onClick: ee
3015
+ onClick: F
3016
3016
  }, {
3017
3017
  default: r(() => [...M[6] || (M[6] = [
3018
3018
  C("退出登录", -1)
@@ -3024,14 +3024,14 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3024
3024
  })
3025
3025
  ]),
3026
3026
  default: r(() => [
3027
- v("div", Pl, [
3028
- v("img", {
3027
+ k("div", Pl, [
3028
+ k("img", {
3029
3029
  src: c.value ? c.value : s.value,
3030
3030
  class: "user-avatar",
3031
3031
  alt: "头像"
3032
3032
  }, null, 8, Ll),
3033
3033
  M[4] || (M[4] = C()),
3034
- v("span", Ml, N(m.value || d.value), 1)
3034
+ k("span", Ml, N(m.value || p.value), 1)
3035
3035
  ])
3036
3036
  ]),
3037
3037
  _: 1
@@ -3040,7 +3040,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3040
3040
  ]),
3041
3041
  _: 1
3042
3042
  }),
3043
- l.value ? (a(), h(Zt, {
3043
+ l.value ? (a(), f(Zt, {
3044
3044
  key: 0,
3045
3045
  "with-header": !1,
3046
3046
  size: "50%"
@@ -3063,11 +3063,11 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3063
3063
  return (l, s) => {
3064
3064
  const i = A("router-link");
3065
3065
  return a(), y("div", {
3066
- class: Z(["sidebar-logo-container", { collapse: l.collapse }])
3066
+ class: Y(["sidebar-logo-container", { collapse: l.collapse }])
3067
3067
  }, [
3068
3068
  u(sn, { name: "sidebarLogoFade" }, {
3069
3069
  default: r(() => [
3070
- l.collapse ? (a(), h(i, {
3070
+ l.collapse ? (a(), f(i, {
3071
3071
  key: "collapse",
3072
3072
  class: "sidebar-logo-link",
3073
3073
  to: "/"
@@ -3078,10 +3078,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3078
3078
  src: o.value,
3079
3079
  class: "sidebar-logo"
3080
3080
  }, null, 8, Nl)) : (a(), y("h1", Ul, N(n.value), 1)),
3081
- s[0] || (s[0] = v("div", null, "系统", -1))
3081
+ s[0] || (s[0] = k("div", null, "系统", -1))
3082
3082
  ]),
3083
3083
  _: 1
3084
- })) : (a(), h(i, {
3084
+ })) : (a(), f(i, {
3085
3085
  key: "expand",
3086
3086
  class: "sidebar-logo-link",
3087
3087
  to: "/"
@@ -3092,7 +3092,7 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3092
3092
  src: o.value,
3093
3093
  class: "sidebar-logo"
3094
3094
  }, null, 8, Vl)) : B("", !0),
3095
- v("h1", ql, N(n.value), 1)
3095
+ k("h1", ql, N(n.value), 1)
3096
3096
  ]),
3097
3097
  _: 1
3098
3098
  }))
@@ -3115,10 +3115,10 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3115
3115
  },
3116
3116
  methods: {
3117
3117
  compType(e) {
3118
- return et(e) || this.newTab ? "a" : "router-link";
3118
+ return tt(e) || this.newTab ? "a" : "router-link";
3119
3119
  },
3120
3120
  linkProps(e) {
3121
- return et(e) ? {
3121
+ return tt(e) ? {
3122
3122
  is: "a",
3123
3123
  href: e,
3124
3124
  target: "_blank",
@@ -3136,9 +3136,9 @@ const Tl = /* @__PURE__ */ L(Il, [["render", Cl], ["__scopeId", "data-v-af2552ba
3136
3136
  }
3137
3137
  };
3138
3138
  function zl(e, t, n, o, l, s) {
3139
- return a(), h(pt(s.compType(n.to)), le(ke(s.linkProps(n.to))), {
3139
+ return a(), f(mt(s.compType(n.to)), le(we(s.linkProps(n.to))), {
3140
3140
  default: r(() => [
3141
- re(e.$slots, "default")
3141
+ ce(e.$slots, "default")
3142
3142
  ]),
3143
3143
  _: 3
3144
3144
  }, 16);
@@ -3178,11 +3178,11 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3178
3178
  setup(e) {
3179
3179
  return (t, n) => {
3180
3180
  const o = A("VIcon");
3181
- return a(), y(O, null, [
3181
+ return a(), y($, null, [
3182
3182
  u(o, {
3183
3183
  name: e.meta.icon || "ra-all"
3184
3184
  }, null, 8, ["name"]),
3185
- v("span", Wl, N(e.meta.title), 1)
3185
+ k("span", Wl, N(e.meta.title), 1)
3186
3186
  ], 64);
3187
3187
  };
3188
3188
  }
@@ -3210,14 +3210,29 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3210
3210
  },
3211
3211
  methods: {
3212
3212
  itemClick() {
3213
- fe.remove("table_filter:" + this.$props.to);
3213
+ he.remove("table_filter:" + this.$props.to);
3214
3214
  },
3215
3215
  getTo(e) {
3216
3216
  try {
3217
- return this.$router.resolve(e.redirect ? e.redirect : e).fullPath;
3217
+ return this.resolveRoute(e);
3218
3218
  } catch {
3219
3219
  return console.error("路由解析错误"), "/";
3220
3220
  }
3221
+ },
3222
+ resolveRoute(e) {
3223
+ const t = e && e.redirect ? e.redirect : e;
3224
+ if (!t)
3225
+ return "/";
3226
+ if (typeof t == "string")
3227
+ return t;
3228
+ if (t.path)
3229
+ return t.path;
3230
+ if (t.name && this.$router.hasRoute(t.name)) {
3231
+ const n = this.$router.getRoutes().find((o) => o.name === t.name);
3232
+ if (n)
3233
+ return n.path;
3234
+ }
3235
+ return "/";
3221
3236
  }
3222
3237
  }
3223
3238
  }, Zl = {
@@ -3225,10 +3240,10 @@ const Kl = /* @__PURE__ */ L(Gl, [["render", zl]]), Jl = {
3225
3240
  class: "menu-wrapper"
3226
3241
  };
3227
3242
  function Yl(e, t, n, o, l, s) {
3228
- const i = A("menu-content"), c = Gn, d = A("app-link"), m = A("sidebar-item", !0), f = zn;
3243
+ const i = A("menu-content"), c = Gn, p = A("app-link"), m = A("sidebar-item", !0), h = zn;
3229
3244
  return n.item.hidden !== !1 ? (a(), y("div", Zl, [
3230
- n.item.meta && n.item.meta.menuType === 2 ? (a(), y(O, { key: 0 }, [
3231
- n.item.meta ? (a(), h(d, {
3245
+ n.item.meta && n.item.meta.menuType === 2 ? (a(), y($, { key: 0 }, [
3246
+ n.item.meta ? (a(), f(p, {
3232
3247
  key: 0,
3233
3248
  to: n.to,
3234
3249
  "new-tab": n.item.meta.newTab
@@ -3236,7 +3251,7 @@ function Yl(e, t, n, o, l, s) {
3236
3251
  default: r(() => [
3237
3252
  u(c, {
3238
3253
  index: n.to,
3239
- class: Z({ "submenu-title-noDropdown": !n.isNest }),
3254
+ class: Y({ "submenu-title-noDropdown": !n.isNest }),
3240
3255
  onClick: s.itemClick
3241
3256
  }, {
3242
3257
  default: r(() => [
@@ -3249,14 +3264,14 @@ function Yl(e, t, n, o, l, s) {
3249
3264
  ]),
3250
3265
  _: 1
3251
3266
  }, 8, ["to", "new-tab"])) : B("", !0)
3252
- ], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (a(), h(f, {
3267
+ ], 64)) : n.item.meta && n.item.meta.menuType === 1 ? (a(), f(h, {
3253
3268
  key: 1,
3254
3269
  ref: "subMenu",
3255
3270
  index: n.to,
3256
- class: Z({ "submenu-title-noDropdown": !n.isNest })
3271
+ class: Y({ "submenu-title-noDropdown": !n.isNest })
3257
3272
  }, {
3258
3273
  title: r(() => [
3259
- n.item.redirect && n.item.redirect !== "#" ? (a(), h(d, {
3274
+ n.item.redirect && n.item.redirect !== "#" ? (a(), f(p, {
3260
3275
  key: 0,
3261
3276
  to: n.to
3262
3277
  }, {
@@ -3266,17 +3281,17 @@ function Yl(e, t, n, o, l, s) {
3266
3281
  }, null, 8, ["meta"])
3267
3282
  ]),
3268
3283
  _: 1
3269
- }, 8, ["to"])) : (a(), h(i, {
3284
+ }, 8, ["to"])) : (a(), f(i, {
3270
3285
  key: 1,
3271
3286
  meta: n.item.meta
3272
3287
  }, null, 8, ["meta"]))
3273
3288
  ]),
3274
3289
  default: r(() => [
3275
- (a(!0), y(O, null, q(n.item.children, (k) => (a(), h(m, {
3276
- key: k.path,
3290
+ (a(!0), y($, null, q(n.item.children, (g) => (a(), f(m, {
3291
+ key: g.path,
3277
3292
  "is-nest": !0,
3278
- item: k,
3279
- to: s.getTo(k),
3293
+ item: g,
3294
+ to: s.getTo(g),
3280
3295
  class: "nest-menu"
3281
3296
  }, null, 8, ["item", "to"]))), 128))
3282
3297
  ]),
@@ -3289,64 +3304,72 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ K({
3289
3304
  setup(e) {
3290
3305
  const t = j();
3291
3306
  function n(m) {
3292
- return m.filter((f) => f.meta?.menuType === 0 ? !1 : (f.children && (f.children = n(f.children), f.children.length === 0 && delete f.children), !0));
3307
+ return m.filter((h) => h.meta?.menuType === 0 ? !1 : (h.children && (h.children = n(h.children), h.children.length === 0 && delete h.children), !0));
3293
3308
  }
3294
- const o = R(""), l = w(() => t.remoteRouter), s = Se(), i = w(() => {
3309
+ const o = O(""), l = w(() => t.remoteRouter), s = xe(), i = w(() => {
3295
3310
  let m = [];
3296
- return l.value.forEach((f) => {
3297
- m = m.concat(S(f.routes));
3311
+ return l.value.forEach((h) => {
3312
+ m = m.concat(S(h.routes));
3298
3313
  }), n(m);
3299
3314
  });
3300
3315
  function c(m) {
3301
- let f = m;
3302
- if (m.meta.menuType === 1 && m.children && m.children.length > 0) {
3303
- for (let k = 0; k < m.children.length; k++)
3304
- if (m.children[k].path.indexOf("/:") === -1) {
3305
- f = m.children[k];
3316
+ let h = m;
3317
+ if (m?.meta?.menuType === 1 && m.children && m.children.length > 0) {
3318
+ for (let b = 0; b < m.children.length; b++)
3319
+ if (m.children[b].path.indexOf("/:") === -1) {
3320
+ h = m.children[b];
3306
3321
  break;
3307
3322
  }
3308
3323
  }
3309
- return s.resolve(f.redirect ? f.redirect : f).fullPath;
3324
+ const g = h?.redirect || h;
3325
+ if (typeof g == "string")
3326
+ return g;
3327
+ if (g && g.name && s.hasRoute(g.name)) {
3328
+ const b = s.getRoutes().find((x) => x.name === g.name);
3329
+ if (b)
3330
+ return b.path;
3331
+ }
3332
+ return g && g.path ? g.path : "";
3310
3333
  }
3311
- function d(m) {
3312
- s.push(m), o.value = "";
3334
+ function p(m) {
3335
+ m && s.push(m), o.value = "";
3313
3336
  }
3314
- return (m, f) => {
3315
- const k = He, b = Kn, x = qe;
3316
- return a(), h(x, {
3317
- modelValue: p(o),
3318
- "onUpdate:modelValue": f[0] || (f[0] = (I) => dt(o) ? o.value = I : null),
3337
+ return (m, h) => {
3338
+ const g = Fe, b = Kn, x = He;
3339
+ return a(), f(x, {
3340
+ modelValue: d(o),
3341
+ "onUpdate:modelValue": h[0] || (h[0] = (E) => dt(o) ? o.value = E : null),
3319
3342
  filterable: "",
3320
3343
  placeholder: "搜索菜单...",
3321
3344
  class: "search-menu",
3322
- onChange: d
3345
+ onChange: p
3323
3346
  }, {
3324
3347
  default: r(() => [
3325
- (a(!0), y(O, null, q(p(i), (I) => (a(), y(O, {
3326
- key: I.path
3348
+ (a(!0), y($, null, q(d(i), (E) => (a(), y($, {
3349
+ key: E.path
3327
3350
  }, [
3328
- I.children !== void 0 ? (a(), y(O, { key: 0 }, [
3329
- I.meta.menuType !== 0 ? (a(), h(b, {
3330
- key: I.path + "-",
3331
- label: I.meta.title
3351
+ E.children !== void 0 ? (a(), y($, { key: 0 }, [
3352
+ E.meta.menuType !== 0 ? (a(), f(b, {
3353
+ key: E.path + "-",
3354
+ label: E.meta.title
3332
3355
  }, {
3333
3356
  default: r(() => [
3334
- (a(!0), y(O, null, q(I.children, (T, g) => (a(), y(O, {
3357
+ (a(!0), y($, null, q(E.children, (T, I) => (a(), y($, {
3335
3358
  key: T.path
3336
3359
  }, [
3337
- I.meta.menuType !== 0 ? (a(), h(k, {
3360
+ E.meta.menuType !== 0 ? (a(), f(g, {
3338
3361
  key: 0,
3339
- label: (g === I.children.length - 1 ? "└─" : "├─") + T.meta.title,
3362
+ label: (I === E.children.length - 1 ? "└─" : "├─") + T.meta.title,
3340
3363
  value: c(T)
3341
3364
  }, null, 8, ["label", "value"])) : B("", !0)
3342
3365
  ], 64))), 128))
3343
3366
  ]),
3344
3367
  _: 2
3345
3368
  }, 1032, ["label"])) : B("", !0)
3346
- ], 64)) : (a(), h(k, {
3369
+ ], 64)) : (a(), f(g, {
3347
3370
  key: 1,
3348
- label: "" + I.meta.title,
3349
- value: c(I)
3371
+ label: "" + E.meta.title,
3372
+ value: c(E)
3350
3373
  }, null, 8, ["label", "value"]))
3351
3374
  ], 64))), 128))
3352
3375
  ]),
@@ -3354,69 +3377,86 @@ const es = /* @__PURE__ */ L(Xl, [["render", Yl]]), ts = /* @__PURE__ */ K({
3354
3377
  }, 8, ["modelValue"]);
3355
3378
  };
3356
3379
  }
3357
- }), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-fb095d56"]]);
3358
- var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), F = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(F || {});
3380
+ }), ns = /* @__PURE__ */ L(ts, [["__scopeId", "data-v-c070ae29"]]);
3381
+ var J = /* @__PURE__ */ ((e) => (e[e.custom = 0] = "custom", e[e.list = 1] = "list", e[e.form = 2] = "form", e[e.customSchema = 3] = "customSchema", e[e.localComp = 4] = "localComp", e[e.tree = 5] = "tree", e[e.report = 6] = "report", e[e.entity = 7] = "entity", e))(J || {}), G = /* @__PURE__ */ ((e) => (e[e.hidden = 0] = "hidden", e[e.dir = 1] = "dir", e[e.menu = 2] = "menu", e[e.page = 3] = "page", e))(G || {});
3359
3382
  const os = /* @__PURE__ */ K({
3360
3383
  __name: "index",
3361
3384
  setup(e) {
3362
- const t = X(), n = j(), o = U(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), i = w(() => n.customRouter), c = Se(), d = se(), m = w(() => {
3363
- let g = [];
3364
- return c.options.routes.concat(i.value || []).forEach((E) => {
3365
- E.path === "/" ? g = g.concat(E.children || []) : g.push(E);
3385
+ const t = X(), n = j(), o = U(), l = w(() => t.sidebar), s = w(() => n.remoteRouter), i = w(() => n.customRouter), c = xe(), p = se(), m = w(() => {
3386
+ let R = [];
3387
+ return c.options.routes.concat(i.value || []).forEach((v) => {
3388
+ v.path === "/" ? R = R.concat(v.children || []) : R.push(v);
3366
3389
  }), S([
3367
- { label: "", routes: g },
3390
+ { label: "", routes: R },
3368
3391
  ...s.value
3369
3392
  ]);
3370
- }), f = w(() => {
3371
- const g = d.matched;
3372
- for (let E = g.length - 1; E >= 0; E--) {
3373
- const $ = g[E];
3374
- if ($.meta.menuType === F.menu)
3375
- return I(), c.resolve($.redirect ? $.redirect : $).fullPath;
3393
+ }), h = w(() => {
3394
+ const R = p.matched;
3395
+ for (let v = R.length - 1; v >= 0; v--) {
3396
+ const F = R[v];
3397
+ if (F.meta.menuType === G.menu)
3398
+ return E(), T(F);
3376
3399
  }
3377
3400
  return "";
3378
- }), k = w(() => o.sidebarLogo), b = w(() => ({
3401
+ }), g = w(() => o.sidebarLogo), b = w(() => ({
3379
3402
  menuBg: "#304156",
3380
3403
  menuText: "#bfcbd9",
3381
3404
  menuActiveText: "#409EFF"
3382
3405
  })), x = w(() => !l.value.opened);
3383
- Ue(() => I());
3384
- function I() {
3385
- ft("is-active", 200);
3406
+ Ve(() => E());
3407
+ function E() {
3408
+ ht("is-active", 200);
3386
3409
  }
3387
- function T(g) {
3388
- return g.filter((E) => [F.dir, F.menu].indexOf(E.meta.menuType) !== -1).map((E) => (E = Object.assign({}, E), E.children && (E.children = T(E.children)), E));
3410
+ function T(R) {
3411
+ const v = R?.redirect || R;
3412
+ if (!v)
3413
+ return "";
3414
+ if (typeof v == "string")
3415
+ return v;
3416
+ if (typeof v == "object") {
3417
+ if (v.path)
3418
+ return v.path;
3419
+ if (v.name && c.hasRoute(v.name)) {
3420
+ const F = c.getRoutes().find((_) => _.name === v.name);
3421
+ if (F)
3422
+ return F.path;
3423
+ }
3424
+ }
3425
+ return "";
3389
3426
  }
3390
- return (g, E) => {
3391
- const $ = Wn, ee = Jn;
3427
+ function I(R) {
3428
+ return R.filter((v) => [G.dir, G.menu].indexOf(v.meta.menuType) !== -1).map((v) => (v = Object.assign({}, v), v.children && (v.children = I(v.children)), v));
3429
+ }
3430
+ return (R, v) => {
3431
+ const F = Wn, _ = Jn;
3392
3432
  return a(), y("div", {
3393
- class: Z({ "has-logo": p(k) })
3433
+ class: Y({ "has-logo": d(g) })
3394
3434
  }, [
3395
- p(k) ? (a(), h(Fl, {
3435
+ d(g) ? (a(), f(Fl, {
3396
3436
  key: 0,
3397
- collapse: p(x)
3437
+ collapse: d(x)
3398
3438
  }, null, 8, ["collapse"])) : B("", !0),
3399
- u(ee, { "wrap-class": "scrollbar-wrapper" }, {
3439
+ u(_, { "wrap-class": "scrollbar-wrapper" }, {
3400
3440
  default: r(() => [
3401
- p(x) ? B("", !0) : (a(), h(ns, { key: 0 })),
3402
- u($, {
3403
- "default-active": p(f),
3404
- collapse: p(x),
3405
- "background-color": p(b).menuBg,
3406
- "text-color": p(b).menuText,
3441
+ d(x) ? B("", !0) : (a(), f(ns, { key: 0 })),
3442
+ u(F, {
3443
+ "default-active": d(h),
3444
+ collapse: d(x),
3445
+ "background-color": d(b).menuBg,
3446
+ "text-color": d(b).menuText,
3407
3447
  "unique-opened": !1,
3408
- "active-text-color": p(b).menuActiveText,
3448
+ "active-text-color": d(b).menuActiveText,
3409
3449
  "collapse-transition": !1,
3410
3450
  mode: "vertical"
3411
3451
  }, {
3412
3452
  default: r(() => [
3413
- (a(!0), y(O, null, q(p(m), (_, V) => (a(), y(O, {
3414
- key: V + "-module"
3453
+ (a(!0), y($, null, q(d(m), (V, Z) => (a(), y($, {
3454
+ key: Z + "-module"
3415
3455
  }, [
3416
- (a(!0), y(O, null, q(T(_.routes), (G) => (a(), h(es, {
3417
- key: G.path,
3418
- item: G,
3419
- to: g.$router.resolve(G.redirect ? G.redirect : G).fullPath
3456
+ (a(!0), y($, null, q(I(V.routes), (ie) => (a(), f(es, {
3457
+ key: ie.path,
3458
+ item: ie,
3459
+ to: T(ie)
3420
3460
  }, null, 8, ["item", "to"]))), 128))
3421
3461
  ], 64))), 128))
3422
3462
  ]),
@@ -3428,17 +3468,17 @@ const os = /* @__PURE__ */ K({
3428
3468
  ], 2);
3429
3469
  };
3430
3470
  }
3431
- }), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-5b1cbaf5"]]), ss = { class: "app-main" }, is = {
3471
+ }), ls = /* @__PURE__ */ L(os, [["__scopeId", "data-v-ff172e55"]]), ss = { class: "app-main" }, is = {
3432
3472
  __name: "AppMain",
3433
3473
  setup(e) {
3434
- const t = se(), n = [], o = R(0);
3474
+ const t = se(), n = [], o = O(0);
3435
3475
  return On(() => {
3436
3476
  t.meta?.keepAlive && n.indexOf(t.name) && n.push(t.name), o.value++;
3437
3477
  }), (l, s) => {
3438
3478
  const i = A("router-view"), c = Qn;
3439
3479
  return a(), y("section", ss, [
3440
- (a(), h(i, {
3441
- key: l.$route.fullPath + p(o)
3480
+ (a(), f(i, {
3481
+ key: l.$route.fullPath + d(o)
3442
3482
  })),
3443
3483
  u(c, { bottom: 50 })
3444
3484
  ]);
@@ -3452,45 +3492,45 @@ const os = /* @__PURE__ */ K({
3452
3492
  openSidebar: l.value.opened,
3453
3493
  withoutAnimation: l.value.withoutAnimation,
3454
3494
  mobile: s.value === "mobile"
3455
- })), d = () => t.getBoundingClientRect().width - 1 < cs;
3456
- io(window, "resize", () => f());
3457
- const m = () => n.closeSideBar({ withoutAnimation: !1 }), f = () => {
3495
+ })), p = () => t.getBoundingClientRect().width - 1 < cs;
3496
+ io(window, "resize", () => h());
3497
+ const m = () => n.closeSideBar({ withoutAnimation: !1 }), h = () => {
3458
3498
  if (!document.hidden) {
3459
- const k = d();
3460
- n.toggleDevice(k ? "mobile" : "desktop"), k && n.closeSideBar({ withoutAnimation: !0 });
3499
+ const g = p();
3500
+ n.toggleDevice(g ? "mobile" : "desktop"), g && n.closeSideBar({ withoutAnimation: !0 });
3461
3501
  }
3462
3502
  };
3463
- return (k, b) => (a(), y("div", {
3464
- class: Z([p(c), "app-wrapper"])
3503
+ return (g, b) => (a(), y("div", {
3504
+ class: Y([d(c), "app-wrapper"])
3465
3505
  }, [
3466
- p(s) === "mobile" && p(l).opened ? (a(), y("div", {
3506
+ d(s) === "mobile" && d(l).opened ? (a(), y("div", {
3467
3507
  key: 0,
3468
3508
  class: "drawer-bg",
3469
3509
  onClick: m
3470
3510
  })) : B("", !0),
3471
- u(p(ls), { class: "sidebar-container" }),
3472
- v("div", rs, [
3473
- v("div", {
3474
- class: Z({ "fixed-header": p(i) })
3511
+ u(d(ls), { class: "sidebar-container" }),
3512
+ k("div", rs, [
3513
+ k("div", {
3514
+ class: Y({ "fixed-header": d(i) })
3475
3515
  }, [
3476
- u(p(jl))
3516
+ u(d(jl))
3477
3517
  ], 2),
3478
- u(p(as))
3518
+ u(d(as))
3479
3519
  ])
3480
3520
  ], 2));
3481
3521
  }
3482
- }, jt = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b7ab74f0"]]), ds = { id: "login" }, ps = { id: "form" }, ms = {
3522
+ }, Nt = /* @__PURE__ */ L(us, [["__scopeId", "data-v-b7ab74f0"]]), ps = { id: "login" }, ds = { id: "form" }, ms = {
3483
3523
  key: 0,
3484
3524
  class: "captcha"
3485
3525
  }, fs = ["src"], hs = { class: "tips" }, bs = { class: "sso" }, ys = /* @__PURE__ */ K({
3486
3526
  __name: "login",
3487
3527
  setup(e) {
3488
- const t = Se(), n = se(), o = U(), l = X(), s = j(), i = w(() => o.loginTips), c = w(() => o.captcha), d = w(() => l.baseURL), m = R(0), f = () => m.value++, k = w(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), b = R({
3528
+ const t = xe(), n = se(), o = U(), l = X(), s = j(), i = w(() => o.loginTips), c = w(() => o.captcha), p = w(() => l.baseURL), m = O(0), h = () => m.value++, g = w(() => b.value.username.length > 0 && b.value.password.length >= 4 && (c.value ? b.value.captcha.length === 4 : !0)), b = O({
3489
3529
  username: "",
3490
3530
  password: "",
3491
3531
  captcha: "",
3492
3532
  sing: ""
3493
- }), x = R(!1), I = () => {
3533
+ }), x = O(!1), E = () => {
3494
3534
  if (!x.value) {
3495
3535
  if (b.value.username === "" || b.value.password === "" || c.value && b.value.captcha === "") {
3496
3536
  Xn.error("用户名, 密码, 验证码是必须的");
@@ -3505,61 +3545,61 @@ const os = /* @__PURE__ */ K({
3505
3545
  });
3506
3546
  }
3507
3547
  };
3508
- return (T, g) => {
3509
- const E = pe;
3510
- return a(), y("div", ds, [
3511
- g[4] || (g[4] = v("h1", { id: "title" }, "登录", -1)),
3512
- v("form", ps, [
3513
- Ce(v("input", {
3514
- "onUpdate:modelValue": g[0] || (g[0] = ($) => p(b).username = $),
3548
+ return (T, I) => {
3549
+ const R = me;
3550
+ return a(), y("div", ps, [
3551
+ I[4] || (I[4] = k("h1", { id: "title" }, "登录", -1)),
3552
+ k("form", ds, [
3553
+ Te(k("input", {
3554
+ "onUpdate:modelValue": I[0] || (I[0] = (v) => d(b).username = v),
3515
3555
  type: "text",
3516
3556
  placeholder: "用户名",
3517
3557
  class: "input"
3518
3558
  }, null, 512), [
3519
- [Te, p(b).username]
3559
+ [Re, d(b).username]
3520
3560
  ]),
3521
- Ce(v("input", {
3522
- "onUpdate:modelValue": g[1] || (g[1] = ($) => p(b).password = $),
3561
+ Te(k("input", {
3562
+ "onUpdate:modelValue": I[1] || (I[1] = (v) => d(b).password = v),
3523
3563
  type: "password",
3524
3564
  placeholder: "密码",
3525
3565
  class: "input"
3526
3566
  }, null, 512), [
3527
- [Te, p(b).password]
3567
+ [Re, d(b).password]
3528
3568
  ]),
3529
3569
  c.value ? (a(), y("div", ms, [
3530
- Ce(v("input", {
3531
- "onUpdate:modelValue": g[2] || (g[2] = ($) => p(b).captcha = $),
3570
+ Te(k("input", {
3571
+ "onUpdate:modelValue": I[2] || (I[2] = (v) => d(b).captcha = v),
3532
3572
  type: "text",
3533
3573
  placeholder: "验证码",
3534
3574
  class: "input-captcha"
3535
3575
  }, null, 512), [
3536
- [Te, p(b).captcha]
3576
+ [Re, d(b).captcha]
3537
3577
  ]),
3538
- v("img", {
3578
+ k("img", {
3539
3579
  class: "captcha-img",
3540
- src: d.value + "/user/captcha?ts=" + p(m),
3580
+ src: p.value + "/user/captcha?ts=" + d(m),
3541
3581
  title: "点击刷新",
3542
- onClick: f
3582
+ onClick: h
3543
3583
  }, null, 8, fs)
3544
3584
  ])) : B("", !0),
3545
- u(E, {
3585
+ u(R, {
3546
3586
  class: "login-button",
3547
3587
  type: "primary",
3548
- loading: p(x),
3549
- disabled: !k.value || p(x),
3550
- onClick: I
3588
+ loading: d(x),
3589
+ disabled: !g.value || d(x),
3590
+ onClick: E
3551
3591
  }, {
3552
3592
  default: r(() => [
3553
- C(N(p(x) ? "登录中…" : "登录"), 1)
3593
+ C(N(d(x) ? "登录中…" : "登录"), 1)
3554
3594
  ]),
3555
3595
  _: 1
3556
3596
  }, 8, ["loading", "disabled"]),
3557
- v("div", hs, [
3558
- v("div", null, N(i.value), 1)
3597
+ k("div", hs, [
3598
+ k("div", null, N(i.value), 1)
3559
3599
  ]),
3560
- v("div", bs, [
3561
- g[3] || (g[3] = v("div", { id: "sso-qrcode" }, null, -1)),
3562
- (a(!0), y(O, null, q(Object.keys([]), ($) => (a(), y("div", { key: $ }, N($), 1))), 128))
3600
+ k("div", bs, [
3601
+ I[3] || (I[3] = k("div", { id: "sso-qrcode" }, null, -1)),
3602
+ (a(!0), y($, null, q(Object.keys([]), (v) => (a(), y("div", { key: v }, N(v), 1))), 128))
3563
3603
  ])
3564
3604
  ])
3565
3605
  ]);
@@ -3567,10 +3607,10 @@ const os = /* @__PURE__ */ K({
3567
3607
  }
3568
3608
  }), _s = {
3569
3609
  name: "NotFoundPage"
3570
- }, vs = { class: "not-found" };
3571
- function gs(e, t, n, o, l, s) {
3572
- return a(), y("div", vs, [...t[0] || (t[0] = [
3573
- v("svg", {
3610
+ }, gs = { class: "not-found" };
3611
+ function vs(e, t, n, o, l, s) {
3612
+ return a(), y("div", gs, [...t[0] || (t[0] = [
3613
+ k("svg", {
3574
3614
  width: "380px",
3575
3615
  height: "500px",
3576
3616
  viewBox: "0 0 837 1045",
@@ -3579,7 +3619,7 @@ function gs(e, t, n, o, l, s) {
3579
3619
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3580
3620
  "xmlns:sketch": "http://www.bohemiancoding.com/sketch/ns"
3581
3621
  }, [
3582
- v("g", {
3622
+ k("g", {
3583
3623
  id: "Page-1",
3584
3624
  stroke: "none",
3585
3625
  "stroke-width": "1",
@@ -3587,35 +3627,35 @@ function gs(e, t, n, o, l, s) {
3587
3627
  "fill-rule": "evenodd",
3588
3628
  "sketch:type": "MSPage"
3589
3629
  }, [
3590
- v("path", {
3630
+ k("path", {
3591
3631
  id: "Polygon-1",
3592
3632
  d: "M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z",
3593
3633
  stroke: "#007FB2",
3594
3634
  "stroke-width": "6",
3595
3635
  "sketch:type": "MSShapeGroup"
3596
3636
  }),
3597
- v("path", {
3637
+ k("path", {
3598
3638
  id: "Polygon-2",
3599
3639
  d: "M78.5,529 L147,569.186414 L147,648.311216 L78.5,687 L10,648.311216 L10,569.186414 L78.5,529 Z",
3600
3640
  stroke: "#EF4A5B",
3601
3641
  "stroke-width": "6",
3602
3642
  "sketch:type": "MSShapeGroup"
3603
3643
  }),
3604
- v("path", {
3644
+ k("path", {
3605
3645
  id: "Polygon-3",
3606
3646
  d: "M773,186 L827,217.538705 L827,279.636651 L773,310 L719,279.636651 L719,217.538705 L773,186 Z",
3607
3647
  stroke: "#795D9C",
3608
3648
  "stroke-width": "6",
3609
3649
  "sketch:type": "MSShapeGroup"
3610
3650
  }),
3611
- v("path", {
3651
+ k("path", {
3612
3652
  id: "Polygon-4",
3613
3653
  d: "M639,529 L773,607.846761 L773,763.091627 L639,839 L505,763.091627 L505,607.846761 L639,529 Z",
3614
3654
  stroke: "#F2773F",
3615
3655
  "stroke-width": "6",
3616
3656
  "sketch:type": "MSShapeGroup"
3617
3657
  }),
3618
- v("path", {
3658
+ k("path", {
3619
3659
  id: "Polygon-5",
3620
3660
  d: "M281,801 L383,861.025276 L383,979.21169 L281,1037 L179,979.21169 L179,861.025276 L281,801 Z",
3621
3661
  stroke: "#36B455",
@@ -3624,12 +3664,12 @@ function gs(e, t, n, o, l, s) {
3624
3664
  })
3625
3665
  ])
3626
3666
  ], -1),
3627
- v("div", { class: "message-box" }, [
3628
- v("h1", null, "404"),
3629
- v("p", null, "Page not found"),
3630
- v("div", { class: "buttons-con" }, [
3631
- v("div", { class: "action-link-wrap" }, [
3632
- v("a", {
3667
+ k("div", { class: "message-box" }, [
3668
+ k("h1", null, "404"),
3669
+ k("p", null, "Page not found"),
3670
+ k("div", { class: "buttons-con" }, [
3671
+ k("div", { class: "action-link-wrap" }, [
3672
+ k("a", {
3633
3673
  href: "",
3634
3674
  class: "link-button"
3635
3675
  }, "Go to Home Page")
@@ -3638,10 +3678,10 @@ function gs(e, t, n, o, l, s) {
3638
3678
  ], -1)
3639
3679
  ])]);
3640
3680
  }
3641
- const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803"]]), ws = [
3681
+ const ks = /* @__PURE__ */ L(_s, [["render", vs], ["__scopeId", "data-v-26068803"]]), ws = [
3642
3682
  {
3643
3683
  path: "/",
3644
- component: jt,
3684
+ component: Nt,
3645
3685
  redirect: "/dashboard",
3646
3686
  name: "Root",
3647
3687
  meta: {
@@ -3695,28 +3735,28 @@ const ks = /* @__PURE__ */ L(_s, [["render", gs], ["__scopeId", "data-v-26068803
3695
3735
  history: An(),
3696
3736
  routes: ws
3697
3737
  });
3698
- Le.configure({ showSpinner: !1 });
3738
+ Me.configure({ showSpinner: !1 });
3699
3739
  function Ss(e) {
3700
3740
  e.beforeEach((t, n, o) => {
3701
- Le.start(), t.preHash = location.hash.replace("#", ""), o();
3741
+ Me.start(), t.preHash = location.hash.replace("#", ""), o();
3702
3742
  }), e.afterEach((t) => {
3703
3743
  const n = j(P);
3704
3744
  t.matched.length > 0 && n.updateState({
3705
3745
  key: "path",
3706
3746
  value: t.matched[t.matched.length - 1].path.replace("(\\d+)", "")
3707
- }), Le.done();
3747
+ }), Me.done();
3708
3748
  });
3709
3749
  }
3710
3750
  function xs() {
3711
3751
  return j(P).isLodeRemoteRoutes;
3712
3752
  }
3713
- function Nt() {
3753
+ function Ut() {
3714
3754
  return U(P).whiteRoutes || [];
3715
3755
  }
3716
3756
  function Es() {
3717
3757
  return j(P).token;
3718
3758
  }
3719
- class Ut {
3759
+ class Vt {
3720
3760
  type = "qrcode";
3721
3761
  flag() {
3722
3762
  }
@@ -3726,14 +3766,14 @@ class Ut {
3726
3766
  showQrCode() {
3727
3767
  }
3728
3768
  }
3729
- class $a extends Ut {
3769
+ class $a extends Vt {
3730
3770
  type = "jump";
3731
3771
  client_id = "";
3732
3772
  constructor(t) {
3733
3773
  super(), this.client_id = t.client_id;
3734
3774
  }
3735
3775
  flag() {
3736
- const t = ht("code");
3776
+ const t = bt("code");
3737
3777
  if (t)
3738
3778
  return {
3739
3779
  ticket: t,
@@ -3745,7 +3785,7 @@ class $a extends Ut {
3745
3785
  location.replace(`https://github.com/login/oauth/authorize?client_id=${this.client_id}&redirect_uri${o}`);
3746
3786
  }
3747
3787
  }
3748
- class Aa extends Ut {
3788
+ class Aa extends Vt {
3749
3789
  type = "qrcode";
3750
3790
  qrCodeUrl = "https://login.dingtalk.com/login/qrcode.htm?goto={goto}&style={style}";
3751
3791
  reloadUrl = "https://oapi.dingtalk.com/connect/oauth2/sns_authorize?response_type=code&scope=snsapi_login&state=&appid={appid}&redirect_uri={redirect_uri}";
@@ -3758,7 +3798,7 @@ class Aa extends Ut {
3758
3798
  super();
3759
3799
  }
3760
3800
  flag() {
3761
- const t = ht("code");
3801
+ const t = bt("code");
3762
3802
  if (t)
3763
3803
  return {
3764
3804
  ticket: t,
@@ -3771,7 +3811,7 @@ class Aa extends Ut {
3771
3811
  appid: this.appid,
3772
3812
  redirect_uri: encodeURIComponent(this.redirectUri)
3773
3813
  };
3774
- return ne(this.reloadUrl, s) + "&" + gn(l || {});
3814
+ return ne(this.reloadUrl, s) + "&" + vn(l || {});
3775
3815
  }, n = () => {
3776
3816
  const l = {
3777
3817
  goto: encodeURIComponent(t()),
@@ -3782,7 +3822,7 @@ class Aa extends Ut {
3782
3822
  const { origin: s, data: i } = l;
3783
3823
  s === "https://login.dingtalk.com" && (window.location.href = t({ loginTmpCode: i }));
3784
3824
  };
3785
- this.iframe.src = n(), vn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3825
+ this.iframe.src = n(), gn({ elId: this.elId, attrs: this.iframe }), typeof window.addEventListener < "u" ? window.addEventListener(
3786
3826
  "message",
3787
3827
  (l) => o(l),
3788
3828
  !1
@@ -3798,9 +3838,9 @@ function Ts() {
3798
3838
  if (n !== void 0)
3799
3839
  return n();
3800
3840
  }
3801
- function Bs(e) {
3841
+ function Rs(e) {
3802
3842
  e.beforeEach(async (t, n, o) => {
3803
- if (Nt().indexOf(t.path) !== -1) {
3843
+ if (Ut().indexOf(t.path) !== -1) {
3804
3844
  o();
3805
3845
  return;
3806
3846
  }
@@ -3813,21 +3853,21 @@ function Bs(e) {
3813
3853
  o(`/login?redirect=${s}`);
3814
3854
  return;
3815
3855
  }
3816
- const c = i.flag(), d = j(P);
3817
- if (c && await d.login(c)) {
3856
+ const c = i.flag(), p = j(P);
3857
+ if (c && await p.login(c)) {
3818
3858
  o();
3819
3859
  return;
3820
3860
  }
3821
3861
  i.jumpToLoginPage(o, `/login?redirect=${s}`);
3822
3862
  });
3823
3863
  }
3824
- const Rs = {}, Os = { class: "loading preloader" };
3864
+ const Bs = {}, Os = { class: "loading preloader" };
3825
3865
  function $s(e, t) {
3826
3866
  return a(), y("div", Os, [...t[0] || (t[0] = [
3827
- v("div", { class: "preloader-inner" }, null, -1)
3867
+ k("div", { class: "preloader-inner" }, null, -1)
3828
3868
  ])]);
3829
3869
  }
3830
- const As = /* @__PURE__ */ L(Rs, [["render", $s]]), Ps = {
3870
+ const As = /* @__PURE__ */ L(Bs, [["render", $s]]), Ps = {
3831
3871
  name: "VNotice",
3832
3872
  props: {
3833
3873
  dataApi: {
@@ -3857,9 +3897,9 @@ const As = /* @__PURE__ */ L(Rs, [["render", $s]]), Ps = {
3857
3897
  }
3858
3898
  };
3859
3899
  function Ls(e, t, n, o, l, s) {
3860
- const i = xt;
3900
+ const i = Et;
3861
3901
  return a(), y("div", null, [
3862
- l.hasNotice ? (a(), h(i, le(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
3902
+ l.hasNotice ? (a(), f(i, le(Q({ key: 0 }, l.noticeProps)), null, 16)) : B("", !0)
3863
3903
  ]);
3864
3904
  }
3865
3905
  const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /* @__PURE__ */ K({
@@ -3869,39 +3909,39 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3869
3909
  schemaApi: { default: "" }
3870
3910
  },
3871
3911
  setup(e) {
3872
- const t = e, n = X(), o = U(), l = j(), s = se(), i = R(!0), c = R(!1), d = R({}), m = R(""), f = R({}), k = R([]), b = R(!1), x = w(() => l.env), I = w(() => o);
3873
- return ut(() => {
3874
- const T = s.path.split("/").filter((_) => _), g = T.length > 1 ? T.slice(0, T.length - 1).join("/") : T[0], E = "/schema" + s.meta.path, $ = { params: s.params };
3875
- (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || E, $).then(({ data: _ }) => {
3876
- i.value = !1, _e(_) && (_.notice !== void 0 && (c.value = !0, bt(_.notice) ? d.value = { title: _.notice } : _e(_.notice) && (d.value = _.notice, m.value = _.notice.noticeApi), delete _.notice), k.value = _.ownerNames || [], b.value = _.serviceOffLine || !1), f.value = t.schemaHandler(_, g), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: f.value });
3912
+ const t = e, n = X(), o = U(), l = j(), s = se(), i = O(!0), c = O(!1), p = O({}), m = O(""), h = O({}), g = O([]), b = O(!1), x = w(() => l.env), E = w(() => o);
3913
+ return pt(() => {
3914
+ const T = s.path.split("/").filter((_) => _), I = T.length > 1 ? T.slice(0, T.length - 1).join("/") : T[0], R = "/schema" + s.meta.path, v = { params: s.params };
3915
+ (window?.App?.config?.globalProperties?.$http).get(t.schemaApi || R, v).then(({ data: _ }) => {
3916
+ i.value = !1, ge(_) && (_.notice !== void 0 && (c.value = !0, yt(_.notice) ? p.value = { title: _.notice } : ge(_.notice) && (p.value = _.notice, m.value = _.notice.noticeApi), delete _.notice), g.value = _.ownerNames || [], b.value = _.serviceOffLine || !1), h.value = t.schemaHandler(_, I), n.SET_PAGE_JSON_SCHEMA({ page: s.path, json: h.value });
3877
3917
  });
3878
- }), (T, g) => {
3879
- const E = xt;
3880
- return a(), y(O, null, [
3881
- p(k).length > 0 ? (a(), h(E, {
3918
+ }), (T, I) => {
3919
+ const R = Et;
3920
+ return a(), y($, null, [
3921
+ d(g).length > 0 ? (a(), f(R, {
3882
3922
  key: 0,
3883
- title: `该页面功能对应开发: [ ${p(k).join(", ")} ] 有问题可直接企微反馈`,
3923
+ title: `该页面功能对应开发: [ ${d(g).join(", ")} ] 有问题可直接企微反馈`,
3884
3924
  type: "info",
3885
3925
  style: { margin: "0 0 20px 0" },
3886
3926
  closable: !1
3887
3927
  }, null, 8, ["title"])) : B("", !0),
3888
- p(x) === "prod" && p(b) ? (a(), y("div", {
3928
+ d(x) === "prod" && d(b) ? (a(), y("div", {
3889
3929
  key: 1,
3890
3930
  class: "offline-notice",
3891
- innerHTML: p(b) === !0 ? p(I).serviceOffLineNotice : p(b)
3892
- }, null, 8, Ds)) : (a(), y(O, { key: 2 }, [
3893
- p(c) ? (a(), h(Ms, {
3931
+ innerHTML: d(b) === !0 ? d(E).serviceOffLineNotice : d(b)
3932
+ }, null, 8, Ds)) : (a(), y($, { key: 2 }, [
3933
+ d(c) ? (a(), f(Ms, {
3894
3934
  key: 0,
3895
- notice: p(d),
3935
+ notice: d(p),
3896
3936
  style: { margin: "0 0 20px 0" },
3897
- "data-api": p(m)
3937
+ "data-api": d(m)
3898
3938
  }, null, 8, ["notice", "data-api"])) : B("", !0),
3899
- p(i) ? (a(), h(As, { key: 1 })) : re(T.$slots, "default", le(Q({ key: 2 }, p(f))), void 0, !0)
3939
+ d(i) ? (a(), f(As, { key: 1 })) : ce(T.$slots, "default", le(Q({ key: 2 }, d(h))), void 0, !0)
3900
3940
  ], 64))
3901
3941
  ], 64);
3902
3942
  };
3903
3943
  }
3904
- }), Ie = /* @__PURE__ */ L(js, [["__scopeId", "data-v-8c134236"]]), Vt = {
3944
+ }), Ce = /* @__PURE__ */ L(js, [["__scopeId", "data-v-8c134236"]]), qt = {
3905
3945
  __name: "table",
3906
3946
  setup(e) {
3907
3947
  const t = (n, o) => {
@@ -3917,31 +3957,31 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3917
3957
  l.indexOf(s) === -1 && delete n[s];
3918
3958
  }), n.listApi === void 0 && (n.listApi = `/${o}/list`), n;
3919
3959
  };
3920
- return (n, o) => (a(), h(Ie, { "schema-handler": t }, {
3960
+ return (n, o) => (a(), f(Ce, { "schema-handler": t }, {
3921
3961
  default: r((l) => [
3922
- u(p(ve), le(ke(l)), null, 16)
3962
+ u(d(ve), le(we(l)), null, 16)
3923
3963
  ]),
3924
3964
  _: 1
3925
3965
  }));
3926
3966
  }
3927
- }, je = {
3967
+ }, Ne = {
3928
3968
  __name: "form",
3929
3969
  setup(e) {
3930
- const t = se(), n = Se(), o = (c, d) => {
3970
+ const t = se(), n = xe(), o = (c, p) => {
3931
3971
  const m = Object.keys(oe.props);
3932
- return Object.keys(c).forEach((f) => {
3933
- if (m.indexOf(f) === -1) {
3934
- delete c[f];
3972
+ return Object.keys(c).forEach((h) => {
3973
+ if (m.indexOf(h) === -1) {
3974
+ delete c[h];
3935
3975
  return;
3936
3976
  }
3937
- /.*Api$/.test(f) && (c[f] = ne(c[f], t.params));
3938
- }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${d}/update/${t.params.id}`, c.getApi || (c.getApi = `/${d}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${d}/create`)), c = z({
3939
- saveApi: d + "/save",
3977
+ /.*Api$/.test(h) && (c[h] = ne(c[h], t.params));
3978
+ }), c.saveApi === void 0 && (t.params.id !== void 0 ? (c.saveApi = `/${p}/update/${t.params.id}`, c.getApi || (c.getApi = `/${p}/get/${t.params.id}`)) : (delete c.getApi, c.saveApi = `/${p}/create`)), c = z({
3979
+ saveApi: p + "/save",
3940
3980
  afterSubmit: "goback",
3941
3981
  afterReset: "goback",
3942
3982
  mod: t.params.id ? "edit" : "create"
3943
3983
  }, c), c;
3944
- }, l = R(0), s = () => {
3984
+ }, l = O(0), s = () => {
3945
3985
  yi.request({
3946
3986
  url: "/form_mutex",
3947
3987
  method: "get",
@@ -3954,13 +3994,13 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3954
3994
  showCancelButton: !0,
3955
3995
  confirmButtonText: "返回",
3956
3996
  cancelButtonText: "刷新",
3957
- callback: (d) => {
3958
- d === "cancel" ? location.reload() : i();
3997
+ callback: (p) => {
3998
+ p === "cancel" ? location.reload() : i();
3959
3999
  }
3960
4000
  }));
3961
4001
  });
3962
4002
  };
3963
- Ue(() => {
4003
+ Ve(() => {
3964
4004
  const c = U();
3965
4005
  t.params.id !== void 0 && c.formMutex && (s(), l.value = setInterval(s, 2e3));
3966
4006
  }), an(() => {
@@ -3969,9 +4009,9 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
3969
4009
  function i() {
3970
4010
  t.query?.goback ? n.push(t.query?.goback) : history.state.back && history.back();
3971
4011
  }
3972
- return (c, d) => (a(), h(Ie, { "schema-handler": o }, {
4012
+ return (c, p) => (a(), f(Ce, { "schema-handler": o }, {
3973
4013
  default: r((m) => [
3974
- u(p(oe), le(ke(m)), null, 16)
4014
+ u(d(oe), le(we(m)), null, 16)
3975
4015
  ]),
3976
4016
  _: 1
3977
4017
  }));
@@ -4121,8 +4161,8 @@ const Ms = /* @__PURE__ */ L(Ps, [["render", Ls]]), Ds = ["innerHTML"], js = /*
4121
4161
  style: { color: "#E6A23C" }
4122
4162
  }, Fs = { class: "card-header" };
4123
4163
  function Gs(e, t, n, o, l, s) {
4124
- const i = pe, c = Yn, d = Zn, m = Fe, f = A("v-form"), k = xe;
4125
- return a(), h(k, {
4164
+ const i = me, c = Yn, p = Zn, m = Ge, h = A("v-form"), g = Ee;
4165
+ return a(), f(g, {
4126
4166
  class: "tree-box",
4127
4167
  gutter: 20
4128
4168
  }, {
@@ -4132,10 +4172,10 @@ function Gs(e, t, n, o, l, s) {
4132
4172
  class: "tree-tree"
4133
4173
  }, {
4134
4174
  default: r(() => [
4135
- u(d, { shadow: "never" }, {
4175
+ u(p, { shadow: "never" }, {
4136
4176
  header: r(() => [
4137
- v("div", Us, [
4138
- t[3] || (t[3] = v("span", null, "列表", -1)),
4177
+ k("div", Us, [
4178
+ t[3] || (t[3] = k("span", null, "列表", -1)),
4139
4179
  u(i, {
4140
4180
  type: "text",
4141
4181
  onClick: t[0] || (t[0] = () => e.appendNew())
@@ -4148,7 +4188,7 @@ function Gs(e, t, n, o, l, s) {
4148
4188
  ])
4149
4189
  ]),
4150
4190
  default: r(() => [
4151
- (e.treeData || []).length > 0 ? (a(), h(c, Q({
4191
+ (e.treeData || []).length > 0 ? (a(), f(c, Q({
4152
4192
  key: 0,
4153
4193
  style: { height: "100vh" },
4154
4194
  data: e.treeData,
@@ -4160,10 +4200,10 @@ function Gs(e, t, n, o, l, s) {
4160
4200
  onNodeDragEnd: e.handleDragEnd
4161
4201
  }), {
4162
4202
  default: r(({ node: b, data: x }) => [
4163
- v("span", Vs, [
4203
+ k("span", Vs, [
4164
4204
  x[e.localTreeProps.props.label] ? (a(), y("span", qs, N(x[e.localTreeProps.props.label]), 1)) : (a(), y("span", Hs, "请在右侧表单中修改 --> ")),
4165
- v("span", null, [
4166
- x[e.localTreeProps.props.label] ? (a(), h(i, {
4205
+ k("span", null, [
4206
+ x[e.localTreeProps.props.label] ? (a(), f(i, {
4167
4207
  key: 0,
4168
4208
  class: "button",
4169
4209
  type: "text",
@@ -4174,7 +4214,7 @@ function Gs(e, t, n, o, l, s) {
4174
4214
  ])]),
4175
4215
  _: 1
4176
4216
  }, 8, ["onClick"])) : B("", !0),
4177
- e.canAppend(x, b) ? (a(), h(i, {
4217
+ e.canAppend(x, b) ? (a(), f(i, {
4178
4218
  key: 1,
4179
4219
  class: "button",
4180
4220
  type: "text",
@@ -4185,7 +4225,7 @@ function Gs(e, t, n, o, l, s) {
4185
4225
  ])]),
4186
4226
  _: 1
4187
4227
  }, 8, ["onClick"])) : B("", !0),
4188
- x.children === void 0 || x.children.length === 0 ? (a(), h(i, {
4228
+ x.children === void 0 || x.children.length === 0 ? (a(), f(i, {
4189
4229
  key: 2,
4190
4230
  class: "button",
4191
4231
  type: "text",
@@ -4212,17 +4252,17 @@ function Gs(e, t, n, o, l, s) {
4212
4252
  class: "tree-form"
4213
4253
  }, {
4214
4254
  default: r(() => [
4215
- e.type ? (a(), h(d, {
4255
+ e.type ? (a(), f(p, {
4216
4256
  key: 0,
4217
4257
  shadow: "never"
4218
4258
  }, {
4219
4259
  header: r(() => [
4220
- v("div", Fs, [
4221
- v("span", null, N(e.formType), 1)
4260
+ k("div", Fs, [
4261
+ k("span", null, N(e.formType), 1)
4222
4262
  ])
4223
4263
  ]),
4224
4264
  default: r(() => [
4225
- (a(), h(f, Q({
4265
+ (a(), f(h, Q({
4226
4266
  key: e.formkey,
4227
4267
  modelValue: e.formData,
4228
4268
  "onUpdate:modelValue": t[1] || (t[1] = (b) => e.formData = b)
@@ -4237,39 +4277,39 @@ function Gs(e, t, n, o, l, s) {
4237
4277
  _: 1
4238
4278
  });
4239
4279
  }
4240
- const it = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
4280
+ const at = /* @__PURE__ */ L(Ns, [["render", Gs]]), zs = {
4241
4281
  __name: "tree",
4242
4282
  setup(e) {
4243
4283
  const t = (n, o) => {
4244
- const l = Object.keys(it.props);
4284
+ const l = Object.keys(at.props);
4245
4285
  return Object.keys(n).forEach((s) => {
4246
4286
  l.indexOf(s) === -1 && delete n[s];
4247
4287
  }), n;
4248
4288
  };
4249
- return (n, o) => (a(), h(Ie, { "schema-handler": t }, {
4289
+ return (n, o) => (a(), f(Ce, { "schema-handler": t }, {
4250
4290
  default: r((l) => [
4251
- u(it, le(ke(l)), null, 16)
4291
+ u(at, le(we(l)), null, 16)
4252
4292
  ]),
4253
4293
  _: 1
4254
4294
  }));
4255
4295
  }
4256
- }, Pe = {
4296
+ }, Le = {
4257
4297
  __name: "container",
4258
4298
  setup(e) {
4259
- const t = R(0);
4299
+ const t = O(0);
4260
4300
  return Pn(() => {
4261
4301
  t.value++;
4262
4302
  }), (n, o) => {
4263
4303
  const l = A("router-view");
4264
- return a(), h(l);
4304
+ return a(), f(l);
4265
4305
  };
4266
4306
  }
4267
4307
  }, Ks = (e) => u("div", null, [e.test]), Js = {
4268
- card: Rn,
4308
+ card: Bn,
4269
4309
  form: oe,
4270
4310
  table: ve,
4271
4311
  test: Ks,
4272
- row: Bn,
4312
+ row: Rn,
4273
4313
  col: Tn
4274
4314
  }, Ws = {
4275
4315
  card: {
@@ -4304,9 +4344,9 @@ function Qs(e) {
4304
4344
  type: n[s],
4305
4345
  children: [l]
4306
4346
  };
4307
- return l.span = o, Je([l]);
4347
+ return l.span = o, We([l]);
4308
4348
  }
4309
- function Je(e) {
4349
+ function We(e) {
4310
4350
  const t = {
4311
4351
  type: "row",
4312
4352
  props: {
@@ -4317,7 +4357,7 @@ function Je(e) {
4317
4357
  };
4318
4358
  return e.forEach((n) => {
4319
4359
  let o = Object.assign({}, n);
4320
- if (_e(o.props?.style)) {
4360
+ if (ge(o.props?.style)) {
4321
4361
  let i = "";
4322
4362
  Object.keys(o.props?.style).forEach((c) => {
4323
4363
  i += c + ":" + o.props?.style[c] + ";";
@@ -4338,51 +4378,51 @@ function Je(e) {
4338
4378
  o = z({
4339
4379
  props: {}
4340
4380
  }, Ws[o.type] || {}, o);
4341
- const s = qt(o.children);
4342
- s.length && (o.children = Je(s)), t.children.push({
4381
+ const s = Ht(o.children);
4382
+ s.length && (o.children = We(s)), t.children.push({
4343
4383
  type: "col",
4344
4384
  props: l,
4345
4385
  children: [o]
4346
4386
  });
4347
4387
  }), [t];
4348
4388
  }
4349
- function qt(e) {
4350
- return wn(e) ? e : _e(e) ? [e] : [];
4389
+ function Ht(e) {
4390
+ return wn(e) ? e : ge(e) ? [e] : [];
4351
4391
  }
4352
- let Ne = {};
4353
- const Ht = (e) => {
4354
- const t = Js[e.type] || Ne[e.type] || e.type;
4392
+ let Ue = {};
4393
+ const Ft = (e) => {
4394
+ const t = Js[e.type] || Ue[e.type] || e.type;
4355
4395
  return cn(t, e.props, {
4356
- default: () => qt(e.children).map((n) => Ht(n))
4396
+ default: () => Ht(e.children).map((n) => Ft(n))
4357
4397
  });
4358
- }, Xs = (e) => (Object.keys(Ne).length === 0 && (Ne = rn().appContext.components), Je(Object.values(e.schema)).map((n) => Ht(n))), Zs = {
4398
+ }, Xs = (e) => (Object.keys(Ue).length === 0 && (Ue = rn().appContext.components), We(Object.values(e.schema)).map((n) => Ft(n))), Zs = {
4359
4399
  __name: "custom",
4360
4400
  setup(e) {
4361
- const t = R([]), n = (o, l) => (t.value = un(o), o);
4362
- return (o, l) => (a(), h(Ie, { "schema-handler": n }, {
4401
+ const t = O([]), n = (o, l) => (t.value = un(o), o);
4402
+ return (o, l) => (a(), f(Ce, { "schema-handler": n }, {
4363
4403
  default: r(() => [
4364
- u(p(Xs), { schema: p(t) }, null, 8, ["schema"])
4404
+ u(d(Xs), { schema: d(t) }, null, 8, ["schema"])
4365
4405
  ]),
4366
4406
  _: 1
4367
4407
  }));
4368
4408
  }
4369
4409
  };
4370
- let ae = {};
4410
+ let re = {};
4371
4411
  function Pa(e) {
4372
- ae = e;
4412
+ re = e;
4373
4413
  }
4374
4414
  const Ys = (e) => {
4375
4415
  const t = (n) => {
4376
4416
  const o = "./views/" + n + ".vue";
4377
- return ae && ae[o] && ae[o].default ? ae[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Pe);
4417
+ return re && re[o] && re[o].default ? re[o].default : (console.error(`自定义组件不存在 ${e.name} ${e.view}`), Le);
4378
4418
  };
4379
4419
  if (e.path === "#")
4380
- return Pe;
4420
+ return Le;
4381
4421
  switch (e.page_type) {
4382
4422
  case J.list:
4383
- return Vt;
4423
+ return qt;
4384
4424
  case J.form:
4385
- return je;
4425
+ return Ne;
4386
4426
  case J.custom:
4387
4427
  case J.localComp:
4388
4428
  return t(e.view || "");
@@ -4391,17 +4431,17 @@ const Ys = (e) => {
4391
4431
  case J.customSchema:
4392
4432
  return Zs;
4393
4433
  }
4394
- return Pe;
4434
+ return Le;
4395
4435
  };
4396
4436
  function ei(e) {
4397
4437
  let t = e.path;
4398
- return e.type === F.menu && e.page_type === J.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
4438
+ return e.type === G.menu && e.page_type === J.entity && (t = "#"), t.indexOf(":id") > -1 && t.indexOf(":id") + 3 === t.length && (t = t.replace(":id", ":id(\\d+)")), t === "#" ? "/" + e.id + "_DIR_" + e.name : t[0] !== "/" ? "/" + t : t;
4399
4439
  }
4400
4440
  function ti(e) {
4401
4441
  return (e.path + e.name).split("/").filter((t) => t).join("_");
4402
4442
  }
4403
- const Ft = (e) => {
4404
- const t = e.type !== F.page, n = {
4443
+ const Gt = (e) => {
4444
+ const t = e.type !== G.page, n = {
4405
4445
  path: ei(e),
4406
4446
  name: e.id + "_" + ti(e) + "_" + e.path.replaceAll("/", "_"),
4407
4447
  component: Ys(e),
@@ -4416,18 +4456,18 @@ const Ft = (e) => {
4416
4456
  keepAlive: !1,
4417
4457
  role: e.role
4418
4458
  },
4419
- children: e.children ? e.children.map((o) => Ft(o)) : []
4459
+ children: e.children ? e.children.map((o) => Gt(o)) : []
4420
4460
  };
4421
4461
  if (e.page_type === J.entity) {
4422
4462
  const o = e.path + "/list", l = e.path + "/form", s = e.path + "/:id", i = [{
4423
4463
  path: o,
4424
4464
  name: e.name + "列表" + e.id,
4425
- component: Vt,
4465
+ component: qt,
4426
4466
  meta: {
4427
4467
  id: e.id + 99999,
4428
4468
  title: "列表",
4429
4469
  hidden: !0,
4430
- menuType: F.hidden,
4470
+ menuType: G.hidden,
4431
4471
  keepAlive: !1,
4432
4472
  pageId: e.id,
4433
4473
  path: e.path
@@ -4435,12 +4475,12 @@ const Ft = (e) => {
4435
4475
  }, {
4436
4476
  path: l,
4437
4477
  name: e.name + "新建" + e.id,
4438
- component: je,
4478
+ component: Ne,
4439
4479
  meta: {
4440
4480
  id: e.id + 99999 + 1,
4441
4481
  title: "新建",
4442
4482
  hidden: !0,
4443
- menuType: F.hidden,
4483
+ menuType: G.hidden,
4444
4484
  keepAlive: !1,
4445
4485
  pageId: e.id,
4446
4486
  path: e.path
@@ -4448,12 +4488,12 @@ const Ft = (e) => {
4448
4488
  }, {
4449
4489
  path: s,
4450
4490
  name: e.name + "编辑" + e.id,
4451
- component: je,
4491
+ component: Ne,
4452
4492
  meta: {
4453
4493
  id: e.id + 99999 + 2,
4454
4494
  title: "编辑",
4455
4495
  hidden: !0,
4456
- menuType: F.hidden,
4496
+ menuType: G.hidden,
4457
4497
  keepAlive: !1,
4458
4498
  pageId: e.id,
4459
4499
  path: e.path
@@ -4465,8 +4505,8 @@ const Ft = (e) => {
4465
4505
  let o = !0;
4466
4506
  if (n.children.forEach((l) => {
4467
4507
  l.meta && !l.meta.hidden && (o = !1);
4468
- }), n.meta && (n.meta.menuType = t ? F.dir : F.hidden), o) {
4469
- n.meta && (n.meta.menuType = F.menu);
4508
+ }), n.meta && (n.meta.menuType = t ? G.dir : G.hidden), o) {
4509
+ n.meta && (n.meta.menuType = G.menu);
4470
4510
  let l = "/";
4471
4511
  for (let s = 0; s < n.children.length; s++)
4472
4512
  if (n.children[s].path.indexOf("/:") === -1) {
@@ -4486,22 +4526,22 @@ const Ft = (e) => {
4486
4526
  routes: []
4487
4527
  };
4488
4528
  n.routes.forEach((l) => {
4489
- o.routes.push(Ft(l));
4529
+ o.routes.push(Gt(l));
4490
4530
  }), t.push(o);
4491
4531
  }), t;
4492
- }, oi = "root", at = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], li = (e) => {
4493
- const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...at(t), ...at(n)];
4532
+ }, oi = "root", rt = (e) => e ? e.split(",").map((t) => t.trim()).filter((t) => !!t) : [], li = (e) => {
4533
+ const t = typeof e.role == "string" ? e.role : "", n = e.meta && typeof e.meta.role == "string" ? e.meta.role : "", o = [...rt(t), ...rt(n)];
4494
4534
  return !o.length && e.children && e.children.length ? [] : Array.from(new Set(o));
4495
- }, Gt = (e) => {
4535
+ }, zt = (e) => {
4496
4536
  const t = { ...e };
4497
- return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => Gt(n))), t;
4498
- }, si = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, ge = (e = [], t) => t.includes(oi) ? e.map((n) => Gt(n)) : e.reduce((n, o) => {
4537
+ return e.meta && (t.meta = { ...e.meta }), e.children && e.children.length && (t.children = e.children.map((n) => zt(n))), t;
4538
+ }, si = (e, t) => e.length ? t.length ? e.some((n) => t.includes(n)) : !1 : !0, ke = (e = [], t) => t.includes(oi) ? e.map((n) => zt(n)) : e.reduce((n, o) => {
4499
4539
  const l = li(o);
4500
4540
  if (!si(l, t))
4501
4541
  return n;
4502
4542
  const s = { ...o };
4503
4543
  if (o.meta && (s.meta = { ...o.meta }), o.children && o.children.length) {
4504
- const i = ge(o.children, t);
4544
+ const i = ke(o.children, t);
4505
4545
  i.length ? s.children = i : delete s.children;
4506
4546
  }
4507
4547
  return n.push(s), n;
@@ -4532,13 +4572,13 @@ const Ft = (e) => {
4532
4572
  } catch {
4533
4573
  return null;
4534
4574
  }
4535
- }, zt = (e) => {
4575
+ }, Kt = (e) => {
4536
4576
  const t = ri(e);
4537
4577
  return (t && typeof t.role == "string" ? t.role : "").split(",").map((o) => o.trim()).filter((o) => !!o);
4538
4578
  };
4539
4579
  function ci(e) {
4540
4580
  e.beforeEach(async (t, n, o) => {
4541
- if (Nt().indexOf(t.path) !== -1) {
4581
+ if (Ut().indexOf(t.path) !== -1) {
4542
4582
  o();
4543
4583
  return;
4544
4584
  }
@@ -4548,38 +4588,38 @@ function ci(e) {
4548
4588
  }
4549
4589
  const l = j(P);
4550
4590
  await l.info();
4551
- const s = zt(me());
4591
+ const s = Kt(fe());
4552
4592
  if (l.rawCustomRouter.length) {
4553
- const m = ge(l.rawCustomRouter, s);
4554
- m.forEach((f) => {
4555
- const k = typeof f.name == "string" ? f.name : void 0, b = k ? e.hasRoute(k) : !1, x = e.getRoutes().some((I) => I.path === f.path);
4556
- b || x || e.addRoute(f);
4593
+ const m = ke(l.rawCustomRouter, s);
4594
+ m.forEach((h) => {
4595
+ const g = typeof h.name == "string" ? h.name : void 0, b = g ? e.hasRoute(g) : !1, x = e.getRoutes().some((E) => E.path === h.path);
4596
+ b || x || e.addRoute(h);
4557
4597
  }), l.setCustomRoutes(m);
4558
4598
  }
4559
- const i = await l.loadRemoteRoutes(), d = ni(i).map((m) => {
4560
- const f = ge(m.routes, s);
4599
+ const i = await l.loadRemoteRoutes(), p = ni(i).map((m) => {
4600
+ const h = ke(m.routes, s);
4561
4601
  return {
4562
4602
  ...m,
4563
- routes: f
4603
+ routes: h
4564
4604
  };
4565
4605
  }).filter((m) => m.routes.length > 0);
4566
- d.forEach((m) => {
4567
- m.routes.forEach((f) => {
4606
+ p.forEach((m) => {
4607
+ m.routes.forEach((h) => {
4568
4608
  e.addRoute({
4569
4609
  path: "/",
4570
- component: jt,
4571
- children: [f]
4610
+ component: Nt,
4611
+ children: [h]
4572
4612
  });
4573
4613
  });
4574
- }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(d), await e.replace(t), o();
4614
+ }), e.addRoute({ name: "404", path: "/:pathMatch(.*)*", redirect: "/404", hidden: !0 }), l.updateRemoteRouter(p), await e.replace(t), o();
4575
4615
  });
4576
4616
  }
4577
4617
  function ui(e) {
4578
4618
  e.beforeEach(async (t, n, o) => {
4579
4619
  const s = [U(P).title || ""], i = t.matched.length;
4580
4620
  for (let c = i; c > i - 3; c--) {
4581
- const d = t.matched[c - 1];
4582
- d?.meta?.title && s.push(d.meta.title + "");
4621
+ const p = t.matched[c - 1];
4622
+ p?.meta?.title && s.push(p.meta.title + "");
4583
4623
  }
4584
4624
  s.length > 1 && (document.title = s.reverse().join("-")), o();
4585
4625
  }), e.afterEach(async (t, n, o) => {
@@ -4587,17 +4627,17 @@ function ui(e) {
4587
4627
  Object.keys(t.meta).length > 0 && await l.setCurrentMeta(t.meta);
4588
4628
  });
4589
4629
  }
4590
- function di(e) {
4591
- Bs(e), Ss(e), ci(e), ui(e);
4630
+ function pi(e) {
4631
+ Rs(e), Ss(e), ci(e), ui(e);
4592
4632
  }
4593
- di(W);
4594
- function pi() {
4633
+ pi(W);
4634
+ function di() {
4595
4635
  return j(P).token;
4596
4636
  }
4597
4637
  function mi() {
4598
4638
  return j(P).expired;
4599
4639
  }
4600
- function rt(e) {
4640
+ function ct(e) {
4601
4641
  Co({
4602
4642
  message: e,
4603
4643
  type: "error",
@@ -4608,7 +4648,7 @@ function rt(e) {
4608
4648
  const fi = {
4609
4649
  onFulfilled: function(e) {
4610
4650
  e.headers = e.headers || {};
4611
- const t = pi();
4651
+ const t = di();
4612
4652
  return t && (e.headers["X-Token"] = t), W.currentRoute.value.meta?.path && (e.headers["X-Path"] = W.currentRoute.value.meta.path), e;
4613
4653
  }
4614
4654
  }, hi = {
@@ -4618,24 +4658,24 @@ const fi = {
4618
4658
  if (e.data.code === 401) {
4619
4659
  if (mi())
4620
4660
  return;
4621
- j(P).SetExpired(), lt.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4661
+ j(P).SetExpired(), st.alert("登录信息已过期或未登录, 是否跳转登录", "操作提醒", {
4622
4662
  showClose: !1,
4623
4663
  confirmButtonText: "重新登录",
4624
4664
  showCancelButton: !0,
4625
4665
  cancelButtonText: "取消",
4626
4666
  callback: (l) => {
4627
- l === "confirm" && (It(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(P).SetExpired();
4667
+ l === "confirm" && (Ct(), location.href = location.origin + location.pathname + location.hash.replace("#", "#/?redirect="), location.reload()), j(P).SetExpired();
4628
4668
  }
4629
4669
  });
4630
4670
  return;
4631
4671
  } else
4632
- rt(o);
4672
+ ct(o);
4633
4673
  return Promise.reject(o);
4634
4674
  }
4635
4675
  let n = e.data?.data?._message_box;
4636
- return n !== void 0 && (bt(n) && (n = {
4676
+ return n !== void 0 && (yt(n) && (n = {
4637
4677
  message: e.data?.data?._message_box
4638
- }), lt({
4678
+ }), st({
4639
4679
  title: "提示",
4640
4680
  type: "success",
4641
4681
  grouping: !0,
@@ -4643,20 +4683,20 @@ const fi = {
4643
4683
  })), e.data;
4644
4684
  },
4645
4685
  onRejected(e) {
4646
- return Ve.isCancel(e) ? Promise.reject("") : (rt(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4686
+ return qe.isCancel(e) ? Promise.reject("") : (ct(`${e.message} ${e.config.method}::${e.config.url?.split("?")[0]}`), Promise.reject(e));
4647
4687
  }
4648
4688
  }, bi = [
4649
4689
  {
4650
- request: Bo,
4651
- response: Ro
4690
+ request: Ro,
4691
+ response: Bo
4652
4692
  },
4653
4693
  {
4654
4694
  request: fi,
4655
4695
  response: hi
4656
4696
  }
4657
4697
  ];
4658
- function We(e = {}) {
4659
- const t = Ee.axios || {}, n = z(t, e || {}), o = Ve.create({
4698
+ function Qe(e = {}) {
4699
+ const t = Ie.axios || {}, n = z(t, e || {}), o = qe.create({
4660
4700
  ...n
4661
4701
  // adapter: (c) => cacheAdapter(c, defaultAxios)
4662
4702
  });
@@ -4664,7 +4704,7 @@ function We(e = {}) {
4664
4704
  o.interceptors.request.use(l.request.onFulfilled, l.request.onRejected), o.interceptors.response.use(l.response.onFulfilled, l.response.onRejected);
4665
4705
  }), o;
4666
4706
  }
4667
- const yi = We(), _i = {
4707
+ const yi = Qe(), _i = {
4668
4708
  beforeMount(e, t) {
4669
4709
  e.clickOutsideEvent = function(n) {
4670
4710
  e === n.target || e.contains(n.target) || t.value(n, e);
@@ -4673,17 +4713,17 @@ const yi = We(), _i = {
4673
4713
  unmounted(e) {
4674
4714
  document.body.removeEventListener("click", e.clickOutsideEvent);
4675
4715
  }
4676
- }, Y = oo(), vi = {
4716
+ }, ee = oo(), gi = {
4677
4717
  mounted: (e, t) => {
4678
4718
  e !== null && (t.value, e.oncontextmenu = (n) => {
4679
- n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && Y.emit("right-click", { event: n, data: t.value });
4719
+ n.preventDefault(), n.stopPropagation(), n.cancelBubble = !0, t.value && ee.emit("right-click", { event: n, data: t.value });
4680
4720
  });
4681
4721
  }
4682
- }, gi = {
4722
+ }, vi = {
4683
4723
  mounted(e) {
4684
4724
  }
4685
4725
  };
4686
- function ct(e, t) {
4726
+ function ut(e, t) {
4687
4727
  let n = e[`offset${t}`], o = e.offsetParent;
4688
4728
  for (; o; )
4689
4729
  n += o[`offset${t}`], o = o.offsetParent;
@@ -4695,49 +4735,49 @@ const ki = {
4695
4735
  return;
4696
4736
  let n = e;
4697
4737
  if (t.value.parent)
4698
- for (let d = 0; d < t.value.parent; d++)
4738
+ for (let p = 0; p < t.value.parent; p++)
4699
4739
  n.parentElement && (n = n.parentElement);
4700
4740
  n.classList.add("devtool-hover");
4701
4741
  const o = document.createElement("i");
4702
4742
  o.className = "devtool-item-wrapper", n.onmouseover = () => {
4703
- o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = ct(n, "Top") - 15 + "px", o.style.left = ct(n, "Left") - 15 + "px";
4743
+ o.style.height = n.offsetHeight + 30 + "px", o.style.width = n.offsetWidth + 30 + "px", o.style.top = ut(n, "Top") - 15 + "px", o.style.left = ut(n, "Left") - 15 + "px";
4704
4744
  };
4705
4745
  const l = document.createElement("span");
4706
4746
  l.className = "dev-action-edit", l.title = "编辑";
4707
4747
  const s = document.createElement("i");
4708
- s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (d) => {
4709
- Y.emit("dev-action", { event: d, data: { type: "edit", devId: t.value.devId } });
4748
+ s.className = "iconfont ra-editor1", l.appendChild(s), l.onclick = (p) => {
4749
+ ee.emit("dev-action", { event: p, data: { type: "edit", devId: t.value.devId } });
4710
4750
  }, o.appendChild(l);
4711
4751
  const i = document.createElement("span");
4712
4752
  i.className = "dev-action-del", i.title = "删除";
4713
4753
  const c = document.createElement("i");
4714
- c.className = "iconfont ra-cut", i.appendChild(c), i.onclick = (d) => {
4715
- Y.emit("dev-action", { event: d, data: { type: "del", devId: t.value.devId } });
4754
+ c.className = "iconfont ra-cut", i.appendChild(c), i.onclick = (p) => {
4755
+ ee.emit("dev-action", { event: p, data: { type: "del", devId: t.value.devId } });
4716
4756
  }, o.appendChild(i), n.insertBefore(o, n.firstChild);
4717
4757
  }
4718
4758
  }, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4719
4759
  __proto__: null,
4720
4760
  devtool: ki,
4721
4761
  outClick: _i,
4722
- resize: gi,
4723
- rightClick: vi
4762
+ resize: vi,
4763
+ rightClick: gi
4724
4764
  }, Symbol.toStringTag, { value: "Module" }));
4725
- let ye;
4765
+ let _e;
4726
4766
  const Si = (e) => {
4727
4767
  const t = typeof e.name == "string" ? e.name : void 0;
4728
4768
  return t && W.hasRoute(t) ? !0 : W.getRoutes().some((n) => n.path === e.path);
4729
4769
  };
4730
4770
  function La(e) {
4731
- return e ? We(z(Ee.axios, e)) : ye;
4771
+ return e ? Qe(z(Ie.axios, e)) : _e;
4732
4772
  }
4733
4773
  function Ma(e) {
4734
- const t = z(Ee, e), n = dn(go), o = Ri(t), l = t.plugins || [];
4774
+ const t = z(Ie, e), n = pn(vo), o = Bi(t), l = t.plugins || [];
4735
4775
  l.unshift(o), l.forEach((c) => {
4736
- Bi(n, c);
4737
- }), t?.mock && Io(), ye = We(t.axios), bo(n);
4776
+ Ri(n, c);
4777
+ }), t?.mock && Io(), _e = Qe(t.axios), bo(n);
4738
4778
  const s = X(P), i = U(P);
4739
- co(ye), i.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = ye, n.config.globalProperties.$router = W, window.App = n, window.OmsOptions = t, to(() => ({
4740
- "X-Token": me()
4779
+ co(_e), i.updateSettings(e?.settings || {}), s.setBaseAPI(t?.axios.baseURL), n.config.globalProperties.$http = _e, n.config.globalProperties.$router = W, window.App = n, window.OmsOptions = t, to(() => ({
4780
+ "X-Token": fe()
4741
4781
  })), W.isReady().then(() => n.mount("#app"));
4742
4782
  }
4743
4783
  function xi(e, t = {}) {
@@ -4750,10 +4790,10 @@ function Ei(e = []) {
4750
4790
  return;
4751
4791
  const t = j(P);
4752
4792
  t.addRawCustomRoutes(e);
4753
- const n = zt(me());
4793
+ const n = Kt(fe());
4754
4794
  if (!n.length)
4755
4795
  return;
4756
- const o = ge(t.rawCustomRouter, n);
4796
+ const o = ke(t.rawCustomRouter, n);
4757
4797
  o.forEach((l) => {
4758
4798
  Si(l) || W.addRoute(l);
4759
4799
  }), t.setCustomRoutes(o);
@@ -4778,38 +4818,38 @@ function Ti(e = {}) {
4778
4818
  console.warn("[store] plugin storeModules are not supported under Pinia. Ignored:", n);
4779
4819
  });
4780
4820
  }
4781
- function Bi(e, t) {
4782
- xi(e, t.components || {}), Ei(t.routes || []), Ii(e, t.use || []), Ci(e, t.directives || {}), Ti(t.storeModules || {}), At(t.mockApis || []);
4821
+ function Ri(e, t) {
4822
+ xi(e, t.components || {}), Ei(t.routes || []), Ii(e, t.use || []), Ci(e, t.directives || {}), Ti(t.storeModules || {}), Pt(t.mockApis || []);
4783
4823
  }
4784
- function Ri(e) {
4824
+ function Bi(e) {
4785
4825
  return {
4786
4826
  components: { VIcon: no },
4787
4827
  directives: wi,
4788
4828
  use: [
4789
4829
  W,
4790
- [In, { locale: yt, ...e.settings?.ElementPlus }]
4830
+ [In, { locale: _t, ...e.settings?.ElementPlus }]
4791
4831
  ]
4792
4832
  };
4793
4833
  }
4794
4834
  export {
4795
- Ut as BaseSso,
4796
- Pe as Container,
4835
+ Vt as BaseSso,
4836
+ Le as Container,
4797
4837
  Aa as DingTalk,
4798
4838
  $a as Github,
4799
- jt as Layout,
4800
- F as MenuType,
4839
+ Nt as Layout,
4840
+ G as MenuType,
4801
4841
  Co as Message,
4802
- lt as MessageBox,
4842
+ st as MessageBox,
4803
4843
  J as PageType,
4804
4844
  Cs as allSso,
4805
4845
  fo as appState,
4806
4846
  ho as builderSchemaState,
4807
4847
  Ma as createAdmin,
4808
- Y as eventBus,
4848
+ ee as eventBus,
4809
4849
  Oo as getCmp,
4810
- Re as getHttp,
4811
- ye as http,
4812
- We as instance,
4850
+ Oe as getHttp,
4851
+ _e as http,
4852
+ Qe as instance,
4813
4853
  P as pinia,
4814
4854
  Pa as regViews,
4815
4855
  Oa as setCmp,
@@ -4818,10 +4858,10 @@ export {
4818
4858
  bo as setupStore,
4819
4859
  ni as transRemoteModules,
4820
4860
  X as useAppStore,
4821
- Ra as useBuilderSchemaStore,
4861
+ Ba as useBuilderSchemaStore,
4822
4862
  La as useHttp,
4823
4863
  U as useSettingsStore,
4824
4864
  j as useUserStore,
4825
- tt as userState
4865
+ nt as userState
4826
4866
  };
4827
4867
  //# sourceMappingURL=index.es.js.map