@skyfox2000/webui 1.4.4 → 1.4.5

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.
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
2
2
  import { Layout as i, LayoutSider as k } from "ant-design-vue";
3
- import { a as b } from "./toolIcon-C6QsaAZ8.js";
4
- import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-sfALzkA5.js";
5
- import { af as v, a as B, ah as E } from "./uploadList-C4BvnORD.js";
3
+ import { a as b } from "./toolIcon-BiWBb2pJ.js";
4
+ import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-D_UlXkmm.js";
5
+ import { af as v, a as B, ah as E } from "./uploadList-C_hqJ4X1.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
@@ -4,7 +4,7 @@ var f = (n, r, a) => m(n, typeof r != "symbol" ? r + "" : r, a);
4
4
  import { hostUrl as w } from "@skyfox2000/fapi";
5
5
  import y from "dayjs";
6
6
  import d from "vue-m-message";
7
- import { ac as b, u as g } from "./uploadList-C4BvnORD.js";
7
+ import { ac as b, u as g } from "./uploadList-C_hqJ4X1.js";
8
8
  import { isMicroApp as F } from "@skyfox2000/microbase";
9
9
  var i = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Uploading = "uploading", n.Success = "success", n.Error = "error", n.Online = "online", n.Offline = "offline", n))(i || {});
10
10
  class I {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
2
- import { _ as m } from "./index-QDkmhaJS.js";
2
+ import { _ as m } from "./index-iozooZXX.js";
3
3
  import { Modal as D, Space as E } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P as M, d as P, o as $, b as K } from "./uploadList-C4BvnORD.js";
5
+ import { P as M, d as P, o as $, b as K } from "./uploadList-C_hqJ4X1.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -1,10 +1,10 @@
1
1
  import H from "async-validator";
2
2
  import { httpPost as M, ResStatus as V } from "@skyfox2000/fapi";
3
- import { i as T, ai as U, L as $, u as z } from "./uploadList-C4BvnORD.js";
3
+ import { i as T, ai as U, L as $, u as z } from "./uploadList-C_hqJ4X1.js";
4
4
  import m from "vue-m-message";
5
5
  import { defineComponent as _, useAttrs as B, createElementBlock as A, openBlock as b, createVNode as O, unref as v, mergeProps as S, computed as E, createBlock as R, withCtx as L, normalizeStyle as N } from "vue";
6
6
  import { Spin as K, Alert as P } from "ant-design-vue";
