@kengic/vue 0.24.1-beta.0 → 0.24.1-beta.2
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/kengic-vue.js +874 -702
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgModal/KgModal.service.d.ts +5 -5
- package/dist/src/config/index.store.d.ts +1 -16
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +1 -0
- package/dist/src/project/src/api/index.d.ts +3 -0
- package/dist/{project/src/api/sys/model/menuModel.ts → src/project/src/api/sys/model/menuModel.d.ts} +1 -3
- package/dist/{project/src/api/sys/model/userModel.ts → src/project/src/api/sys/model/userModel.d.ts} +0 -12
- package/dist/src/project/src/components/Dropdown/index.d.ts +1 -0
- package/dist/src/project/src/components/Dropdown/src/typing.d.ts +9 -0
- package/dist/src/project/src/components/index.d.ts +1 -0
- package/dist/src/project/src/enums/CompTypeEnum.d.ts +19 -0
- package/dist/src/project/src/enums/DateTypeEnum.d.ts +8 -0
- package/dist/src/project/src/enums/appEnum.d.ts +40 -0
- package/dist/src/project/src/enums/breakpointEnum.d.ts +18 -0
- package/dist/src/project/src/enums/cacheEnum.d.ts +18 -0
- package/dist/src/project/src/enums/exceptionEnum.d.ts +17 -0
- package/dist/src/project/src/enums/httpEnum.d.ts +38 -0
- package/dist/src/project/src/enums/index.d.ts +13 -0
- package/dist/src/project/src/enums/jeecgEnum.d.ts +16 -0
- package/dist/src/project/src/enums/menuEnum.d.ts +35 -0
- package/dist/src/project/src/enums/pageEnum.d.ts +14 -0
- package/dist/src/project/src/enums/roleEnum.d.ts +4 -0
- package/dist/src/project/src/enums/sizeEnum.d.ts +18 -0
- package/dist/src/project/src/index.d.ts +3 -0
- package/dist/src/project/src/settings/componentSetting.d.ts +44 -0
- package/dist/src/project/src/settings/designSetting.d.ts +6 -0
- package/dist/src/project/src/settings/encryptionSetting.d.ts +6 -0
- package/dist/src/project/src/settings/index.d.ts +4 -0
- package/dist/src/project/src/settings/localeSetting.d.ts +7 -0
- package/package.json +1 -1
- package/dist/project/src/enums/CompTypeEnum.ts +0 -32
- package/dist/project/src/enums/DateTypeEnum.ts +0 -8
- package/dist/project/src/enums/appEnum.ts +0 -58
- package/dist/project/src/enums/breakpointEnum.ts +0 -28
- package/dist/project/src/enums/cacheEnum.ts +0 -39
- package/dist/project/src/enums/exceptionEnum.ts +0 -27
- package/dist/project/src/enums/httpEnum.ts +0 -50
- package/dist/project/src/enums/jeecgEnum.ts +0 -23
- package/dist/project/src/enums/menuEnum.ts +0 -50
- package/dist/project/src/enums/pageEnum.ts +0 -19
- package/dist/project/src/enums/roleEnum.ts +0 -7
- package/dist/project/src/enums/sizeEnum.ts +0 -27
- package/dist/project/types/axios.d.ts +0 -57
- package/dist/project/types/config.d.ts +0 -178
- package/dist/project/types/global.d.ts +0 -92
- package/dist/project/types/index.d.ts +0 -27
- package/dist/project/types/module.d.ts +0 -18
- package/dist/project/types/store.d.ts +0 -59
- package/dist/project/types/utils.d.ts +0 -5
- package/dist/project/types/vue-router.d.ts +0 -47
- /package/dist/{project/src/api/sys/model/uploadModel.ts → src/project/src/api/sys/model/uploadModel.d.ts} +0 -0
@@ -1,58 +0,0 @@
|
|
1
|
-
export const SIDE_BAR_MINI_WIDTH = 48;
|
2
|
-
export const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
|
3
|
-
|
4
|
-
// 标签页样式
|
5
|
-
export enum TabsThemeEnum {
|
6
|
-
// 圆滑
|
7
|
-
SMOOTH = 'smooth',
|
8
|
-
// 卡片
|
9
|
-
CARD = 'card',
|
10
|
-
// 极简
|
11
|
-
SIMPLE = 'simple',
|
12
|
-
}
|
13
|
-
|
14
|
-
export enum ContentEnum {
|
15
|
-
// auto width
|
16
|
-
FULL = 'full',
|
17
|
-
// fixed width
|
18
|
-
FIXED = 'fixed',
|
19
|
-
}
|
20
|
-
|
21
|
-
// menu theme enum
|
22
|
-
export enum ThemeEnum {
|
23
|
-
DARK = 'dark',
|
24
|
-
LIGHT = 'light',
|
25
|
-
}
|
26
|
-
|
27
|
-
export enum SettingButtonPositionEnum {
|
28
|
-
AUTO = 'auto',
|
29
|
-
HEADER = 'header',
|
30
|
-
FIXED = 'fixed',
|
31
|
-
}
|
32
|
-
|
33
|
-
export enum SessionTimeoutProcessingEnum {
|
34
|
-
ROUTE_JUMP,
|
35
|
-
PAGE_COVERAGE,
|
36
|
-
}
|
37
|
-
|
38
|
-
/**
|
39
|
-
* 权限模式
|
40
|
-
*/
|
41
|
-
export enum PermissionModeEnum {
|
42
|
-
// role
|
43
|
-
ROLE = 'ROLE',
|
44
|
-
// 后台
|
45
|
-
BACK = 'BACK',
|
46
|
-
// route mapping
|
47
|
-
ROUTE_MAPPING = 'ROUTE_MAPPING',
|
48
|
-
}
|
49
|
-
|
50
|
-
// Route switching animation
|
51
|
-
export enum RouterTransitionEnum {
|
52
|
-
ZOOM_FADE = 'zoom-fade',
|
53
|
-
ZOOM_OUT = 'zoom-out',
|
54
|
-
FADE_SIDE = 'fade-slide',
|
55
|
-
FADE = 'fade',
|
56
|
-
FADE_BOTTOM = 'fade-bottom',
|
57
|
-
FADE_SCALE = 'fade-scale',
|
58
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
export enum sizeEnum {
|
2
|
-
XS = 'XS',
|
3
|
-
SM = 'SM',
|
4
|
-
MD = 'MD',
|
5
|
-
LG = 'LG',
|
6
|
-
XL = 'XL',
|
7
|
-
XXL = 'XXL',
|
8
|
-
}
|
9
|
-
|
10
|
-
export enum screenEnum {
|
11
|
-
XS = 480,
|
12
|
-
SM = 576,
|
13
|
-
MD = 768,
|
14
|
-
LG = 992,
|
15
|
-
XL = 1200,
|
16
|
-
XXL = 1600,
|
17
|
-
}
|
18
|
-
|
19
|
-
const screenMap = new Map<sizeEnum, number>();
|
20
|
-
|
21
|
-
screenMap.set(sizeEnum.XS, screenEnum.XS);
|
22
|
-
screenMap.set(sizeEnum.SM, screenEnum.SM);
|
23
|
-
screenMap.set(sizeEnum.MD, screenEnum.MD);
|
24
|
-
screenMap.set(sizeEnum.LG, screenEnum.LG);
|
25
|
-
screenMap.set(sizeEnum.XL, screenEnum.XL);
|
26
|
-
screenMap.set(sizeEnum.XXL, screenEnum.XXL);
|
27
|
-
|
28
|
-
export { screenMap };
|
@@ -1,39 +0,0 @@
|
|
1
|
-
// token key
|
2
|
-
export const TOKEN_KEY = 'TOKEN__';
|
3
|
-
|
4
|
-
export const LOCALE_KEY = 'LOCALE__';
|
5
|
-
|
6
|
-
// user info key
|
7
|
-
export const USER_INFO_KEY = 'USER__INFO__';
|
8
|
-
|
9
|
-
// role info key
|
10
|
-
export const ROLES_KEY = 'ROLES__KEY__';
|
11
|
-
export const USER_WAREHOUSE_KEY = 'USER_WAREHOUSE__KEY__';
|
12
|
-
|
13
|
-
// dict info key
|
14
|
-
export const DB_DICT_DATA_KEY = 'UI_CACHE_DB_DICT_DATA';
|
15
|
-
|
16
|
-
// project config key
|
17
|
-
export const PROJ_CFG_KEY = 'PROJ__CFG__KEY__';
|
18
|
-
|
19
|
-
// lock info
|
20
|
-
export const LOCK_INFO_KEY = 'LOCK__INFO__KEY__';
|
21
|
-
|
22
|
-
export const MULTIPLE_TABS_KEY = 'MULTIPLE_TABS__KEY__';
|
23
|
-
|
24
|
-
export const APP_DARK_MODE_KEY_ = '__APP__DARK__MODE__';
|
25
|
-
|
26
|
-
// base global local key
|
27
|
-
export const APP_LOCAL_CACHE_KEY = 'COMMON__LOCAL__KEY__';
|
28
|
-
|
29
|
-
// base global session key
|
30
|
-
export const APP_SESSION_CACHE_KEY = 'COMMON__SESSION__KEY__';
|
31
|
-
// 租户 key
|
32
|
-
export const TENANT_ID = 'TENANT_ID';
|
33
|
-
// login info key
|
34
|
-
export const LOGIN_INFO_KEY = 'LOGIN__INFO__';
|
35
|
-
|
36
|
-
export enum CacheTypeEnum {
|
37
|
-
SESSION,
|
38
|
-
LOCAL,
|
39
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @description: Exception related enumeration
|
3
|
-
*/
|
4
|
-
export enum ExceptionEnum {
|
5
|
-
// page not access
|
6
|
-
PAGE_NOT_ACCESS = 403,
|
7
|
-
|
8
|
-
// page not found
|
9
|
-
PAGE_NOT_FOUND = 404,
|
10
|
-
|
11
|
-
// error
|
12
|
-
ERROR = 500,
|
13
|
-
|
14
|
-
// net work error
|
15
|
-
NET_WORK_ERROR = 10000,
|
16
|
-
|
17
|
-
// No data on the page. In fact, it is not an exception page
|
18
|
-
PAGE_NOT_DATA = 10100,
|
19
|
-
}
|
20
|
-
|
21
|
-
export enum ErrorTypeEnum {
|
22
|
-
VUE = 'vue',
|
23
|
-
SCRIPT = 'script',
|
24
|
-
RESOURCE = 'resource',
|
25
|
-
AJAX = 'ajax',
|
26
|
-
PROMISE = 'promise',
|
27
|
-
}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @description: Request result set
|
3
|
-
*/
|
4
|
-
export enum ResultEnum {
|
5
|
-
SUCCESS = 0,
|
6
|
-
ERROR = 1,
|
7
|
-
TIMEOUT = 401,
|
8
|
-
TYPE = 'success',
|
9
|
-
}
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @description: request method
|
13
|
-
*/
|
14
|
-
export enum RequestEnum {
|
15
|
-
GET = 'GET',
|
16
|
-
POST = 'POST',
|
17
|
-
PUT = 'PUT',
|
18
|
-
DELETE = 'DELETE',
|
19
|
-
}
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @description: contentTyp
|
23
|
-
*/
|
24
|
-
export enum ContentTypeEnum {
|
25
|
-
// json
|
26
|
-
JSON = 'application/json;charset=UTF-8',
|
27
|
-
// form-data qs
|
28
|
-
FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
|
29
|
-
// form-data upload
|
30
|
-
FORM_DATA = 'multipart/form-data;charset=UTF-8',
|
31
|
-
}
|
32
|
-
|
33
|
-
/**
|
34
|
-
* 请求header
|
35
|
-
* @description: contentTyp
|
36
|
-
*/
|
37
|
-
export enum ConfigEnum {
|
38
|
-
// TOKEN
|
39
|
-
TOKEN = 'X-Access-Token',
|
40
|
-
// TIMESTAMP
|
41
|
-
TIMESTAMP = 'X-TIMESTAMP',
|
42
|
-
// Sign
|
43
|
-
Sign = 'X-Sign',
|
44
|
-
// 租户id
|
45
|
-
TENANT_ID = 'tenant-id',
|
46
|
-
// 版本
|
47
|
-
VERSION = 'X-Version',
|
48
|
-
// 低代码应用ID
|
49
|
-
X_LOW_APP_ID = 'X-Low-App-ID',
|
50
|
-
}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* JInput组件类型
|
3
|
-
*/
|
4
|
-
export enum JInputTypeEnum {
|
5
|
-
//模糊
|
6
|
-
JINPUT_QUERY_LIKE = 'like',
|
7
|
-
//非
|
8
|
-
JINPUT_QUERY_NE = 'ne',
|
9
|
-
//大于等于
|
10
|
-
JINPUT_QUERY_GE = 'ge',
|
11
|
-
//小于等于
|
12
|
-
JINPUT_QUERY_LE = 'le',
|
13
|
-
}
|
14
|
-
|
15
|
-
/**
|
16
|
-
* 面板设计器需要的常量定义
|
17
|
-
*/
|
18
|
-
export enum JDragConfigEnum {
|
19
|
-
//baseURL
|
20
|
-
DRAG_BASE_URL = 'drag-base-url',
|
21
|
-
//拖拽缓存前缀
|
22
|
-
DRAG_CACHE_PREFIX = 'drag-cache:',
|
23
|
-
}
|
@@ -1,50 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @description: menu type
|
3
|
-
*/
|
4
|
-
export enum MenuTypeEnum {
|
5
|
-
// left menu
|
6
|
-
SIDEBAR = 'sidebar',
|
7
|
-
|
8
|
-
MIX_SIDEBAR = 'mix-sidebar',
|
9
|
-
// mixin menu
|
10
|
-
MIX = 'mix',
|
11
|
-
// top menu
|
12
|
-
TOP_MENU = 'top-menu',
|
13
|
-
}
|
14
|
-
|
15
|
-
// 折叠触发器位置
|
16
|
-
export enum TriggerEnum {
|
17
|
-
// 不显示
|
18
|
-
NONE = 'NONE',
|
19
|
-
// 菜单底部
|
20
|
-
FOOTER = 'FOOTER',
|
21
|
-
// 头部
|
22
|
-
HEADER = 'HEADER',
|
23
|
-
}
|
24
|
-
|
25
|
-
export type Mode = 'vertical' | 'vertical-right' | 'horizontal' | 'inline';
|
26
|
-
|
27
|
-
// menu mode
|
28
|
-
export enum MenuModeEnum {
|
29
|
-
VERTICAL = 'vertical',
|
30
|
-
HORIZONTAL = 'horizontal',
|
31
|
-
VERTICAL_RIGHT = 'vertical-right',
|
32
|
-
INLINE = 'inline',
|
33
|
-
}
|
34
|
-
|
35
|
-
export enum MenuSplitTyeEnum {
|
36
|
-
NONE,
|
37
|
-
TOP,
|
38
|
-
LEFT,
|
39
|
-
}
|
40
|
-
|
41
|
-
export enum TopMenuAlignEnum {
|
42
|
-
CENTER = 'center',
|
43
|
-
START = 'start',
|
44
|
-
END = 'end',
|
45
|
-
}
|
46
|
-
|
47
|
-
export enum MixSidebarTriggerEnum {
|
48
|
-
HOVER = 'hover',
|
49
|
-
CLICK = 'click',
|
50
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export enum PageEnum {
|
2
|
-
// basic login path
|
3
|
-
BASE_LOGIN = '/login',
|
4
|
-
// basic home path
|
5
|
-
BASE_HOME = '/home',
|
6
|
-
// error page path
|
7
|
-
ERROR_PAGE = '/exception',
|
8
|
-
// error log page path
|
9
|
-
ERROR_LOG_PAGE = '/error-log/list',
|
10
|
-
// auth2登录路由路径
|
11
|
-
OAUTH2_LOGIN_PAGE_PATH = '/oauth2-app/login',
|
12
|
-
LABEL = '/wms/business-manager/print-manager/label',
|
13
|
-
/** 打印模板:物料标签. */
|
14
|
-
PRINT_TEMPLATE_ITEM = '/wms/print-template/item',
|
15
|
-
/** 打印模板:备料标签. */
|
16
|
-
PRINT_TEMPLATE_SPARE = '/wms/print-template/spare',
|
17
|
-
/** 打印模板:出库订单. */
|
18
|
-
PRINT_TEMPLATE_ORDER = '/wms/print-template/order',
|
19
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
export enum SizeEnum {
|
2
|
-
DEFAULT = 'default',
|
3
|
-
SMALL = 'small',
|
4
|
-
LARGE = 'large',
|
5
|
-
}
|
6
|
-
|
7
|
-
export enum SizeNumberEnum {
|
8
|
-
DEFAULT = 48,
|
9
|
-
SMALL = 16,
|
10
|
-
LARGE = 64,
|
11
|
-
}
|
12
|
-
|
13
|
-
export enum ScreenSizeEnum {
|
14
|
-
XS = 480,
|
15
|
-
SM = 576,
|
16
|
-
MD = 768,
|
17
|
-
LG = 992,
|
18
|
-
XL = 1200,
|
19
|
-
}
|
20
|
-
|
21
|
-
export const sizeMap: Map<SizeEnum, SizeNumberEnum> = (() => {
|
22
|
-
const map = new Map<SizeEnum, SizeNumberEnum>();
|
23
|
-
map.set(SizeEnum.DEFAULT, SizeNumberEnum.DEFAULT);
|
24
|
-
map.set(SizeEnum.SMALL, SizeNumberEnum.SMALL);
|
25
|
-
map.set(SizeEnum.LARGE, SizeNumberEnum.LARGE);
|
26
|
-
return map;
|
27
|
-
})();
|
@@ -1,57 +0,0 @@
|
|
1
|
-
export type ErrorMessageMode = 'none' | 'modal' | 'message' | undefined;
|
2
|
-
export type SuccessMessageMode = 'none' | 'success' | 'error' | undefined;
|
3
|
-
|
4
|
-
export interface RequestOptions {
|
5
|
-
// 将请求参数拼接到url
|
6
|
-
joinParamsToUrl?: boolean;
|
7
|
-
// 格式化请求参数时间
|
8
|
-
formatDate?: boolean;
|
9
|
-
// 是否处理请求结果
|
10
|
-
isTransformResponse?: boolean;
|
11
|
-
// 是否返回本地响应头,需要获取响应头时使用此属性
|
12
|
-
isReturnNativeResponse?: boolean;
|
13
|
-
// Whether to join url
|
14
|
-
joinPrefix?: boolean;
|
15
|
-
// 接口地址,如果保留为空,则使用默认值
|
16
|
-
apiUrl?: string;
|
17
|
-
// 请求拼接路径
|
18
|
-
urlPrefix?: string;
|
19
|
-
// 错误消息提示类型
|
20
|
-
errorMessageMode?: ErrorMessageMode;
|
21
|
-
// 成功消息提示类型
|
22
|
-
successMessageMode?: SuccessMessageMode;
|
23
|
-
// 是否添加时间戳
|
24
|
-
joinTime?: boolean;
|
25
|
-
ignoreCancelToken?: boolean;
|
26
|
-
//是否在标头中发送令牌
|
27
|
-
withToken?: boolean;
|
28
|
-
}
|
29
|
-
|
30
|
-
export interface Result<T = any> {
|
31
|
-
code: number;
|
32
|
-
type: 'success' | 'error' | 'warning';
|
33
|
-
message: string;
|
34
|
-
success?: boolean | null;
|
35
|
-
timestamp?: number | null;
|
36
|
-
result: T;
|
37
|
-
}
|
38
|
-
|
39
|
-
//文件上传参数
|
40
|
-
export interface UploadFileParams {
|
41
|
-
// 其他参数
|
42
|
-
data?: Recordable;
|
43
|
-
// 文件参数接口字段名
|
44
|
-
name?: string;
|
45
|
-
// 文件
|
46
|
-
file: File | Blob;
|
47
|
-
// 文件名
|
48
|
-
filename?: string;
|
49
|
-
[key: string]: any;
|
50
|
-
}
|
51
|
-
//文件返回参数
|
52
|
-
export interface UploadFileCallBack {
|
53
|
-
// 成功回调方法
|
54
|
-
success?: any;
|
55
|
-
// 是否返回响应头,需要获取响应头时使用此属性
|
56
|
-
isReturnResponse?: boolean;
|
57
|
-
}
|
@@ -1,178 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
ContentEnum,
|
3
|
-
PermissionModeEnum,
|
4
|
-
RouterTransitionEnum,
|
5
|
-
SessionTimeoutProcessingEnum,
|
6
|
-
SettingButtonPositionEnum,
|
7
|
-
ThemeEnum,
|
8
|
-
} from '../src/enums/appEnum';
|
9
|
-
import { CacheTypeEnum } from '../src/enums/cacheEnum';
|
10
|
-
|
11
|
-
import { MenuModeEnum, MenuTypeEnum, MixSidebarTriggerEnum, TriggerEnum } from '../src/enums/menuEnum';
|
12
|
-
|
13
|
-
export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
|
14
|
-
|
15
|
-
export interface MenuSetting {
|
16
|
-
bgColor: string;
|
17
|
-
fixed: boolean;
|
18
|
-
collapsed: boolean;
|
19
|
-
canDrag: boolean;
|
20
|
-
show: boolean;
|
21
|
-
hidden: boolean;
|
22
|
-
split: boolean;
|
23
|
-
menuWidth: number;
|
24
|
-
mode: MenuModeEnum;
|
25
|
-
type: MenuTypeEnum;
|
26
|
-
theme: ThemeEnum;
|
27
|
-
topMenuAlign: 'start' | 'center' | 'end';
|
28
|
-
trigger: TriggerEnum;
|
29
|
-
accordion: boolean;
|
30
|
-
closeMixSidebarOnChange: boolean;
|
31
|
-
collapsedShowTitle: boolean;
|
32
|
-
mixSideTrigger: MixSidebarTriggerEnum;
|
33
|
-
mixSideFixed: boolean;
|
34
|
-
}
|
35
|
-
|
36
|
-
export interface MultiTabsSetting {
|
37
|
-
cache: boolean;
|
38
|
-
show: boolean;
|
39
|
-
showQuick: boolean;
|
40
|
-
canDrag: boolean;
|
41
|
-
showRedo: boolean;
|
42
|
-
showFold: boolean;
|
43
|
-
theme: string;
|
44
|
-
}
|
45
|
-
|
46
|
-
export interface HeaderSetting {
|
47
|
-
bgColor: string;
|
48
|
-
fixed: boolean;
|
49
|
-
show: boolean;
|
50
|
-
theme: ThemeEnum;
|
51
|
-
// Turn on full screen
|
52
|
-
showFullScreen: boolean;
|
53
|
-
// Whether to show the lock screen
|
54
|
-
useLockPage: boolean;
|
55
|
-
// Show document button
|
56
|
-
showDoc: boolean;
|
57
|
-
// Show message center button
|
58
|
-
showNotice: boolean;
|
59
|
-
showSearch: boolean;
|
60
|
-
}
|
61
|
-
|
62
|
-
export interface LocaleSetting {
|
63
|
-
showPicker: boolean;
|
64
|
-
// Current language
|
65
|
-
locale: LocaleType;
|
66
|
-
// default language
|
67
|
-
fallback: LocaleType;
|
68
|
-
// available Locales
|
69
|
-
availableLocales: LocaleType[];
|
70
|
-
}
|
71
|
-
|
72
|
-
export interface TransitionSetting {
|
73
|
-
// Whether to open the page switching animation
|
74
|
-
enable: boolean;
|
75
|
-
// Route basic switching animation
|
76
|
-
basicTransition: RouterTransitionEnum;
|
77
|
-
// Whether to open page switching loading
|
78
|
-
openPageLoading: boolean;
|
79
|
-
// Whether to open the top progress bar
|
80
|
-
openNProgress: boolean;
|
81
|
-
}
|
82
|
-
|
83
|
-
export interface ProjectConfig {
|
84
|
-
// Storage location of permission related information
|
85
|
-
permissionCacheType: CacheTypeEnum;
|
86
|
-
// Whether to show the configuration button
|
87
|
-
showSettingButton: boolean;
|
88
|
-
// Whether to show the theme switch button
|
89
|
-
showDarkModeToggle: boolean;
|
90
|
-
// Configure where the button is displayed
|
91
|
-
settingButtonPosition: SettingButtonPositionEnum;
|
92
|
-
// Permission mode
|
93
|
-
permissionMode: PermissionModeEnum;
|
94
|
-
// Session timeout processing
|
95
|
-
sessionTimeoutProcessing: SessionTimeoutProcessingEnum;
|
96
|
-
// Website gray mode, open for possible mourning dates
|
97
|
-
grayMode: boolean;
|
98
|
-
// Whether to turn on the color weak mode
|
99
|
-
colorWeak: boolean;
|
100
|
-
// Theme color
|
101
|
-
themeColor: string;
|
102
|
-
|
103
|
-
// The main interface is displayed in full screen, the menu is not displayed, and the top
|
104
|
-
fullContent: boolean;
|
105
|
-
// content width
|
106
|
-
contentMode: ContentEnum;
|
107
|
-
// Whether to display the logo
|
108
|
-
showLogo: boolean;
|
109
|
-
// Whether to show the global footer
|
110
|
-
showFooter: boolean;
|
111
|
-
// menuType: MenuTypeEnum;
|
112
|
-
headerSetting: HeaderSetting;
|
113
|
-
// menuSetting
|
114
|
-
menuSetting: MenuSetting;
|
115
|
-
// Multi-tab settings
|
116
|
-
multiTabsSetting: MultiTabsSetting;
|
117
|
-
// Animation configuration
|
118
|
-
transitionSetting: TransitionSetting;
|
119
|
-
// pageLayout whether to enable keep-alive
|
120
|
-
openKeepAlive: boolean;
|
121
|
-
// Lock screen time
|
122
|
-
lockTime: number;
|
123
|
-
// Show breadcrumbs
|
124
|
-
showBreadCrumb: boolean;
|
125
|
-
// Show breadcrumb icon
|
126
|
-
showBreadCrumbIcon: boolean;
|
127
|
-
// Use error-handler-plugin
|
128
|
-
useErrorHandle: boolean;
|
129
|
-
// Whether to open back to top
|
130
|
-
useOpenBackTop: boolean;
|
131
|
-
// Is it possible to embed iframe pages
|
132
|
-
canEmbedIFramePage: boolean;
|
133
|
-
// Whether to delete unclosed messages and notify when switching the interface
|
134
|
-
closeMessageOnSwitch: boolean;
|
135
|
-
// Whether to cancel the http request that has been sent but not responded when switching the interface.
|
136
|
-
removeAllHttpPending: boolean;
|
137
|
-
}
|
138
|
-
|
139
|
-
export interface GlobConfig {
|
140
|
-
// Site title
|
141
|
-
title: string;
|
142
|
-
// Service interface url
|
143
|
-
apiUrl: string;
|
144
|
-
domainUrl: string;
|
145
|
-
// Upload url (作废)
|
146
|
-
uploadUrl?: string;
|
147
|
-
openSso?: string;
|
148
|
-
openQianKun?: string;
|
149
|
-
casBaseUrl?: string;
|
150
|
-
// onlineview url
|
151
|
-
viewUrl?: string;
|
152
|
-
// Service interface url prefix
|
153
|
-
urlPrefix?: string;
|
154
|
-
// Project abbreviation
|
155
|
-
shortName: string;
|
156
|
-
}
|
157
|
-
export interface GlobEnvConfig {
|
158
|
-
// Site title
|
159
|
-
VITE_GLOB_APP_TITLE: string;
|
160
|
-
// Service interface url
|
161
|
-
VITE_GLOB_API_URL: string;
|
162
|
-
VITE_USE_MOCK: string;
|
163
|
-
// Service interface url prefix
|
164
|
-
VITE_GLOB_API_URL_PREFIX?: string;
|
165
|
-
// Project abbreviation
|
166
|
-
VITE_GLOB_APP_SHORT_NAME: string;
|
167
|
-
//是否开启单点登录
|
168
|
-
VITE_GLOB_APP_OPEN_SSO: string;
|
169
|
-
//是否开启微应用模式
|
170
|
-
VITE_GLOB_APP_OPEN_QIANKUN: string;
|
171
|
-
//单点服务端地址
|
172
|
-
VITE_GLOB_APP_CAS_BASE_URL: string;
|
173
|
-
VITE_GLOB_DOMAIN_URL: string;
|
174
|
-
// Upload url
|
175
|
-
VITE_GLOB_UPLOAD_URL?: string;
|
176
|
-
// view url
|
177
|
-
VITE_GLOB_ONLINE_VIEW_URL?: string;
|
178
|
-
}
|
@@ -1,92 +0,0 @@
|
|
1
|
-
import type { ComponentPublicInstance, ComponentRenderProxy, FunctionalComponent, PropType as VuePropType, VNode, VNodeChild } from 'vue';
|
2
|
-
|
3
|
-
declare global {
|
4
|
-
const __APP_INFO__: {
|
5
|
-
pkg: {
|
6
|
-
name: string;
|
7
|
-
version: string;
|
8
|
-
dependencies: Recordable<string>;
|
9
|
-
devDependencies: Recordable<string>;
|
10
|
-
};
|
11
|
-
lastBuildTime: string;
|
12
|
-
};
|
13
|
-
// declare interface Window {
|
14
|
-
// // Global vue app instance
|
15
|
-
// __APP__: App<Element>;
|
16
|
-
// }
|
17
|
-
|
18
|
-
// vue
|
19
|
-
declare type PropType<T> = VuePropType<T>;
|
20
|
-
declare type VueNode = VNodeChild | JSX.Element;
|
21
|
-
|
22
|
-
export type Writable<T> = {
|
23
|
-
-readonly [P in keyof T]: T[P];
|
24
|
-
};
|
25
|
-
|
26
|
-
declare type Nullable<T> = T | null;
|
27
|
-
declare type NonNullable<T> = T extends null | undefined ? never : T;
|
28
|
-
declare type Recordable<T = any> = Record<string, T>;
|
29
|
-
declare type ReadonlyRecordable<T = any> = {
|
30
|
-
readonly [key: string]: T;
|
31
|
-
};
|
32
|
-
declare type Indexable<T = any> = {
|
33
|
-
[key: string]: T;
|
34
|
-
};
|
35
|
-
declare type DeepPartial<T> = {
|
36
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
37
|
-
};
|
38
|
-
declare type TimeoutHandle = ReturnType<typeof setTimeout>;
|
39
|
-
declare type IntervalHandle = ReturnType<typeof setInterval>;
|
40
|
-
|
41
|
-
declare interface ChangeEvent extends Event {
|
42
|
-
target: HTMLInputElement;
|
43
|
-
}
|
44
|
-
|
45
|
-
declare interface WheelEvent {
|
46
|
-
path?: EventTarget[];
|
47
|
-
}
|
48
|
-
interface ImportMetaEnv extends ViteEnv {
|
49
|
-
__: unknown;
|
50
|
-
}
|
51
|
-
|
52
|
-
declare interface ViteEnv {
|
53
|
-
VITE_PORT: number;
|
54
|
-
VITE_USE_MOCK: boolean;
|
55
|
-
VITE_USE_PWA: boolean;
|
56
|
-
VITE_PUBLIC_PATH: string;
|
57
|
-
VITE_PROXY: [string, string][];
|
58
|
-
VITE_GLOB_APP_TITLE: string;
|
59
|
-
VITE_GLOB_APP_SHORT_NAME: string;
|
60
|
-
VITE_USE_CDN: boolean;
|
61
|
-
VITE_DROP_CONSOLE: boolean;
|
62
|
-
VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
|
63
|
-
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
|
64
|
-
VITE_LEGACY: boolean;
|
65
|
-
VITE_USE_IMAGEMIN: boolean;
|
66
|
-
VITE_GENERATE_UI: string;
|
67
|
-
}
|
68
|
-
|
69
|
-
declare function parseInt(s: string | number, radix?: number): number;
|
70
|
-
|
71
|
-
declare function parseFloat(string: string | number): number;
|
72
|
-
|
73
|
-
namespace JSX {
|
74
|
-
// tslint:disable no-empty-interface
|
75
|
-
type Element = VNode;
|
76
|
-
// tslint:disable no-empty-interface
|
77
|
-
type ElementClass = ComponentRenderProxy;
|
78
|
-
interface ElementAttributesProperty {
|
79
|
-
$props: any;
|
80
|
-
}
|
81
|
-
interface IntrinsicElements {
|
82
|
-
[elem: string]: any;
|
83
|
-
}
|
84
|
-
interface IntrinsicAttributes {
|
85
|
-
[elem: string]: any;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
}
|
89
|
-
|
90
|
-
declare module 'vue' {
|
91
|
-
export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>;
|
92
|
-
}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
declare interface Fn<T = any, R = T> {
|
2
|
-
(...arg: T[]): R;
|
3
|
-
}
|
4
|
-
|
5
|
-
declare interface PromiseFn<T = any, R = T> {
|
6
|
-
(...arg: T[]): Promise<R>;
|
7
|
-
}
|
8
|
-
|
9
|
-
declare type RefType<T> = T | null;
|
10
|
-
|
11
|
-
declare type LabelValueOptions = {
|
12
|
-
label: string;
|
13
|
-
value: any;
|
14
|
-
[key: string]: string | number | boolean;
|
15
|
-
}[];
|
16
|
-
|
17
|
-
declare type EmitType = (event: string, ...args: any[]) => void;
|
18
|
-
|
19
|
-
declare type TargetContext = '_self' | '_blank';
|
20
|
-
|
21
|
-
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
22
|
-
$el: T;
|
23
|
-
}
|
24
|
-
|
25
|
-
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
|
26
|
-
|
27
|
-
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
|