@skyfox2000/webui 1.3.9 → 1.3.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/{file-upload-Bkrnsn-c.js → file-upload-CwyUkWwi.js} +1 -1
- package/lib/assets/modules/{index-DpVh0k1G.js → index-BRWQ6SRp.js} +1 -1
- package/lib/assets/modules/{index-D9o5XTiu.js → index-B_XPl41L.js} +2 -2
- package/lib/assets/modules/{index-BOBTPmiP.js → index-DHWlaZL2.js} +2 -2
- package/lib/assets/modules/{menuTabs-D0MJJye5.js → menuTabs-NoNLt_B5.js} +2 -2
- package/lib/assets/modules/{toolIcon-jkoAB1WI.js → toolIcon-BSjgzw0G.js} +1 -1
- package/lib/assets/modules/{uploadList-Bwj7G7OA.js → uploadList-1Zmhwr0q.js} +4 -4
- package/lib/assets/modules/{uploadList-D80ld89N.js → uploadList-B4wb8I9a.js} +279 -275
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +12 -12
- package/package.json +1 -1
- package/src/utils/page.ts +15 -9
|
@@ -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-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-BSjgzw0G.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/uploadList-
|
|
5
|
+
import "../../assets/modules/uploadList-B4wb8I9a.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-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-DHWlaZL2.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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as g, resolveComponent as b, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ad as j, a as K, af as M } from "../../assets/modules/uploadList-
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-BSjgzw0G.js";
|
|
4
|
+
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-NoNLt_B5.js";
|
|
5
|
+
import { ad as j, a as K, af as M } from "../../assets/modules/uploadList-B4wb8I9a.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import P from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-B4wb8I9a.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -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-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-B4wb8I9a.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 c, computed as U, watch as W, onMounted as be, createBlock as H, openBlock as v, unref as i, withCtx as T, renderSlot as J, createElementBlock as x, createCommentVNode as K, createElementVNode as g, createVNode as C, createTextVNode as X, toDisplayString as S, normalizeClass as Ce, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-BRWQ6SRp.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, a1 as Se, a7 as Ee } from "../../assets/modules/uploadList-
|
|
6
|
-
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { E as Te, a1 as Se, a7 as Ee } from "../../assets/modules/uploadList-B4wb8I9a.js";
|
|
6
|
+
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CwyUkWwi.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import f from "vue-m-message";
|
|
9
|
-
import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-
|
|
9
|
+
import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-B_XPl41L.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 f.error(p), ue.LIST_IGNORE;
|
|
308
308
|
try {
|
|
309
309
|
if (j(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
|
|
310
|
-
const h = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(h), { csvToExcelView: G } = await import("../../assets/modules/index-
|
|
310
|
+
const h = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(h), { csvToExcelView: G } = await import("../../assets/modules/index-B_XPl41L.js").then((he) => he.j), z = await G(O, t.name);
|
|
311
311
|
if (!z.success)
|
|
312
312
|
throw new Error(z.error || "CSV文件处理失败");
|
|
313
313
|
const oe = await (await fetch(z.blobUrl)).arrayBuffer();
|
|
@@ -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-
|
|
2
|
+
import { _ as c } from "../../assets/modules/index-BRWQ6SRp.js";
|
|
3
3
|
import { Modal as _, Space as k } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as E } from "@skyfox2000/fapi";
|
|
5
|
-
import { a3 as h } from "../../assets/modules/uploadList-
|
|
5
|
+
import { a3 as h } from "../../assets/modules/uploadList-B4wb8I9a.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-
|
|
10
|
+
import { A as N } from "../../assets/modules/file-upload-CwyUkWwi.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-1Zmhwr0q.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 Je, i as Z, a as ve, c as Xe, P as H, o as Ee, b as Ze, d as ea, e as Pe, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-
|
|
2
|
-
import { a9 as Sl, N as Cl, Q as Tl, U as $l, a8 as Il, a6 as Dl, a7 as El, aa as Pl, X as Fl, S as Nl, a4 as Ml, a1 as Rl, L as Bl, a3 as Al, T as Ol, G as Ll, Z as zl, a2 as Ul, a5 as Vl, M as Yl, R as Kl, ab as Wl, F as Hl, a0 as jl, ac as Ql, W as ql, Y as Gl, V as Jl, ad as Xl, H as Zl, I as es, ae as as, K as ts, af as ls, J as ss, $ as rs } from "./assets/modules/uploadList-
|
|
3
|
-
import { A as ns, U as is, a as cs, g as us, c as ds, d as ps, p as fs, u as vs, b as ms } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Je, i as Z, a as ve, c as Xe, P as H, o as Ee, b as Ze, d as ea, e as Pe, r as ce, f as aa, g as ta, h as Fe, j as la, k as ke, l as sa, _ as ra, m as oa, O as Ne, q as Me, n as na, p as ia, s as L, t as ca, v as ua, w as da, x as pa, y as fa, z as va, A as Q, B as ma, C as ha, D as ga, E as Re } from "./assets/modules/uploadList-B4wb8I9a.js";
|
|
2
|
+
import { a9 as Sl, N as Cl, Q as Tl, U as $l, a8 as Il, a6 as Dl, a7 as El, aa as Pl, X as Fl, S as Nl, a4 as Ml, a1 as Rl, L as Bl, a3 as Al, T as Ol, G as Ll, Z as zl, a2 as Ul, a5 as Vl, M as Yl, R as Kl, ab as Wl, F as Hl, a0 as jl, ac as Ql, W as ql, Y as Gl, V as Jl, ad as Xl, H as Zl, I as es, ae as as, K as ts, af as ls, J as ss, $ as rs } from "./assets/modules/uploadList-B4wb8I9a.js";
|
|
3
|
+
import { A as ns, U as is, a as cs, g as us, c as ds, d as ps, p as fs, u as vs, b as ms } from "./assets/modules/file-upload-CwyUkWwi.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
5
|
import { FrontCache as re, httpPost as Be, ResStatus as Ae, SERVER_HOST as ba, fieldMapping as oe } from "@skyfox2000/fapi";
|
|
6
6
|
import me from "vue-m-message";
|
|
@@ -9,15 +9,15 @@ import "async-validator";
|
|
|
9
9
|
import pe from "dayjs";
|
|
10
10
|
import { Popover as Sa, theme as Le, Drawer as Ca, Space as te, Form as ze, message as Ta, FormItem as Ue, ConfigProvider as Ce, Popconfirm as $a, Button as Ve, DropdownButton as Ia, Menu as be, MenuItem as xe, Dropdown as fe, Checkbox as Da, Table as Ye, Tree as Ea, Cascader as Pa, DatePicker as Fa, Input as ee, InputPassword as Na, InputNumber as Ma, RangePicker as Ra, Textarea as Ba, Transfer as Aa, TreeSelect as Oa, LayoutContent as La } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as za } from "vue-draggable-next";
|
|
12
|
-
import { d as Ke } from "./assets/modules/uploadList-
|
|
13
|
-
import { C as gs, U as bs, a as xs, p as _s } from "./assets/modules/uploadList-
|
|
14
|
-
import { c as We } from "./assets/modules/index-
|
|
15
|
-
import { _ as ks, h as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-
|
|
16
|
-
import { _ as O } from "./assets/modules/index-
|
|
17
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
18
|
-
import { a as Rs } from "./assets/modules/toolIcon-
|
|
19
|
-
import { _ as As, b as Os, c as Ls, d as zs, e as Us, I as Vs, f as Ys, g as Ks, a as Ws } from "./assets/modules/menuTabs-
|
|
20
|
-
import { _ as js } from "./assets/modules/index-
|
|
12
|
+
import { d as Ke } from "./assets/modules/uploadList-1Zmhwr0q.js";
|
|
13
|
+
import { C as gs, U as bs, a as xs, p as _s } from "./assets/modules/uploadList-1Zmhwr0q.js";
|
|
14
|
+
import { c as We } from "./assets/modules/index-B_XPl41L.js";
|
|
15
|
+
import { _ as ks, h as ws, b as Ss, a as Cs, d as Ts, e as $s, g as Is, f as Ds, n as Es, p as Ps, t as Fs, v as Ns } from "./assets/modules/index-B_XPl41L.js";
|
|
16
|
+
import { _ as O } from "./assets/modules/index-BRWQ6SRp.js";
|
|
17
|
+
import { _ as U } from "./assets/modules/toolIcon-BSjgzw0G.js";
|
|
18
|
+
import { a as Rs } from "./assets/modules/toolIcon-BSjgzw0G.js";
|
|
19
|
+
import { _ as As, b as Os, c as Ls, d as zs, e as Us, I as Vs, f as Ys, g as Ks, a as Ws } from "./assets/modules/menuTabs-NoNLt_B5.js";
|
|
20
|
+
import { _ as js } from "./assets/modules/index-DHWlaZL2.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
package/src/utils/page.ts
CHANGED
|
@@ -85,6 +85,17 @@ export const initPageFactory = (options: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
const initUrls = (apiUrls: ApiUrls) => {
|
|
89
|
+
for (let urlKey in apiUrls.urls) {
|
|
90
|
+
if (!apiUrls.urls[urlKey]!.api) {
|
|
91
|
+
apiUrls.urls[urlKey]!.api = apiUrls.api;
|
|
92
|
+
}
|
|
93
|
+
if (!apiUrls.urls[urlKey]!.authorize) {
|
|
94
|
+
apiUrls.urls[urlKey]!.authorize = apiUrls.authorize;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
88
99
|
/**
|
|
89
100
|
* 编辑器工厂处理
|
|
90
101
|
*
|
|
@@ -100,6 +111,7 @@ export const useEditorFactory = <T, E>(
|
|
|
100
111
|
defaultData?: Partial<E>,
|
|
101
112
|
formRules?: Record<string, ValidateRule>,
|
|
102
113
|
) => {
|
|
114
|
+
initUrls(urls);
|
|
103
115
|
/**
|
|
104
116
|
* 表单数据交互控制
|
|
105
117
|
*/
|
|
@@ -133,6 +145,7 @@ export const useEditorFactory = <T, E>(
|
|
|
133
145
|
* @returns
|
|
134
146
|
*/
|
|
135
147
|
export const useGridFactory = <T, G>(urls: ApiUrls, pageCtrl: PageControl<T>, columns?: Record<string, any>[]) => {
|
|
148
|
+
initUrls(urls);
|
|
136
149
|
/**
|
|
137
150
|
* 表格数据交互控制
|
|
138
151
|
*/
|
|
@@ -194,6 +207,7 @@ export const useGridFactory = <T, G>(urls: ApiUrls, pageCtrl: PageControl<T>, co
|
|
|
194
207
|
* @returns
|
|
195
208
|
*/
|
|
196
209
|
export const useTreeFactory = <T>(urls: ApiUrls, pageCtrl: PageControl<T>) => {
|
|
210
|
+
initUrls(urls);
|
|
197
211
|
/**
|
|
198
212
|
* 树数据交互控制
|
|
199
213
|
*/
|
|
@@ -306,15 +320,7 @@ export const usePageFactory = <T>(
|
|
|
306
320
|
defaultData?: Partial<T>,
|
|
307
321
|
formRules?: Record<string, ValidateRule>,
|
|
308
322
|
) => {
|
|
309
|
-
|
|
310
|
-
// api 默认
|
|
311
|
-
// authorize 默认
|
|
312
|
-
for (const key in urls.urls) {
|
|
313
|
-
if (urls.urls[key]) {
|
|
314
|
-
if (!urls.urls[key].api) urls.urls[key].api = urls.api;
|
|
315
|
-
if (urls.urls[key].authorize === undefined) urls.urls[key].authorize = urls.authorize;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
323
|
+
initUrls(urls);
|
|
318
324
|
|
|
319
325
|
/**
|
|
320
326
|
* 页面交互主数据
|