7
- import { _ as W } from "./toolIcon-C6QsaAZ8.js";
7
+ import { _ as W } from "./toolIcon-BiWBb2pJ.js";
8
8
  const D = (i) => {
9
9
  const e = i.split(`
10
10
  `).filter((l) => l.trim() !== "");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
2
2
  import { Button as _ } from "ant-design-vue";
3
- import { a as P, _ as k } from "./toolIcon-C6QsaAZ8.js";
3
+ import { a as P, _ as k } from "./toolIcon-BiWBb2pJ.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as H, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as W, onMounted as N, createVNode as l, toDisplayString as $, Fragment as R, createTextVNode as K, reactive as q, nextTick as J, renderList as Y, withModifiers as G } from "vue";
2
- import { a as w, _ as b } from "./toolIcon-C6QsaAZ8.js";
3
- import { c as L, T as E, ah as P, W as M, V as U, u as D, ac as Q, a as F, U as X, r as V, af as z } from "./uploadList-C4BvnORD.js";
2
+ import { a as w, _ as b } from "./toolIcon-BiWBb2pJ.js";
3
+ import { c as L, T as E, ah as P, W as M, V as U, u as D, ac as Q, a as F, U as X, r as V, af as z } from "./uploadList-C_hqJ4X1.js";
4
4
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import { theme as O, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
6
6
  import { isMicroApp as le } from "@skyfox2000/microbase";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
2
2
  import { Tooltip as I } from "ant-design-vue";
3
3
  import { SERVER_HOST as r } from "@skyfox2000/fapi";
4
- import { c as S } from "./uploadList-C4BvnORD.js";
4
+ import { c as S } from "./uploadList-C_hqJ4X1.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as Z, ref as L, computed as K, watch as P, resolveDirective as ee, createElementBlock as v, openBlock as m, normalizeClass as O, unref as n, createElementVNode as f, withDirectives as x, createBlock as te, mergeProps as oe, withCtx as y, createVNode as p, createTextVNode as E, toDisplayString as $, Fragment as ne, renderList as ae, createCommentVNode as S } from "vue";
2
- import { _ as se } from "./index-QDkmhaJS.js";
3
- import { a as z, _ as A } from "./toolIcon-C6QsaAZ8.js";
2
+ import { _ as se } from "./index-iozooZXX.js";
3
+ import { a as z, _ as A } from "./toolIcon-BiWBb2pJ.js";
4
4
  import { httpPost as R, ResStatus as D } from "@skyfox2000/fapi";
5
- import { L as V, u as Q, s as ie, _ as re } from "./uploadList-C4BvnORD.js";
6
- import { p as M, U as i } from "./file-upload-Dmi2Kiqo.js";
5
+ import { L as V, u as Q, s as ie, _ as re } from "./uploadList-C_hqJ4X1.js";
6
+ import { p as M, U as i } from "./file-upload-DicHRX1r.js";
7
7
  import { combineParams as q } from "@skyfox2000/microbase";
8
8
  import g from "vue-m-message";
9
9
  import "async-validator";
@@ -1,12 +1,12 @@
1
1
  var ha = Object.defineProperty;
2
2
  var ma = (e, t, a) => t in e ? ha(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var L = (e, t, a) => ma(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { ref as f, h as H, nextTick as va, inject as se, provide as Le, watch as g, toRaw as Ze, shallowRef as Q, defineComponent as Z, reactive as ga, onMounted as be, onUnmounted as ie, createBlock as Ie, createCommentVNode as z, openBlock as w, unref as b, mergeProps as le, useAttrs as Ae, createElementBlock as $, createVNode as C, withCtx as K, createTextVNode as Ee, toDisplayString as Y, Fragment as re, renderList as Ue, normalizeClass as ea, createElementVNode as ya } from "vue";
4
+ import { ref as f, h as H, nextTick as va, inject as se, provide as Me, watch as g, toRaw as Ze, shallowRef as Q, defineComponent as Z, reactive as ga, onMounted as Ie, onUnmounted as ie, createBlock as Ae, createCommentVNode as z, openBlock as w, unref as b, mergeProps as le, useAttrs as Ee, createElementBlock as $, createVNode as C, withCtx as K, createTextVNode as xe, toDisplayString as Y, Fragment as re, renderList as Ue, normalizeClass as ea, createElementVNode as ya } from "vue";
5
5
  import { Switch as Sa, AutoComplete as ba, Input as Ia, CheckboxGroup as Aa, Checkbox as Ea, RadioGroup as xa, Radio as wa, Select as Oa, SelectOption as Ra } from "ant-design-vue";
6
6
  import { createPinia as Ta, defineStore as ue } from "pinia";
7
7
  import Pa from "pinia-plugin-persistedstate";
8
- import { EnvConfig as ye, AppAction as Be, AppSource as ze, isMicroApp as B, isBaseMicroApp as ka, combineParams as ce } from "@skyfox2000/microbase";
9
- import { httpPost as G, ResStatus as T, setToken as me, fieldMapping as La, parseFieldTemplate as Se, API_HOST as Me, SERVER_HOST as Ma } from "@skyfox2000/fapi";
8
+ import { EnvConfig as Se, AppAction as Be, AppSource as ze, isMicroApp as j, isBaseMicroApp as ka, combineParams as ce } from "@skyfox2000/microbase";
9
+ import { httpPost as q, ResStatus as T, setToken as me, fieldMapping as La, parseFieldTemplate as be, API_HOST as $e, SERVER_HOST as Ma } from "@skyfox2000/fapi";
10
10
  import E from "vue-m-message";
11
11
  import { createRouter as $a, createWebHashHistory as Fa } from "vue-router";
12
12
  import He from "async-validator";
@@ -176,12 +176,12 @@ const fe = {
176
176
  }, F = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ce = "/login/", ge = [], Na = (e) => {
177
177
  for (const t of e) {
178
178
  const a = ge.findIndex((s) => s.path === t.path);
179
- a !== -1 && ge.splice(a, 1), ge.push(t), xe.addRoute(t);
179
+ a !== -1 && ge.splice(a, 1), ge.push(t), we.addRoute(t);
180
180
  }
181
181
  }, aa = (e, t, a, s = "") => {
182
182
  const n = s + (s ? "/" : "") + e.path;
183
183
  t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => aa(o, t, e, n));
184
- }, xe = $a({
184
+ }, we = $a({
185
185
  history: Fa("/"),
186
186
  routes: ge
187
187
  }), Da = (e, t) => {
@@ -191,9 +191,9 @@ const fe = {
191
191
  return a.length === 0 && !s;
192
192
  if (t) {
193
193
  const r = _();
194
- if (ye.VITE_PERMISSION_MODE === "role")
194
+ if (Se.VITE_PERMISSION_MODE === "role")
195
195
  return a.length === 0 ? !0 : r.hasRole(a);
196
- if (ye.VITE_PERMISSION_MODE === "permit") {
196
+ if (Se.VITE_PERMISSION_MODE === "permit") {
197
197
  if (a.length === 0 && !s)
198
198
  return !0;
199
199
  let l = !1, u = !1;
@@ -202,7 +202,7 @@ const fe = {
202
202
  }
203
203
  return !1;
204
204
  }, ne = f(null);
205
- xe.beforeEach((e, t, a) => {
205
+ we.beforeEach((e, t, a) => {
206
206
  var l;
207
207
  const s = e;
208
208
  if (e.path.startsWith("/error/") || e.path.startsWith(Ce))
@@ -347,7 +347,7 @@ class A {
347
347
  */
348
348
  static init() {
349
349
  this.isInMicroApp() && window.microApp.addDataListener((t) => {
350
- console.log("收到来自主应用的数据:", t), this.handleResponseData(t);
350
+ this.handleResponseData(t);
351
351
  });
352
352
  }
353
353
  /**
@@ -389,7 +389,7 @@ class A {
389
389
  }
390
390
  L(A, "messageId", 0), L(A, "callbacks", /* @__PURE__ */ new Map());
391
391
  A.init();
392
- const _e = {
392
+ const ye = {
393
393
  getAppInfo: A.getAppInfo.bind(A),
394
394
  getHostInfo: A.getHostInfo.bind(A),
395
395
  getUserInfo: A.getUserInfo.bind(A),
@@ -404,13 +404,13 @@ const _e = {
404
404
  url: "/api/RCTenanetOpSrv/getApps",
405
405
  loadingText: !1
406
406
  }
407
- }, $e = /* @__PURE__ */ new Map(), Qa = (e) => {
407
+ }, Fe = /* @__PURE__ */ new Map(), Qa = (e) => {
408
408
  const t = _(), { roles: a, permission: s } = e.meta || {};
409
409
  if (F(a) && F(s))
410
410
  return !0;
411
- if (ye.VITE_PERMISSION_MODE === "role")
411
+ if (Se.VITE_PERMISSION_MODE === "role")
412
412
  return F(a) ? !0 : t.hasRole(a);
413
- if (ye.VITE_PERMISSION_MODE === "permit") {
413
+ if (Se.VITE_PERMISSION_MODE === "permit") {
414
414
  let n = !1, o = !1;
415
415
  return F(a) || (n = t.hasRole(a)), t.isAdmin() ? n : (F(s) || (o = t.hasPermit(e.path, s)), n || o);
416
416
  }
@@ -464,7 +464,7 @@ const _e = {
464
464
  });
465
465
  },
466
466
  async getRemoteAppList() {
467
- return G(Ka.appList, {
467
+ return q(Ka.appList, {
468
468
  Query: {
469
469
  AppCode: this.appInfo.AppCode,
470
470
  Enabled: 1
@@ -472,7 +472,7 @@ const _e = {
472
472
  }).then((e) => {
473
473
  if ((e == null ? void 0 : e.status) === T.SUCCESS && e.data)
474
474
  this.appList.length = 0, this.appList.push(...e.data);
475
- else if ((e == null ? void 0 : e.errno) == we) {
475
+ else if ((e == null ? void 0 : e.errno) == Oe) {
476
476
  _().logout(!1);
477
477
  return;
478
478
  }
@@ -508,7 +508,7 @@ const _e = {
508
508
  flattenRoutes: {},
509
509
  Routes: t ?? [],
510
510
  defaultPage: ""
511
- }), (!B() || !ka()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
511
+ }), (!j() || !ka()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
512
512
  },
513
513
  /**
514
514
  * 设置当前应用路由信息
@@ -530,9 +530,9 @@ const _e = {
530
530
  }), _().isLogin) {
531
531
  const a = ta(this.appInfo.Routes);
532
532
  if (Na(a), this.appInfo.defaultPage = sa(a) || "", this.appInfo.defaultPage) {
533
- if (this.menuLoaded = !0, B()) {
533
+ if (this.menuLoaded = !0, j()) {
534
534
  const s = this.formatRoute(this.appInfo.defaultPage);
535
- _e.mainAppPush(s);
535
+ ye.mainAppPush(s);
536
536
  }
537
537
  Ua(this.appInfo.defaultPage);
538
538
  }
@@ -553,9 +553,9 @@ const _e = {
553
553
  */
554
554
  push(e) {
555
555
  this.findRoute(e) && Ve().setTabActive(e), va(() => {
556
- if (xe.push({ path: e }), B()) {
556
+ if (we.push({ path: e }), j()) {
557
557
  const a = this.formatRoute(e);
558
- _e.mainAppPush(a);
558
+ ye.mainAppPush(a);
559
559
  }
560
560
  });
561
561
  },
@@ -574,7 +574,7 @@ const _e = {
574
574
  * @returns 组件实例
575
575
  */
576
576
  cacheComponent(e, t) {
577
- let a = $e.get(t.path);
577
+ let a = Fe.get(t.path);
578
578
  if (!a)
579
579
  if (this.CachedComponents.includes(t.path))
580
580
  a = {
@@ -583,7 +583,7 @@ const _e = {
583
583
  render() {
584
584
  return H(e);
585
585
  }
586
- }, $e.set(t.path, a);
586
+ }, Fe.set(t.path, a);
587
587
  else return e;
588
588
  return a;
589
589
  },
@@ -592,7 +592,7 @@ const _e = {
592
592
  * @param path 路由地址
593
593
  */
594
594
  excludeComponent(e) {
595
- this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), $e.delete(e);
595
+ this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Fe.delete(e);
596
596
  },
597
597
  /**
598
598
  * 路由路径层级查询,返回面包屑
@@ -623,11 +623,11 @@ const _e = {
623
623
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
624
624
  },
625
625
  logout() {
626
- this.clean(), window.location.assign("/");
626
+ this.clean(), j() ? ye.mainAppPush("/") : window.location.assign("/");
627
627
  }
628
628
  },
629
629
  persist: !1
630
- }), Ja = "Token解析失败", we = 1400, Ke = {
630
+ }), Ja = "Token解析失败", Oe = 1400, Ke = {
631
631
  login: {
632
632
  api: "PLATFORM_API",
633
633
  url: "/openapi/LoginSrv/login",
@@ -652,17 +652,17 @@ const _e = {
652
652
  },
653
653
  Query: e
654
654
  };
655
- return G(Ke.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
655
+ return q(Ke.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
656
656
  }, Ga = (e) => {
657
657
  let t = {
658
658
  Query: {
659
659
  AppId: e
660
660
  }
661
661
  };
662
- return G(Ke.auth, t).then((a) => {
662
+ return q(Ke.auth, t).then((a) => {
663
663
  if ((a == null ? void 0 : a.status) === T.SUCCESS)
664
664
  return a.data;
665
- if ((a == null ? void 0 : a.errno) == we) {
665
+ if ((a == null ? void 0 : a.errno) == Oe) {
666
666
  _().logout(!1);
667
667
  return;
668
668
  }
@@ -673,7 +673,7 @@ const _e = {
673
673
  Option: {},
674
674
  Query: {}
675
675
  };
676
- return G(Ke.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
676
+ return q(Ke.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
677
677
  }, Wa = (e) => {
678
678
  try {
679
679
  const t = JSON.parse(atob(e.token.split(".")[1]));
@@ -699,7 +699,7 @@ const _e = {
699
699
  * 启动时初始化用户信息
700
700
  */
701
701
  init() {
702
- B() || (this.token ? (me(this.token), M.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
702
+ j() || (this.token ? (me(this.token), M.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
703
703
  },
704
704
  /**
705
705
  * 登录操作
@@ -844,7 +844,7 @@ const _e = {
844
844
  return Promise.resolve();
845
845
  }
846
846
  },
847
- persist: B() ? !1 : {
847
+ persist: j() ? !1 : {
848
848
  key: "MICROAPP_USER_INFO",
849
849
  storage: localStorage,
850
850
  pick: ["token", "userInfo"],
@@ -853,7 +853,7 @@ const _e = {
853
853
  e.store.init();
854
854
  }
855
855
  }
856
- }), Oe = (e, t) => {
856
+ }), Re = (e, t) => {
857
857
  var n;
858
858
  const a = e.page;
859
859
  return {
@@ -863,7 +863,7 @@ const _e = {
863
863
  ...t.url,
864
864
  loadingText: t.loadingText
865
865
  };
866
- }, Re = (e, t) => {
866
+ }, Te = (e, t) => {
867
867
  const a = e.page, s = t.url;
868
868
  if (!s || !s.url) {
869
869
  const o = `URL未设置: ${t.urlKey}`;
@@ -874,12 +874,12 @@ const _e = {
874
874
  JSON.parse(JSON.stringify(s.params ?? {})),
875
875
  JSON.parse(JSON.stringify(t.params ?? {}))
876
876
  );
877
- return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), G(s, n).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == we ? (_().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
877
+ return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), q(s, n).then((o) => (t.loadingState && (t.loadingState.value = !1), (o == null ? void 0 : o.errno) == Oe ? (_().logout(!1), null) : o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
878
878
  }, Qe = (e, t) => {
879
879
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
880
- const a = Oe(e, t);
881
- return t.url = a, Re(e, t);
882
- }, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Oe(e, t), Re(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || E.success("执行成功!")), a))), na = (e, t = {}) => {
880
+ const a = Re(e, t);
881
+ return t.url = a, Te(e, t);
882
+ }, Lt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Re(e, t), Te(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || E.success("执行成功!")), a))), na = (e, t = {}) => {
883
883
  const a = t.primaryKey || "Id";
884
884
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
885
885
  return E.error("错误!无保存数据!"), Promise.resolve(null);
@@ -889,8 +889,8 @@ const _e = {
889
889
  loadingText: t.loadingText === !1 ? !1 : t.loadingText || "数据保存中..."
890
890
  };
891
891
  s.params.Query[a] = s.params.Data[a];
892
- const n = Oe(e, s);
893
- return s.url = n, Re(e, s).then((o) => ((o == null ? void 0 : o.status) === T.SUCCESS && (t.hideErrorToast || E.success("保存成功!")), o));
892
+ const n = Re(e, s);
893
+ return s.url = n, Te(e, s).then((o) => ((o == null ? void 0 : o.status) === T.SUCCESS && (t.hideErrorToast || E.success("保存成功!")), o));
894
894
  }, Ba = (e, t, a = {}) => {
895
895
  const s = a.primaryKey || "Id";
896
896
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
@@ -901,8 +901,8 @@ const _e = {
901
901
  };
902
902
  if (Array.isArray(t) ? n.params.Query[s] = t : n.params.Query[s] = t[s], F(n.params.Query) || F(n.params.Query[s]))
903
903
  return E.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
904
- const o = Oe(e, n);
905
- return n.url = o, Re(e, n).then((r) => ((r == null ? void 0 : r.status) === T.SUCCESS && (a.hideErrorToast || E.success("删除成功!")), r));
904
+ const o = Re(e, n);
905
+ return n.url = o, Te(e, n).then((r) => ((r == null ? void 0 : r.status) === T.SUCCESS && (a.hideErrorToast || E.success("删除成功!")), r));
906
906
  }, za = (e, t) => Qe(e, {
907
907
  urlKey: "tree",
908
908
  params: {},
@@ -1060,9 +1060,9 @@ const Mt = (e) => {
1060
1060
  }
1061
1061
  }), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
1062
1062
  }, _t = (e, t) => {
1063
- Le(U.LabelText, e.label || ""), Le(U.RuleKey, e.rule || "");
1063
+ Me(U.LabelText, e.label || ""), Me(U.RuleKey, e.rule || "");
1064
1064
  const a = Ca(e, t);
1065
- return Le(U.ErrInfo, a), a;
1065
+ return Me(U.ErrInfo, a), a;
1066
1066
  }, Nt = (e) => {
1067
1067
  ra(e);
1068
1068
  }, Dt = (e) => {
@@ -1141,7 +1141,7 @@ const Mt = (e) => {
1141
1141
  e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Je(e);
1142
1142
  }, Kt = (e, t) => {
1143
1143
  const a = _();
1144
- return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(xe.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1144
+ return e.filter((n) => n.role && !a.hasRole(n.role) || n.permit && !a.hasPermit(we.currentRoute.value.path, n.permit) || n.enabled === !1 ? !1 : typeof n.enabled == "function" ? n.enabled() : !0).filter((n) => {
1145
1145
  if (!t) {
1146
1146
  if (n.visible === !1)
1147
1147
  return !1;
@@ -1267,12 +1267,12 @@ class et {
1267
1267
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1268
1268
  }
1269
1269
  }
1270
- const W = new et(), ee = (e, t, a) => {
1270
+ const B = new et(), ee = (e, t, a) => {
1271
1271
  if (t.inputFactory && (a != null && a.reloadEvent)) {
1272
1272
  const s = t.inputFactory.value;
1273
1273
  s.reloadHandler = (n, o) => {
1274
1274
  at(t.url, t, o);
1275
- }, W.on(a.reloadEvent, s.reloadHandler);
1275
+ }, B.on(a.reloadEvent, s.reloadHandler);
1276
1276
  }
1277
1277
  if (a != null && a.data)
1278
1278
  g(
@@ -1305,7 +1305,7 @@ const W = new et(), ee = (e, t, a) => {
1305
1305
  Array.isArray(a) ? Ge(t, a, !0) : ua(e, t, a);
1306
1306
  }, de = (e, t) => {
1307
1307
  var a;
1308
- (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && W.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1308
+ (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && B.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1309
1309
  }, ua = (e, t, a) => {
1310
1310
  const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = ce(s, n, a);
1311
1311
  tt(e, t, t.fieldMap, o).then((r) => {
@@ -1323,11 +1323,11 @@ const W = new et(), ee = (e, t, a) => {
1323
1323
  },
1324
1324
  ...o
1325
1325
  };
1326
- return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0, G(l, s).then((u) => {
1326
+ return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0, q(l, s).then((u) => {
1327
1327
  if ((u == null ? void 0 : u.status) === T.SUCCESS) {
1328
1328
  if (u.data)
1329
1329
  return u.data;
1330
- } else if ((u == null ? void 0 : u.errno) == we) {
1330
+ } else if ((u == null ? void 0 : u.errno) == Oe) {
1331
1331
  _().logout(!1);
1332
1332
  return;
1333
1333
  }
@@ -1355,7 +1355,7 @@ const W = new et(), ee = (e, t, a) => {
1355
1355
  const o = n([e], t);
1356
1356
  return o.length > 0 ? o[0] : void 0;
1357
1357
  }
1358
- }, Te = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], te = (e, t, a) => {
1358
+ }, Pe = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], te = (e, t, a) => {
1359
1359
  const s = t.split(".");
1360
1360
  let n = e;
1361
1361
  for (let o = 0; o < s.length - 1; o++) {
@@ -1376,7 +1376,7 @@ const W = new et(), ee = (e, t, a) => {
1376
1376
  try {
1377
1377
  const l = parseInt(((r = n.match(/\$\{(\d+)\}/)) == null ? void 0 : r[1]) ?? "0"), u = a[l], i = n.replace(/\$\{\d+\}\./, "");
1378
1378
  if (i && u) {
1379
- const c = Se(i, u);
1379
+ const c = be(i, u);
1380
1380
  te(e, s, c);
1381
1381
  } else
1382
1382
  te(e, s, u);
@@ -1387,12 +1387,12 @@ const W = new et(), ee = (e, t, a) => {
1387
1387
  console.error("outFields 格式错误:" + n, "必须是 ${index} 或者 ${index}.${key}");
1388
1388
  }) : Object.entries(t).forEach(([s, n]) => {
1389
1389
  if (n.includes("${")) {
1390
- const o = Se(n, a);
1390
+ const o = be(n, a);
1391
1391
  te(e, s, o);
1392
1392
  } else
1393
1393
  te(e, s, a[n]);
1394
1394
  });
1395
- }, Pe = (e, t, a) => {
1395
+ }, ke = (e, t, a) => {
1396
1396
  var o, r;
1397
1397
  const s = (o = e.inputFactory) == null ? void 0 : o.value;
1398
1398
  s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && pe(s.editorCtrl), e.selected.value = a;
@@ -1402,27 +1402,27 @@ const W = new et(), ee = (e, t, a) => {
1402
1402
  if (u)
1403
1403
  if (Array.isArray(l))
1404
1404
  l.every((i) => {
1405
- const c = Se(u, { selectedValues: a });
1405
+ const c = be(u, { selectedValues: a });
1406
1406
  try {
1407
1407
  const p = JSON.parse(c);
1408
- W.emit(i, p, a, n);
1408
+ B.emit(i, p, a, n);
1409
1409
  } catch (p) {
1410
1410
  console.error("eventParamsValue: ", c, p);
1411
1411
  }
1412
1412
  });
1413
1413
  else {
1414
- const i = Se(u, { selectedValues: a });
1414
+ const i = be(u, { selectedValues: a });
1415
1415
  try {
1416
1416
  const c = JSON.parse(i);
1417
- W.emit(l, c, a, n);
1417
+ B.emit(l, c, a, n);
1418
1418
  } catch (c) {
1419
1419
  console.error("eventParamsValue: ", i, c);
1420
1420
  }
1421
1421
  }
1422
1422
  else
1423
1423
  Array.isArray(l) ? l.every((i) => {
1424
- W.emit(i, n, a);
1425
- }) : W.emit(l, n, a);
1424
+ B.emit(i, n, a);
1425
+ }) : B.emit(l, n, a);
1426
1426
  }
1427
1427
  return s != null && s.inputEmit && s.inputEmit("change", a, n), n;
1428
1428
  }, S = {
@@ -1477,10 +1477,10 @@ const W = new et(), ee = (e, t, a) => {
1477
1477
  ...S.TreeOption,
1478
1478
  ...e.treeOption
1479
1479
  };
1480
- }, ke = (e) => {
1480
+ }, Le = (e) => {
1481
1481
  for (let t in e.urls)
1482
1482
  e.urls[t].api || (e.urls[t].api = e.api), e.urls[t].authorize === void 0 && (e.urls[t].authorize = e.authorize);
1483
- }, nt = (e, t, a, s) => (ke(e), {
1483
+ }, nt = (e, t, a, s) => (Le(e), {
1484
1484
  editorCtrl: {
1485
1485
  ...S.EditorOption,
1486
1486
  name: "",
@@ -1497,7 +1497,7 @@ const W = new et(), ee = (e, t, a) => {
1497
1497
  isFormLoading: f(!1)
1498
1498
  }
1499
1499
  }), rt = (e, t, a) => {
1500
- ke(e);
1500
+ Le(e);
1501
1501
  const s = {
1502
1502
  ...S.GridOption,
1503
1503
  tableSize: f(S.GridOption.tableSize.value),
@@ -1536,7 +1536,7 @@ const W = new et(), ee = (e, t, a) => {
1536
1536
  gridCtrl: s
1537
1537
  };
1538
1538
  }, Bt = (e, t) => {
1539
- ke(e);
1539
+ Le(e);
1540
1540
  const a = {
1541
1541
  ...S.TreeOption,
1542
1542
  reload: f(!1),
@@ -1579,7 +1579,7 @@ const W = new et(), ee = (e, t, a) => {
1579
1579
  optionCtrl: a
1580
1580
  };
1581
1581
  }, zt = (e, t, a) => {
1582
- ke(e);
1582
+ Le(e);
1583
1583
  const s = {
1584
1584
  ...S.PageOption,
1585
1585
  ...e
@@ -1589,12 +1589,12 @@ const W = new et(), ee = (e, t, a) => {
1589
1589
  editorCtrl: n,
1590
1590
  gridCtrl: o
1591
1591
  };
1592
- }, ot = 7 * 24 * 60 * 60 * 1e3, Fe = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), j = f({}), Ct = j, Yt = (e) => {
1592
+ }, ot = 7 * 24 * 60 * 60 * 1e3, _e = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Set(), G = f({}), Ct = G, Yt = (e) => {
1593
1593
  var n;
1594
1594
  if (!e.iconUrl) return De;
1595
1595
  const t = f(!0), a = f("");
1596
1596
  let s = !0;
1597
- return (n = e.icons) != null && n.length && (s = e.icons.every((o) => j.value[o] !== void 0)), (e.icon && !j.value[e.icon] || !s) && it(e, t).then(() => {
1597
+ return (n = e.icons) != null && n.length && (s = e.icons.every((o) => G.value[o] !== void 0)), (e.icon && !G.value[e.icon] || !s) && it(e, t).then(() => {
1598
1598
  ct(e.iconUrl, e.monoColor || !1), t.value = !0;
1599
1599
  }), Z({
1600
1600
  props: {
@@ -1639,7 +1639,7 @@ const W = new et(), ee = (e, t, a) => {
1639
1639
  },
1640
1640
  { immediate: !0 }
1641
1641
  ), g(
1642
- () => j.value,
1642
+ () => G.value,
1643
1643
  () => {
1644
1644
  ve(a, l, l.value);
1645
1645
  },
@@ -1672,16 +1672,16 @@ const W = new et(), ee = (e, t, a) => {
1672
1672
  let a = e.iconUrl;
1673
1673
  if (!a)
1674
1674
  return console.error("图标库地址不能为空"), Promise.resolve();
1675
- if (Fe.has(a))
1675
+ if (_e.has(a))
1676
1676
  return Promise.resolve();
1677
1677
  const s = pa(a);
1678
1678
  if (s)
1679
1679
  return new Promise(async (o) => (fa(s.scriptContent), o()));
1680
1680
  t.value = !1;
1681
1681
  const n = new Promise(async (o) => {
1682
- await lt(a, e.monoColor || !1), o(), Fe.delete(a);
1682
+ await lt(a, e.monoColor || !1), o(), _e.delete(a);
1683
1683
  });
1684
- return Fe.set(a, n), n;
1684
+ return _e.set(a, n), n;
1685
1685
  }, lt = async (e, t) => {
1686
1686
  try {
1687
1687
  const a = await fetch(e);
@@ -1735,7 +1735,7 @@ const W = new et(), ee = (e, t, a) => {
1735
1735
  }
1736
1736
  }, ve = (e, t, a) => {
1737
1737
  setTimeout(() => {
1738
- t.value = a, t.value && (e.value = j.value[t.value]);
1738
+ t.value = a, t.value && (e.value = G.value[t.value]);
1739
1739
  }, 1);
1740
1740
  }, De = H(
1741
1741
  "svg",
@@ -1768,7 +1768,7 @@ const W = new et(), ee = (e, t, a) => {
1768
1768
  const u = l.id, i = Array.from(r).find((c) => c.id === u);
1769
1769
  i && t && (i.innerHTML = l.innerHTML, i.querySelectorAll("*").forEach((c) => {
1770
1770
  c.hasAttribute("fill") && c.removeAttribute("fill");
1771
- })), j.value[u] || (j.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
1771
+ })), G.value[u] || (G.value[u] = H("svg", { fill: "currentColor" }, [H("use", { "xlink:href": `#${u}` })]));
1772
1772
  }
1773
1773
  }, pt = (e, t) => {
1774
1774
  let a = "";
@@ -1842,16 +1842,16 @@ const W = new et(), ee = (e, t, a) => {
1842
1842
  * @param hostKey 站点信息,默认为当前主域名
1843
1843
  */
1844
1844
  async loadHostInfo(e, t) {
1845
- if (B()) {
1846
- const s = await _e.getHostInfo();
1845
+ if (j()) {
1846
+ const s = await ye.getHostInfo();
1847
1847
  this._setHostInfo(s);
1848
1848
  return;
1849
1849
  }
1850
1850
  let a = (e || this.getSiteHostApi()).trim();
1851
1851
  return (!a || a === "/") && (a = window.location.origin), a.endsWith("/") && (a = a.slice(0, -1)), new Promise((s) => {
1852
- Me.SITEHOST_API || (Me.SITEHOST_API = a);
1852
+ $e.SITEHOST_API || ($e.SITEHOST_API = a);
1853
1853
  const n = t || window.location.origin;
1854
- G(dt.host, {
1854
+ q(dt.host, {
1855
1855
  Query: {
1856
1856
  Host: n
1857
1857
  }
@@ -1889,7 +1889,7 @@ const W = new et(), ee = (e, t, a) => {
1889
1889
  }, this.hostInfo.API_HOST)
1890
1890
  for (const t in this.hostInfo.API_HOST) {
1891
1891
  let a = this.hostInfo.API_HOST[t];
1892
- a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a, Me[t] = a;
1892
+ a = a.startsWith("http://") || a.startsWith("https://") || a.startsWith("//") ? a : window.location.origin + a, a.endsWith("/") && (a = a.slice(0, -1)), this.hostInfo.API_HOST[t] = a, $e[t] = a;
1893
1893
  }
1894
1894
  if (this.hostInfo.SERVER_HOST)
1895
1895
  for (const t in this.hostInfo.SERVER_HOST) {
@@ -1977,7 +1977,7 @@ const W = new et(), ee = (e, t, a) => {
1977
1977
  const l = t, { editorCtrl: u, errInfo: i } = X(), c = (p) => {
1978
1978
  i != null && i.value.errClass && u && pe(u), l("change", p);
1979
1979
  };
1980
- return be(() => {
1980
+ return Ie(() => {
1981
1981
  if (!a.data || a.data.length != 2) {
1982
1982
  console.error("Switch组件: ", a.data), E.error("Switch组件必须有且只有两个选项");
1983
1983
  return;
@@ -1987,7 +1987,7 @@ const W = new et(), ee = (e, t, a) => {
1987
1987
  o && de(o, a);
1988
1988
  }), (p, v) => {
1989
1989
  var d;
1990
- return r.value.length === 2 ? (w(), Ie(b(Sa), le({
1990
+ return r.value.length === 2 ? (w(), Ae(b(Sa), le({
1991
1991
  key: 0,
1992
1992
  class: [
1993
1993
  ((d = b(i)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
@@ -2023,7 +2023,7 @@ const W = new et(), ee = (e, t, a) => {
2023
2023
  },
2024
2024
  emits: ["update:value", "select", "change", "update:labels"],
2025
2025
  setup(e, { emit: t }) {
2026
- const a = e, s = Ae(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2026
+ const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2027
2027
  r.inputFactory = Q(n), r.fieldMap = {
2028
2028
  label: "Name",
2029
2029
  value: "Id",
@@ -2061,9 +2061,9 @@ const W = new et(), ee = (e, t, a) => {
2061
2061
  };
2062
2062
  r.params = ce(r.params, h), r && ee(!0, r, a);
2063
2063
  }, O = (y) => {
2064
- const x = Pe(r, a, y);
2064
+ const x = ke(r, a, y);
2065
2065
  p("update:value", y), p("select", y);
2066
- const h = Te(x);
2066
+ const h = Pe(x);
2067
2067
  p("update:labels", h), i != null && i.value.errClass && u && pe(u);
2068
2068
  };
2069
2069
  return ie(() => {
@@ -2080,7 +2080,7 @@ const W = new et(), ee = (e, t, a) => {
2080
2080
  onSelect: O
2081
2081
  }, b(s), { "allow-clear": !1 }), {
2082
2082
  option: K(({ label: I }) => [
2083
- Ee(Y(I), 1)
2083
+ xe(Y(I), 1)
2084
2084
  ]),
2085
2085
  default: K(() => [
2086
2086
  C(b(Ia), {
@@ -2118,7 +2118,7 @@ const W = new et(), ee = (e, t, a) => {
2118
2118
  emits: ["change", "update:labels"],
2119
2119
  setup(e, { emit: t }) {
2120
2120
  var v, d, O;
2121
- const a = e, s = Ae(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2121
+ const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2122
2122
  r.inputFactory = Q(n);
2123
2123
  const l = f({
2124
2124
  ...r == null ? void 0 : r.url,
@@ -2137,10 +2137,10 @@ const W = new et(), ee = (e, t, a) => {
2137
2137
  { immediate: !0, deep: !0 }
2138
2138
  );
2139
2139
  const p = (y) => {
2140
- const h = Pe(r, a, y), I = Te(h);
2140
+ const h = ke(r, a, y), I = Pe(h);
2141
2141
  i("update:labels", I);
2142
2142
  };
2143
- return be(() => {
2143
+ return Ie(() => {
2144
2144
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
2145
2145
  title: "Name",
2146
2146
  label: "Name",
@@ -2157,7 +2157,7 @@ const W = new et(), ee = (e, t, a) => {
2157
2157
  default: K(() => [
2158
2158
  c.value.length > 0 ? (w(!0), $(re, { key: 0 }, Ue(c.value, (h) => {
2159
2159
  var I;
2160
- return w(), Ie(b(Ea), {
2160
+ return w(), Ae(b(Ea), {
2161
2161
  key: h.value,
2162
2162
  value: h.value,
2163
2163
  disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
@@ -2169,7 +2169,7 @@ const W = new et(), ee = (e, t, a) => {
2169
2169
  ])
2170
2170
  }, {
2171
2171
  default: K(() => [
2172
- Ee(Y(h.label), 1)
2172
+ xe(Y(h.label), 1)
2173
2173
  ]),
2174
2174
  _: 2
2175
2175
  }, 1032, ["value", "disabled", "class"]);
@@ -2205,7 +2205,7 @@ const W = new et(), ee = (e, t, a) => {
2205
2205
  emits: ["change", "update:value", "update:labels"],
2206
2206
  setup(e, { emit: t }) {
2207
2207
  var O, y, x;
2208
- const a = e, s = Ae(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2208
+ const a = e, s = Ee(), n = X(), o = he(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2209
2209
  r.inputFactory = Q(n);
2210
2210
  const l = f({
2211
2211
  ...r == null ? void 0 : r.url,
@@ -2238,10 +2238,10 @@ const W = new et(), ee = (e, t, a) => {
2238
2238
  }
2239
2239
  return h === I;
2240
2240
  }, d = (h) => {
2241
- const I = h.target.value, R = Pe(r, a, I), J = Te(R);
2241
+ const I = h.target.value, R = ke(r, a, I), J = Pe(R);
2242
2242
  p("update:labels", J);
2243
2243
  };
2244
- return be(() => {
2244
+ return Ie(() => {
2245
2245
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
2246
2246
  label: "Name",
2247
2247
  value: "Id",
@@ -2263,7 +2263,7 @@ const W = new et(), ee = (e, t, a) => {
2263
2263
  return w(), $(re, {
2264
2264
  key: R.value
2265
2265
  }, [
2266
- R.visible !== !1 ? (w(), Ie(b(wa), {
2266
+ R.visible !== !1 ? (w(), Ae(b(wa), {
2267
2267
  key: 0,
2268
2268
  checked: v(R.value, a.value),
2269
2269
  value: R.value,
@@ -2275,7 +2275,7 @@ const W = new et(), ee = (e, t, a) => {
2275
2275
  ])
2276
2276
  }, {
2277
2277
  default: K(() => [
2278
- Ee(Y(R.label), 1)
2278
+ xe(Y(R.label), 1)
2279
2279
  ]),
2280
2280
  _: 2
2281
2281
  }, 1032, ["checked", "value", "class"])) : z("", !0)
@@ -2327,7 +2327,7 @@ const W = new et(), ee = (e, t, a) => {
2327
2327
  var I, R, J;
2328
2328
  const a = e, s = a.value === void 0 ? !0 : a.undefValue, n = X(), { editorCtrl: o, errInfo: r, labelText: l } = n, u = he(a.url, a), i = a.optionCtrl ?? u.optionCtrl;
2329
2329
  i.inputFactory = Q(n);
2330
- const c = Ae(), p = f({
2330
+ const c = Ee(), p = f({
2331
2331
  ...i == null ? void 0 : i.url,
2332
2332
  url: ((I = i == null ? void 0 : i.url) == null ? void 0 : I.url) || "",
2333
2333
  fieldMap: (i == null ? void 0 : i.fieldMap) || ((R = i == null ? void 0 : i.url) == null ? void 0 : R.fieldMap),
@@ -2336,7 +2336,7 @@ const W = new et(), ee = (e, t, a) => {
2336
2336
  }), v = f(c.placeholder), d = f(i == null ? void 0 : i.selected.value), O = t;
2337
2337
  n.inputEmit = O;
2338
2338
  const y = (m) => {
2339
- const k = Pe(i, a, m), D = Te(k);
2339
+ const k = ke(i, a, m), D = Pe(k);
2340
2340
  d.value = m, O("update:labels", D), O("update:label", D.join(";")), O("change", m), r != null && r.value.errClass && o && pe(o);
2341
2341
  }, x = f((i == null ? void 0 : i.options.value) || []), h = (m) => {
2342
2342
  if (m.length > 0 && F(a.value) && a.selectFirst)
@@ -2384,7 +2384,7 @@ const W = new et(), ee = (e, t, a) => {
2384
2384
  const k = m === void 0 ? s ? void 0 : null : m;
2385
2385
  i && (i.selected.value = k), O("update:value", k);
2386
2386
  }
2387
- ), be(() => {
2387
+ ), Ie(() => {
2388
2388
  if (p.value && !p.value.fieldMap && (p.value.fieldMap = {
2389
2389
  label: "Name",
2390
2390
  value: "Id",
@@ -2408,22 +2408,22 @@ const W = new et(), ee = (e, t, a) => {
2408
2408
  C(b(Oa), le({
2409
2409
  class: [(We = b(r)) == null ? void 0 : We.errClass, "w-full"],
2410
2410
  value: d.value,
2411
- "onUpdate:value": k[0] || (k[0] = (q) => d.value = q),
2411
+ "onUpdate:value": k[0] || (k[0] = (W) => d.value = W),
2412
2412
  "allow-clear": !0,
2413
2413
  onChange: y,
2414
2414
  placeholder: v.value,
2415
2415
  "label-in-value": !1
2416
2416
  }, b(c)), {
2417
2417
  default: K(() => [
2418
- (w(!0), $(re, null, Ue(x.value, (q) => (w(), $(re, {
2419
- key: q.value
2418
+ (w(!0), $(re, null, Ue(x.value, (W) => (w(), $(re, {
2419
+ key: W.value
2420
2420
  }, [
2421
- q.visible !== !1 ? (w(), Ie(b(Ra), {
2421
+ W.visible !== !1 ? (w(), Ae(b(Ra), {
2422
2422
  key: 0,
2423
- value: q.value
2423
+ value: W.value
2424
2424
  }, {
2425
2425
  default: K(() => [
2426
- Ee(Y(q.label), 1)
2426
+ xe(Y(W.label), 1)
2427
2427
  ]),
2428
2428
  _: 2
2429
2429
  }, 1032, ["value"])) : z("", !0)
@@ -2448,7 +2448,7 @@ export {
2448
2448
  rt as I,
2449
2449
  Bt as J,
2450
2450
  zt as K,
2451
- we as L,
2451
+ Oe as L,
2452
2452
  st as M,
2453
2453
  ca as N,
2454
2454
  N as O,
@@ -2476,8 +2476,8 @@ export {
2476
2476
  na as a8,
2477
2477
  Ba as a9,
2478
2478
  Ne as aa,
2479
- W as ab,
2480
- _e as ac,
2479
+ B as ab,
2480
+ ye as ac,
2481
2481
  ne as ad,
2482
2482
  ge as ae,
2483
2483
  V as af,
@@ -2500,13 +2500,13 @@ export {
2500
2500
  Nt as o,
2501
2501
  fe as p,
2502
2502
  za as q,
2503
- xe as r,
2503
+ we as r,
2504
2504
  X as s,
2505
2505
  he as t,
2506
2506
  _ as u,
2507
2507
  ee as v,
2508
2508
  de as w,
2509
2509
  De as x,
2510
- Pe as y,
2511
- Te as z
2510
+ ke as y,
2511
+ Pe as z
2512
2512
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
2
2
  import "ant-design-vue";
3
- import { _ as q } from "../../assets/modules/toolIcon-C6QsaAZ8.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-BiWBb2pJ.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/uploadList-C4BvnORD.js";
5
+ import "../../assets/modules/uploadList-C_hqJ4X1.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { _ as D } from "../../assets/modules/index-RrFsG5IK.js";
10
+ import { _ as D } from "../../assets/modules/index-BURe9YrF.js";
11
11
  import "vue-draggable-next";
12
12
  const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
13
13
  const o = document.createElement("script");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
2
- import { _ as g } from "../../assets/modules/baseLayout-CYzXPj7i.js";
3
- import { af as A, a as S } from "../../assets/modules/uploadList-C4BvnORD.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-BT7tGUB1.js";
3
+ import { af as A, a as S } from "../../assets/modules/uploadList-C_hqJ4X1.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-C4BvnORD.js";
2
+ import { r as s } from "../../assets/modules/uploadList-C_hqJ4X1.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-C4BvnORD.js";
2
+ import { r as s } from "../../assets/modules/uploadList-C_hqJ4X1.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as we, ref as f, computed as T, watch as W, onMounted as be, createBlock as H, openBlock as d, unref as n, withCtx as S, renderSlot as J, createElementBlock as g, createCommentVNode as K, createElementVNode as h, createVNode as C, createTextVNode as X, toDisplayString as E, normalizeClass as Ce, Fragment as ie, renderList as ne } from "vue";
2
- import { _ as Y } from "../../assets/modules/index-QDkmhaJS.js";
2
+ import { _ as Y } from "../../assets/modules/index-iozooZXX.js";
3
3
  import { Modal as Fe, Upload as ue, Space as _e } from "ant-design-vue";
4
4
  import { httpGet as Ue, ResStatus as fe } from "@skyfox2000/fapi";
5
- import { E as Te, a2 as Se, a8 as Ee } from "../../assets/modules/uploadList-C4BvnORD.js";
6
- import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-Dmi2Kiqo.js";
5
+ import { E as Te, a2 as Se, a8 as Ee } from "../../assets/modules/uploadList-C_hqJ4X1.js";
6
+ import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-DicHRX1r.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import p from "vue-m-message";
9
- import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-1Qt9-aFa.js";
9
+ import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-BjXLzCF2.js";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
12
  import "async-validator";
@@ -306,7 +306,7 @@ const Be = (l) => l.includes(",") || l.includes(`
306
306
  return p.error(v), ue.LIST_IGNORE;
307
307
  try {
308
308
  if (A(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
309
- const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-1Qt9-aFa.js").then((he) => he.j), M = await G(O, t.name);
309
+ const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-BjXLzCF2.js").then((he) => he.j), M = await G(O, t.name);
310
310
  if (!M.success)
311
311
  throw new Error(M.error || "CSV文件处理失败");
312
312
  const oe = await (await fetch(M.blobUrl)).arrayBuffer();
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
2
- import { _ as y } from "../../assets/modules/baseLayout-CYzXPj7i.js";
3
- import { af as A, a as S } from "../../assets/modules/uploadList-C4BvnORD.js";
2
+ import { _ as y } from "../../assets/modules/baseLayout-BT7tGUB1.js";
3
+ import { af as A, a as S } from "../../assets/modules/uploadList-C_hqJ4X1.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import k from "vue-m-message";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as y, ref as f, watch as S, onMounted as z, createBlock as D, openBlock as F, unref as u, withCtx as s, createVNode as m, createTextVNode as C } from "vue";
2
- import { _ as c } from "../../assets/modules/index-QDkmhaJS.js";
2
+ import { _ as c } from "../../assets/modules/index-iozooZXX.js";
3
3
  import { Modal as _, Space as k } from "ant-design-vue";
4
4
  import { ResStatus as E } from "@skyfox2000/fapi";
5
- import { a4 as h } from "../../assets/modules/uploadList-C4BvnORD.js";
5
+ import { a4 as h } from "../../assets/modules/uploadList-C_hqJ4X1.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import L from "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { A as N } from "../../assets/modules/file-upload-Dmi2Kiqo.js";
10
+ import { A as N } from "../../assets/modules/file-upload-DicHRX1r.js";
11
11
  import "vue-draggable-next";
12
- import { U as B } from "../../assets/modules/uploadList-Bh1TJ-XO.js";
12
+ import { U as B } from "../../assets/modules/uploadList-61wZlPUk.js";
13
13
  const K = /* @__PURE__ */ y({
14
14
  __name: "uploadForm",
15
15
  props: {
package/lib/webui.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, q as Be, n as ia, p as ca, s as L, t as ua, v as da, w as pa, x as fa, y as va, z as ma, A as Y, B as ha, C as ga, D as ba, E as Re } from "./assets/modules/uploadList-C4BvnORD.js";
2
- import { aa as $l, Q as Il, ac as Dl, R as El, V as Pl, a9 as Fl, a7 as Nl, a8 as Ml, ab as Bl, Y as Rl, T as Ol, a5 as Al, a2 as Ll, M as zl, a4 as Ul, U as Vl, G as Yl, $ as Kl, a3 as Wl, a6 as Hl, N as jl, S as Ql, ad as ql, F as Gl, a1 as Jl, ae as Xl, X as Zl, Z as es, W as as, af as ts, H as ls, I as ss, ag as rs, K as os, ah as ns, J as is, a0 as cs } from "./assets/modules/uploadList-C4BvnORD.js";
3
- import { A as ds, U as ps, p as fs } from "./assets/modules/file-upload-Dmi2Kiqo.js";
1
+ import { u as Ee, i as Z, a as me, L as Xe, c as Ze, P as j, o as Pe, b as ea, d as aa, e as Fe, r as ce, f as ta, g as la, h as Ne, j as sa, k as ke, l as ra, _ as oa, m as na, O as Me, q as Be, n as ia, p as ca, s as L, t as ua, v as da, w as pa, x as fa, y as va, z as ma, A as Y, B as ha, C as ga, D as ba, E as Re } from "./assets/modules/uploadList-C_hqJ4X1.js";
2
+ import { aa as $l, Q as Il, ac as Dl, R as El, V as Pl, a9 as Fl, a7 as Nl, a8 as Ml, ab as Bl, Y as Rl, T as Ol, a5 as Al, a2 as Ll, M as zl, a4 as Ul, U as Vl, G as Yl, $ as Kl, a3 as Wl, a6 as Hl, N as jl, S as Ql, ad as ql, F as Gl, a1 as Jl, ae as Xl, X as Zl, Z as es, W as as, af as ts, H as ls, I as ss, ag as rs, K as os, ah as ns, J as is, a0 as cs } from "./assets/modules/uploadList-C_hqJ4X1.js";
3
+ import { A as ds, U as ps, p as fs } from "./assets/modules/file-upload-DicHRX1r.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
5
  import { FrontCache as re, httpPost as Oe, ResStatus as Ae, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
6
6
  import he from "vue-m-message";
@@ -9,15 +9,15 @@ import "async-validator";
9
9
  import fe from "dayjs";
10
10
  import { Popover as Ca, theme as ze, Drawer as Ta, Space as te, Form as Ue, message as $a, FormItem as Ve, ConfigProvider as Ce, Popconfirm as Ia, Button as Ye, DropdownButton as Da, Menu as _e, MenuItem as xe, Dropdown as ve, Checkbox as Ea, Table as Ke, Tree as Pa, Cascader as Fa, DatePicker as Na, Input as ee, InputPassword as Ma, InputNumber as Ba, RangePicker as Ra, Textarea as Oa, TimePicker as Aa, Transfer as La, TreeSelect as za, LayoutContent as Ua } from "ant-design-vue";
11
11
  import { VueDraggableNext as Va } from "vue-draggable-next";
12
- import { d as We } from "./assets/modules/uploadList-Bh1TJ-XO.js";
13
- import { C as ms, U as hs, a as gs, p as bs } from "./assets/modules/uploadList-Bh1TJ-XO.js";
14
- import { c as He } from "./assets/modules/index-1Qt9-aFa.js";
15
- import { _ as xs, h as ys, b as ks, a as ws, d as Ss, e as Cs, g as Ts, f as $s, n as Is, p as Ds, t as Es, v as Ps } from "./assets/modules/index-1Qt9-aFa.js";
16
- import { _ as A } from "./assets/modules/index-QDkmhaJS.js";
17
- import { _ as U } from "./assets/modules/toolIcon-C6QsaAZ8.js";
18
- import { a as Ns } from "./assets/modules/toolIcon-C6QsaAZ8.js";
19
- import { _ as Bs, b as Rs, c as Os, d as As, e as Ls, I as zs, f as Us, g as Vs, a as Ys } from "./assets/modules/menuTabs-sfALzkA5.js";
20
- import { _ as Ws } from "./assets/modules/index-RrFsG5IK.js";
12
+ import { d as We } from "./assets/modules/uploadList-61wZlPUk.js";
13
+ import { C as ms, U as hs, a as gs, p as bs } from "./assets/modules/uploadList-61wZlPUk.js";
14
+ import { c as He } from "./assets/modules/index-BjXLzCF2.js";
15
+ import { _ as xs, h as ys, b as ks, a as ws, d as Ss, e as Cs, g as Ts, f as $s, n as Is, p as Ds, t as Es, v as Ps } from "./assets/modules/index-BjXLzCF2.js";
16
+ import { _ as A } from "./assets/modules/index-iozooZXX.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-BiWBb2pJ.js";
18
+ import { a as Ns } from "./assets/modules/toolIcon-BiWBb2pJ.js";
19
+ import { _ as Bs, b as Rs, c as Os, d as As, e as Ls, I as zs, f as Us, g as Vs, a as Ys } from "./assets/modules/menuTabs-D_UlXkmm.js";
20
+ import { _ as Ws } from "./assets/modules/index-BURe9YrF.js";
21
21
  import { _ as q } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
22
22
  const Te = (s, a, e, t = "remove") => {
23
23
  if (!e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -495,7 +495,11 @@ export const useAppInfo = defineStore('appInfo', {
495
495
  logout() {
496
496
  // 清理应用信息
497
497
  this.clean();
498
- window.location.assign('/');
498
+ if (isMicroApp()) {
499
+ MicroOpenApis.mainAppPush('/');
500
+ } else {
501
+ window.location.assign('/');
502
+ }
499
503
  },
500
504
  },
501
505
  persist: false,
@@ -105,7 +105,6 @@ class MicroAppSDK {
105
105
  if (this.isInMicroApp()) {
106
106
  // 添加监听器
107
107
  (window as any).microApp.addDataListener((data: any) => {
108
- console.log('收到来自主应用的数据:', data);
109
108
  this.handleResponseData(data);
110
109
  });
111
110
  }