@skyfox2000/webui 1.4.1 → 1.4.2

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,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-FTelEQwg.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-BHWHHyOp.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/uploadList-DIfhRlbh.js";
5
+ import "../../assets/modules/uploadList-EbG8acej.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-Bb4qTaRC.js";
10
+ import { _ as D } from "../../assets/modules/index-C5X-1A4m.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-BLUY_tDF.js";
3
- import { ae as A, a as S } from "../../assets/modules/uploadList-DIfhRlbh.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-CeyN__cz.js";
3
+ import { af as A, a as S } from "../../assets/modules/uploadList-EbG8acej.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-DIfhRlbh.js";
2
+ import { r as s } from "../../assets/modules/uploadList-EbG8acej.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-DIfhRlbh.js";
2
+ import { r as s } from "../../assets/modules/uploadList-EbG8acej.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-BuP8i92E.js";
2
+ import { _ as Y } from "../../assets/modules/index-DbgSOuIs.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-DIfhRlbh.js";
6
- import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-Dk4VFMgz.js";
5
+ import { E as Te, a2 as Se, a8 as Ee } from "../../assets/modules/uploadList-EbG8acej.js";
6
+ import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-DiUcAspb.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-DLY7idvQ.js";
9
+ import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-YIIA7qm8.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-DLY7idvQ.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-YIIA7qm8.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-BLUY_tDF.js";
3
- import { ae as A, a as S } from "../../assets/modules/uploadList-DIfhRlbh.js";
2
+ import { _ as y } from "../../assets/modules/baseLayout-CeyN__cz.js";
3
+ import { af as A, a as S } from "../../assets/modules/uploadList-EbG8acej.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-BuP8i92E.js";
2
+ import { _ as c } from "../../assets/modules/index-DbgSOuIs.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-DIfhRlbh.js";
5
+ import { a4 as h } from "../../assets/modules/uploadList-EbG8acej.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-Dk4VFMgz.js";
10
+ import { A as N } from "../../assets/modules/file-upload-DiUcAspb.js";
11
11
  import "vue-draggable-next";
