@skyfox2000/webui 1.5.0 → 1.5.1

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,15 +1,15 @@
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
- import { Layout as i, LayoutSider as k } from "ant-design-vue";
3
- import { a as b } from "./toolIcon-BD37QUAw.js";
4
- import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-Dx5VAF5K.js";
5
- import { ah as v, a as B, aj as E } from "./upload-template-DPaurj5G.js";
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 k } from "vue";
2
+ import { Layout as i, LayoutSider as h } from "ant-design-vue";
3
+ import { a as b } from "./toolIcon-CIuou75Q.js";
4
+ import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-BnjAvzNj.js";
5
+ import { ai as v, a as B, ak as E } from "./upload-template-Bs_uvXeO.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-nowrap items-center justify-center text-white font-bold text-lg overflow-hidden text-ellipsis" }, j = {
12
+ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-nowrap items-center justify-center text-white font-bold text-lg overflow-hidden text-ellipsis" }, z = {
13
13
  key: 0,
14
14
  class: "ml-[10px]"
15
15
  }, H = /* @__PURE__ */ _({
@@ -23,7 +23,7 @@ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
23
23
  L.closeAll();
24
24
  }), (d, c) => (o(), s(e(i), { class: "h-screen" }, {
25
25
  default: l(() => [
26
- e(t).fullscreen ? r("", !0) : (o(), s(e(k), {
26
+ e(t).fullscreen ? r("", !0) : (o(), s(e(h), {
27
27
  key: 0,
28
28
  class: "overflow-auto h-screen left-0 top-0 bottom-0",
29
29
  collapsed: e(t).menuCollapse,
@@ -53,7 +53,7 @@ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
53
53
  }),
54
54
  _: 1
55
55
  }, 8, ["title"]),
56
- e(t).menuCollapse ? r("", !0) : (o(), y("span", j, g(e(a).appInfo.Name), 1))
56
+ e(t).menuCollapse ? r("", !0) : (o(), y("span", z, g(e(a).appInfo.Name), 1))
57
57
  ]),
58
58
  p(w, {
59
59
  routes: f.routes
@@ -65,7 +65,7 @@ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
65
65
  default: l(() => [
66
66
  e(t).fullscreen ? r("", !0) : (o(), s($, { key: 0 })),
67
67
  e(u).TabEnabled ? (o(), s(N, { key: 1 })) : r("", !0),
68
- h(d.$slots, "default")
68
+ k(d.$slots, "default")
69
69
  ]),
70
70
  _: 3
71
71
  })
@@ -4,7 +4,7 @@ var d = (n, r, s) => m(n, typeof r != "symbol" ? r + "" : r, s);
4
4
  import { hostUrl as w } from "@skyfox2000/fapi";
5
5
  import y from "dayjs";
6
6
  import f from "vue-m-message";
7
- import { M as b, u as g } from "./upload-template-DPaurj5G.js";
7
+ import { M as b, u as g } from "./upload-template-Bs_uvXeO.js";
8
8
  import { isMicroApp as O } 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 M {
@@ -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, as as U, L as $, u as z } from "./upload-template-DPaurj5G.js";
3
+ import { i as T, as as U, L as $, u as z } from "./upload-template-Bs_uvXeO.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-BD37QUAw.js";
7
+ import { _ as W } from "./toolIcon-CIuou75Q.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-BD37QUAw.js";
3
+ import { a as P, _ as k } from "./toolIcon-CIuou75Q.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as B, provide as N, ref as w, watch as p, onMounted as _, createBlock as n, openBlock as r, unref as a, withCtx as s, createElementVNode as b, renderSlot as C, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
2
- import { _ as m } from "./index-C8QXmnsn.js";
2
+ import { _ as m } from "./index-bx6gDQTB.js";
3
3
  import { Modal as D, Space as $ } from "ant-design-vue";
4
4
  import "@skyfox2000/fapi";
5
- import { P as E, d as M, o as P, b as K } from "./upload-template-DPaurj5G.js";
5
+ import { P as E, d as M, o as P, b as K } from "./upload-template-Bs_uvXeO.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -1,8 +1,8 @@
1
- import { defineComponent as x, createBlock as h, createCommentVNode as C, openBlock as u, unref as t, mergeProps as $, useAttrs as V, computed as M, ref as v, watch as k, withCtx as d, createElementBlock as _, normalizeStyle as T, createElementVNode as g, inject as W, onMounted as P, createVNode as l, toDisplayString as w, Fragment as R, reactive as Y, nextTick as q, renderList as J, withModifiers as X } from "vue";
2
- import { a as A, _ as S } from "./toolIcon-BD37QUAw.js";
3
- import { c as L, W as E, aj as O, Z as K, Y as U, u as D, ao as b, M as Z, a as F, X as G, r as H, ah as B } from "./upload-template-DPaurj5G.js";
1
+ import { defineComponent as x, createBlock as h, createCommentVNode as C, openBlock as u, unref as t, mergeProps as w, useAttrs as V, computed as j, ref as v, watch as k, withCtx as d, createElementBlock as _, normalizeStyle as T, createElementVNode as g, inject as Y, onMounted as P, createVNode as l, toDisplayString as $, Fragment as R, reactive as q, nextTick as J, renderList as W, withModifiers as X } from "vue";
2
+ import { a as A, _ as S } from "./toolIcon-CIuou75Q.js";
3
+ import { c as L, X as E, ak as O, $ as K, Z as U, u as D, ao as b, M as Z, a as F, Y as G, r as H, ai as B } from "./upload-template-Bs_uvXeO.js";
4
4
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { theme as j, 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";
5
+ import { theme as M, 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";
7
7
  import { SERVER_HOST as N } from "@skyfox2000/fapi";
8
8
  import "vue-m-message";
@@ -21,7 +21,7 @@ const re = /* @__PURE__ */ x({
21
21
  iconUrl: `${N.APP_ICONS}`,
22
22
  icon: s.icon
23
23
  });
24
- return (r, a) => c.icon ? (u(), h(t(e), $({
24
+ return (r, a) => c.icon ? (u(), h(t(e), w({
25
25
  key: 0,
26
26
  icon: c.icon,
27
27
  class: ["text-2xl", "align-middle", "w-6", "h-6"]
@@ -272,7 +272,7 @@ const re = /* @__PURE__ */ x({
272
272
  "update:iconIndex"
273
273
  ],
274
274
  setup(c, { emit: s }) {
275
- const i = V(), e = c, r = s, a = M(() => {
275
+ const i = V(), e = c, r = s, a = j(() => {
276
276
  if (Array.isArray(e.size)) return e.size;
277
277
  {
278
278
  let o = e.size;
@@ -290,7 +290,7 @@ const re = /* @__PURE__ */ x({
290
290
  m.value = o, n.value = e.icons[o];
291
291
  }
292
292
  );
293
- const p = M({
293
+ const p = j({
294
294
  get() {
295
295
  return m.value;
296
296
  },
@@ -302,7 +302,7 @@ const re = /* @__PURE__ */ x({
302
302
  const I = (o) => {
303
303
  if (o.stopPropagation(), e.clickEvent) {
304
304
  const y = e.clickEvent.split("#");
305
- y.length === 2 && W("$" + y[0]).$emit(y[1], e.data);
305
+ y.length === 2 && Y("$" + y[0]).$emit(y[1], e.data);
306
306
  }
307
307
  e.autoSwitch && e.icons.length > 0 && (p.value = (p.value + 1) % e.icons.length, n.value = e.icons[m.value]), r("click");
308
308
  }, f = () => {
@@ -327,7 +327,7 @@ const re = /* @__PURE__ */ x({
327
327
  height: a.value[1].toString()
328
328
  })
329
329
  }, [
330
- (z = n.value) != null && z.startsWith("sym-") ? (u(), _("svg", $({ key: 1 }, t(i), {
330
+ (z = n.value) != null && z.startsWith("sym-") ? (u(), _("svg", w({ key: 1 }, t(i), {
331
331
  class: ["re-icon symbol", [e.clickable ? "clickable" : "", f(), e.className]],
332
332
  "aria-hidden": "true",
333
333
  style: {
@@ -342,7 +342,7 @@ const re = /* @__PURE__ */ x({
342
342
  g("use", {
343
343
  "xlink:href": "#icon-" + n.value.replace("sym-", "")
344
344
  }, null, 8, ue)
345
- ], 16)) : (u(), _("i", $({ key: 0 }, t(i), {
345
+ ], 16)) : (u(), _("i", w({ key: 0 }, t(i), {
346
346
  class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, f(), e.className]],
347
347
  style: {
348
348
  top: e.position ? e.position[1] : 1,
@@ -385,7 +385,7 @@ const re = /* @__PURE__ */ x({
385
385
  icon: s.icon,
386
386
  icons: s.icons
387
387
  });
388
- return (r, a) => c.icon || c.icons ? (u(), h(t(e), $({
388
+ return (r, a) => c.icon || c.icons ? (u(), h(t(e), w({
389
389
  key: 0,
390
390
  icon: c.icon,
391
391
  icons: c.icons,
@@ -398,7 +398,7 @@ const re = /* @__PURE__ */ x({
398
398
  }, _e = /* @__PURE__ */ x({
399
399
  __name: "index",
400
400
  setup(c) {
401
- const { useToken: s } = j, { token: i } = s(), e = O();
401
+ const { useToken: s } = M, { token: i } = s(), e = O();
402
402
  return k(
403
403
  () => e.TabActive,
404
404
  () => K()
@@ -420,7 +420,7 @@ const re = /* @__PURE__ */ x({
420
420
  separator: ""
421
421
  }, {
422
422
  itemRender: d(({ route: n }) => [
423
- g("span", me, w(n.breadcrumbName), 1),
423
+ g("span", me, $(n.breadcrumbName), 1),
424
424
  l(t(S), {
425
425
  icon: n.icon,
426
426
  fontsize: "15px"
@@ -440,7 +440,7 @@ const re = /* @__PURE__ */ x({
440
440
  const i = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, r = i.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
441
441
  s.value = i.getFullYear() + "-" + r;
442
442
  }, 1e3);
443
- }), (i, e) => (u(), _("div", ge, w(s.value), 1));
443
+ }), (i, e) => (u(), _("div", ge, $(s.value), 1));
444
444
  }
445
445
  }), ye = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, ve = /* @__PURE__ */ x({
446
446
  __name: "headerExits",
@@ -484,7 +484,7 @@ const re = /* @__PURE__ */ x({
484
484
  color: "orange",
485
485
  class: "w-[60px] h-[60px]"
486
486
  }),
487
- g("div", ye, w(t(b)("webui.layout.header.exitConfirmMessage")), 1)
487
+ g("div", ye, $(t(b)("webui.layout.header.exitConfirmMessage")), 1)
488
488
  ]),
489
489
  _: 1
490
490
  })
@@ -502,7 +502,7 @@ const re = /* @__PURE__ */ x({
502
502
  }, {
503
503
  default: d(() => [
504
504
  g("div", he, [
505
- g("span", be, w(t(s).Name), 1),
505
+ g("span", be, $(t(s).Name), 1),
506
506
  l(t(re), { icon: "icon-account" })
507
507
  ])
508
508
  ]),
@@ -512,7 +512,7 @@ const re = /* @__PURE__ */ x({
512
512
  }), Se = { class: "flex items-center" }, Ue = /* @__PURE__ */ x({
513
513
  __name: "index",
514
514
  setup(c) {
515
- const { useToken: s } = j, { token: i } = s(), e = F(), r = () => {
515
+ const { useToken: s } = M, { token: i } = s(), e = F(), r = () => {
516
516
  e.setMenuCollapse(!e.menuCollapse);
517
517
  };
518
518
  return (a, n) => (u(), h(t(oe), {
@@ -559,7 +559,7 @@ const re = /* @__PURE__ */ x({
559
559
  routes: {}
560
560
  },
561
561
  setup(c) {
562
- const s = c, i = v([]), e = v([]), r = Y([]), a = O(), n = (f) => {
562
+ const s = c, i = v([]), e = v([]), r = q([]), a = O(), n = (f) => {
563
563
  B().push(f.key.toString());
564
564
  }, m = F(), p = v([]), I = () => {
565
565
  let f = a.TabActive;
@@ -569,7 +569,7 @@ const re = /* @__PURE__ */ x({
569
569
  return k(
570
570
  () => m.menuCollapse,
571
571
  (f) => {
572
- f || (p.value = [], q(() => {
572
+ f || (p.value = [], J(() => {
573
573
  p.value = [...i.value];
574
574
  }));
575
575
  }
@@ -591,10 +591,10 @@ const re = /* @__PURE__ */ x({
591
591
  onClick: n
592
592
  }, null, 8, ["openKeys", "selectedKeys", "items"]));
593
593
  }
594
- }), Ie = { class: "flex items-center" }, Ce = { class: "flex" }, we = ["onClick"], Le = /* @__PURE__ */ x({
594
+ }), Ie = { class: "flex items-center" }, Ce = { class: "flex" }, $e = ["onClick"], Le = /* @__PURE__ */ x({
595
595
  __name: "menuTabs",
596
596
  setup(c) {
597
- const { useToken: s } = j, { token: i } = s(), e = O();
597
+ const { useToken: s } = M, { token: i } = s(), e = O();
598
598
  k(
599
599
  () => H.currentRoute.value.path,
600
600
  (n) => {
@@ -617,12 +617,12 @@ const re = /* @__PURE__ */ x({
617
617
  onTabClick: r
618
618
  }, {
619
619
  default: d(() => [
620
- (u(!0), _(R, null, J(t(e).TabPanes, (p) => (u(), h(t(ae), {
620
+ (u(!0), _(R, null, W(t(e).TabPanes, (p) => (u(), h(t(ae), {
621
621
  key: p.key
622
622
  }, {
623
623
  tab: d(() => [
624
624
  g("div", Ie, [
625
- g("span", Ce, w(p.title), 1),
625
+ g("span", Ce, $(p.title), 1),
626
626
  l(t(A), {
627
627
  title: "关闭",
628
628
  placement: "top",
@@ -641,7 +641,7 @@ const re = /* @__PURE__ */ x({
641
641
  class: "w-[15px] h-[15px] ml-1",
642
642
  tipcolor: t(i).colorBgSpotlight
643
643
  }, null, 8, ["tipcolor"])
644
- ], 8, we)) : C("", !0)
644
+ ], 8, $e)) : C("", !0)
645
645
  ]),
646
646
  _: 2
647
647
  }, 1024)
@@ -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 "./upload-template-DPaurj5G.js";
4
+ import { c as S } from "./upload-template-Bs_uvXeO.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {
@@ -6385,7 +6385,7 @@ const tc = R(!1), Xc = {
6385
6385
  }
6386
6386
  };
6387
6387
  export {
6388
- _r as $,
6388
+ Uc as $,
6389
6389
  ln as A,
6390
6390
  on as B,
6391
6391
  Mt as C,
@@ -6393,51 +6393,51 @@ export {
6393
6393
  Gc as E,
6394
6394
  Kc as F,
6395
6395
  na as G,
6396
- Ps as H,
6397
- Rc as I,
6398
- eo as J,
6399
- to as K,
6396
+ ut as H,
6397
+ Ps as I,
6398
+ Rc as J,
6399
+ eo as K,
6400
6400
  an as L,
6401
6401
  yt as M,
6402
- kc as N,
6402
+ to as N,
6403
6403
  Ie as O,
6404
6404
  Pe as P,
6405
- Dc as Q,
6406
- zs as R,
6407
- br as S,
6408
- Cc as T,
6409
- Mc as U,
6410
- lo as V,
6411
- io as W,
6412
- Fc as X,
6413
- Oa as Y,
6414
- Uc as Z,
6405
+ kc as Q,
6406
+ Dc as R,
6407
+ zs as S,
6408
+ br as T,
6409
+ Cc as U,
6410
+ Mc as V,
6411
+ lo as W,
6412
+ io as X,
6413
+ Fc as Y,
6414
+ Oa as Z,
6415
6415
  $c as _,
6416
6416
  Vc as a,
6417
- yc as a0,
6418
- gr as a1,
6419
- _c as a2,
6420
- hc as a3,
6421
- aa as a4,
6422
- gc as a5,
6423
- Lc as a6,
6424
- Js as a7,
6425
- Er as a8,
6426
- Sc as a9,
6427
- pc as aa,
6428
- pr as ab,
6429
- Ws as ac,
6430
- xn as ad,
6431
- tt as ae,
6432
- It as af,
6433
- jt as ag,
6434
- we as ah,
6435
- xc as ai,
6436
- ea as aj,
6437
- tc as ak,
6438
- Xc as al,
6439
- Yc as am,
6440
- ut as an,
6417
+ _r as a0,
6418
+ yc as a1,
6419
+ gr as a2,
6420
+ _c as a3,
6421
+ hc as a4,
6422
+ aa as a5,
6423
+ gc as a6,
6424
+ Lc as a7,
6425
+ Js as a8,
6426
+ Er as a9,
6427
+ Sc as aa,
6428
+ pc as ab,
6429
+ pr as ac,
6430
+ Ws as ad,
6431
+ xn as ae,
6432
+ tt as af,
6433
+ It as ag,
6434
+ jt as ah,
6435
+ we as ai,
6436
+ xc as aj,
6437
+ ea as ak,
6438
+ tc as al,
6439
+ Xc as am,
6440
+ Yc as an,
6441
6441
  Jc as ao,
6442
6442
  Qc as ap,
6443
6443
  Bc as aq,
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as pe, ref as O, computed as $, watch as T, resolveDirective as de, createElementBlock as d, openBlock as c, normalizeClass as z, unref as n, createElementVNode as h, withDirectives as x, createCommentVNode as w, createBlock as V, mergeProps as q, withCtx as v, createVNode as p, createTextVNode as P, toDisplayString as I, Fragment as me, renderList as fe } from "vue";
2
- import { _ as G } from "./index-C8QXmnsn.js";
3
- import { a as B, _ as R } from "./toolIcon-BD37QUAw.js";
2
+ import { _ as G } from "./index-bx6gDQTB.js";
3
+ import { a as B, _ as R } from "./toolIcon-CIuou75Q.js";
4
4
  import { httpPost as K, ResStatus as N } from "@skyfox2000/fapi";
5
- import { L as W, u as X, v as he, _ as ve } from "./upload-template-DPaurj5G.js";
6
- import { U as i, f as ye, p as H } from "./file-upload-CYCbA0Go.js";
5
+ import { L as W, u as X, v as he, _ as ve } from "./upload-template-Bs_uvXeO.js";
6
+ import { U as i, f as ye, p as H } from "./file-upload-BFUScC4k.js";
7
7
  import { combineParams as Y } from "@skyfox2000/microbase";
8
8
  import _ from "vue-m-message";
9
9
  import "async-validator";
@@ -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-BD37QUAw.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-CIuou75Q.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/upload-template-DPaurj5G.js";
5
+ import "../../assets/modules/upload-template-Bs_uvXeO.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-DGfxQmRW.js";
10
+ import { _ as D } from "../../assets/modules/index-crPOh8wI.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-Ck74iWSW.js";
3
- import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-B8Oyfzfi.js";
3
+ import { ai as A, a as S } from "../../assets/modules/upload-template-Bs_uvXeO.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -32,12 +32,12 @@ const j = /* @__PURE__ */ f({
32
32
  class: x(["relative overflow-y-auto", r.value])
33
33
  }, [
34
34
  w(m, null, {
35
- default: s(({ Component: u, route: i }) => [
35
+ default: s(({ Component: i, route: u }) => [
36
36
  (t(), o(y, {
37
37
  include: n(e).CachedComponents,
38
38
  exclude: n(e).ExcludeComponents
39
39
  }, [
40
- (t(), o(I(n(e).cacheComponent(u, i))))
40
+ (t(), o(I(n(e).cacheComponent(i, u))))
41
41
  ], 1032, ["include", "exclude"]))
42
42
  ]),
43
43
  _: 1
@@ -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/upload-template-DPaurj5G.js";
2
+ import { r as s } from "../../assets/modules/upload-template-Bs_uvXeO.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/upload-template-DPaurj5G.js";
2
+ import { r as s } from "../../assets/modules/upload-template-Bs_uvXeO.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 H, onMounted as be, createBlock as W, 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-C8QXmnsn.js";
2
+ import { _ as Y } from "../../assets/modules/index-bx6gDQTB.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 { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-DPaurj5G.js";
6
- import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CYCbA0Go.js";
5
+ import { G as Te, a6 as Se, ac as Ee } from "../../assets/modules/upload-template-Bs_uvXeO.js";
6
+ import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-BFUScC4k.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-D_-xtDo9.js";
9
+ import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-BiRM1pnL.js";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
12
  import "async-validator";
@@ -307,7 +307,7 @@ const Be = (l) => l.includes(",") || l.includes(`
307
307
  return p.error(v), ue.LIST_IGNORE;
308
308
  try {
309
309
  if (A(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
310
- const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-D_-xtDo9.js").then((he) => he.j), M = await G(O, t.name);
310
+ const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-BiRM1pnL.js").then((he) => he.j), M = await G(O, t.name);
311
311
  if (!M.success)
312
312
  throw new Error(M.error || "CSV文件处理失败");
313
313
  const oe = await (await fetch(M.blobUrl)).arrayBuffer();
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, ref as d, watch as _, onMounted as h, resolveComponent as v, 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-Ck74iWSW.js";
3
- import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.js";
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-B8Oyfzfi.js";
3
+ import { ai as A, a as S } from "../../assets/modules/upload-template-Bs_uvXeO.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import k from "vue-m-message";
@@ -20,10 +20,10 @@ const j = /* @__PURE__ */ f({
20
20
  (c) => {
21
21
  r.value = c ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-81px)]";
22
22
  }
23
- ), h(() => {
23
+ ), v(() => {
24
24
  k.closeAll();
25
25
  }), (c, B) => {
26
- const m = v("router-view");
26
+ const m = h("router-view");
27
27
  return t(), o(y, {
28
28
  routes: p.routes
29
29
  }, {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as x, ref as o, watch as S, onMounted as h, createBlock as C, openBlock as F, unref as m, withCtx as s, createVNode as f, createTextVNode as q } from "vue";
2
- import { _ as L } from "../../assets/modules/index-C8QXmnsn.js";
2
+ import { _ as L } from "../../assets/modules/index-bx6gDQTB.js";
3
3
  import { Modal as z, Space as D } from "ant-design-vue";
4
4
  import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
5
- import { ak as d } from "../../assets/modules/upload-template-DPaurj5G.js";
6
- import { U as b } from "../../assets/modules/file-upload-CYCbA0Go.js";
5
+ import { al as d } from "../../assets/modules/upload-template-Bs_uvXeO.js";
6
+ import { U as b } from "../../assets/modules/file-upload-BFUScC4k.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- import { U as g } from "../../assets/modules/uploadList-C0zjgyKg.js";
12
+ import { U as g } from "../../assets/modules/uploadList-C6vb1JKs.js";
13
13
  const _ = /* @__PURE__ */ x({
14
14
  __name: "templateFile",
15
15
  props: {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as S, ref as s, watch as b, onMounted as F, createBlock as z, openBlock as y, unref as p, withCtx as n, createVNode as v, mergeProps as D, createTextVNode as w } from "vue";
2
- import { _ as c } from "../../assets/modules/index-C8QXmnsn.js";
2
+ import { _ as c } from "../../assets/modules/index-bx6gDQTB.js";
3
3
  import { Modal as _, Space as L } from "ant-design-vue";
4
4
  import { ResStatus as k } from "@skyfox2000/fapi";
5
- import { a7 as T } from "../../assets/modules/upload-template-DPaurj5G.js";
5
+ import { a8 as T } from "../../assets/modules/upload-template-Bs_uvXeO.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import E from "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { A as N } from "../../assets/modules/file-upload-CYCbA0Go.js";
10
+ import { A as N } from "../../assets/modules/file-upload-BFUScC4k.js";
11
11
  import "vue-draggable-next";
12
- import { U as A } from "../../assets/modules/uploadList-C0zjgyKg.js";
12
+ import { U as A } from "../../assets/modules/uploadList-C6vb1JKs.js";
13
13
  const K = /* @__PURE__ */ S({
14
14
  __name: "uploadForm",
15
15
  props: {
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { default as router } from './router';
2
2
  import { ToolPanelGroup, DisplayMode, PanelCollapsed, ToolPanelConfig, ToolPanelEvents, ToolPanelProps, DragConfig } from './components/content';
3
+ import { default as i18n } from './locales/index';
3
4
  export { pinia } from './stores/pinia';
4
5
  export type { AnyControl, PostOptions, ExecuteOptions, } from './typings/data.d';
5
6
  export type { PageControl, PageControlOption, PrimaryKey, } from './typings/page.d';
@@ -47,4 +48,5 @@ export { useSettingInfo } from './stores/settingInfo';
47
48
  export { Alert, Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon, Loading, Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, GroupTools, ToolPanel, Tree, AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, List, ListOperate, PropEditor, type PropConfigItem, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, TimePicker, Transfer, TransferTable, TreeSelect, ImageList, UploadList, Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs, } from './components/index';
48
49
  export type { ToolPanelGroup, DisplayMode, PanelCollapsed, ToolPanelConfig, ToolPanelEvents, ToolPanelProps, DragConfig, };
49
50
  export { uploadTempOpener, uploadTempBtn } from './utils/upload-template';
50
- export { initLang, i18n, $t, getAvailableLanguages, getLang, setLang } from './locales/index';
51
+ export { initLang, $t, getAvailableLanguages, getLang, setLang } from './locales/index';
52
+ export { i18n };
package/lib/webui.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as Me, i as pe, a as Be, L as St, c as $t, P as re, o as qe, b as Tt, d as Dt, e as He, g as Qe, r as de, f as Je, h as Xe, j as Ze, k as Pt, l as me, m as et, _ as tt, n as at, O as Ne, p as Ft, q as lt, s as It, t as Et, v as ee, w as Lt, x as Ut, y as Mt, z as Bt, A as Nt, B as zt, C as se, D as At, E as Ot, F as Rt, G as rt, M as Kt } from "./assets/modules/upload-template-DPaurj5G.js";
2
- import { ao as Ar, ad as Or, T as Rr, U as Kr, Y as jr, ac as Vr, aa as Yr, ab as Gr, ae as Wr, ap as qr, a0 as Hr, W as Qr, aq as Jr, a8 as Xr, a5 as Zr, R as es, a7 as ts, an as as, am as ls, X as rs, I as ss, a2 as os, a6 as ns, a9 as is, S as us, V as cs, af as ds, H as ps, a4 as fs, ag as vs, $ as gs, a1 as ms, ar as hs, Z as bs, al as ys, ak as xs, ah as _s, J as ks, K as ws, ai as Cs, Q as Ss, aj as $s, N as Ts, a3 as Ds } from "./assets/modules/upload-template-DPaurj5G.js";
3
- import { f as jt, p as Re } from "./assets/modules/file-upload-CYCbA0Go.js";
4
- import { A as Fs, U as Is } from "./assets/modules/file-upload-CYCbA0Go.js";
1
+ import { u as Me, i as pe, a as Be, L as St, c as $t, P as re, o as qe, b as Tt, d as Dt, e as He, g as Qe, r as de, f as Je, h as Xe, j as Ze, k as Pt, l as me, m as et, _ as tt, n as at, O as Ne, p as Ft, q as lt, s as It, t as Et, v as ee, w as Lt, x as Ut, y as Mt, z as Bt, A as Nt, B as zt, C as se, D as At, E as Ot, F as Rt, G as rt, M as Kt } from "./assets/modules/upload-template-Bs_uvXeO.js";
2
+ import { ao as Ar, ae as Or, U as Rr, V as Kr, Z as jr, ad as Vr, ab as Yr, ac as Gr, af as Wr, ap as qr, a1 as Hr, X as Qr, aq as Jr, a9 as Xr, a6 as Zr, S as es, a8 as ts, H as as, an as ls, Y as rs, J as ss, a3 as os, a7 as ns, aa as is, T as us, W as cs, ag as ds, I as ps, a5 as fs, ah as vs, a0 as gs, a2 as ms, ar as hs, $ as bs, am as ys, al as xs, ai as _s, K as ks, N as ws, aj as Cs, R as Ss, ak as $s, Q as Ts, a4 as Ds } from "./assets/modules/upload-template-Bs_uvXeO.js";
3
+ import { f as jt, p as Re } from "./assets/modules/file-upload-BFUScC4k.js";
4
+ import { A as Fs, U as Is } from "./assets/modules/file-upload-BFUScC4k.js";
5
5
  import { EnvConfig as Ke, isMicroApp as Vt } from "@skyfox2000/microbase";
6
6
  import { FrontCache as ge, httpPost as ze, ResStatus as Ae, SERVER_HOST as Yt, fieldMapping as he } from "@skyfox2000/fapi";
7
7
  import te from "vue-m-message";
@@ -10,15 +10,15 @@ import "async-validator";
10
10
  import Le from "dayjs";
11
11
  import { Popover as Ht, theme as nt, Drawer as Qt, Space as ce, Form as it, message as Jt, FormItem as ut, ConfigProvider as ye, Popconfirm as ct, DropdownButton as dt, Menu as we, MenuItem as Ce, Dropdown as Ue, Checkbox as Xt, List as Zt, ListItem as ea, Card as ta, Button as pt, Table as ft, Tree as aa, Cascader as la, DatePicker as ra, Input as fe, InputPassword as sa, InputNumber as oa, RangePicker as na, Textarea as ia, TimePicker as ua, Transfer as ca, TreeSelect as da, Upload as pa, Image as fa, LayoutContent as va } from "ant-design-vue";
12
12
  import { VueDraggableNext as ga } from "vue-draggable-next";
13
- import { d as ma } from "./assets/modules/uploadList-C0zjgyKg.js";
14
- import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-C0zjgyKg.js";
15
- import { c as vt } from "./assets/modules/index-D_-xtDo9.js";
16
- import { _ as zs, h as As, b as Os, a as Rs, d as Ks, e as js, g as Vs, f as Ys, n as Gs, p as Ws, t as qs, v as Hs } from "./assets/modules/index-D_-xtDo9.js";
17
- import { _ as Z } from "./assets/modules/index-C8QXmnsn.js";
18
- import { _ as V } from "./assets/modules/toolIcon-BD37QUAw.js";
19
- import { a as Js } from "./assets/modules/toolIcon-BD37QUAw.js";
20
- import { _ as Zs, b as eo, c as to, d as ao, e as lo, I as ro, f as so, g as oo, a as no } from "./assets/modules/menuTabs-Dx5VAF5K.js";
21
- import { _ as uo } from "./assets/modules/index-DGfxQmRW.js";
13
+ import { d as ma } from "./assets/modules/uploadList-C6vb1JKs.js";
14
+ import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-C6vb1JKs.js";
15
+ import { c as vt } from "./assets/modules/index-BiRM1pnL.js";
16
+ import { _ as zs, h as As, b as Os, a as Rs, d as Ks, e as js, g as Vs, f as Ys, n as Gs, p as Ws, t as qs, v as Hs } from "./assets/modules/index-BiRM1pnL.js";
17
+ import { _ as Z } from "./assets/modules/index-bx6gDQTB.js";
18
+ import { _ as V } from "./assets/modules/toolIcon-CIuou75Q.js";
19
+ import { a as Js } from "./assets/modules/toolIcon-CIuou75Q.js";
20
+ import { _ as Zs, b as eo, c as to, d as ao, e as lo, I as ro, f as so, g as oo, a as no } from "./assets/modules/menuTabs-BnjAvzNj.js";
21
+ import { _ as uo } from "./assets/modules/index-crPOh8wI.js";
22
22
  import { _ as ne } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
23
  const Ve = (r, a, e, t = "remove") => {
24
24
  if (!e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "后台前端通用组件定义, 支持国际化",
5
5
  "type": "module",
6
6
  "keywords": [],
package/src/index.ts CHANGED
@@ -309,4 +309,7 @@ export type {
309
309
 
310
310
  export { uploadTempOpener, uploadTempBtn } from './utils/upload-template';
311
311
 
312
- export { initLang, i18n , $t , getAvailableLanguages, getLang, setLang } from './locales/index'
312
+ export { initLang, $t, getAvailableLanguages, getLang, setLang } from './locales/index'
313
+
314
+ import i18n from './locales/index';
315
+ export { i18n };