@kengic/vue 0.24.1-beta.1 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +4 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +4575 -4511
- package/dist/src/apis/WMS/models.d.ts +2 -2
- package/dist/src/components/KgForm/KgForm.d.ts +3 -3
- package/dist/src/components/KgForm/index.d.ts +4 -4
- package/dist/src/components/KgForm/index.hooks.d.ts +10 -0
- package/dist/src/components/KgForm/index.store.d.ts +13 -3
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +1 -4
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +1 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +8 -9
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -4
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -4
- package/dist/src/components/KgForm.Item/index.vm.d.ts +8 -4
- package/dist/src/components/KgSearch/index.store.d.ts +1 -1
- package/dist/src/components/KgVar/KgVar.d.ts +14 -4
- package/dist/src/components/KgVar/index.hooks.d.ts +4 -0
- package/dist/src/components/KgVar/index.store.d.ts +2 -0
- package/dist/src/components/KgVar/index.vm.d.ts +6 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +0 -17
- package/dist/src/config/index.store.d.ts +6 -16
- package/dist/src/consts/i18n/en.d.ts +1 -8
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -7
- package/dist/src/helpers/ant-design-vue.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +62 -0
- package/dist/src/pages/KgVarFactory/index.d.ts +1 -0
- package/dist/src/pages/index.d.ts +1 -1
- 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/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -2
- package/dist/src/pages/KgVarContainer/KgVarContainer.d.ts +0 -6
- package/dist/src/pages/KgVarContainer/index.d.ts +0 -1
- /package/dist/{project/src/api/sys/model/uploadModel.ts → src/project/src/api/sys/model/uploadModel.d.ts} +0 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* @description: Request result set
|
3
|
+
*/
|
4
|
+
export declare enum ResultEnum {
|
5
|
+
SUCCESS = 0,
|
6
|
+
ERROR = 1,
|
7
|
+
TIMEOUT = 401,
|
8
|
+
TYPE = "success"
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* @description: request method
|
12
|
+
*/
|
13
|
+
export declare enum RequestEnum {
|
14
|
+
GET = "GET",
|
15
|
+
POST = "POST",
|
16
|
+
PUT = "PUT",
|
17
|
+
DELETE = "DELETE"
|
18
|
+
}
|
19
|
+
/**
|
20
|
+
* @description: contentTyp
|
21
|
+
*/
|
22
|
+
export declare enum ContentTypeEnum {
|
23
|
+
JSON = "application/json;charset=UTF-8",
|
24
|
+
FORM_URLENCODED = "application/x-www-form-urlencoded;charset=UTF-8",
|
25
|
+
FORM_DATA = "multipart/form-data;charset=UTF-8"
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* 请求header
|
29
|
+
* @description: contentTyp
|
30
|
+
*/
|
31
|
+
export declare enum ConfigEnum {
|
32
|
+
TOKEN = "X-Access-Token",
|
33
|
+
TIMESTAMP = "X-TIMESTAMP",
|
34
|
+
Sign = "X-Sign",
|
35
|
+
TENANT_ID = "tenant-id",
|
36
|
+
VERSION = "X-Version",
|
37
|
+
X_LOW_APP_ID = "X-Low-App-ID"
|
38
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from './appEnum';
|
2
|
+
export * from './breakpointEnum';
|
3
|
+
export * from './cacheEnum';
|
4
|
+
export * from './CompTypeEnum';
|
5
|
+
export * from './DateTypeEnum';
|
6
|
+
export * from './exceptionEnum';
|
7
|
+
export * from './httpEnum';
|
8
|
+
export * from './index';
|
9
|
+
export * from './jeecgEnum';
|
10
|
+
export * from './menuEnum';
|
11
|
+
export * from './pageEnum';
|
12
|
+
export * from './roleEnum';
|
13
|
+
export * from './sizeEnum';
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* JInput组件类型
|
3
|
+
*/
|
4
|
+
export declare enum JInputTypeEnum {
|
5
|
+
JINPUT_QUERY_LIKE = "like",
|
6
|
+
JINPUT_QUERY_NE = "ne",
|
7
|
+
JINPUT_QUERY_GE = "ge",
|
8
|
+
JINPUT_QUERY_LE = "le"
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* 面板设计器需要的常量定义
|
12
|
+
*/
|
13
|
+
export declare enum JDragConfigEnum {
|
14
|
+
DRAG_BASE_URL = "drag-base-url",
|
15
|
+
DRAG_CACHE_PREFIX = "drag-cache:"
|
16
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* @description: menu type
|
3
|
+
*/
|
4
|
+
export declare enum MenuTypeEnum {
|
5
|
+
SIDEBAR = "sidebar",
|
6
|
+
MIX_SIDEBAR = "mix-sidebar",
|
7
|
+
MIX = "mix",
|
8
|
+
TOP_MENU = "top-menu"
|
9
|
+
}
|
10
|
+
export declare enum TriggerEnum {
|
11
|
+
NONE = "NONE",
|
12
|
+
FOOTER = "FOOTER",
|
13
|
+
HEADER = "HEADER"
|
14
|
+
}
|
15
|
+
export declare type Mode = 'vertical' | 'vertical-right' | 'horizontal' | 'inline';
|
16
|
+
export declare enum MenuModeEnum {
|
17
|
+
VERTICAL = "vertical",
|
18
|
+
HORIZONTAL = "horizontal",
|
19
|
+
VERTICAL_RIGHT = "vertical-right",
|
20
|
+
INLINE = "inline"
|
21
|
+
}
|
22
|
+
export declare enum MenuSplitTyeEnum {
|
23
|
+
NONE = 0,
|
24
|
+
TOP = 1,
|
25
|
+
LEFT = 2
|
26
|
+
}
|
27
|
+
export declare enum TopMenuAlignEnum {
|
28
|
+
CENTER = "center",
|
29
|
+
START = "start",
|
30
|
+
END = "end"
|
31
|
+
}
|
32
|
+
export declare enum MixSidebarTriggerEnum {
|
33
|
+
HOVER = "hover",
|
34
|
+
CLICK = "click"
|
35
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare enum PageEnum {
|
2
|
+
BASE_LOGIN = "/login",
|
3
|
+
BASE_HOME = "/home",
|
4
|
+
ERROR_PAGE = "/exception",
|
5
|
+
ERROR_LOG_PAGE = "/error-log/list",
|
6
|
+
OAUTH2_LOGIN_PAGE_PATH = "/oauth2-app/login",
|
7
|
+
LABEL = "/wms/business-manager/print-manager/label",
|
8
|
+
/** 打印模板:物料标签. */
|
9
|
+
PRINT_TEMPLATE_ITEM = "/wms/print-template/item",
|
10
|
+
/** 打印模板:备料标签. */
|
11
|
+
PRINT_TEMPLATE_SPARE = "/wms/print-template/spare",
|
12
|
+
/** 打印模板:出库订单. */
|
13
|
+
PRINT_TEMPLATE_ORDER = "/wms/print-template/order"
|
14
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare enum SizeEnum {
|
2
|
+
DEFAULT = "default",
|
3
|
+
SMALL = "small",
|
4
|
+
LARGE = "large"
|
5
|
+
}
|
6
|
+
export declare enum SizeNumberEnum {
|
7
|
+
DEFAULT = 48,
|
8
|
+
SMALL = 16,
|
9
|
+
LARGE = 64
|
10
|
+
}
|
11
|
+
export declare enum ScreenSizeEnum {
|
12
|
+
XS = 480,
|
13
|
+
SM = 576,
|
14
|
+
MD = 768,
|
15
|
+
LG = 992,
|
16
|
+
XL = 1200
|
17
|
+
}
|
18
|
+
export declare const sizeMap: Map<SizeEnum, SizeNumberEnum>;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export declare const componentSetting: {
|
2
|
+
table: {
|
3
|
+
fetchSetting: {
|
4
|
+
pageField: string;
|
5
|
+
sizeField: string;
|
6
|
+
listField: string;
|
7
|
+
totalField: string;
|
8
|
+
};
|
9
|
+
pageSizeOptions: string[];
|
10
|
+
defaultSize: string;
|
11
|
+
defaultPageSize: number;
|
12
|
+
defaultSortFn: (sortInfo: any) => string | {
|
13
|
+
column: any;
|
14
|
+
order: string;
|
15
|
+
} | {
|
16
|
+
sortInfoString: string;
|
17
|
+
} | {
|
18
|
+
sortInfoString?: undefined;
|
19
|
+
};
|
20
|
+
defaultFilterFn: (data: Partial<Recordable<string[]>>) => Partial<Recordable<string[]>>;
|
21
|
+
};
|
22
|
+
scrollbar: {
|
23
|
+
native: boolean;
|
24
|
+
};
|
25
|
+
form: {
|
26
|
+
labelCol: {
|
27
|
+
xs: {
|
28
|
+
span: number;
|
29
|
+
};
|
30
|
+
sm: {
|
31
|
+
span: number;
|
32
|
+
};
|
33
|
+
};
|
34
|
+
wrapperCol: {
|
35
|
+
xs: {
|
36
|
+
span: number;
|
37
|
+
};
|
38
|
+
sm: {
|
39
|
+
span: number;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
colon: boolean;
|
43
|
+
};
|
44
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { ThemeEnum } from '../enums';
|
2
|
+
export declare const prefixCls = "jeecg";
|
3
|
+
export declare const darkMode = ThemeEnum.LIGHT;
|
4
|
+
export declare const APP_PRESET_COLOR_LIST: string[];
|
5
|
+
export declare const HEADER_PRESET_BG_COLOR_LIST: string[];
|
6
|
+
export declare const SIDE_BAR_BG_COLOR_LIST: string[];
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { LocaleSetting, LocaleType } from '../../types/config';
|
2
|
+
import { DropMenu } from '../components/Dropdown/src/typing';
|
3
|
+
export declare const LOCALE: {
|
4
|
+
[key: string]: LocaleType;
|
5
|
+
};
|
6
|
+
export declare const localeList: DropMenu[];
|
7
|
+
export declare const localeSetting: LocaleSetting;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.25.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|
@@ -1,32 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 组件类型
|
3
|
-
*/
|
4
|
-
export enum CompTypeEnum {
|
5
|
-
//单选
|
6
|
-
Radio = 'radio',
|
7
|
-
//按钮样式单选
|
8
|
-
RadioButton = 'radioButton',
|
9
|
-
//下拉框
|
10
|
-
Select = 'select',
|
11
|
-
//列表
|
12
|
-
List = 'list',
|
13
|
-
//开关
|
14
|
-
Switch = 'switch',
|
15
|
-
//下拉树
|
16
|
-
SelTree = 'sel_tree',
|
17
|
-
//分类字典树
|
18
|
-
CatTree = 'cat_tree',
|
19
|
-
//下拉搜索
|
20
|
-
SelSearch = 'search',
|
21
|
-
//用户现在框
|
22
|
-
SelUser = 'sel_user',
|
23
|
-
//复选框
|
24
|
-
Checkbox = 'checkbox',
|
25
|
-
//多选列表
|
26
|
-
ListMulti = 'list_multi',
|
27
|
-
//区域选择
|
28
|
-
Pca = 'pca',
|
29
|
-
Popup = 'popup',
|
30
|
-
//部门选择
|
31
|
-
SelDepart = 'sel_depart',
|
32
|
-
}
|
@@ -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
|
-
}
|