@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
@@ -1,17 +1,19 @@
|
|
1
|
-
import { ComputedRef
|
1
|
+
import { ComputedRef } from 'vue';
|
2
2
|
import { VarConfigPossibility } from '../../../apis/WMS/models';
|
3
3
|
import { KgFormItemProps } from '../index.vm';
|
4
|
-
export declare
|
4
|
+
export declare function useKgFormItemSelect(param: {
|
5
|
+
props: KgFormItemProps;
|
6
|
+
}): {
|
5
7
|
/** 列表数据. */
|
6
|
-
datas: Ref<
|
8
|
+
datas: import("vue").Ref<Record<string, any>[]>;
|
7
9
|
/** 是否正在查询列表数据. */
|
8
|
-
isDatasRequesting: Ref<boolean>;
|
10
|
+
isDatasRequesting: import("vue").Ref<boolean>;
|
9
11
|
/** 作为显示的列. */
|
10
12
|
lbl_clm: ComputedRef<string>;
|
11
13
|
/**
|
12
14
|
* 查询列表数据.
|
13
15
|
*/
|
14
|
-
requestDatas()
|
16
|
+
requestDatas: () => Promise<void>;
|
15
17
|
/** 查询参数. */
|
16
18
|
requestParams: ComputedRef<Record<string, any>>;
|
17
19
|
/**
|
@@ -19,12 +21,9 @@ export declare type IUseKgFormItemSelect = {
|
|
19
21
|
* @param datas 原始列表数据.
|
20
22
|
* @return {} 处理后的列表数据.
|
21
23
|
*/
|
22
|
-
transformDatas(datas?: Array<Record<string, any>> | null)
|
24
|
+
transformDatas: (datas?: Array<Record<string, any>> | null) => Array<Record<string, any>>;
|
23
25
|
/** 作为数据的列. */
|
24
26
|
val_clm: ComputedRef<string>;
|
25
27
|
/** VarConfigPossibility 配置. */
|
26
28
|
varConfigPossibility: ComputedRef<VarConfigPossibility | null>;
|
27
29
|
};
|
28
|
-
export declare function useKgFormItemSelect(param: {
|
29
|
-
props: KgFormItemProps;
|
30
|
-
}): IUseKgFormItemSelect;
|
@@ -38,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
};
|
39
39
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
40
40
|
onKgSubmit: import("vue").PropType<() => void>;
|
41
|
-
onKgChange: import("vue").PropType<(value: any) => void>;
|
42
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit"
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit")[], "update:value" | "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
44
|
kgVarName: {
|
46
45
|
type: import("vue").PropType<string>;
|
47
46
|
required: boolean;
|
@@ -80,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
79
|
};
|
81
80
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
82
81
|
onKgSubmit: import("vue").PropType<() => void>;
|
83
|
-
onKgChange: import("vue").PropType<(value: any) => void>;
|
84
82
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
85
83
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
86
84
|
}>> & {
|
87
85
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
88
86
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
89
|
-
onKgChange?: ((...args: any[]) => any) | undefined;
|
90
87
|
}, {
|
91
88
|
value: import("../index.vm").IKgFormItemValue;
|
92
89
|
kgDisabled: boolean;
|
@@ -38,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
};
|
39
39
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
40
40
|
onKgSubmit: import("vue").PropType<() => void>;
|
41
|
-
onKgChange: import("vue").PropType<(value: any) => void>;
|
42
41
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
42
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit"
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit")[], "update:value" | "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
44
|
kgVarName: {
|
46
45
|
type: import("vue").PropType<string>;
|
47
46
|
required: boolean;
|
@@ -80,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
80
79
|
};
|
81
80
|
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
82
81
|
onKgSubmit: import("vue").PropType<() => void>;
|
83
|
-
onKgChange: import("vue").PropType<(value: any) => void>;
|
84
82
|
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
85
83
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
86
84
|
}>> & {
|
87
85
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
88
86
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
89
|
-
onKgChange?: ((...args: any[]) => any) | undefined;
|
90
87
|
}, {
|
91
88
|
value: import("../index.vm").IKgFormItemValue;
|
92
89
|
kgDisabled: boolean;
|
@@ -78,11 +78,15 @@ export declare const getProps: () => {
|
|
78
78
|
};
|
79
79
|
'onUpdate:value': PropType<(value: IKgFormItemValue | null) => void>;
|
80
80
|
onKgSubmit: PropType<() => void>;
|
81
|
-
/**
|
82
|
-
|
83
|
-
|
81
|
+
/**
|
82
|
+
* 下拉列表选中某个(可能多个)数据.
|
83
|
+
* @deprecated
|
84
|
+
*/
|
84
85
|
onKgSelectChange: PropType<(value: any | null) => void>;
|
85
|
-
/**
|
86
|
+
/**
|
87
|
+
* 下拉列表数据发生变更.
|
88
|
+
* @deprecated
|
89
|
+
*/
|
86
90
|
onKgSelectDatasChange: PropType<(datas: Array<any>) => void>;
|
87
91
|
};
|
88
92
|
export declare type KgFormItemProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
@@ -51,7 +51,7 @@ export interface IUseKgSearchStoreGetters {
|
|
51
51
|
/**
|
52
52
|
* @param formID 界面标识.
|
53
53
|
*/
|
54
|
-
getDynamicQueryOperatorModel(): (formID: string | null | undefined) => Record<string, string
|
54
|
+
getDynamicQueryOperatorModel(): (formID: string | null | undefined) => Record<string, string>;
|
55
55
|
/**
|
56
56
|
* @param formID 界面标识.
|
57
57
|
*/
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
2
|
import { IKgProps, IKgSlots } from './index.vm';
|
3
3
|
import './KgVar.less';
|
4
|
-
export declare
|
4
|
+
export declare function getProps(): {
|
5
5
|
/**
|
6
6
|
* 是否使用灰色背景.
|
7
7
|
*
|
8
8
|
* @default false
|
9
9
|
*/
|
10
|
-
|
10
|
+
kgBackgroundGray: {
|
11
|
+
type: PropType<boolean>;
|
12
|
+
default: undefined;
|
13
|
+
};
|
11
14
|
/**
|
12
15
|
* 界面标识.
|
13
16
|
*
|
@@ -42,7 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
42
45
|
*
|
43
46
|
* @default false
|
44
47
|
*/
|
45
|
-
|
48
|
+
kgBackgroundGray: {
|
49
|
+
type: PropType<boolean>;
|
50
|
+
default: undefined;
|
51
|
+
};
|
46
52
|
/**
|
47
53
|
* 界面标识.
|
48
54
|
*
|
@@ -73,7 +79,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
73
79
|
*
|
74
80
|
* @default false
|
75
81
|
*/
|
76
|
-
|
82
|
+
kgBackgroundGray: {
|
83
|
+
type: PropType<boolean>;
|
84
|
+
default: undefined;
|
85
|
+
};
|
77
86
|
/**
|
78
87
|
* 界面标识.
|
79
88
|
*
|
@@ -99,6 +108,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
108
|
*/
|
100
109
|
kgSlots: PropType<IKgSlots>;
|
101
110
|
}>>, {
|
111
|
+
kgBackgroundGray: boolean;
|
102
112
|
kgLevel: number;
|
103
113
|
}>;
|
104
114
|
export default _default;
|
@@ -98,6 +98,10 @@ export declare type IUseKgVar = {
|
|
98
98
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
99
99
|
*/
|
100
100
|
onRetrieve(listener: IKgVarRetrieveEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
101
|
+
/**
|
102
|
+
* 父亲界面.
|
103
|
+
*/
|
104
|
+
parent: ComputedRef<ReturnType<IKgVarStore['getParent']>>;
|
101
105
|
/**
|
102
106
|
* 查询所有变量配置.
|
103
107
|
*
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
2
|
import { VarButton, VarButtonConfig, VarChildDetail, VarConfigControl, VarConfigDescription, VarConfigInput, VarConfigLookup, VarConfigPossibility, VarConfigTip, VarDda, VarGridConfig, VarGridDetail, VarGridMasterDTO, VarProfileConfig, VarProfileDetail, VarProfileMasterDTO, VarSubmitConfig, VarSubmitDetail, VarVariable } from '../../apis/WMS/models';
|
3
3
|
import { IKgEventListener, KG__VAR_BUTTON__TYPE } from '../../consts';
|
4
|
+
import { IUseKgVar } from './index.hooks';
|
4
5
|
/**
|
5
6
|
* 事件类型.
|
6
7
|
* 'retrieve': 变量配置查询完成
|
@@ -88,6 +89,7 @@ export interface IUseKgVarStoreGetters {
|
|
88
89
|
* 获取界面层级.
|
89
90
|
*/
|
90
91
|
getLevel(): (formID: string | null | undefined) => number;
|
92
|
+
getParent(): (formID: string | null | undefined) => IUseKgVar | null;
|
91
93
|
/**
|
92
94
|
* 获取系统的 VarGridDetail 列表, 即 customLevel 为 0 的 VarGridMaster 下面的所有 VarGridDetail.
|
93
95
|
*/
|
@@ -36,6 +36,12 @@ export declare type IKgSlots = {
|
|
36
36
|
};
|
37
37
|
/** KgTable 下面. */
|
38
38
|
afterKgTable?: () => any;
|
39
|
+
/**
|
40
|
+
* 孩子页面.
|
41
|
+
*/
|
42
|
+
children?: {
|
43
|
+
[childFormID: string]: () => any;
|
44
|
+
};
|
39
45
|
};
|
40
46
|
/** 注入 kgSlots 参数. */
|
41
47
|
export declare const KG__DI__KG_VAR__KG_SLOTS: InjectionKey<IKgSlots | undefined>;
|
@@ -1,23 +1,7 @@
|
|
1
1
|
import { StoreDefinition } from 'pinia';
|
2
|
-
import { VarConfigDescription, VarVariable } from '../../apis/WMS/models';
|
3
2
|
export interface IUseKgVarConfigStoreState {
|
4
|
-
/**
|
5
|
-
* 变量.
|
6
|
-
*/
|
7
|
-
variable: {
|
8
|
-
/**
|
9
|
-
* 当前选中的变量翻译.
|
10
|
-
*/
|
11
|
-
currentVarConfigDescription: VarConfigDescription | null;
|
12
|
-
/**
|
13
|
-
* 当前选中的变量.
|
14
|
-
*/
|
15
|
-
currentVarVariable: VarVariable | null;
|
16
|
-
};
|
17
3
|
}
|
18
4
|
export interface IUseKgVarConfigStoreGetters {
|
19
|
-
getCurrentVarConfigDescription: VarConfigDescription | null;
|
20
|
-
getCurrentVarVariable: VarVariable | null;
|
21
5
|
}
|
22
6
|
export interface IUseKgVarConfigStoreActions {
|
23
7
|
/**
|
@@ -26,7 +10,6 @@ export interface IUseKgVarConfigStoreActions {
|
|
26
10
|
* @param hostFormID 宿主界面标识
|
27
11
|
*/
|
28
12
|
open(hostFormID: string): void;
|
29
|
-
setCurrentVarConfigDescription(variable: VarConfigDescription | null): void;
|
30
13
|
}
|
31
14
|
export declare type IUseKgVarConfigStore = StoreDefinition<'KgVarConfig', IUseKgVarConfigStoreState, IUseKgVarConfigStoreGetters, IUseKgVarConfigStoreActions>;
|
32
15
|
export declare type IKgVarConfigStore = ReturnType<IUseKgVarConfigStore>;
|
@@ -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;
|
@@ -210,6 +195,11 @@ export interface IUseKgStoreState {
|
|
210
195
|
* <p>第一层 key 为 codeName, 第二层 key 为 codeValue.</p>
|
211
196
|
*/
|
212
197
|
descriptionMap: Map<string, Map<string, Description>>;
|
198
|
+
/**
|
199
|
+
* <p>某个系统描述是否正在查询.</p>
|
200
|
+
* <p>其中的 key 表示 codeName.</p>
|
201
|
+
*/
|
202
|
+
isDescriptionsRequestingMap: Map<string, boolean>;
|
213
203
|
/** 语言. */
|
214
204
|
locale: ComputedRef<IKgLocale> | null;
|
215
205
|
/** 配置参数. */
|
@@ -23,6 +23,7 @@ declare const _default: {
|
|
23
23
|
formValidationMessageForLTE: string;
|
24
24
|
formValidationMessageForMaxLength: string;
|
25
25
|
formValidationMessageForMinLength: string;
|
26
|
+
formValidationMessageForRegularExpression: string;
|
26
27
|
};
|
27
28
|
KgPageDdaCreate: {
|
28
29
|
'confirm-cancel': string;
|
@@ -169,15 +170,7 @@ declare const _default: {
|
|
169
170
|
tabSearch: string;
|
170
171
|
tabSubmit: string;
|
171
172
|
tabTable: string;
|
172
|
-
varConfigControl: string;
|
173
|
-
varConfigDescription: string;
|
174
|
-
varConfigInput: string;
|
175
|
-
varConfigLookup: string;
|
176
|
-
varConfigPossibility: string;
|
177
|
-
varConfigTip: string;
|
178
|
-
varVariable: string;
|
179
173
|
variable: string;
|
180
|
-
variableName: string;
|
181
174
|
};
|
182
175
|
KgVarConfigModalButton: {
|
183
176
|
VarButton: string;
|
@@ -23,6 +23,7 @@ declare const _default: {
|
|
23
23
|
formValidationMessageForLTE: string;
|
24
24
|
formValidationMessageForMaxLength: string;
|
25
25
|
formValidationMessageForMinLength: string;
|
26
|
+
formValidationMessageForRegularExpression: string;
|
26
27
|
};
|
27
28
|
KgPageDdaCreate: {
|
28
29
|
'confirm-cancel': string;
|
@@ -168,15 +169,8 @@ declare const _default: {
|
|
168
169
|
tabSearch: string;
|
169
170
|
tabSubmit: string;
|
170
171
|
tabTable: string;
|
171
|
-
varConfigControl: string;
|
172
|
-
varConfigDescription: string;
|
173
|
-
varConfigInput: string;
|
174
|
-
varConfigLookup: string;
|
175
|
-
varConfigPossibility: string;
|
176
|
-
varConfigTip: string;
|
177
172
|
varVariable: string;
|
178
173
|
variable: string;
|
179
|
-
variableName: string;
|
180
174
|
};
|
181
175
|
KgVarConfigModalButton: {
|
182
176
|
VarButton: 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,62 @@
|
|
1
|
+
import './KgVarFactory.less';
|
2
|
+
export declare function KgVarFactory(param?: {
|
3
|
+
formID?: string | null | undefined;
|
4
|
+
}): import("vue").DefineComponent<{
|
5
|
+
kgBackgroundGray: {
|
6
|
+
type: import("vue").PropType<boolean>;
|
7
|
+
default: undefined;
|
8
|
+
};
|
9
|
+
kgFormID: import("vue").PropType<string>;
|
10
|
+
kgLevel: {
|
11
|
+
type: import("vue").PropType<number>;
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
kgProps: import("vue").PropType<import("../../components").IKgProps>;
|
15
|
+
kgSlots: import("vue").PropType<import("../../components").IKgSlots>;
|
16
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
17
|
+
kgBackgroundGray: {
|
18
|
+
type: import("vue").PropType<boolean>;
|
19
|
+
default: undefined;
|
20
|
+
};
|
21
|
+
kgFormID: import("vue").PropType<string>;
|
22
|
+
kgLevel: {
|
23
|
+
type: import("vue").PropType<number>;
|
24
|
+
default: number;
|
25
|
+
};
|
26
|
+
kgProps: import("vue").PropType<import("../../components").IKgProps>;
|
27
|
+
kgSlots: import("vue").PropType<import("../../components").IKgSlots>;
|
28
|
+
}>>, {
|
29
|
+
kgBackgroundGray: boolean;
|
30
|
+
kgLevel: number;
|
31
|
+
}>;
|
32
|
+
/**
|
33
|
+
* 默认的 KgVar 组件.
|
34
|
+
*/
|
35
|
+
export declare const DEFAULT: import("vue").DefineComponent<{
|
36
|
+
kgBackgroundGray: {
|
37
|
+
type: import("vue").PropType<boolean>;
|
38
|
+
default: undefined;
|
39
|
+
};
|
40
|
+
kgFormID: import("vue").PropType<string>;
|
41
|
+
kgLevel: {
|
42
|
+
type: import("vue").PropType<number>;
|
43
|
+
default: number;
|
44
|
+
};
|
45
|
+
kgProps: import("vue").PropType<import("../../components").IKgProps>;
|
46
|
+
kgSlots: import("vue").PropType<import("../../components").IKgSlots>;
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
|
+
kgBackgroundGray: {
|
49
|
+
type: import("vue").PropType<boolean>;
|
50
|
+
default: undefined;
|
51
|
+
};
|
52
|
+
kgFormID: import("vue").PropType<string>;
|
53
|
+
kgLevel: {
|
54
|
+
type: import("vue").PropType<number>;
|
55
|
+
default: number;
|
56
|
+
};
|
57
|
+
kgProps: import("vue").PropType<import("../../components").IKgProps>;
|
58
|
+
kgSlots: import("vue").PropType<import("../../components").IKgSlots>;
|
59
|
+
}>>, {
|
60
|
+
kgBackgroundGray: boolean;
|
61
|
+
kgLevel: number;
|
62
|
+
}>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { KgVarFactory, DEFAULT as KgVar2 } from './KgVarFactory';
|
@@ -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
|
+
}
|