@skyfox2000/webui 1.4.27 → 1.5.0
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-DiqAUz2h.js → baseLayout-Ck74iWSW.js} +3 -3
- package/lib/assets/modules/{file-upload-CKMd0H11.js → file-upload-CYCbA0Go.js} +1 -1
- package/lib/assets/modules/{index-BpsqYPCw.js → index-C8QXmnsn.js} +1 -1
- package/lib/assets/modules/{index-DvozNhVM.js → index-DGfxQmRW.js} +2 -2
- package/lib/assets/modules/{index-gmbMtZa2.js → index-D_-xtDo9.js} +2 -2
- package/lib/assets/modules/{menuTabs-CvAiSVNW.js → menuTabs-Dx5VAF5K.js} +108 -111
- package/lib/assets/modules/{toolIcon-DWurTPaB.js → toolIcon-BD37QUAw.js} +1 -1
- package/lib/assets/modules/upload-template-DPaurj5G.js +6471 -0
- package/lib/assets/modules/{uploadList-De6KfTAV.js → uploadList-C0zjgyKg.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/index.d.ts +1 -0
- package/lib/locales/default.d.ts +130 -0
- package/lib/locales/index.d.ts +20 -0
- package/lib/webui.es.js +86 -80
- package/package.json +5 -2
- package/src/components/layout/header/headerExits.vue +8 -4
- package/src/index.ts +2 -0
- package/src/locales/default.ts +204 -0
- package/src/locales/index.ts +290 -0
- package/lib/assets/modules/upload-template-BuaWOXY_.js +0 -2584
|
@@ -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-C8QXmnsn.js";
|
|
3
|
+
import { a as B, _ as R } from "./toolIcon-BD37QUAw.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-DPaurj5G.js";
|
|
6
|
+
import { U as i, f as ye, p as H } from "./file-upload-CYCbA0Go.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-BD37QUAw.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/upload-template-
|
|
5
|
+
import "../../assets/modules/upload-template-DPaurj5G.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-DGfxQmRW.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-Ck74iWSW.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.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-DPaurj5G.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-DPaurj5G.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-C8QXmnsn.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-DPaurj5G.js";
|
|
6
|
+
import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CYCbA0Go.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-D_-xtDo9.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-D_-xtDo9.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-Ck74iWSW.js";
|
|
3
|
+
import { ah as A, a as S } from "../../assets/modules/upload-template-DPaurj5G.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-C8QXmnsn.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-DPaurj5G.js";
|
|
6
|
+
import { U as b } from "../../assets/modules/file-upload-CYCbA0Go.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-C0zjgyKg.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-C8QXmnsn.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-DPaurj5G.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-CYCbA0Go.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-C0zjgyKg.js";
|
|
13
13
|
const K = /* @__PURE__ */ S({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/index.d.ts
CHANGED
|
@@ -47,3 +47,4 @@ export { useSettingInfo } from './stores/settingInfo';
|
|
|
47
47
|
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
48
|
export type { ToolPanelGroup, DisplayMode, PanelCollapsed, ToolPanelConfig, ToolPanelEvents, ToolPanelProps, DragConfig, };
|
|
49
49
|
export { uploadTempOpener, uploadTempBtn } from './utils/upload-template';
|
|
50
|
+
export { initLang, i18n, $t, getAvailableLanguages, getLang, setLang } from './locales/index';
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
export declare const defaultLocale: {
|
|
2
|
+
webui: {
|
|
3
|
+
common: {
|
|
4
|
+
confirm: string;
|
|
5
|
+
cancel: string;
|
|
6
|
+
yes: string;
|
|
7
|
+
no: string;
|
|
8
|
+
close: string;
|
|
9
|
+
save: string;
|
|
10
|
+
saveAs: string;
|
|
11
|
+
delete: string;
|
|
12
|
+
edit: string;
|
|
13
|
+
add: string;
|
|
14
|
+
upload: string;
|
|
15
|
+
download: string;
|
|
16
|
+
preview: string;
|
|
17
|
+
choose: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
};
|
|
20
|
+
layout: {
|
|
21
|
+
header: {
|
|
22
|
+
exitPlatform: string;
|
|
23
|
+
exitSystem: string;
|
|
24
|
+
confirmExit: string;
|
|
25
|
+
exitConfirmMessage: string;
|
|
26
|
+
};
|
|
27
|
+
menu: {};
|
|
28
|
+
};
|
|
29
|
+
toolpanel: {
|
|
30
|
+
tool: string;
|
|
31
|
+
searchResult: string;
|
|
32
|
+
list: string;
|
|
33
|
+
listView: string;
|
|
34
|
+
grid: string;
|
|
35
|
+
gridView: string;
|
|
36
|
+
expand: string;
|
|
37
|
+
collapse: string;
|
|
38
|
+
expandPanel: string;
|
|
39
|
+
collapsePanel: string;
|
|
40
|
+
searchPlaceholder: string;
|
|
41
|
+
};
|
|
42
|
+
toolbar: {};
|
|
43
|
+
listOperate: {
|
|
44
|
+
confirmDelete: string;
|
|
45
|
+
};
|
|
46
|
+
dialog: {
|
|
47
|
+
fileUpload: string;
|
|
48
|
+
templateFileManager: string;
|
|
49
|
+
batchImportUser: string;
|
|
50
|
+
uploadFile: string;
|
|
51
|
+
};
|
|
52
|
+
tableOperate: {
|
|
53
|
+
confirmDelete: string;
|
|
54
|
+
};
|
|
55
|
+
drawer: {};
|
|
56
|
+
upload: {
|
|
57
|
+
unsupportedFileType: string;
|
|
58
|
+
fileSizeExceedsLimit: string;
|
|
59
|
+
maxFilesReached: string;
|
|
60
|
+
deleteSuccess: string;
|
|
61
|
+
onlineOffline: string;
|
|
62
|
+
online: string;
|
|
63
|
+
offline: string;
|
|
64
|
+
uploading: string;
|
|
65
|
+
uploadComplete: string;
|
|
66
|
+
uploadFailed: string;
|
|
67
|
+
onlineStatus: string;
|
|
68
|
+
offlineStatus: string;
|
|
69
|
+
pendingUpload: string;
|
|
70
|
+
chooseFile: string;
|
|
71
|
+
chooseDirectory: string;
|
|
72
|
+
download: string;
|
|
73
|
+
preview: string;
|
|
74
|
+
confirmDeleteFile: string;
|
|
75
|
+
delete: string;
|
|
76
|
+
fileMustBe: string;
|
|
77
|
+
singleFileMax: string;
|
|
78
|
+
maxFiles: string;
|
|
79
|
+
};
|
|
80
|
+
imageUpload: {
|
|
81
|
+
loadImageFailed: string;
|
|
82
|
+
};
|
|
83
|
+
timePicker: {};
|
|
84
|
+
select: {};
|
|
85
|
+
switch: {
|
|
86
|
+
error: string;
|
|
87
|
+
};
|
|
88
|
+
textarea: {};
|
|
89
|
+
aceEditor: {
|
|
90
|
+
title: string;
|
|
91
|
+
};
|
|
92
|
+
transfer: {};
|
|
93
|
+
cascader: {};
|
|
94
|
+
datePicker: {};
|
|
95
|
+
propEditor: {
|
|
96
|
+
configName: string;
|
|
97
|
+
configValue: string;
|
|
98
|
+
inputConfigValue: string;
|
|
99
|
+
};
|
|
100
|
+
input: {};
|
|
101
|
+
autoComplete: {
|
|
102
|
+
placeholder: string;
|
|
103
|
+
};
|
|
104
|
+
radio: {
|
|
105
|
+
noData: string;
|
|
106
|
+
all: string;
|
|
107
|
+
};
|
|
108
|
+
treeSelect: {};
|
|
109
|
+
error: {
|
|
110
|
+
pageNotFound: string;
|
|
111
|
+
forbidden: string;
|
|
112
|
+
};
|
|
113
|
+
excelForm: {
|
|
114
|
+
chooseExcelFile: string;
|
|
115
|
+
chooseCsvFile: string;
|
|
116
|
+
chooseExcelOrCsvFile: string;
|
|
117
|
+
validateDataRules: string;
|
|
118
|
+
validateDuplicateData: string;
|
|
119
|
+
uploadAddressNotConfigured: string;
|
|
120
|
+
fileProcessingFailed: string;
|
|
121
|
+
dataSaveFailed: string;
|
|
122
|
+
validationError: string;
|
|
123
|
+
onlyExcelAllowed: string;
|
|
124
|
+
onlyCsvAllowed: string;
|
|
125
|
+
onlyExcelOrCsvAllowed: string;
|
|
126
|
+
csvProcessingFailed: string;
|
|
127
|
+
followingMustBeUnique: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { I18n } from 'vue-i18n';
|
|
2
|
+
export interface LocaleMessages {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export declare let LOCALE_DISPLAY_NAMES: Record<string, string>;
|
|
6
|
+
export declare const i18n: I18n<Record<string, LocaleMessages>, {}, {}, string, false>;
|
|
7
|
+
export declare function getAvailableLocales(): string[];
|
|
8
|
+
export declare function addLocaleOption(locale: string, displayName: string): void;
|
|
9
|
+
export declare function setTranslation(locale: string, key: string, value: string): void;
|
|
10
|
+
export declare function setTranslations(locale: string, translations: Record<string, any>): void;
|
|
11
|
+
export declare function getI18nMessages(locale?: string): Record<string, LocaleMessages> | LocaleMessages;
|
|
12
|
+
export declare function initLang(): Promise<void>;
|
|
13
|
+
export declare function setLang(locale: string): Promise<void>;
|
|
14
|
+
export declare function getLang(type?: "code" | "display"): string;
|
|
15
|
+
export declare function getAvailableLanguages(): Array<{
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare function $t(key: string, params?: Record<string, any>): string;
|
|
20
|
+
export default 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-
|
|
2
|
-
import {
|
|
3
|
-
import { f as jt, p as Re } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as
|
|
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";
|
|
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
|
|
15
|
-
import { c as vt } from "./assets/modules/index-
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as Z } from "./assets/modules/index-
|
|
18
|
-
import { _ as V } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as
|
|
20
|
-
import { _ as
|
|
21
|
-
import { _ as
|
|
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";
|
|
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)
|
|
@@ -3064,33 +3064,34 @@ const wr = /* @__PURE__ */ I({
|
|
|
3064
3064
|
}
|
|
3065
3065
|
});
|
|
3066
3066
|
export {
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
Ar as $t,
|
|
3068
|
+
zs as Alert,
|
|
3069
|
+
Zs as AppIcon,
|
|
3069
3070
|
de as AppRouter,
|
|
3070
|
-
|
|
3071
|
+
Fs as AsyncUploader,
|
|
3071
3072
|
xr as AutoComplete,
|
|
3072
|
-
|
|
3073
|
+
eo as Breadcrumb,
|
|
3073
3074
|
Z as Button,
|
|
3074
3075
|
mt as Cache,
|
|
3075
3076
|
Da as CacheKeys,
|
|
3076
|
-
|
|
3077
|
+
Ls as CanPreviewFileExt,
|
|
3077
3078
|
_r as Cascader,
|
|
3078
3079
|
kr as Checkbox,
|
|
3079
3080
|
Br as Content,
|
|
3080
3081
|
wr as DatePicker,
|
|
3081
|
-
|
|
3082
|
-
|
|
3082
|
+
to as Datetime,
|
|
3083
|
+
uo as Dialog,
|
|
3083
3084
|
pr as Drawer,
|
|
3084
|
-
|
|
3085
|
+
Or as EventPrefix,
|
|
3085
3086
|
fr as Form,
|
|
3086
3087
|
vr as FormItem,
|
|
3087
3088
|
cr as Fullscreen,
|
|
3088
3089
|
Ee as GroupTools,
|
|
3089
|
-
|
|
3090
|
-
|
|
3090
|
+
ao as Header,
|
|
3091
|
+
lo as HeaderExits,
|
|
3091
3092
|
Fa as Helper,
|
|
3092
|
-
|
|
3093
|
-
|
|
3093
|
+
Rr as ICONS_LIB,
|
|
3094
|
+
ro as Icon,
|
|
3094
3095
|
Ba as Icontool,
|
|
3095
3096
|
Mr as ImageList,
|
|
3096
3097
|
wt as Input,
|
|
@@ -3100,13 +3101,13 @@ export {
|
|
|
3100
3101
|
dr as LayoutIcon,
|
|
3101
3102
|
gr as List,
|
|
3102
3103
|
Ua as ListOperate,
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3104
|
+
As as Loading,
|
|
3105
|
+
so as Menu,
|
|
3106
|
+
oo as MenuTabs,
|
|
3106
3107
|
Kt as MicroOpenApis,
|
|
3107
3108
|
Ne as OPTIONS,
|
|
3108
3109
|
Et as OptionCommProps,
|
|
3109
|
-
|
|
3110
|
+
no as ProjectIcon,
|
|
3110
3111
|
Tr as PropEditor,
|
|
3111
3112
|
re as ProviderKeys,
|
|
3112
3113
|
$l as Radio,
|
|
@@ -3123,60 +3124,64 @@ export {
|
|
|
3123
3124
|
V as ToolIcon,
|
|
3124
3125
|
yr as ToolPanel,
|
|
3125
3126
|
kt as Toolbar,
|
|
3126
|
-
|
|
3127
|
+
Js as Tooltip,
|
|
3127
3128
|
Tl as Transfer,
|
|
3128
3129
|
Lr as TransferTable,
|
|
3129
3130
|
br as Tree,
|
|
3130
3131
|
Ur as TreeSelect,
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3132
|
+
Us as UploadList,
|
|
3133
|
+
Is as UploadStatus,
|
|
3134
|
+
Os as appendExcelData,
|
|
3135
|
+
Rs as checkExcelDuplicates,
|
|
3136
|
+
Kr as checkIconsExpired,
|
|
3136
3137
|
Bt as circleLoading,
|
|
3137
3138
|
$t as createFromIconfont,
|
|
3138
|
-
|
|
3139
|
-
|
|
3139
|
+
Ks as createMarkedExcelView,
|
|
3140
|
+
jr as crumbs,
|
|
3140
3141
|
or as csvToExcelBlob,
|
|
3141
3142
|
vt as csvToExcelView,
|
|
3142
|
-
|
|
3143
|
+
js as csvToNormalized,
|
|
3143
3144
|
We as defaultTools,
|
|
3144
|
-
|
|
3145
|
-
|
|
3145
|
+
Vr as doDelete,
|
|
3146
|
+
Yr as doExecute,
|
|
3146
3147
|
rt as doQuery,
|
|
3147
|
-
|
|
3148
|
-
|
|
3148
|
+
Gr as doSave,
|
|
3149
|
+
Ms as donwloadFromMinio,
|
|
3149
3150
|
ma as downloadBlob,
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3151
|
+
Wr as eventBus,
|
|
3152
|
+
Vs as excelToExcelView,
|
|
3153
|
+
Ys as excelToNormalized,
|
|
3153
3154
|
ur as exportResults,
|
|
3154
3155
|
ir as exportSelectedRows,
|
|
3155
3156
|
Ze as filterColumns,
|
|
3156
3157
|
se as formValidate,
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3158
|
+
qr as getAvailableLanguages,
|
|
3159
|
+
Hr as getFormDetail,
|
|
3160
|
+
Qr as getIconTransform,
|
|
3161
|
+
Jr as getLang,
|
|
3162
|
+
Xr as getRecordDetail,
|
|
3163
|
+
Zr as getRuleTexts,
|
|
3161
3164
|
zt as getSelectedLabels,
|
|
3162
|
-
|
|
3165
|
+
es as getSelectedValues,
|
|
3163
3166
|
ie as getToolByKey,
|
|
3164
3167
|
Se as getToolGroup,
|
|
3165
3168
|
G as getToolStatus,
|
|
3166
3169
|
Q as getToolVisible,
|
|
3167
3170
|
me as gridQueryFind,
|
|
3168
3171
|
et as gridQueryList,
|
|
3169
|
-
|
|
3172
|
+
ts as gridRowUpdate,
|
|
3170
3173
|
at as gridStatusUpdate,
|
|
3174
|
+
as as i18n,
|
|
3171
3175
|
sr as initCacheCheck,
|
|
3172
3176
|
rr as initDirective,
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3177
|
+
ls as initLang,
|
|
3178
|
+
rs as initMenu,
|
|
3179
|
+
ss as initPageFactory,
|
|
3180
|
+
os as initValidate,
|
|
3176
3181
|
pe as isEmpty,
|
|
3177
3182
|
Ut as loadOption,
|
|
3178
|
-
|
|
3179
|
-
|
|
3183
|
+
ns as mergeColumns,
|
|
3184
|
+
Gs as normalizedToExcelView,
|
|
3180
3185
|
$a as onColumnVisibleChanged,
|
|
3181
3186
|
Dt as onFormClose,
|
|
3182
3187
|
qe as onFormSave,
|
|
@@ -3184,42 +3189,43 @@ export {
|
|
|
3184
3189
|
gt as onFullscreenClick,
|
|
3185
3190
|
Xe as onGridRowDelete,
|
|
3186
3191
|
Je as onGridRowEdit,
|
|
3187
|
-
|
|
3192
|
+
is as onGridRowExpand,
|
|
3188
3193
|
Nt as onOptionChanged,
|
|
3189
3194
|
ya as onReloadClick,
|
|
3190
3195
|
J as onToolClicked,
|
|
3191
3196
|
Pt as openNewForm,
|
|
3192
|
-
|
|
3193
|
-
|
|
3197
|
+
us as outFormDataFields,
|
|
3198
|
+
cs as parseIcons,
|
|
3194
3199
|
Re as path,
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3200
|
+
ds as pendingNavigation,
|
|
3201
|
+
ps as pinia,
|
|
3202
|
+
Bs as previewFromMinio,
|
|
3198
3203
|
nr as processCsvFile,
|
|
3199
|
-
|
|
3204
|
+
Ws as processExcelFile,
|
|
3200
3205
|
lt as queryTree,
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3206
|
+
fs as resetRules,
|
|
3207
|
+
vs as routes,
|
|
3208
|
+
gs as saveForm,
|
|
3209
|
+
ms as setFormData,
|
|
3210
|
+
hs as setLang,
|
|
3211
|
+
bs as showBreadcrumb,
|
|
3212
|
+
qs as toExcel,
|
|
3207
3213
|
Mt as unloadOption,
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3214
|
+
ys as uploadTempBtn,
|
|
3215
|
+
xs as uploadTempOpener,
|
|
3216
|
+
_s as useAppInfo,
|
|
3217
|
+
ks as useEditorFactory,
|
|
3212
3218
|
He as useFormItemFactory,
|
|
3213
|
-
|
|
3214
|
-
|
|
3219
|
+
ws as useGridFactory,
|
|
3220
|
+
Cs as useHostInfo,
|
|
3215
3221
|
ee as useInputFactory,
|
|
3216
3222
|
Lt as useOptionFactory,
|
|
3217
|
-
|
|
3218
|
-
|
|
3223
|
+
Ss as usePageFactory,
|
|
3224
|
+
$s as usePageInfo,
|
|
3219
3225
|
Be as useSettingInfo,
|
|
3220
3226
|
Ta as useToolFactory,
|
|
3221
|
-
|
|
3227
|
+
Ts as useTreeFactory,
|
|
3222
3228
|
Me as useUserInfo,
|
|
3223
|
-
|
|
3224
|
-
|
|
3229
|
+
Ds as validateData,
|
|
3230
|
+
Hs as validateExcel
|
|
3225
3231
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyfox2000/webui",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "后台前端通用组件定义, 支持国际化",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": "skyfox2000@github.com",
|
|
@@ -70,5 +70,8 @@
|
|
|
70
70
|
"vite": "^6.2.3",
|
|
71
71
|
"vite-plugin-dts": "^4.5.4",
|
|
72
72
|
"vue-tsc": "^2.2.0"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"vue-i18n": "^11.2.2"
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -4,6 +4,7 @@ import { Modal, Flex } from 'ant-design-vue';
|
|
|
4
4
|
import { ToolIcon, Tooltip } from '../../common';
|
|
5
5
|
import { MicroOpenApis, useUserInfo } from '@/index';
|
|
6
6
|
import { isMicroApp } from '@skyfox2000/microbase';
|
|
7
|
+
import { $t } from '@/locales/index';
|
|
7
8
|
|
|
8
9
|
const userInfoStore = useUserInfo();
|
|
9
10
|
const open = ref(false);
|
|
@@ -17,13 +18,16 @@ const confirmExit = () => {
|
|
|
17
18
|
};
|
|
18
19
|
</script>
|
|
19
20
|
<template>
|
|
20
|
-
<Tooltip title="
|
|
21
|
-
<ToolIcon icon="icon-logout" @click="open = true" clickable class="w-5 h-5"
|
|
21
|
+
<Tooltip :title="$t('webui.layout.header.exitPlatform')">
|
|
22
|
+
<ToolIcon icon="icon-logout" @click="open = true" clickable class="w-5 h-5"
|
|
23
|
+
:title="$t('webui.layout.header.exitSystem')" />
|
|
22
24
|
</Tooltip>
|
|
23
|
-
<Modal v-model:open="open" title="
|
|
25
|
+
<Modal v-model:open="open" :title="$t('webui.layout.header.confirmExit')" :ok-text="$t('webui.common.confirm')"
|
|
26
|
+
:cancel-text="$t('webui.common.cancel')" :width="380" @ok="confirmExit">
|
|
24
27
|
<Flex align="center" justify="flex-start" :style="{ padding: '0 32px', margin: '20px 0' }">
|
|
25
28
|
<ToolIcon icon="icon-question-circle" color="orange" class="w-[60px] h-[60px]" />
|
|
26
|
-
<div style="margin: 0 0 0 20px; font-weight: 400; font-size: 16px"
|
|
29
|
+
<div style="margin: 0 0 0 20px; font-weight: 400; font-size: 16px">{{
|
|
30
|
+
$t('webui.layout.header.exitConfirmMessage') }}</div>
|
|
27
31
|
</Flex>
|
|
28
32
|
</Modal>
|
|
29
33
|
</template>
|