@skyfox2000/webui 1.4.6 → 1.4.7

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.
Files changed (40) hide show
  1. package/lib/TemplateFile.d.ts +1 -0
  2. package/lib/assets/modules/{baseLayout-CUZpKmC0.js → baseLayout-DOrecPPK.js} +6 -6
  3. package/lib/assets/modules/{file-upload-BrTPBL29.js → file-upload-lbkluj3p.js} +1 -1
  4. package/lib/assets/modules/{index-DP1u2P1k.js → index-B1MSCuqH.js} +2 -2
  5. package/lib/assets/modules/{index-BqoqvtEv.js → index-BLNKcgk-.js} +1 -1
  6. package/lib/assets/modules/{index-NDOzpgzV.js → index-DQ-VDAr-.js} +10 -10
  7. package/lib/assets/modules/{menuTabs-BaZAmaXz.js → menuTabs-DOtYQ9Zu.js} +7 -7
  8. package/lib/assets/modules/{toolIcon-DHKszGtC.js → toolIcon-CqJWc5B7.js} +1 -1
  9. package/lib/assets/modules/{uploadList-C5R2XD5x.js → uploadList-3SuA7du0.js} +150 -138
  10. package/lib/assets/modules/{uploadList-DSN9t4r8.js → uploadList-DafDrGgh.js} +143 -133
  11. package/lib/components/content/tree/index.vue.d.ts +3 -14
  12. package/lib/components/form/upload/uploadList.vue.d.ts +3 -0
  13. package/lib/es/AceEditor/index.js +3 -3
  14. package/lib/es/BasicLayout/index.js +6 -6
  15. package/lib/es/Error403/index.js +1 -1
  16. package/lib/es/Error404/index.js +1 -1
  17. package/lib/es/ExcelForm/index.js +5 -5
  18. package/lib/es/MenuLayout/index.js +6 -6
  19. package/lib/es/TemplateFile/index.js +208 -0
  20. package/lib/es/UploadForm/index.js +6 -6
  21. package/lib/utils/tree.d.ts +9 -0
  22. package/lib/webui.css +1 -1
  23. package/lib/webui.es.js +396 -378
  24. package/package.json +8 -2
  25. package/src/components/content/dialog/templateFile.vue +259 -0
  26. package/src/components/content/dialog/uploadForm.vue +6 -14
  27. package/src/components/content/tree/index.vue +26 -25
  28. package/src/components/form/upload/uploadList.vue +66 -89
  29. package/src/utils/tree.ts +20 -0
  30. package/.eslintrc.js +0 -23
  31. package/.prettierrc +0 -11
  32. package/.vscode/settings.json +0 -25
  33. package/env.d.ts +0 -11
  34. package/index.html +0 -19
  35. package/plugins/vite-plugin-auto-generate-vue.ts +0 -105
  36. package/postcss.config.ts +0 -6
  37. package/tailwind.config.ts +0 -11
  38. package/tsconfig.json +0 -46
  39. package/vite.config.ts +0 -120
  40. package//344/273/243/347/240/201/350/247/204/350/214/203/345/217/212/351/243/216/346/240/274/346/214/207/345/215/227.md +0 -116
@@ -0,0 +1 @@
1
+ export {}
@@ -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-DHKszGtC.js";
4
- import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-BaZAmaXz.js";
5
- import { af as v, a as B, ah as E } from "./uploadList-DSN9t4r8.js";
3
+ import { a as b } from "./toolIcon-CqJWc5B7.js";
4
+ import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-DOtYQ9Zu.js";
5
+ import { ag as v, a as B, ai as E } from "./uploadList-DafDrGgh.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "@skyfox2000/fapi";
8
8
  import L from "vue-m-message";
@@ -17,8 +17,8 @@ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
17
17
  props: {
18
18
  routes: {}
19
19
  },
