@skyfox2000/webui 1.5.3 → 1.5.4
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-LU1ysAJM.js → baseLayout-BEy-FjcZ.js} +3 -3
- package/lib/assets/modules/{file-upload-BvIYPDBD.js → file-upload-_mcZy7EK.js} +1 -1
- package/lib/assets/modules/{index-CHG5bbZG.js → index-BFxnKhwl.js} +2 -2
- package/lib/assets/modules/{index-C6RrxZBR.js → index-BTD6d1d_.js} +1 -1
- package/lib/assets/modules/{index-Bi3hR8Gf.js → index-DyE2ppxB.js} +2 -2
- package/lib/assets/modules/{menuTabs-Bk8A-zzL.js → menuTabs-DUBWuf7t.js} +2 -2
- package/lib/assets/modules/{toolIcon-ADz-Bt4_.js → toolIcon-DQLIuud3.js} +1 -1
- package/lib/assets/modules/{upload-template-mzLL4UUU.js → upload-template-DZuy1BOF.js} +715 -712
- package/lib/assets/modules/{uploadList-DRGJEXDH.js → uploadList-CCquj3c_.js} +4 -4
- 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 +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/locales/index.ts +12 -4
|
@@ -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-
|
|
3
|
-
import { a as B, _ as R } from "./toolIcon-
|
|
2
|
+
import { _ as G } from "./index-BTD6d1d_.js";
|
|
3
|
+
import { a as B, _ as R } from "./toolIcon-DQLIuud3.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-
|
|
6
|
-
import { U as i, f as ye, p as H } from "./file-upload-
|
|
5
|
+
import { L as W, u as X, v as he, _ as ve } from "./upload-template-DZuy1BOF.js";
|
|
6
|
+
import { U as i, f as ye, p as H } from "./file-upload-_mcZy7EK.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-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-DQLIuud3.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/upload-template-
|
|
5
|
+
import "../../assets/modules/upload-template-DZuy1BOF.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-DyE2ppxB.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-
|
|
3
|
-
import { ah as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-BEy-FjcZ.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-DZuy1BOF.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b 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/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-DZuy1BOF.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/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-DZuy1BOF.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-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-BTD6d1d_.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-
|
|
6
|
-
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { G as Te, a5 as Se, ab as Ee } from "../../assets/modules/upload-template-DZuy1BOF.js";
|
|
6
|
+
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-_mcZy7EK.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-
|
|
9
|
+
import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-BFxnKhwl.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-
|
|
310
|
+
const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-BFxnKhwl.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
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-
|
|
3
|
-
import { ah as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-BEy-FjcZ.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-DZuy1BOF.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 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-
|
|
2
|
+
import { _ as L } from "../../assets/modules/index-BTD6d1d_.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-
|
|
6
|
-
import { U as b } from "../../assets/modules/file-upload-
|
|
5
|
+
import { ak as d } from "../../assets/modules/upload-template-DZuy1BOF.js";
|
|
6
|
+
import { U as b } from "../../assets/modules/file-upload-_mcZy7EK.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-
|
|
12
|
+
import { U as g } from "../../assets/modules/uploadList-CCquj3c_.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-
|
|
2
|
+
import { _ as c } from "../../assets/modules/index-BTD6d1d_.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-
|
|
5
|
+
import { a7 as T } from "../../assets/modules/upload-template-DZuy1BOF.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-
|
|
10
|
+
import { A as N } from "../../assets/modules/file-upload-_mcZy7EK.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as A } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as A } from "../../assets/modules/uploadList-CCquj3c_.js";
|
|
13
13
|
const K = /* @__PURE__ */ S({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
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-
|
|
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, am as as, an 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-
|
|
3
|
-
import { f as jt, p as Re } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as Fs, U as Is } from "./assets/modules/file-upload-
|
|
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-DZuy1BOF.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, am as as, an 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-DZuy1BOF.js";
|
|
3
|
+
import { f as jt, p as Re } from "./assets/modules/file-upload-_mcZy7EK.js";
|
|
4
|
+
import { A as Fs, U as Is } from "./assets/modules/file-upload-_mcZy7EK.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-
|
|
14
|
-
import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-
|
|
15
|
-
import { c as vt } from "./assets/modules/index-
|
|
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-
|
|
17
|
-
import { _ as Z } from "./assets/modules/index-
|
|
18
|
-
import { _ as V } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as Js } from "./assets/modules/toolIcon-
|
|
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-
|
|
21
|
-
import { _ as uo } from "./assets/modules/index-
|
|
13
|
+
import { d as ma } from "./assets/modules/uploadList-CCquj3c_.js";
|
|
14
|
+
import { C as Ls, U as Us, a as Ms, p as Bs } from "./assets/modules/uploadList-CCquj3c_.js";
|
|
15
|
+
import { c as vt } from "./assets/modules/index-BFxnKhwl.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-BFxnKhwl.js";
|
|
17
|
+
import { _ as Z } from "./assets/modules/index-BTD6d1d_.js";
|
|
18
|
+
import { _ as V } from "./assets/modules/toolIcon-DQLIuud3.js";
|
|
19
|
+
import { a as Js } from "./assets/modules/toolIcon-DQLIuud3.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-DUBWuf7t.js";
|
|
21
|
+
import { _ as uo } from "./assets/modules/index-DyE2ppxB.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
package/src/locales/index.ts
CHANGED
|
@@ -30,8 +30,13 @@ function deepMerge(target: any, source: any): any {
|
|
|
30
30
|
return result;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
// 根目录路径
|
|
34
|
+
let ROOT_DIR: string = "/";
|
|
35
|
+
|
|
33
36
|
// 语言显示名称映射(从 public/locales/languages.json 加载)
|
|
34
|
-
export let LOCALE_DISPLAY_NAMES: Record<string, string> = {
|
|
37
|
+
export let LOCALE_DISPLAY_NAMES: Record<string, string> = {
|
|
38
|
+
"zh-CN": "简体中文"
|
|
39
|
+
};
|
|
35
40
|
|
|
36
41
|
// 支持的语言包映射
|
|
37
42
|
const loadedMessages: Record<string, LocaleMessages> = {
|
|
@@ -56,7 +61,7 @@ export const i18n = createI18n({
|
|
|
56
61
|
*/
|
|
57
62
|
async function loadLocaleFromCloud(locale: string): Promise<LocaleMessages> {
|
|
58
63
|
try {
|
|
59
|
-
const response = await fetch(
|
|
64
|
+
const response = await fetch(`${ROOT_DIR}locales/${locale}.json`);
|
|
60
65
|
if (!response.ok) {
|
|
61
66
|
throw new Error(`Failed to load locale ${locale}`);
|
|
62
67
|
}
|
|
@@ -208,12 +213,15 @@ async function loadLocale(locale: string): Promise<void> {
|
|
|
208
213
|
/**
|
|
209
214
|
* 初始化语言 - 使用缓存优先+异步后台加载策略
|
|
210
215
|
* @param rootDir 根目录路径,默认为 "/"
|
|
211
|
-
* @param
|
|
216
|
+
* @param locale 默认语言,默认为 "zh-CN"
|
|
212
217
|
*/
|
|
213
218
|
export async function initLang(rootDir: string = "/", locale: string = "zh-CN"): Promise<void> {
|
|
219
|
+
// 设置根目录路径供其他函数使用
|
|
220
|
+
ROOT_DIR = rootDir;
|
|
221
|
+
|
|
214
222
|
try {
|
|
215
223
|
// 先加载可用语言列表
|
|
216
|
-
const response = await fetch(`${
|
|
224
|
+
const response = await fetch(`${ROOT_DIR}locales/languages.json`);
|
|
217
225
|
if (response.ok) {
|
|
218
226
|
const languages = await response.json();
|
|
219
227
|
LOCALE_DISPLAY_NAMES = languages;
|