@kengic/vue 0.24.1-beta.0 → 0.24.1-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- 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,7 +1,7 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
import './KgForm.less';
|
3
3
|
export declare const getProps: () => {
|
4
|
-
layout: import("vue").PropType<"inline" | "
|
4
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
5
5
|
labelCol: {
|
6
6
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
7
7
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -137,7 +137,7 @@ export declare const getProps: () => {
|
|
137
137
|
};
|
138
138
|
export declare type IKgFormProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
139
139
|
declare const _default: import("vue").DefineComponent<{
|
140
|
-
layout: import("vue").PropType<"inline" | "
|
140
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
141
141
|
labelCol: {
|
142
142
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
143
143
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -271,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
271
271
|
type: import("vue").PropType<((name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void) | undefined>;
|
272
272
|
};
|
273
273
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
274
|
-
layout: import("vue").PropType<"inline" | "
|
274
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
275
275
|
labelCol: {
|
276
276
|
type: import("vue").PropType<Partial<ExtractPropTypes<{
|
277
277
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -10,7 +10,7 @@ declare const _default: {
|
|
10
10
|
validateMessages: import("ant-design-vue/es/form/interface").ValidateMessages;
|
11
11
|
validateOnRuleChange: boolean;
|
12
12
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
-
layout: import("vue").PropType<"inline" | "
|
13
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
14
14
|
labelCol: {
|
15
15
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
16
16
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -158,7 +158,7 @@ declare const _default: {
|
|
158
158
|
$emit: (event: string, ...args: any[]) => void;
|
159
159
|
$el: any;
|
160
160
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
161
|
-
layout: import("vue").PropType<"inline" | "
|
161
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
162
162
|
labelCol: {
|
163
163
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
164
164
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -318,7 +318,7 @@ declare const _default: {
|
|
318
318
|
$nextTick: typeof import("vue").nextTick;
|
319
319
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
320
320
|
} & Readonly<import("vue").ExtractPropTypes<{
|
321
|
-
layout: import("vue").PropType<"inline" | "
|
321
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
322
322
|
labelCol: {
|
323
323
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
324
324
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -456,7 +456,7 @@ declare const _default: {
|
|
456
456
|
__isTeleport?: undefined;
|
457
457
|
__isSuspense?: undefined;
|
458
458
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
459
|
-
layout: import("vue").PropType<"inline" | "
|
459
|
+
layout: import("vue").PropType<"inline" | "vertical" | "horizontal">;
|
460
460
|
labelCol: {
|
461
461
|
type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
462
462
|
span: (NumberConstructor | StringConstructor)[];
|
@@ -8,19 +8,19 @@ import { IKgModalProps } from './KgModal';
|
|
8
8
|
*/
|
9
9
|
export declare function useDragToMove(param: {
|
10
10
|
domRef: Ref<HTMLDivElement | null>;
|
11
|
-
|
11
|
+
getProps: Ref<IKgModalProps>;
|
12
12
|
}): void;
|
13
13
|
/**
|
14
14
|
* 拖拽改变大小.
|
15
15
|
*
|
16
|
-
* @param param.
|
16
|
+
* @param param.props 组件参数.
|
17
17
|
* @param param.domRef 页面上的那个特殊元素对象, 专门用于获取其他元素对象.
|
18
|
-
* @param param.
|
18
|
+
* @param param.getProps 计算后的组件参数.
|
19
19
|
*/
|
20
20
|
export declare function useDragToResize(param: {
|
21
|
-
|
21
|
+
props: IKgModalProps;
|
22
22
|
domRef: Ref<HTMLDivElement | null>;
|
23
|
-
|
23
|
+
getProps: Ref<IKgModalProps>;
|
24
24
|
}): {
|
25
25
|
/**
|
26
26
|
* 鼠标按下事件.
|
@@ -3,6 +3,7 @@ import { ComputedRef } from 'vue';
|
|
3
3
|
import { Router } from 'vue-router';
|
4
4
|
import { Description, SysUserWarehouseDTO } from '../apis/WMS/models';
|
5
5
|
import { IKgLocale, KG_APP, Menu } from '../consts';
|
6
|
+
import { UserInfo } from '../project/types/store';
|
6
7
|
export declare type IKgOption = {
|
7
8
|
/** 模块首页地址. */
|
8
9
|
appIndex?: {
|
@@ -161,22 +162,6 @@ export declare type T = {
|
|
161
162
|
export declare type P = {
|
162
163
|
(permissionCode?: string | Array<string> | null): boolean;
|
163
164
|
};
|
164
|
-
export interface RoleInfo {
|
165
|
-
roleName: string;
|
166
|
-
value: string;
|
167
|
-
}
|
168
|
-
export interface UserInfo {
|
169
|
-
id: string | number;
|
170
|
-
userId: string | number;
|
171
|
-
username: string;
|
172
|
-
realname: string;
|
173
|
-
avatar: string;
|
174
|
-
desc?: string;
|
175
|
-
homePath?: string;
|
176
|
-
tenantid?: string | number;
|
177
|
-
roles: RoleInfo[];
|
178
|
-
orgCode?: string;
|
179
|
-
}
|
180
165
|
export interface UserState {
|
181
166
|
userInfo: UserInfo | null;
|
182
167
|
token?: string;
|
@@ -6,7 +6,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
6
6
|
import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
|
7
7
|
import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
|
8
8
|
export declare const formProps: () => {
|
9
|
-
layout: PropType<"inline" | "
|
9
|
+
layout: PropType<"inline" | "vertical" | "horizontal">;
|
10
10
|
labelCol: {
|
11
11
|
type: PropType<Partial<ExtractPropTypes<{
|
12
12
|
span: (NumberConstructor | StringConstructor)[];
|
package/dist/src/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src';
|
package/dist/{project/src/api/sys/model/menuModel.ts → src/project/src/api/sys/model/menuModel.d.ts}
RENAMED
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { RouteMeta } from 'vue-router';
|
2
|
-
|
3
2
|
export interface RouteItem {
|
4
3
|
path: string;
|
5
4
|
component: any;
|
@@ -10,8 +9,7 @@ export interface RouteItem {
|
|
10
9
|
caseSensitive?: boolean;
|
11
10
|
children?: RouteItem[];
|
12
11
|
}
|
13
|
-
|
14
12
|
/**
|
15
13
|
* @description: Get menu return value
|
16
14
|
*/
|
17
|
-
export type getMenuListResultModel = RouteItem[];
|
15
|
+
export declare type getMenuListResultModel = RouteItem[];
|
package/dist/{project/src/api/sys/model/userModel.ts → src/project/src/api/sys/model/userModel.d.ts}
RENAMED
@@ -5,17 +5,14 @@ export interface LoginParams {
|
|
5
5
|
username: string;
|
6
6
|
password: string;
|
7
7
|
}
|
8
|
-
|
9
8
|
export interface ThirdLoginParams {
|
10
9
|
token: string;
|
11
10
|
thirdType: string;
|
12
11
|
}
|
13
|
-
|
14
12
|
export interface RoleInfo {
|
15
13
|
roleName: string;
|
16
14
|
value: string;
|
17
15
|
}
|
18
|
-
|
19
16
|
/**
|
20
17
|
* @description: Login interface return value
|
21
18
|
*/
|
@@ -24,29 +21,20 @@ export interface LoginResultModel {
|
|
24
21
|
token: string;
|
25
22
|
role: RoleInfo;
|
26
23
|
}
|
27
|
-
|
28
24
|
/**
|
29
25
|
* @description: Get user information return value
|
30
26
|
*/
|
31
27
|
export interface GetUserInfoModel {
|
32
28
|
roles: RoleInfo[];
|
33
|
-
// 用户id
|
34
29
|
userId: string | number;
|
35
|
-
// 用户名
|
36
30
|
username: string;
|
37
|
-
// 真实名字
|
38
31
|
realname: string;
|
39
|
-
// 头像
|
40
32
|
avatar: string;
|
41
|
-
// 介绍
|
42
33
|
desc?: string;
|
43
|
-
// 用户信息
|
44
34
|
userInfo?: any;
|
45
|
-
// 缓存字典项
|
46
35
|
sysAllDictItems?: any;
|
47
36
|
userWarehouses?: any;
|
48
37
|
}
|
49
|
-
|
50
38
|
/**
|
51
39
|
* @description: Get user information return value
|
52
40
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './src/typing';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './Dropdown';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* 组件类型
|
3
|
+
*/
|
4
|
+
export declare enum CompTypeEnum {
|
5
|
+
Radio = "radio",
|
6
|
+
RadioButton = "radioButton",
|
7
|
+
Select = "select",
|
8
|
+
List = "list",
|
9
|
+
Switch = "switch",
|
10
|
+
SelTree = "sel_tree",
|
11
|
+
CatTree = "cat_tree",
|
12
|
+
SelSearch = "search",
|
13
|
+
SelUser = "sel_user",
|
14
|
+
Checkbox = "checkbox",
|
15
|
+
ListMulti = "list_multi",
|
16
|
+
Pca = "pca",
|
17
|
+
Popup = "popup",
|
18
|
+
SelDepart = "sel_depart"
|
19
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
export declare const SIDE_BAR_MINI_WIDTH = 48;
|
2
|
+
export declare const SIDE_BAR_SHOW_TIT_MINI_WIDTH = 80;
|
3
|
+
export declare enum TabsThemeEnum {
|
4
|
+
SMOOTH = "smooth",
|
5
|
+
CARD = "card",
|
6
|
+
SIMPLE = "simple"
|
7
|
+
}
|
8
|
+
export declare enum ContentEnum {
|
9
|
+
FULL = "full",
|
10
|
+
FIXED = "fixed"
|
11
|
+
}
|
12
|
+
export declare enum ThemeEnum {
|
13
|
+
DARK = "dark",
|
14
|
+
LIGHT = "light"
|
15
|
+
}
|
16
|
+
export declare enum SettingButtonPositionEnum {
|
17
|
+
AUTO = "auto",
|
18
|
+
HEADER = "header",
|
19
|
+
FIXED = "fixed"
|
20
|
+
}
|
21
|
+
export declare enum SessionTimeoutProcessingEnum {
|
22
|
+
ROUTE_JUMP = 0,
|
23
|
+
PAGE_COVERAGE = 1
|
24
|
+
}
|
25
|
+
/**
|
26
|
+
* 权限模式
|
27
|
+
*/
|
28
|
+
export declare enum PermissionModeEnum {
|
29
|
+
ROLE = "ROLE",
|
30
|
+
BACK = "BACK",
|
31
|
+
ROUTE_MAPPING = "ROUTE_MAPPING"
|
32
|
+
}
|
33
|
+
export declare enum RouterTransitionEnum {
|
34
|
+
ZOOM_FADE = "zoom-fade",
|
35
|
+
ZOOM_OUT = "zoom-out",
|
36
|
+
FADE_SIDE = "fade-slide",
|
37
|
+
FADE = "fade",
|
38
|
+
FADE_BOTTOM = "fade-bottom",
|
39
|
+
FADE_SCALE = "fade-scale"
|
40
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare enum sizeEnum {
|
2
|
+
XS = "XS",
|
3
|
+
SM = "SM",
|
4
|
+
MD = "MD",
|
5
|
+
LG = "LG",
|
6
|
+
XL = "XL",
|
7
|
+
XXL = "XXL"
|
8
|
+
}
|
9
|
+
export declare enum screenEnum {
|
10
|
+
XS = 480,
|
11
|
+
SM = 576,
|
12
|
+
MD = 768,
|
13
|
+
LG = 992,
|
14
|
+
XL = 1200,
|
15
|
+
XXL = 1600
|
16
|
+
}
|
17
|
+
declare const screenMap: Map<sizeEnum, number>;
|
18
|
+
export { screenMap };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const TOKEN_KEY = "TOKEN__";
|
2
|
+
export declare const LOCALE_KEY = "LOCALE__";
|
3
|
+
export declare const USER_INFO_KEY = "USER__INFO__";
|
4
|
+
export declare const ROLES_KEY = "ROLES__KEY__";
|
5
|
+
export declare const USER_WAREHOUSE_KEY = "USER_WAREHOUSE__KEY__";
|
6
|
+
export declare const DB_DICT_DATA_KEY = "UI_CACHE_DB_DICT_DATA";
|
7
|
+
export declare const PROJ_CFG_KEY = "PROJ__CFG__KEY__";
|
8
|
+
export declare const LOCK_INFO_KEY = "LOCK__INFO__KEY__";
|
9
|
+
export declare const MULTIPLE_TABS_KEY = "MULTIPLE_TABS__KEY__";
|
10
|
+
export declare const APP_DARK_MODE_KEY_ = "__APP__DARK__MODE__";
|
11
|
+
export declare const APP_LOCAL_CACHE_KEY = "COMMON__LOCAL__KEY__";
|
12
|
+
export declare const APP_SESSION_CACHE_KEY = "COMMON__SESSION__KEY__";
|
13
|
+
export declare const TENANT_ID = "TENANT_ID";
|
14
|
+
export declare const LOGIN_INFO_KEY = "LOGIN__INFO__";
|
15
|
+
export declare enum CacheTypeEnum {
|
16
|
+
SESSION = 0,
|
17
|
+
LOCAL = 1
|
18
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/**
|
2
|
+
* @description: Exception related enumeration
|
3
|
+
*/
|
4
|
+
export declare enum ExceptionEnum {
|
5
|
+
PAGE_NOT_ACCESS = 403,
|
6
|
+
PAGE_NOT_FOUND = 404,
|
7
|
+
ERROR = 500,
|
8
|
+
NET_WORK_ERROR = 10000,
|
9
|
+
PAGE_NOT_DATA = 10100
|
10
|
+
}
|
11
|
+
export declare enum ErrorTypeEnum {
|
12
|
+
VUE = "vue",
|
13
|
+
SCRIPT = "script",
|
14
|
+
RESOURCE = "resource",
|
15
|
+
AJAX = "ajax",
|
16
|
+
PROMISE = "promise"
|
17
|
+
}
|
@@ -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.24.1-beta.
|
3
|
+
"version": "0.24.1-beta.2",
|
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
|
-
}
|