@skyfox2000/webui 1.2.3 → 1.2.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/{file-upload-D5dPRmq8.js → file-upload-CoDWKNFQ.js} +5 -5
- package/lib/assets/modules/{form-excel-DITF2FoK.js → form-excel-DitXm4uj.js} +1 -1
- package/lib/assets/modules/{index-XIk9IJH2.js → index-B5NckHoK.js} +5 -5
- package/lib/assets/modules/{pinia-8iujwf8y.js → index-C4515EtU.js} +1140 -1127
- package/lib/assets/modules/{index-CRKPVlgC.js → index-DG2jNBuv.js} +1 -1
- package/lib/assets/modules/{menuTabs-D2OgHmBc.js → menuTabs-BwX6S1WN.js} +11 -11
- package/lib/assets/modules/{toolIcon-Cwggvppx.js → toolIcon-B5Qojob9.js} +1 -1
- package/lib/assets/modules/{download-D6JcG5ZR.js → uploadList-BdeV2JlK.js} +45 -45
- package/lib/components/common/icon/index.vue.d.ts +7 -7
- package/lib/components/form/autoComplete/index.vue.d.ts +4 -4
- package/lib/components/form/radio/index.vue.d.ts +2 -2
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +18 -18
- package/lib/es/Error403/index.js +5 -5
- package/lib/es/Error404/index.js +5 -5
- package/lib/es/ExcelForm/index.js +22 -22
- package/lib/es/UploadForm/index.js +10 -10
- package/lib/index.d.ts +2 -2
- package/lib/router/index.d.ts +0 -1
- package/lib/stores/userInfo.d.ts +1 -0
- package/lib/webui.es.js +663 -663
- package/package.json +1 -1
- package/src/index.ts +50 -50
- package/src/router/index.ts +1 -2
- package/src/stores/appInfo.ts +4 -1
- package/src/stores/userInfo.ts +16 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as S, ref as m, watch as k, onMounted as z, createBlock as D, openBlock as E, unref as s, withCtx as f, createVNode as v, createTextVNode as g } from "vue";
|
|
2
|
-
import { _ as x } from "../../assets/modules/index-
|
|
2
|
+
import { _ as x } from "../../assets/modules/index-DG2jNBuv.js";
|
|
3
3
|
import { Modal as L, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as $ } from "@skyfox2000/fapi";
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import t from "vue-m-message";
|
|
8
|
-
import "dayjs";
|
|
9
|
-
import { _ as R } from "../../assets/modules/download-D6JcG5ZR.js";
|
|
5
|
+
import { a1 as B } from "../../assets/modules/index-C4515EtU.js";
|
|
6
|
+
import { A as R, U as A } from "../../assets/modules/file-upload-CoDWKNFQ.js";
|
|
10
7
|
import "@skyfox2000/microbase";
|
|
11
|
-
import
|
|
8
|
+
import t from "vue-m-message";
|
|
12
9
|
import "async-validator";
|
|
10
|
+
import "dayjs";
|
|
11
|
+
import "vue-draggable-next";
|
|
12
|
+
import { _ as M } from "../../assets/modules/uploadList-BdeV2JlK.js";
|
|
13
13
|
const W = /* @__PURE__ */ S({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
|
@@ -39,7 +39,7 @@ const W = /* @__PURE__ */ S({
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
d("before:upload", n.value);
|
|
42
|
-
const r = new
|
|
42
|
+
const r = new R(o, F);
|
|
43
43
|
e.isFormLoading.value = !0;
|
|
44
44
|
try {
|
|
45
45
|
if (n.value.length === 0) {
|
|
@@ -54,7 +54,7 @@ const W = /* @__PURE__ */ S({
|
|
|
54
54
|
e.isFormLoading.value = !1;
|
|
55
55
|
let c = 0;
|
|
56
56
|
for (const y of a)
|
|
57
|
-
y.status ===
|
|
57
|
+
y.status === A.Error && c++;
|
|
58
58
|
c ? c < a.length ? l.continueOnError ? (t.error("上传结束,部分文件上传失败!"), t.warning("保存上传成功的文件!"), d("after:upload", a), w()) : t.error("上传结束,部分文件上传失败,取消保存!") : t.error("上传结束,所有文件上传失败!") : (t.success("全部文件上传成功!"), d("after:upload", a), w());
|
|
59
59
|
}
|
|
60
60
|
);
|
|
@@ -120,7 +120,7 @@ const W = /* @__PURE__ */ S({
|
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
122
|
default: f(() => [
|
|
123
|
-
v(s(
|
|
123
|
+
v(s(M), {
|
|
124
124
|
"file-list": n.value,
|
|
125
125
|
"onUpdate:fileList": r[0] || (r[0] = (a) => n.value = a),
|
|
126
126
|
"download-url": u.value,
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as router } from './router';
|
|
2
|
-
export {
|
|
2
|
+
export { pinia } from './stores/pinia';
|
|
3
3
|
export type { AnyControl, PostOptions, ExecuteOptions, } from './typings/data.d';
|
|
4
4
|
export type { PageControl, PageControlOption, PrimaryKey, } from './typings/page.d';
|
|
5
5
|
export { ProviderKeys } from './typings/page.d';
|
|
@@ -35,7 +35,6 @@ export { path, AsyncUploader } from './utils/file-upload';
|
|
|
35
35
|
export { EventPrefix } from './utils/eventbus';
|
|
36
36
|
export { default as eventBus } from './utils/eventbus';
|
|
37
37
|
export { getHostInfo, getAppInfo, userLogin, userLogout, getToken, getUserInfo, mainAppPush, } from './utils/main-openapis';
|
|
38
|
-
export { pinia } from './stores/pinia';
|
|
39
38
|
export { router as AppRouter };
|
|
40
39
|
export { pendingNavigation, routes } from './router';
|
|
41
40
|
export { useAppInfo } from './stores/appInfo';
|
|
@@ -43,3 +42,4 @@ export { useHostInfo } from './stores/hostInfo';
|
|
|
43
42
|
export { useUserInfo } from './stores/userInfo';
|
|
44
43
|
export { usePageInfo } from './stores/pageInfo';
|
|
45
44
|
export { useSettingInfo } from './stores/settingInfo';
|
|
45
|
+
export { Button, Tooltip, AppIcon, Fullscreen, Helper, Icon, LayoutIcon, ProjectIcon, ToolIcon, Dialog, Drawer, Form, FormItem, Search, SearchItem, Table, TableOperate, Toolbar, Icontool, Tree, AutoComplete, Cascader, Checkbox, DatePicker, Input, InputIcon, InputPassword, InputNumber, PropEditor, Radio, RadioStatus, RangePicker, Select, Switch, Textarea, Transfer, TransferTable, TreeSelect, UploadList, Breadcrumb, Content, Datetime, Header, HeaderExits, Menu, MenuTabs, } from './components/index';
|
package/lib/router/index.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const addAppRoutes: (subRoutes: RouteRecord[]) => void;
|
|
|
7
7
|
export declare const flattenRoute: (route: RouteRecordRaw, flattenRoutes: Record<string, RouteRecord>, parent?: RouteRecord, parentPath?: string) => void;
|
|
8
8
|
declare const router: Router;
|
|
9
9
|
export { routes };
|
|
10
|
-
export declare const hasPermission: (route: RouteRecord, isLogin: boolean) => boolean;
|
|
11
10
|
export declare const pendingNavigation: Ref<{
|
|
12
11
|
to: RouteLocationNormalizedGeneric;
|
|
13
12
|
next: Function;
|
package/lib/stores/userInfo.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare const useUserInfo: StoreDefinition<"userInfo", UserState, {}, {
|
|
|
14
14
|
hasRole(role: string | string[]): boolean;
|
|
15
15
|
hasPermit(url: string, permitCode: string): boolean;
|
|
16
16
|
getUserInfo(): UserInfo;
|
|
17
|
+
setUserInfo(userInfo: UserInfo, token: string): void;
|
|
17
18
|
getToken(): string;
|
|
18
19
|
clean(): Promise<void>;
|
|
19
20
|
logout(): Promise<void>;
|