12
- import { U as B } from "../../assets/modules/uploadList-DTAFNhow.js";
12
+ import { U as B } from "../../assets/modules/uploadList-1qFfdb6_.js";
13
13
  const K = /* @__PURE__ */ y({
14
14
  __name: "uploadForm",
15
15
  props: {
package/lib/index.d.ts CHANGED
@@ -35,7 +35,7 @@ export { exportSelectedRows, exportResults } from './utils/export-table';
35
35
  export { path, AsyncUploader } from './utils/file-upload';
36
36
  export { EventPrefix } from './utils/eventbus';
37
37
  export { default as eventBus } from './utils/eventbus';
38
- export { getHostInfo, getAppInfo, userLogin, userLogout, getToken, getUserInfo } from './utils/main-openapis';
38
+ export { MicroOpenApis } from './utils/micro-openapis';
39
39
  export { router as AppRouter };
40
40
  export { pendingNavigation, routes } from './router';
41
41
  export { useAppInfo } from './stores/appInfo';
@@ -1,4 +1,4 @@
1
- interface MainApis {
1
+ declare const MicroOpenApis: {
2
2
  getAppInfo: () => Promise<any>;
3
3
  getHostInfo: () => Promise<any>;
4
4
  getUserInfo: () => Promise<any>;
@@ -6,30 +6,6 @@ interface MainApis {
6
6
  userLogin: (params: any) => Promise<any>;
7
7
  userLogout: () => Promise<any>;
8
8
  mainAppPush: (params: any) => Promise<any>;
9
- }
10
- type MainApiMethod = keyof MainApis;
11
- declare class MicroAppSDK {
12
- constructor();
13
- ensureMicroAppReady(): void;
14
- getMainApis(): Partial<MainApis>;
15
- isInMicroApp(): boolean;
16
- callMainApi<T extends MainApiMethod>(methodName: T, params?: any): Promise<ReturnType<MainApis[T]>>;
17
- getAppInfo(): Promise<any>;
18
- getHostInfo(): Promise<any>;
19
- getUserInfo(): Promise<any>;
20
- getToken(): Promise<any>;
21
- userLogin(params: any): Promise<any>;
22
- userLogout(): Promise<any>;
23
- mainAppPush(params: any): Promise<any>;
24
- }
25
- declare const microAppSDKInstance: MicroAppSDK;
26
- export default microAppSDKInstance;
27
- export { MicroAppSDK, microAppSDKInstance };
28
- export declare const getAppInfo: () => Promise<any>;
29
- export declare const getHostInfo: () => Promise<any>;
30
- export declare const getUserInfo: () => Promise<any>;
31
- export declare const getToken: () => Promise<any>;
32
- export declare const userLogin: (params: any) => Promise<any>;
33
- export declare const userLogout: () => Promise<any>;
34
- export declare const mainAppPush: (params: any) => Promise<any>;
35
- export declare const isInMicroApp: () => boolean;
9
+ isInMicroApp: () => boolean;
10
+ };
11
+ export { MicroOpenApis };
package/lib/webui.es.js CHANGED
@@ -1,23 +1,23 @@
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-DIfhRlbh.js";
2
- import { aa as $l, Q as Il, R as Dl, V as El, a9 as Pl, a7 as Fl, a8 as Nl, ab as Ml, Y as Bl, T as Rl, a5 as Al, a2 as Ol, M as Ll, a4 as zl, U as Ul, G as Vl, $ as Yl, a3 as Kl, a6 as Wl, N as Hl, S as jl, ac as Ql, F as ql, a1 as Gl, ad as Jl, X as Xl, Z as Zl, W as es, ae as as, H as ts, I as ls, af as ss, K as rs, ag as os, J as ns, a0 as is } from "./assets/modules/uploadList-DIfhRlbh.js";
3
- import { A as us, U as ds, a as ps, g as fs, c as vs, d as ms, p as hs, u as gs, b as bs } from "./assets/modules/file-upload-Dk4VFMgz.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-EbG8acej.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-EbG8acej.js";
3
+ import { A as ds, U as ps, p as fs } from "./assets/modules/file-upload-DiUcAspb.js";
4
4
  import { EnvConfig as we } from "@skyfox2000/microbase";
5
- import { FrontCache as re, httpPost as Ae, ResStatus as Oe, SERVER_HOST as _a, fieldMapping as oe } from "@skyfox2000/fapi";
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";
7
7
  import { defineComponent as C, createBlock as b, openBlock as m, withModifiers as ae, unref as l, useAttrs as X, withCtx as g, createElementVNode as $, createVNode as w, mergeProps as N, renderSlot as D, normalizeClass as P, toDisplayString as F, createCommentVNode as k, ref as _, provide as ge, watch as T, onMounted as K, createTextVNode as M, inject as ne, resolveDirective as le, withDirectives as Q, computed as J, createElementBlock as S, normalizeStyle as be, createSlots as Le, useSlots as xa, Fragment as R, renderList as z, resolveDynamicComponent as ya, onActivated as ka, shallowRef as wa, onUnmounted as Sa, withKeys as Se } from "vue";
8
8
  import "async-validator";
9
9
  import fe from "dayjs";
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 Aa, TimePicker as Oa, Transfer as La, TreeSelect as za, LayoutContent as Ua } from "ant-design-vue";
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-DTAFNhow.js";
13
- import { C as xs, U as ys, a as ks, p as ws } from "./assets/modules/uploadList-DTAFNhow.js";
14
- import { c as He } from "./assets/modules/index-DLY7idvQ.js";
15
- import { _ as Cs, h as Ts, b as $s, a as Is, d as Ds, e as Es, g as Ps, f as Fs, n as Ns, p as Ms, t as Bs, v as Rs } from "./assets/modules/index-DLY7idvQ.js";
16
- import { _ as O } from "./assets/modules/index-BuP8i92E.js";
17
- import { _ as U } from "./assets/modules/toolIcon-FTelEQwg.js";
18
- import { a as Os } from "./assets/modules/toolIcon-FTelEQwg.js";
19
- import { _ as zs, b as Us, c as Vs, d as Ys, e as Ks, I as Ws, f as Hs, g as js, a as Qs } from "./assets/modules/menuTabs-DzoBrCZE.js";
20
- import { _ as Gs } from "./assets/modules/index-Bb4qTaRC.js";
12
+ import { d as We } from "./assets/modules/uploadList-1qFfdb6_.js";
13
+ import { C as ms, U as hs, a as gs, p as bs } from "./assets/modules/uploadList-1qFfdb6_.js";
14
+ import { c as He } from "./assets/modules/index-YIIA7qm8.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-YIIA7qm8.js";
16
+ import { _ as A } from "./assets/modules/index-DbgSOuIs.js";
17
+ import { _ as U } from "./assets/modules/toolIcon-BHWHHyOp.js";
18
+ import { a as Ns } from "./assets/modules/toolIcon-BHWHHyOp.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-hVwE4xrx.js";
20
+ import { _ as Ws } from "./assets/modules/index-C5X-1A4m.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)
@@ -279,7 +279,7 @@ class Qe {
279
279
  }
280
280
  async function Gt() {
281
281
  try {
282
- const s = await Ae(
282
+ const s = await Oe(
283
283
  {
284
284
  api: "PLATFORM_API",
285
285
  url: "/api/SysCacheSvr/getLastTime",
@@ -287,7 +287,7 @@ async function Gt() {
287
287
  },
288
288
  {}
289
289
  );
290
- if ((s == null ? void 0 : s.status) === Oe.SUCCESS) {
290
+ if ((s == null ? void 0 : s.status) === Ae.SUCCESS) {
291
291
  const a = s.data;
292
292
  Object.keys(a).forEach((e) => {
293
293
  const t = a[e];
@@ -363,14 +363,14 @@ const Jt = async (s, a) => {
363
363
  value: r.dataIndex || r.key || ""
364
364
  }));
365
365
  let o = e.page, p = e.gridQuery;
366
- return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Ae(t, p).then((r) => {
367
- if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Oe.SUCCESS) {
366
+ return t.api || (t.api = o.api), t.authorize === void 0 && (t.authorize = o.authorize), e.isGridLoading.value = !0, Oe(t, p).then((r) => {
367
+ if (e.isGridLoading.value = !1, (r == null ? void 0 : r.status) === Ae.SUCCESS) {
368
368
  if (r.data) {
369
- const u = r.data.map((A) => {
370
- const x = { ...A };
369
+ const u = r.data.map((O) => {
370
+ const x = { ...O };
371
371
  return f.forEach((E) => {
372
372
  const B = E.dataIndex || E.key;
373
- B && E.customRender && (x[B] = E.customRender(A[B], A));
373
+ B && E.customRender && (x[B] = E.customRender(O[B], O));
374
374
  }), x;
375
375
  }), y = new i({ fields: d }).parse(u), I = new Blob([`\uFEFF${y}`], { type: "text/csv" });
376
376
  We(I, c);
@@ -516,7 +516,7 @@ const Jt = async (s, a) => {
516
516
  footer: g(() => [
517
517
  w(l(te), null, {
518
518
  default: g(() => [
519
- o.cancelText !== "" ? (m(), b(l(O), {
519
+ o.cancelText !== "" ? (m(), b(l(A), {
520
520
  key: 0,
521
521
  onClick: d
522
522
  }, {
@@ -525,7 +525,7 @@ const Jt = async (s, a) => {
525
525
  ]),
526
526
  _: 1
527
527
  })) : k("", !0),
528
- o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(O), {
528
+ o.saveAsText !== "" && l(i).saveAsBtnVisible !== !1 ? (m(), b(l(A), {
529
529
  key: 1,
530
530
  onClick: f,
531
531
  type: "primary",
@@ -536,7 +536,7 @@ const Jt = async (s, a) => {
536
536
  ]),
537
537
  _: 1
538
538
  }, 8, ["loading"])) : k("", !0),
539
- o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(O), {
539
+ o.saveText !== "" && l(i).saveBtnVisible !== !1 ? (m(), b(l(A), {
540
540
  key: 2,
541
541
  onClick: c,
542
542
  type: "primary",
@@ -796,7 +796,7 @@ const Jt = async (s, a) => {
796
796
  default: g(() => [
797
797
  w(l(te), null, {
798
798
  default: g(() => [
799
- w(l(O), {
799
+ w(l(A), {
800
800
  type: "primary",
801
801
  onClick: r,
802
802
  icon: "icon-search"
@@ -807,7 +807,7 @@ const Jt = async (s, a) => {
807
807
  _: 1,
808
808
  __: [0]
809
809
  }),
810
- w(l(O), {
810
+ w(l(A), {
811
811
  onClick: v,
812
812
  icon: "icon-reset"
813
813
  }, {
@@ -1043,7 +1043,7 @@ const Jt = async (s, a) => {
1043
1043
  ], 2)
1044
1044
  ]),
1045
1045
  default: g(() => [
1046
- w(l(O), {
1046
+ w(l(A), {
1047
1047
  class: P([
1048
1048
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1049
1049
  p === 0 ? "rounded-l-[5px]" : "",
@@ -1064,7 +1064,7 @@ const Jt = async (s, a) => {
1064
1064
  }, 1032, ["class", "disabled", "tiptext", "onClick"])
1065
1065
  ]),
1066
1066
  _: 2
1067
- }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(O), {
1067
+ }, 1024)) : !o.children && l(G)(o) ? (m(), b(l(A), {
1068
1068
  key: 1,
1069
1069
  class: P([
1070
1070
  "px-[8px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
@@ -1105,7 +1105,7 @@ const Jt = async (s, a) => {
1105
1105
  }, 1024)
1106
1106
  ]),
1107
1107
  default: g(() => [
1108
- w(l(O), {
1108
+ w(l(A), {
1109
1109
  class: P([
1110
1110
  "!w-[46px] px-[5px] py-[2px] relative border-[#ccc] bg-[#fcfcfc] rounded-none text-[#666] hover:z-10",
1111
1111
  p === 0 ? "rounded-l-[5px]" : ""
@@ -1173,7 +1173,7 @@ const Jt = async (s, a) => {
1173
1173
  return m(), S("div", ft, [
1174
1174
  w(l(te), null, {
1175
1175
  default: g(() => [
1176
- (m(!0), S(R, null, z(f.value, (v) => Q((m(), b(l(O), {
1176
+ (m(!0), S(R, null, z(f.value, (v) => Q((m(), b(l(A), {
1177
1177
  key: v.key,
1178
1178
  type: v.type,
1179
1179
  danger: v.danger,
@@ -1209,7 +1209,7 @@ const Jt = async (s, a) => {
1209
1209
  })
1210
1210
  ]),
1211
1211
  default: g(() => [
1212
- w(l(O), null, {
1212
+ w(l(A), null, {
1213
1213
  default: g(() => p[0] || (p[0] = [
1214
1214
  M(" 更多操作 ")
1215
1215
  ])),
@@ -1301,10 +1301,10 @@ const Jt = async (s, a) => {
1301
1301
  v.value = !0;
1302
1302
  }, 50);
1303
1303
  }), (u, h) => {
1304
- var I, A;
1304
+ var I, O;
1305
1305
  const y = le("auth");
1306
1306
  return m(), S(R, null, [
1307
- (I = l(t).buttons) != null && I.value.length || (A = l(t).tools) != null && A.length ? (m(), b(ht, {
1307
+ (I = l(t).buttons) != null && I.value.length || (O = l(t).tools) != null && O.length ? (m(), b(ht, {
1308
1308
  key: 0,
1309
1309
  "grid-ctrl": l(t),
1310
1310
  "editor-ctrl": l(t).editor
@@ -1436,14 +1436,14 @@ const Jt = async (s, a) => {
1436
1436
  props: ca,
1437
1437
  emits: ["change", "update:labels", "update:value"],
1438
1438
  setup(s, { emit: a }) {
1439
- var y, I, A;
1439
+ var y, I, O;
1440
1440
  const e = s, t = X(), n = L(), i = ua(e.url, e), c = e.optionCtrl ?? i.optionCtrl;
1441
1441
  c.inputFactory = wa(n);
1442
1442
  const f = _({
1443
1443
  ...c == null ? void 0 : c.url,
1444
1444
  url: ((y = c == null ? void 0 : c.url) == null ? void 0 : y.url) || "",
1445
1445
  fieldMap: (c == null ? void 0 : c.fieldMap) || ((I = c == null ? void 0 : c.url) == null ? void 0 : I.fieldMap),
1446
- params: (c == null ? void 0 : c.params) || ((A = c == null ? void 0 : c.url) == null ? void 0 : A.params),
1446
+ params: (c == null ? void 0 : c.params) || ((O = c == null ? void 0 : c.url) == null ? void 0 : O.params),
1447
1447
  loadingText: !1
1448
1448
  }), { editorCtrl: d, errInfo: o, labelText: p } = n, r = _(t.placeholder);
1449
1449
  T(
@@ -1886,7 +1886,7 @@ const pl = /* @__PURE__ */ C({
1886
1886
  };
1887
1887
  return (i, c) => {
1888
1888
  var f;
1889
- return m(), b(l(Aa), N({
1889
+ return m(), b(l(Oa), N({
1890
1890
  class: ((f = l(t)) == null ? void 0 : f.errClass) === "error" ? ["error", "!border-red-300", "shadow-[0_0_3px_0px_#ff4d4f]"] : "",
1891
1891
  "allow-clear": !0,
1892
1892
  placeholder: "请输入" + l(e),
@@ -1909,7 +1909,7 @@ const pl = /* @__PURE__ */ C({
1909
1909
  }, c = _(a.valueFormat ?? "HH:mm");
1910
1910
  return (f, d) => {
1911
1911
  var o;
1912
- return m(), b(l(Oa), {
1912
+ return m(), b(l(Aa), {
1913
1913
  class: P(["w-full", [((o = l(n)) == null ? void 0 : o.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : ""]]),
1914
1914
  placeholder: "请选择" + l(t),
1915
1915
  locale: l(ue),
@@ -1961,12 +1961,12 @@ const pl = /* @__PURE__ */ C({
1961
1961
  targetKeys: o.value,
1962
1962
  onChange: p
1963
1963
  }, r.$attrs), {
1964
- children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: A, onItemSelect: x, selectedKeys: E }) => [
1964
+ children: g(({ direction: h, disabled: y, filteredItems: I, onItemSelectAll: O, onItemSelect: x, selectedKeys: E }) => [
1965
1965
  D(r.$slots, "children", {
1966
1966
  direction: h,
1967
1967
  disabled: y,
1968
1968
  filteredItems: I,
1969
- onItemSelectAll: A,
1969
+ onItemSelectAll: O,
1970
1970
  onItemSelect: x,
1971
1971
  selectedKeys: E
1972
1972
  })
@@ -2191,44 +2191,45 @@ const pl = /* @__PURE__ */ C({
2191
2191
  }
2192
2192
  });
2193
2193
  export {
2194
- Cs as Alert,
2195
- zs as AppIcon,
2194
+ xs as Alert,
2195
+ Bs as AppIcon,
2196
2196
  ce as AppRouter,
2197
- us as AsyncUploader,
2197
+ ds as AsyncUploader,
2198
2198
  cl as AutoComplete,
2199
- Us as Breadcrumb,
2200
- O as Button,
2199
+ Rs as Breadcrumb,
2200
+ A as Button,
2201
2201
  Qe as Cache,
2202
2202
  et as CacheKeys,
2203
- xs as CanPreviewFileExt,
2203
+ ms as CanPreviewFileExt,
2204
2204
  ul as Cascader,
2205
2205
  dl as Checkbox,
2206
2206
  Sl as Content,
2207
2207
  pl as DatePicker,
2208
- Vs as Datetime,
2209
- Gs as Dialog,
2208
+ Os as Datetime,
2209
+ Ws as Dialog,
2210
2210
  ll as Drawer,
2211
2211
  $l as EventPrefix,
2212
2212
  sl as Form,
2213
2213
  rl as FormItem,
2214
2214
  al as Fullscreen,
2215
- Ys as Header,
2216
- Ks as HeaderExits,
2215
+ As as Header,
2216
+ Ls as HeaderExits,
2217
2217
  tt as Helper,
2218
2218
  Il as ICONS_LIB,
2219
- Ws as Icon,
2219
+ zs as Icon,
2220
2220
  pt as Icontool,
2221
2221
  St as Input,
2222
2222
  fl as InputIcon,
2223
2223
  ml as InputNumber,
2224
2224
  vl as InputPassword,
2225
2225
  tl as LayoutIcon,
2226
- Ts as Loading,
2227
- Hs as Menu,
2228
- js as MenuTabs,
2226
+ ys as Loading,
2227
+ Us as Menu,
2228
+ Vs as MenuTabs,
2229
+ Dl as MicroOpenApis,
2229
2230
  Me as OPTIONS,
2230
2231
  ca as OptionCommProps,
2231
- Qs as ProjectIcon,
2232
+ Ys as ProjectIcon,
2232
2233
  hl as PropEditor,
2233
2234
  j as ProviderKeys,
2234
2235
  It as Radio,
@@ -2244,64 +2245,60 @@ export {
2244
2245
  yl as TimePicker,
2245
2246
  U as ToolIcon,
2246
2247
  ht as Toolbar,
2247
- Os as Tooltip,
2248
+ Ns as Tooltip,
2248
2249
  Dt as Transfer,
2249
2250
  kl as TransferTable,
2250
2251
  il as Tree,
2251
2252
  wl as TreeSelect,
2252
- ys as UploadList,
2253
- ds as UploadStatus,
2254
- $s as appendExcelData,
2255
- Is as checkExcelDuplicates,
2256
- Dl as checkIconsExpired,
2253
+ hs as UploadList,
2254
+ ps as UploadStatus,
2255
+ ks as appendExcelData,
2256
+ ws as checkExcelDuplicates,
2257
+ El as checkIconsExpired,
2257
2258
  fa as circleLoading,
2258
2259
  Ze as createFromIconfont,
2259
- Ds as createMarkedExcelView,
2260
- El as crumbs,
2260
+ Ss as createMarkedExcelView,
2261
+ Pl as crumbs,
2261
2262
  Jt as csvToExcelBlob,
2262
2263
  He as csvToExcelView,
2263
- Es as csvToNormalized,
2264
+ Cs as csvToNormalized,
2264
2265
  De as defaultTools,
2265
- Pl as doDelete,
2266
- Fl as doExecute,
2266
+ Fl as doDelete,
2267
+ Nl as doExecute,
2267
2268
  Re as doQuery,
2268
- Nl as doSave,
2269
- ks as donwloadFromMinio,
2269
+ Ml as doSave,
2270
+ gs as donwloadFromMinio,
2270
2271
  We as downloadBlob,
2271
- Ml as eventBus,
2272
- Ps as excelToExcelView,
2273
- Fs as excelToNormalized,
2272
+ Bl as eventBus,
2273
+ Ts as excelToExcelView,
2274
+ $s as excelToNormalized,
2274
2275
  el as exportResults,
2275
2276
  Zt as exportSelectedRows,
2276
2277
  Ne as filterColumns,
2277
2278
  Y as formValidate,
2278
- ps as getAppInfo,
2279
- Bl as getFormDetail,
2280
- fs as getHostInfo,
2281
- Rl as getIconTransform,
2279
+ Rl as getFormDetail,
2280
+ Ol as getIconTransform,
2282
2281
  Al as getRecordDetail,
2283
- Ol as getRuleTexts,
2282
+ Ll as getRuleTexts,
2284
2283
  ma as getSelectedLabels,
2285
- Ll as getSelectedValues,
2286
- vs as getToken,
2284
+ zl as getSelectedValues,
2287
2285
  W as getToolByKey,
2288
2286
  ye as getToolGroup,
2289
2287
  H as getToolStatus,
2290
2288
  G as getToolVisible,
2291
- ms as getUserInfo,
2292
2289
  ke as gridQueryFind,
2293
2290
  ra as gridQueryList,
2294
- zl as gridRowUpdate,
2291
+ Ul as gridRowUpdate,
2295
2292
  na as gridStatusUpdate,
2296
2293
  Gt as initCacheCheck,
2297
2294
  qt as initDirective,
2298
- Ul as initMenu,
2299
- Vl as initPageFactory,
2300
- Yl as initValidate,
2295
+ Vl as initMenu,
2296
+ Yl as initPageFactory,
2297
+ Kl as initValidate,
2301
2298
  Z as isEmpty,
2302
2299
  da as loadOption,
2303
- Kl as mergeColumns,
2304
- Ns as normalizedToExcelView,
2300
+ Wl as mergeColumns,
2301
+ Is as normalizedToExcelView,
2305
2302
  Xa as onColumnVisibleChanged,
2306
2303
  aa as onFormClose,
2307
2304
  Pe as onFormSave,
@@ -2309,42 +2306,40 @@ export {
2309
2306
  je as onFullscreenClick,
2310
2307
  la as onGridRowDelete,
2311
2308
  ta as onGridRowEdit,
2312
- Wl as onGridRowExpand,
2309
+ Hl as onGridRowExpand,
2313
2310
  va as onOptionChanged,
2314
2311
  Wa as onReloadClick,
2315
2312
  V as onToolClicked,
2316
2313
  sa as openNewForm,
2317
- Hl as outFormDataFields,
2318
- jl as parseIcons,
2319
- hs as path,
2320
- Ql as pendingNavigation,
2321
- ql as pinia,
2322
- ws as previewFromMinio,
2314
+ jl as outFormDataFields,
2315
+ Ql as parseIcons,
2316
+ fs as path,
2317
+ ql as pendingNavigation,
2318
+ Gl as pinia,
2319
+ bs as previewFromMinio,
2323
2320
  Xt as processCsvFile,
2324
- Ms as processExcelFile,
2321
+ Ds as processExcelFile,
2325
2322
  Be as queryTree,
2326
- Gl as resetRules,
2327
- Jl as routes,
2328
- Xl as saveForm,
2329
- Zl as setFormData,
2330
- es as showBreadcrumb,
2331
- Bs as toExcel,
2323
+ Jl as resetRules,
2324
+ Xl as routes,
2325
+ Zl as saveForm,
2326
+ es as setFormData,
2327
+ as as showBreadcrumb,
2328
+ Es as toExcel,
2332
2329
  pa as unloadOption,
2333
- as as useAppInfo,
2334
- ts as useEditorFactory,
2330
+ ts as useAppInfo,
2331
+ ls as useEditorFactory,
2335
2332
  Fe as useFormItemFactory,
2336
- ls as useGridFactory,
2337
- ss as useHostInfo,
2333
+ ss as useGridFactory,
2334
+ rs as useHostInfo,
2338
2335
  L as useInputFactory,
2339
2336
  ua as useOptionFactory,
2340
- rs as usePageFactory,
2341
- os as usePageInfo,
2337
+ os as usePageFactory,
2338
+ ns as usePageInfo,
2342
2339
  me as useSettingInfo,
2343
2340
  Za as useToolFactory,
2344
- ns as useTreeFactory,
2341
+ is as useTreeFactory,
2345
2342
  Ee as useUserInfo,
2346
- gs as userLogin,
2347
- bs as userLogout,
2348
- is as validateData,
2349
- Rs as validateExcel
2343
+ cs as validateData,
2344
+ Ps as validateExcel
2350
2345
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -65,4 +65,4 @@
65
65
  "vite-plugin-dts": "^4.5.4",
66
66
  "vue-tsc": "^2.2.0"
67
67
  }
68
- }
68
+ }
package/src/index.ts CHANGED
@@ -215,7 +215,7 @@ export { path, AsyncUploader } from '@/utils/file-upload';
215
215
  export { EventPrefix } from '@/utils/eventbus';
216
216
  export { default as eventBus } from '@/utils/eventbus';
217
217
 
218
- export { getHostInfo, getAppInfo, userLogin, userLogout, getToken, getUserInfo } from '@/utils/main-openapis';
218
+ export { MicroOpenApis } from '@/utils/micro-openapis';
219
219
 
220
220
  import router from '@/router';
221
221
  export { router as AppRouter };