jmash-core 0.0.96 → 0.0.97
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/dist/401-gR-a4eWP.mjs +100 -0
- package/dist/404-CvF2Wpf5.mjs +37 -0
- package/dist/BarChart--k4pvqvu.mjs +199 -0
- package/dist/FunnelChart-Ci14WUay.mjs +107 -0
- package/dist/PieChart-C60V9Kgc.mjs +4 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs +89 -0
- package/dist/RadarChart-BBq1VxXC.mjs +4 -0
- package/dist/RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs +108 -0
- package/dist/favicon.ico +0 -0
- package/dist/index-B3bBQvl1.mjs +43717 -0
- package/dist/index-Bw3IdFvk.mjs +19539 -0
- package/dist/index-ByS03yYq.mjs +1629 -0
- package/dist/index-CsnH0_yb.mjs +367 -0
- package/dist/index-DSalnTBz.mjs +267 -0
- package/dist/index-uykKwY2Z.mjs +12 -0
- package/dist/index.mjs +58 -0
- package/dist/picture-CBRsHLZl.mjs +22 -0
- package/dist/profile-DB5oJY6F.mjs +267 -0
- package/dist/runAs-BgAqMTuy.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-SOwNuXuK.mjs +2496 -0
- package/dist/style.css +1 -0
- package/dist/types-4mFLhd4n.mjs +204 -0
- package/dist/updatePwd-Dr2JoWzO.mjs +4 -0
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-sFzRukhN.mjs +146 -0
- package/dts/src/App.vue.d.ts +2 -0
- package/dts/src/api/auth/index.d.ts +66 -0
- package/dts/src/api/auth/types.d.ts +201 -0
- package/dts/src/api/file/index.d.ts +33 -0
- package/dts/src/api/file/types.d.ts +14 -0
- package/dts/src/api/index.d.ts +38 -0
- package/dts/src/api/types.d.ts +85 -0
- package/dts/src/assets/components/icon-a-fixed.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-a-list.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-anquanrizhi.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-api.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-bumenguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-caozuoguanliyuan.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-captcha.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-cascader.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-client.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-all.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-eye.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-left.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-other.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close-right.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-close.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-dept.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-dict.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-document.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-download.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-drag.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-edit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-email.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-exit-fullscreen.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-eye-open.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-fullscreen-exit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-fullscreen.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-gangweiguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-github.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-homepage.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-icon.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-indent-decrease.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-ip.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-jiemianxijietubiao-26.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-language.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-link.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-lock.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-log.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-menu.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-message.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-mokuaiguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-money.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-monitor.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-moon.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-order.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-password.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-peoples.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-phone.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-project.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-publish.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-quanxianguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-redis.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-refresh.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-role.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-security.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-setting.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-shoujihao.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-shrink.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-size.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-sunny.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-system.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-table.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-team.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-todolist.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-tree.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-user.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-visit.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-xingming.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-yonghuguanli.vue.d.ts +2 -0
- package/dts/src/assets/components/icon-youxiang.vue.d.ts +2 -0
- package/dts/src/assets/components/index.d.ts +69 -0
- package/dts/src/assets/index.d.ts +2 -0
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/Breadcrumb/index.vue.d.ts +2 -0
- package/dts/src/components/DictRadio/index.vue.d.ts +32 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +50 -0
- package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
- package/dts/src/components/GithubCorner/index.vue.d.ts +2 -0
- package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
- package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +3 -0
- package/dts/src/components/JmashColumnSelect/index.vue.d.ts +17 -0
- package/dts/src/components/JmashEnumSelect/index.vue.d.ts +23 -0
- package/dts/src/components/JmashPagination/index.vue.d.ts +32 -0
- package/dts/src/components/JmashTable/index.vue.d.ts +46 -0
- package/dts/src/components/JmashUploadFile/index.vue.d.ts +7 -0
- package/dts/src/components/JmashUploadImage/index.vue.d.ts +37 -0
- package/dts/src/components/LangSelect/index.vue.d.ts +2 -0
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
- package/dts/src/components/SizeSelect/index.vue.d.ts +2 -0
- package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
- package/dts/src/components/Table/index.vue.d.ts +64 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/dts/src/components/index.d.ts +0 -0
- package/dts/src/directive/index.d.ts +5 -0
- package/dts/src/directive/permission/index.d.ts +9 -0
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +21 -0
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/hooks/table.d.ts +43 -0
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/index.d.ts +38 -0
- package/dts/src/lang/index.d.ts +2 -0
- package/dts/src/lang/package/en.d.ts +147 -0
- package/dts/src/lang/package/zh-cn.d.ts +151 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +32 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
- package/dts/src/layout/index.vue.d.ts +2 -0
- package/dts/src/main.d.ts +1 -0
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +22 -0
- package/dts/src/settings.d.ts +28 -0
- package/dts/src/stores/index.d.ts +7 -0
- package/dts/src/stores/modules/app.d.ts +2 -0
- package/dts/src/stores/modules/permission.d.ts +2 -0
- package/dts/src/stores/modules/settings.d.ts +1 -0
- package/dts/src/stores/modules/tagsView.d.ts +85 -0
- package/dts/src/stores/modules/user.d.ts +2 -0
- package/dts/src/types/index.d.ts +74 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/common.d.ts +6 -0
- package/dts/src/utils/file_hash_util.d.ts +28 -0
- package/dts/src/utils/fileajax.d.ts +9 -0
- package/dts/src/utils/grpc.d.ts +3 -0
- package/dts/src/utils/i18n.d.ts +4 -0
- package/dts/src/utils/index.d.ts +33 -0
- package/dts/src/utils/netsecret.d.ts +1 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/utils/request.d.ts +4 -0
- package/dts/src/utils/route.d.ts +6 -0
- package/dts/src/utils/scroll-to.d.ts +6 -0
- package/dts/src/utils/sm3.d.ts +10 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/index.vue.d.ts +2 -0
- package/dts/src/views/error-page/401.vue.d.ts +2 -0
- package/dts/src/views/error-page/404.vue.d.ts +2 -0
- package/dts/src/views/login/components/types.vue.d.ts +2 -0
- package/dts/src/views/login/index.vue.d.ts +2 -0
- package/dts/src/views/my/profile.vue.d.ts +2 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
- package/dts/src/views/redirect/index.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@/permission";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "nprogress/nprogress.css";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { RouteRecordRaw, Router } from "vue-router";
|
|
3
|
+
export declare const Layout: () => Promise<typeof import("@/layout/index.vue")>;
|
|
4
|
+
export declare const LoginPage: () => Promise<typeof import("@/views/login/index.vue")>;
|
|
5
|
+
export declare const MultiFactorLoginPage: () => Promise<typeof import("@/views/login/components/types.vue")>;
|
|
6
|
+
export declare const ProfilePage: () => Promise<typeof import("@/views/my/profile.vue")>;
|
|
7
|
+
export declare const Error401Page: () => Promise<typeof import("@/views/error-page/401.vue")>;
|
|
8
|
+
export declare const Error404Page: () => Promise<typeof import("@/views/error-page/404.vue")>;
|
|
9
|
+
export declare const DashboardPage: () => Promise<typeof import("@/views/dashboard/index.vue")>;
|
|
10
|
+
export declare const RedirectPage: () => Promise<typeof import("@/views/redirect/index.vue")>;
|
|
11
|
+
export declare const constantRoutes: RouteRecordRaw[];
|
|
12
|
+
export declare const testRoutes: RouteRecordRaw[];
|
|
13
|
+
/**
|
|
14
|
+
* 创建路由
|
|
15
|
+
*/
|
|
16
|
+
declare const routerRef: Ref;
|
|
17
|
+
/**
|
|
18
|
+
* 重置路由
|
|
19
|
+
*/
|
|
20
|
+
export declare function resetRouter(): void;
|
|
21
|
+
export declare function updateRouter(newRouter: Router): void;
|
|
22
|
+
export default routerRef;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AppSettings, VueMetaEnv } from "@/types/index";
|
|
2
|
+
import type { RouteRecordRaw } from "vue-router";
|
|
3
|
+
/** 默认系统配置. */
|
|
4
|
+
declare const defaultSettings: AppSettings;
|
|
5
|
+
/** 默认Vue MetaEnv 配置. */
|
|
6
|
+
declare const vueMetaEnv: VueMetaEnv;
|
|
7
|
+
declare const menus: Map<any, any>;
|
|
8
|
+
declare const dynamicRoutes: RouteRecordRaw[];
|
|
9
|
+
/** 添加Vite模块菜单. **/
|
|
10
|
+
export declare function addViteMenus(modules: Record<string, any>, startLen: number): void;
|
|
11
|
+
/** 添加Webpack模块菜单. **/
|
|
12
|
+
export declare function addWebpackMenus(modules: any, startLen: number): void;
|
|
13
|
+
/** 添加动态路由. */
|
|
14
|
+
export declare function addDynamicRoute(routes: RouteRecordRaw[]): void;
|
|
15
|
+
/** 更新环境配置. */
|
|
16
|
+
export declare function updateMetaEnv(metaEnv: VueMetaEnv): VueMetaEnv;
|
|
17
|
+
/** 更新Vite环境配置. */
|
|
18
|
+
export declare function updateViteMetaEnv(viteMetaEnv: ImportMetaEnv): VueMetaEnv;
|
|
19
|
+
/** 更新Webpack环境配置. */
|
|
20
|
+
export declare function updateWebpackMetaEnv(webpackMetaEnv: any): VueMetaEnv;
|
|
21
|
+
/** 转换Vite环境配置. */
|
|
22
|
+
export declare function convertViteMetaEnv(viteMetaEnv: ImportMetaEnv): VueMetaEnv;
|
|
23
|
+
/** 转换Webpack环境配置. */
|
|
24
|
+
export declare function convertWebpackMetaEnv(webpackMetaEnv: any): VueMetaEnv;
|
|
25
|
+
/** 更新系统配置信息. */
|
|
26
|
+
export declare function updateSettings(setting: AppSettings): AppSettings;
|
|
27
|
+
export { vueMetaEnv, menus, defaultSettings, dynamicRoutes };
|
|
28
|
+
export default defaultSettings;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSettingsStore: any;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export declare const useTagsViewStore: import("pinia").StoreDefinition<"tagsView", import("pinia")._UnwrapAll<Pick<{
|
|
2
|
+
visitedViews: globalThis.Ref<{
|
|
3
|
+
name: string;
|
|
4
|
+
title: string;
|
|
5
|
+
path: string;
|
|
6
|
+
fullPath: string;
|
|
7
|
+
icon?: string | undefined;
|
|
8
|
+
affix?: boolean | undefined;
|
|
9
|
+
keepAlive?: boolean | undefined;
|
|
10
|
+
query?: any;
|
|
11
|
+
}[]>;
|
|
12
|
+
cachedViews: globalThis.Ref<string[]>;
|
|
13
|
+
addVisitedView: (view: TagView) => void;
|
|
14
|
+
addCachedView: (view: TagView) => void;
|
|
15
|
+
delVisitedView: (view: TagView) => Promise<unknown>;
|
|
16
|
+
delCachedView: (view: TagView) => Promise<unknown>;
|
|
17
|
+
delOtherVisitedViews: (view: TagView) => Promise<unknown>;
|
|
18
|
+
delOtherCachedViews: (view: TagView) => Promise<unknown>;
|
|
19
|
+
updateVisitedView: (view: TagView) => void;
|
|
20
|
+
addView: (view: TagView) => void;
|
|
21
|
+
delView: (view: TagView) => Promise<unknown>;
|
|
22
|
+
delOtherViews: (view: TagView) => Promise<unknown>;
|
|
23
|
+
delLeftViews: (view: TagView) => Promise<unknown>;
|
|
24
|
+
delRightViews: (view: TagView) => Promise<unknown>;
|
|
25
|
+
delAllViews: () => Promise<unknown>;
|
|
26
|
+
delAllVisitedViews: () => Promise<unknown>;
|
|
27
|
+
delAllCachedViews: () => Promise<unknown>;
|
|
28
|
+
delViewByFullPath: (fullPath: string) => Promise<TagView>;
|
|
29
|
+
}, "visitedViews" | "cachedViews">>, Pick<{
|
|
30
|
+
visitedViews: globalThis.Ref<{
|
|
31
|
+
name: string;
|
|
32
|
+
title: string;
|
|
33
|
+
path: string;
|
|
34
|
+
fullPath: string;
|
|
35
|
+
icon?: string | undefined;
|
|
36
|
+
affix?: boolean | undefined;
|
|
37
|
+
keepAlive?: boolean | undefined;
|
|
38
|
+
query?: any;
|
|
39
|
+
}[]>;
|
|
40
|
+
cachedViews: globalThis.Ref<string[]>;
|
|
41
|
+
addVisitedView: (view: TagView) => void;
|
|
42
|
+
addCachedView: (view: TagView) => void;
|
|
43
|
+
delVisitedView: (view: TagView) => Promise<unknown>;
|
|
44
|
+
delCachedView: (view: TagView) => Promise<unknown>;
|
|
45
|
+
delOtherVisitedViews: (view: TagView) => Promise<unknown>;
|
|
46
|
+
delOtherCachedViews: (view: TagView) => Promise<unknown>;
|
|
47
|
+
updateVisitedView: (view: TagView) => void;
|
|
48
|
+
addView: (view: TagView) => void;
|
|
49
|
+
delView: (view: TagView) => Promise<unknown>;
|
|
50
|
+
delOtherViews: (view: TagView) => Promise<unknown>;
|
|
51
|
+
delLeftViews: (view: TagView) => Promise<unknown>;
|
|
52
|
+
delRightViews: (view: TagView) => Promise<unknown>;
|
|
53
|
+
delAllViews: () => Promise<unknown>;
|
|
54
|
+
delAllVisitedViews: () => Promise<unknown>;
|
|
55
|
+
delAllCachedViews: () => Promise<unknown>;
|
|
56
|
+
delViewByFullPath: (fullPath: string) => Promise<TagView>;
|
|
57
|
+
}, never>, Pick<{
|
|
58
|
+
visitedViews: globalThis.Ref<{
|
|
59
|
+
name: string;
|
|
60
|
+
title: string;
|
|
61
|
+
path: string;
|
|
62
|
+
fullPath: string;
|
|
63
|
+
icon?: string | undefined;
|
|
64
|
+
affix?: boolean | undefined;
|
|
65
|
+
keepAlive?: boolean | undefined;
|
|
66
|
+
query?: any;
|
|
67
|
+
}[]>;
|
|
68
|
+
cachedViews: globalThis.Ref<string[]>;
|
|
69
|
+
addVisitedView: (view: TagView) => void;
|
|
70
|
+
addCachedView: (view: TagView) => void;
|
|
71
|
+
delVisitedView: (view: TagView) => Promise<unknown>;
|
|
72
|
+
delCachedView: (view: TagView) => Promise<unknown>;
|
|
73
|
+
delOtherVisitedViews: (view: TagView) => Promise<unknown>;
|
|
74
|
+
delOtherCachedViews: (view: TagView) => Promise<unknown>;
|
|
75
|
+
updateVisitedView: (view: TagView) => void;
|
|
76
|
+
addView: (view: TagView) => void;
|
|
77
|
+
delView: (view: TagView) => Promise<unknown>;
|
|
78
|
+
delOtherViews: (view: TagView) => Promise<unknown>;
|
|
79
|
+
delLeftViews: (view: TagView) => Promise<unknown>;
|
|
80
|
+
delRightViews: (view: TagView) => Promise<unknown>;
|
|
81
|
+
delAllViews: () => Promise<unknown>;
|
|
82
|
+
delAllVisitedViews: () => Promise<unknown>;
|
|
83
|
+
delAllCachedViews: () => Promise<unknown>;
|
|
84
|
+
delViewByFullPath: (fullPath: string) => Promise<TagView>;
|
|
85
|
+
}, "addVisitedView" | "addCachedView" | "delVisitedView" | "delCachedView" | "delOtherVisitedViews" | "delOtherCachedViews" | "updateVisitedView" | "addView" | "delView" | "delOtherViews" | "delLeftViews" | "delRightViews" | "delAllViews" | "delAllVisitedViews" | "delAllCachedViews" | "delViewByFullPath">>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 全局环境参数配置
|
|
3
|
+
*/
|
|
4
|
+
export interface VueMetaEnv {
|
|
5
|
+
/** 应用端口 */
|
|
6
|
+
APP_PORT: string;
|
|
7
|
+
/** 应用Base URL*/
|
|
8
|
+
APP_BASE_URL: string;
|
|
9
|
+
/** API Web基础路径 */
|
|
10
|
+
APP_BASE_API: string;
|
|
11
|
+
/** API URL 地址 */
|
|
12
|
+
APP_API_URL: string;
|
|
13
|
+
/** 应用客户端地址 */
|
|
14
|
+
APP_CLIENT_ID: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TableColumn {
|
|
17
|
+
label: string;
|
|
18
|
+
prop?: string;
|
|
19
|
+
width?: string;
|
|
20
|
+
slotName?: string;
|
|
21
|
+
columnType?: string;
|
|
22
|
+
fixed?: string | boolean;
|
|
23
|
+
isColumn?: boolean;
|
|
24
|
+
sortable?: string | boolean;
|
|
25
|
+
type?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface TableSort {
|
|
28
|
+
column: string;
|
|
29
|
+
prop: string;
|
|
30
|
+
order: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 新增编辑弹框参数
|
|
34
|
+
*/
|
|
35
|
+
export interface DialogRef {
|
|
36
|
+
title: string;
|
|
37
|
+
visible: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 系统设置
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* 系统设置
|
|
44
|
+
*/
|
|
45
|
+
export interface AppSettings {
|
|
46
|
+
/** 系统标题 */
|
|
47
|
+
title: string;
|
|
48
|
+
/** 系统版本 */
|
|
49
|
+
version: string;
|
|
50
|
+
/** LOGO */
|
|
51
|
+
logo: string;
|
|
52
|
+
/** 是否显示设置 */
|
|
53
|
+
showSettings: boolean;
|
|
54
|
+
/** 是否固定头部 */
|
|
55
|
+
fixedHeader: boolean;
|
|
56
|
+
/** 是否显示多标签导航 */
|
|
57
|
+
tagsView: boolean;
|
|
58
|
+
/** 是否显示侧边栏Logo */
|
|
59
|
+
sidebarLogo: boolean;
|
|
60
|
+
/** 导航栏布局(left|top|mix) */
|
|
61
|
+
layout: string;
|
|
62
|
+
/** 主题颜色 */
|
|
63
|
+
themeColor: string;
|
|
64
|
+
/** 主题模式(dark|light) */
|
|
65
|
+
theme: string;
|
|
66
|
+
/** 布局大小(default |large |small) */
|
|
67
|
+
size: string;
|
|
68
|
+
/** 语言( zh-cn| en) */
|
|
69
|
+
language: string;
|
|
70
|
+
/** 是否开启水印 */
|
|
71
|
+
watermarkEnabled: boolean;
|
|
72
|
+
/** 水印内容 */
|
|
73
|
+
watermarkContent: string;
|
|
74
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 颜色生成
|
|
3
|
+
*/
|
|
4
|
+
type RGB = {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
};
|
|
9
|
+
type HSL = {
|
|
10
|
+
h: number;
|
|
11
|
+
s: number;
|
|
12
|
+
l: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* RGB颜色转HSL颜色值
|
|
16
|
+
* @param r 红色值
|
|
17
|
+
* @param g 绿色值
|
|
18
|
+
* @param b 蓝色值
|
|
19
|
+
* @returns { h: [0, 360]; s: [0, 1]; l: [0, 1] }
|
|
20
|
+
*/
|
|
21
|
+
declare function rgbToHsl(rgb: RGB): HSL;
|
|
22
|
+
/**
|
|
23
|
+
* hsl -> rgb
|
|
24
|
+
* @param h [0, 360]
|
|
25
|
+
* @param s [0, 1]
|
|
26
|
+
* @param l [0, 1]
|
|
27
|
+
* @returns RGB
|
|
28
|
+
*/
|
|
29
|
+
declare function hslToRgb(hsl: HSL): RGB;
|
|
30
|
+
/**
|
|
31
|
+
* 16进制颜色转换RGB
|
|
32
|
+
* @param color #rrggbb
|
|
33
|
+
* @returns RGB
|
|
34
|
+
*/
|
|
35
|
+
declare function hexToRGB(hex: string): RGB;
|
|
36
|
+
/**
|
|
37
|
+
* rgb 转 16进制
|
|
38
|
+
* @param rgb RGB
|
|
39
|
+
* @returns #HEX{6}
|
|
40
|
+
*/
|
|
41
|
+
declare function rgbToHex(rgb: RGB): string;
|
|
42
|
+
declare function hslToHex(hsl: HSL): string;
|
|
43
|
+
declare function hexToHsl(hex: string): HSL;
|
|
44
|
+
declare function genMixColor(base: string | RGB | HSL): {
|
|
45
|
+
DEFAULT: string;
|
|
46
|
+
dark: {
|
|
47
|
+
1: string;
|
|
48
|
+
2: string;
|
|
49
|
+
3: string;
|
|
50
|
+
4: string;
|
|
51
|
+
5: string;
|
|
52
|
+
6: string;
|
|
53
|
+
7: string;
|
|
54
|
+
8: string;
|
|
55
|
+
9: string;
|
|
56
|
+
};
|
|
57
|
+
light: {
|
|
58
|
+
1: string;
|
|
59
|
+
2: string;
|
|
60
|
+
3: string;
|
|
61
|
+
4: string;
|
|
62
|
+
5: string;
|
|
63
|
+
6: string;
|
|
64
|
+
7: string;
|
|
65
|
+
8: string;
|
|
66
|
+
9: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export { genMixColor, rgbToHsl, rgbToHex, hslToRgb, hslToHex, hexToRGB, hexToHsl };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare class FileHashUtil {
|
|
2
|
+
hashTypeArg: string[];
|
|
3
|
+
chunkSize: number;
|
|
4
|
+
enabledAlgorithms: {
|
|
5
|
+
name: string;
|
|
6
|
+
instance: any;
|
|
7
|
+
}[];
|
|
8
|
+
onHashLoadStart?: (file: File, hashTypes: string[], source?: any) => void;
|
|
9
|
+
onHashProgress?: (file: File, percentage: number, hashTypes: string[], source?: any) => void;
|
|
10
|
+
onHashLoadEnd?: (file: File, results: any[], hashTypes: string[], source?: any) => void;
|
|
11
|
+
algorithms: {
|
|
12
|
+
name: string;
|
|
13
|
+
type: any;
|
|
14
|
+
param?: {
|
|
15
|
+
outputLength: number;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
constructor(setting?: Partial<FileHashUtil>);
|
|
19
|
+
compatible(): boolean;
|
|
20
|
+
initEnableAlgorithms(): {
|
|
21
|
+
name: string;
|
|
22
|
+
instance: any;
|
|
23
|
+
}[];
|
|
24
|
+
hash(file: File, source?: null, pos?: number): Promise<string[]>;
|
|
25
|
+
arrayBufferToWordArray(arrayBuffer: ArrayBuffer): any;
|
|
26
|
+
swapendian32Hash(val: number): number;
|
|
27
|
+
}
|
|
28
|
+
export default FileHashUtil;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UploadRequestHandler } from "element-plus";
|
|
2
|
+
export declare class UploadAjaxError extends Error {
|
|
3
|
+
name: string;
|
|
4
|
+
status: number;
|
|
5
|
+
method: string;
|
|
6
|
+
url: string;
|
|
7
|
+
constructor(message: string, status: number, method: string, url: string);
|
|
8
|
+
}
|
|
9
|
+
export declare const ajaxUpload: UploadRequestHandler;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from "vue-router";
|
|
2
|
+
export declare function translateRouteTitle(route: RouteRecordRaw): any;
|
|
3
|
+
export declare function translateTagView(tag: TagView): any;
|
|
4
|
+
export declare function translateRoute(name: string | undefined, title: string | undefined): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if an element has a class
|
|
3
|
+
* @param {HTMLElement} ele
|
|
4
|
+
* @param {string} cls
|
|
5
|
+
* @returns {boolean}
|
|
6
|
+
*/
|
|
7
|
+
export declare function hasClass(ele: HTMLElement, cls: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Add class to element
|
|
10
|
+
* @param {HTMLElement} ele
|
|
11
|
+
* @param {string} cls
|
|
12
|
+
*/
|
|
13
|
+
export declare function addClass(ele: HTMLElement, cls: string): void;
|
|
14
|
+
/**
|
|
15
|
+
* Remove class from element
|
|
16
|
+
* @param {HTMLElement} ele
|
|
17
|
+
* @param {string} cls
|
|
18
|
+
*/
|
|
19
|
+
export declare function removeClass(ele: HTMLElement, cls: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 判断是否是外部链接
|
|
22
|
+
*
|
|
23
|
+
* @param {string} path
|
|
24
|
+
* @returns {Boolean}
|
|
25
|
+
*/
|
|
26
|
+
export declare function isExternal(path: string): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 设置Style属性
|
|
29
|
+
*
|
|
30
|
+
* @param propName
|
|
31
|
+
* @param value
|
|
32
|
+
*/
|
|
33
|
+
export declare function setStyleProperty(propName: string, value: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function netEncrypt(data: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class CryptoSM3 {
|
|
2
|
+
chunks: string[];
|
|
3
|
+
param: {};
|
|
4
|
+
static create(param: any): CryptoSM3;
|
|
5
|
+
constructor(param?: {});
|
|
6
|
+
update(data: Uint8Array): void;
|
|
7
|
+
finalize(): string;
|
|
8
|
+
hexStringToUint8Array(hexStr: string): Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
export default CryptoSM3;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
className: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
width: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
className: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
id: string;
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
className: string;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
className: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
width: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
className: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
id: string;
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
className: string;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
className: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
width: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
className: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
id: string;
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
className: string;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export default _default;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
id: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
className: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
width: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
height: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
21
|
+
id: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
className: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
width: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
id: string;
|
|
41
|
+
width: string;
|
|
42
|
+
height: string;
|
|
43
|
+
className: string;
|
|
44
|
+
}, {}>;
|
|
45
|
+
export default _default;
|