20
- setup(f) {
21
- const m = f, a = v(), t = B(), u = E();
20
+ setup(m) {
21
+ const f = m, a = v(), t = B(), u = E();
22
22
  return I(() => {
23
23
  L.closeAll();
24
24
  }), (d, c) => (o(), s(e(i), { class: "h-screen" }, {
@@ -56,7 +56,7 @@ const V = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
56
56
  e(t).menuCollapse ? r("", !0) : (o(), y("span", z, g(e(a).appInfo.Name), 1))
57
57
  ]),
58
58
  p(w, {
59
- routes: m.routes
59
+ routes: f.routes
60
60
  }, null, 8, ["routes"])
61
61
  ]),
62
62
  _: 1
@@ -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-DSN9t4r8.js";
7
+ import { ad as b, u as g } from "./uploadList-DafDrGgh.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-BqoqvtEv.js";
2
+ import { _ as m } from "./index-BLNKcgk-.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-DSN9t4r8.js";
5
+ import { P as M, d as P, o as $, b as K } from "./uploadList-DafDrGgh.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
@@ -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-DHKszGtC.js";
3
+ import { a as P, _ as k } from "./toolIcon-CqJWc5B7.js";
4
4
  const C = /* @__PURE__ */ d({
5
5
  inheritAttrs: !1,
6
6
  __name: "index",
@@ -1,11 +1,11 @@
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-DSN9t4r8.js";
3
+ import { i as T, aj as U, L as $, u as z } from "./uploadList-DafDrGgh.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-DHKszGtC.js";
8
- const D = (i) => {
7
+ import { _ as W } from "./toolIcon-CqJWc5B7.js";
8
+ const j = (i) => {
9
9
  const e = i.split(`
10
10
  `).filter((l) => l.trim() !== "");
11
11
  if (e.length === 0)
@@ -17,7 +17,7 @@ const D = (i) => {
17
17
  return isNaN(t) ? o : t;
18
18
  })), c = s[0].map((l) => String(l || "")), a = s.slice(1);
19
19
  return { headers: c, rows: a };
20
- }, j = async (i) => {
20
+ }, D = async (i) => {
21
21
  try {
22
22
  const e = await import("exceljs"), s = new e.default.Workbook();
23
23
  await s.xlsx.load(i);
@@ -98,7 +98,7 @@ const D = (i) => {
98
98
  }
99
99
  }, q = async (i, e) => {
100
100
  try {
101
- const s = D(i);
101
+ const s = j(i);
102
102
  return await g(s, e);
103
103
  } catch (s) {
104
104
  return {
@@ -125,13 +125,13 @@ const D = (i) => {
125
125
  }, G = async (i, e) => await g(i, e), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
126
126
  __proto__: null,
127
127
  csvToExcelView: q,
128
- csvToNormalized: D,
128
+ csvToNormalized: j,
129
129
  excelToExcelView: J,
130
- excelToNormalized: j,
130
+ excelToNormalized: D,
131
131
  normalizedToExcelView: G,
132
132
  toExcel: g
133
133
  }, Symbol.toStringTag, { value: "Module" })), x = async (i) => {
134
- const e = await j(i);
134
+ const e = await D(i);
135
135
  if (e.headers.length === 0)
136
136
  return m.error("Excel文件不包含工作表"), null;
137
137
  const s = [];
@@ -368,8 +368,8 @@ export {
368
368
  ie as b,
369
369
  q as c,
370
370
  Q as d,
371
- D as e,
372
- j as f,
371
+ j as e,
372
+ D as f,
373
373
  J as g,
374
374
  ue as h,
375
375
  le as i,
@@ -1,6 +1,6 @@
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-DHKszGtC.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-DSN9t4r8.js";
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 X, withModifiers as Y } from "vue";
2
+ import { a as w, _ as b } from "./toolIcon-CqJWc5B7.js";
3
+ import { c as L, U as E, ai as P, X as M, W as U, u as D, ad as G, a as F, V as Q, r as V, ag as z } from "./uploadList-DafDrGgh.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";
@@ -446,7 +446,7 @@ const re = /* @__PURE__ */ x({
446
446
  __name: "headerExits",
447
447
  setup(c) {
448
448
  const s = D(), i = y(!1), e = () => {
449
- i.value = !1, le() ? Q.userLogout() : s.logout(!0);
449
+ i.value = !1, le() ? G.userLogout() : s.logout(!0);
450
450
  };
451
451
  return (r, a) => (u(), g(R, null, [
452
452
  l(t(w), { title: "退出平台" }, {
@@ -582,7 +582,7 @@ const re = /* @__PURE__ */ x({
582
582
  S();
583
583
  }
584
584
  ), N(() => {
585
- X(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
585
+ Q(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(V.currentRoute.value.path), S();
586
586
  }), (_, o) => (u(), h(t(ie), {
587
587
  openKeys: p.value,
588
588
  "onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
@@ -620,7 +620,7 @@ const re = /* @__PURE__ */ x({
620
620
  onTabClick: r
621
621
  }, {
622
622
  default: d(() => [
623
- (u(!0), g(R, null, Y(t(e).TabPanes, (p) => (u(), h(t(ae), {
623
+ (u(!0), g(R, null, X(t(e).TabPanes, (p) => (u(), h(t(ae), {
624
624
  key: p.key
625
625
  }, {
626
626
  tab: d(() => [
@@ -635,7 +635,7 @@ const re = /* @__PURE__ */ x({
635
635
  t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
636
636
  key: 0,
637
637
  class: "inline-block mx-auto relative flex items-center",
638
- onClick: G((S) => a(p.key), ["stop"])
638
+ onClick: Y((S) => a(p.key), ["stop"])
639
639
  }, [
640
640
  l(t(b), {
641
641
  icon: "icon-new",
@@ -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-DSN9t4r8.js";
4
+ import { c as S } from "./uploadList-DafDrGgh.js";
5
5
  const T = /* @__PURE__ */ i({
6
6
  __name: "index",
7
7
  props: {