@skyfox2000/webui 1.4.8 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/modules/{baseLayout-DIny49tw.js → baseLayout-DSVT_hCt.js} +3 -3
- package/lib/assets/modules/{file-upload-DHUBZlX4.js → file-upload-BefTs4CH.js} +1 -1
- package/lib/assets/modules/{index-CEffEFtI.js → index-C6BAsERS.js} +1 -1
- package/lib/assets/modules/{index-DyRjXb_O.js → index-Cwr2EDEI.js} +2 -2
- package/lib/assets/modules/{index-BIAdOoSj.js → index-DkMjvF98.js} +10 -10
- package/lib/assets/modules/{menuTabs-CCrFWIOl.js → menuTabs-D99nhxm_.js} +2 -2
- package/lib/assets/modules/{toolIcon-BGZR_aUI.js → toolIcon-DDp0EFRE.js} +1 -1
- package/lib/assets/modules/{uploadList-CMXuGRWT.js → upload-template-BK8iQQYz.js} +273 -263
- package/lib/assets/modules/uploadList-BfCPE5Gb.js +420 -0
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +16 -15
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +61 -90
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -0
- package/lib/utils/upload-template.d.ts +4 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +57 -53
- package/package.json +1 -1
- package/src/components/content/dialog/excelForm.vue +5 -0
- package/src/components/content/dialog/templateFile.vue +27 -79
- package/src/components/content/table/index.vue +1 -0
- package/src/components/form/propEditor/index.vue +21 -7
- package/src/components/form/upload/uploadList.vue +106 -38
- package/src/index.ts +2 -0
- package/src/utils/upload-template.ts +15 -0
- package/lib/assets/modules/uploadList-l4q5o65m.js +0 -400
|
@@ -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-
|
|
4
|
-
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-
|
|
5
|
-
import { ag as v, a as B, ai as E } from "./
|
|
3
|
+
import { a as b } from "./toolIcon-DDp0EFRE.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-D99nhxm_.js";
|
|
5
|
+
import { ag as v, a as B, ai as E } from "./upload-template-BK8iQQYz.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 { ad as b, u as g } from "./
|
|
7
|
+
import { ad as b, u as g } from "./upload-template-BK8iQQYz.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,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-
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-DDp0EFRE.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-
|
|
2
|
+
import { _ as m } from "./index-C6BAsERS.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 "./
|
|
5
|
+
import { P as E, d as M, o as P, b as K } from "./upload-template-BK8iQQYz.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
@@ -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,
|
|
3
|
+
import { i as T, al as U, L as $, u as z } from "./upload-template-BK8iQQYz.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-
|
|
8
|
-
const
|
|
7
|
+
import { _ as W } from "./toolIcon-DDp0EFRE.js";
|
|
8
|
+
const D = (i) => {
|
|
9
9
|
const e = i.split(`
|
|
10
10
|
`).filter((l) => l.trim() !== "");
|
|
11
11
|
if (e.length === 0)
|
|
@@ -17,7 +17,7 @@ const j = (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
|
-
},
|
|
20
|
+
}, j = 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 j = (i) => {
|
|
|
98
98
|
}
|
|
99
99
|
}, q = async (i, e) => {
|
|
100
100
|
try {
|
|
101
|
-
const s =
|
|
101
|
+
const s = D(i);
|
|
102
102
|
return await g(s, e);
|
|
103
103
|
} catch (s) {
|
|
104
104
|
return {
|
|
@@ -125,13 +125,13 @@ const j = (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:
|
|
128
|
+
csvToNormalized: D,
|
|
129
129
|
excelToExcelView: J,
|
|
130
|
-
excelToNormalized:
|
|
130
|
+
excelToNormalized: j,
|
|
131
131
|
normalizedToExcelView: G,
|
|
132
132
|
toExcel: g
|
|
133
133
|
}, Symbol.toStringTag, { value: "Module" })), x = async (i) => {
|
|
134
|
-
const e = await
|
|
134
|
+
const e = await j(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
|
-
|
|
372
|
-
|
|
371
|
+
D as e,
|
|
372
|
+
j as f,
|
|
373
373
|
J as g,
|
|
374
374
|
ue as h,
|
|
375
375
|
le as i,
|
|
@@ -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 X, withModifiers as Y } from "vue";
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
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 "./
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-DDp0EFRE.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 "./upload-template-BK8iQQYz.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 "./
|
|
4
|
+
import { c as S } from "./upload-template-BK8iQQYz.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|