@kengic/vue 0.27.1-beta.1 → 0.27.1-beta.10
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/index.css +1 -1
- package/dist/kengic-vue.js +13015 -12877
- package/dist/project/build/generate/icon/index.ts +2 -5
- package/dist/project/build/script/buildConf.ts +1 -1
- package/dist/project/build/script/postBuild.ts +1 -1
- package/dist/src/component/KgAppSelect/{index.hooks.d.ts → KgAppSelect.hooks.d.ts} +4 -3
- package/dist/src/component/KgAppSelect/{index.store.d.ts → KgAppSelect.store.d.ts} +3 -2
- package/dist/src/component/KgAppSelect/index.d.ts +2 -2
- package/dist/src/component/KgButton/{index.hooks.d.ts → KgButton.hooks.d.ts} +2 -2
- package/dist/src/component/KgButton/{index.store.d.ts → KgButton.store.d.ts} +1 -1
- package/dist/src/component/KgButton/index.d.ts +2 -2
- package/dist/src/component/KgCanvas/{index.hooks.d.ts → KgCanvas.hooks.d.ts} +2 -2
- package/dist/src/component/KgCanvas/index.d.ts +1 -1
- package/dist/src/component/KgForm/{index.hooks.d.ts → KgForm.hooks.d.ts} +2 -2
- package/dist/src/component/KgForm/{index.store.d.ts → KgForm.store.d.ts} +1 -1
- package/dist/src/component/KgForm/index.d.ts +2 -2
- package/dist/src/component/KgForm.Item/KgForm.Item.d.ts +5 -5
- package/dist/src/component/KgForm.Item/KgForm.Item.service.d.ts +1 -1
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +7 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +7 -9
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Date.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.DateRange.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Image.d.ts +11 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Input.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -9
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.d.ts +5 -7
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Select.service.d.ts +2 -2
- package/dist/src/component/KgForm.Item/components/KgForm.Item.Switch.d.ts +5 -5
- package/dist/src/component/KgForm.Item/components/KgForm.Item.TextArea.d.ts +5 -5
- package/dist/src/component/KgForm.Item/index.d.ts +1 -1
- package/dist/src/component/KgLayoutHeader/index.d.ts +1 -1
- package/dist/src/component/KgSearch/{index.hooks.d.ts → KgSearch.hooks.d.ts} +2 -2
- package/dist/src/component/KgSearch/{index.store.d.ts → KgSearch.store.d.ts} +1 -1
- package/dist/src/component/KgSearch/index.d.ts +2 -2
- package/dist/src/component/KgSubmit/{index.event.d.ts → KgSubmit.event.d.ts} +10 -10
- package/dist/src/component/KgSubmit/{index.hooks.d.ts → KgSubmit.hooks.d.ts} +9 -9
- package/dist/src/component/KgSubmit/{index.store.d.ts → KgSubmit.store.d.ts} +16 -16
- package/dist/src/component/KgSubmit/index.d.ts +3 -3
- package/dist/src/component/KgTable/{index.event.d.ts → KgTable.event.d.ts} +1 -1
- package/dist/src/component/KgTable/{index.hooks.d.ts → KgTable.hooks.d.ts} +12 -11
- package/dist/src/component/KgTable/KgTable.service.d.ts +1 -1
- package/dist/src/component/KgTable/{index.store.d.ts → KgTable.store.d.ts} +2 -13
- package/dist/src/component/KgTable/components/KgTable.BodyCell.d.ts +1 -1
- package/dist/src/component/KgTable/index.d.ts +3 -3
- package/dist/src/component/KgVar/KgVar.d.ts +2 -2
- package/dist/src/component/KgVar/{index.hooks.d.ts → KgVar.hooks.d.ts} +14 -6
- package/dist/src/component/KgVar/{index.store.d.ts → KgVar.store.d.ts} +12 -2
- package/dist/src/component/KgVar/{index.vm.d.ts → KgVar.vm.d.ts} +3 -1
- package/dist/src/component/KgVar/KgVarFactory.d.ts +8 -8
- package/dist/src/component/KgVar/index.d.ts +3 -3
- package/dist/src/component/KgVarConfig/{index.hooks.d.ts → KgVarConfig.hooks.d.ts} +1 -1
- package/dist/src/component/KgVarConfig/index.d.ts +2 -2
- package/dist/src/component/KgWarehouse/{index.hooks.d.ts → KgWarehouse.hooks.d.ts} +1 -1
- package/dist/src/component/KgWarehouse/index.d.ts +3 -3
- package/dist/src/config/index.store.d.ts +2 -1
- package/dist/src/const/index.vm.d.ts +76 -12
- package/dist/src/page/KgPageDda/components/KgPageDda.Create.store.d.ts +1 -1
- package/dist/src/project/src/api/index.d.ts +3 -0
- package/dist/src/project/src/api/sys/model/menuModel.d.ts +15 -0
- package/dist/src/project/src/api/sys/model/uploadModel.d.ts +5 -0
- package/dist/src/project/src/api/sys/model/userModel.d.ts +46 -0
- 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/hooks/index.d.ts +1 -0
- package/dist/src/project/src/hooks/web/useI18n.d.ts +13 -0
- package/dist/src/project/src/index.d.ts +14 -0
- package/dist/src/project/src/locales/helper.d.ts +5 -0
- package/dist/src/project/src/locales/index.d.ts +3 -0
- package/dist/src/project/src/locales/setupI18n.d.ts +4 -0
- package/dist/src/project/src/locales/useLocale.d.ts +10 -0
- package/dist/src/project/src/router/types.d.ts +42 -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 +3 -0
- package/dist/src/project/src/store/index.d.ts +1 -0
- package/dist/src/project/src/store/modules/index.d.ts +1 -0
- package/dist/src/project/src/store/modules/locale.d.ts +38 -0
- package/dist/src/project/src/utils/cache/index.d.ts +7 -0
- package/dist/src/project/src/utils/cache/memory.d.ts +22 -0
- package/dist/src/project/src/utils/cache/persistent.d.ts +33 -0
- package/dist/src/project/src/utils/cache/storageCache.d.ts +8 -0
- package/dist/src/project/src/utils/cipher.d.ts +19 -0
- package/dist/src/project/src/utils/env.d.ts +34 -0
- package/dist/src/util/kg-route.util.d.ts +2 -1
- package/dist/src/util/kg.util.d.ts +9 -16
- package/package.json +4 -4
- package/script/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
- package/script/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
- package/script/bump-to.ts +0 -38
- package/script/bump.ts +0 -35
- package/script/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts +0 -3
- package/script/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts +0 -3
- package/script/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts +0 -3
- package/script/copy-to.ts +0 -23
- package/script/publish.ts +0 -30
- /package/dist/{close-outlined-DMcSQWxQ.0f7b1ee1.mjs → close-outlined-DMcSQWxQ.adfa0cf3.mjs} +0 -0
- /package/dist/{exclamation-circle-outlined-DZrXCnvM.32d9fc79.mjs → exclamation-circle-outlined-DZrXCnvM.20d450b7.mjs} +0 -0
- /package/dist/{fullscreen-exit-outlined-X1iYkFc4.4b203dc4.mjs → fullscreen-exit-outlined-X1iYkFc4.bceef6fa.mjs} +0 -0
- /package/dist/{fullscreen-outlined-DDBrsRcy.a38a27ed.mjs → fullscreen-outlined-DDBrsRcy.26d588f0.mjs} +0 -0
- /package/dist/{search-outlined-Od1M_oxf.9851f549.mjs → search-outlined-Od1M_oxf.761cc44e.mjs} +0 -0
- /package/dist/src/component/KgAppSelect/{index.event.d.ts → KgAppSelect.event.d.ts} +0 -0
- /package/dist/src/component/KgButton/{index.event.d.ts → KgButton.event.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.event.d.ts → KgCanvas.event.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.store.d.ts → KgCanvas.store.d.ts} +0 -0
- /package/dist/src/component/KgCanvas/{index.vm.d.ts → KgCanvas.vm.d.ts} +0 -0
- /package/dist/src/component/KgForm/{index.event.d.ts → KgForm.event.d.ts} +0 -0
- /package/dist/src/component/KgForm/{index.vm.d.ts → KgForm.vm.d.ts} +0 -0
- /package/dist/src/component/KgForm.Item/{index.vm.d.ts → KgForm.Item.vm.d.ts} +0 -0
- /package/dist/src/component/KgLayoutHeader/{index.hooks.d.ts → KgLayoutHeader.hooks.d.ts} +0 -0
- /package/dist/src/component/KgModal/{index.vm.d.ts → KgModal.vm.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{index.event.d.ts → KgSearch.event.d.ts} +0 -0
- /package/dist/src/component/KgSearch/{index.vm.d.ts → KgSearch.vm.d.ts} +0 -0
- /package/dist/src/component/KgSubmit/{index.vm.d.ts → KgSubmit.vm.d.ts} +0 -0
- /package/dist/src/component/KgTable/{index.vm.d.ts → KgTable.vm.d.ts} +0 -0
- /package/dist/src/component/KgVar/{index.event.d.ts → KgVar.event.d.ts} +0 -0
- /package/dist/src/component/KgVar/{index.store.service.d.ts → KgVar.store.service.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{index.store.d.ts → KgVarConfig.store.d.ts} +0 -0
- /package/dist/src/component/KgVarConfig/{index.vm.d.ts → KgVarConfig.vm.d.ts} +0 -0
- /package/dist/src/component/KgWarehouse/{index.guard.d.ts → KgWarehouse.guard.d.ts} +0 -0
- /package/dist/src/component/KgWarehouse/{index.store.d.ts → KgWarehouse.store.d.ts} +0 -0
- /package/dist/src/page/KgPageDda/{index.vm.d.ts → KgPageDda.vm.d.ts} +0 -0
- /package/dist/{three-dots-loading-bIlrTJYR.ebc46650.mjs → three-dots-loading-bIlrTJYR.5f916930.mjs} +0 -0
@@ -1,3 +1,3 @@
|
|
1
1
|
export { default as KgVarConfig } from './KgVarConfig';
|
2
|
-
export * from './
|
3
|
-
export * from './
|
2
|
+
export * from './KgVarConfig.hooks';
|
3
|
+
export * from './KgVarConfig.store';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { IRemoveEventListener } from '@kengic/core.core';
|
2
2
|
import { Pinia } from 'pinia';
|
3
3
|
import { ComputedRef } from 'vue';
|
4
|
-
import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './
|
4
|
+
import { IKgWarehouseOnMountedEventListener, IKgWarehouseStore } from './KgWarehouse.store';
|
5
5
|
export declare type IUseKgWarehouse = {
|
6
6
|
/**
|
7
7
|
* 监听事件: 组件加载完成.
|
@@ -1,4 +1,4 @@
|
|
1
1
|
export { default as KgWarehouse } from './KgWarehouse';
|
2
|
-
export * from './
|
3
|
-
export * from './
|
4
|
-
export * from './
|
2
|
+
export * from './KgWarehouse.guard';
|
3
|
+
export * from './KgWarehouse.hooks';
|
4
|
+
export * from './KgWarehouse.store';
|
@@ -2,7 +2,8 @@ import { StoreDefinition } from 'pinia';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
4
|
import { DescriptionDTO, SysUserWarehouseDTO } from '../api/WMS/models';
|
5
|
-
import { KG_APP
|
5
|
+
import { KG_APP } from '../const';
|
6
|
+
import { Menu } from '../project/src/router/types';
|
6
7
|
import { LocaleType } from '../project/types/config';
|
7
8
|
import { UserInfo } from '../project/types/store';
|
8
9
|
export declare type IKgOption = {
|
@@ -386,6 +386,82 @@ export declare const enum KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT {
|
|
386
386
|
*/
|
387
387
|
PX = "PX"
|
388
388
|
}
|
389
|
+
/**
|
390
|
+
* 动态参数.
|
391
|
+
*/
|
392
|
+
export declare const KG__DYNAMIC_PARAM: {
|
393
|
+
/**
|
394
|
+
* 空字符串.
|
395
|
+
*/
|
396
|
+
EMPTY_STRING: string;
|
397
|
+
/**
|
398
|
+
* 当前语言.
|
399
|
+
*/
|
400
|
+
LOCALE: string;
|
401
|
+
/**
|
402
|
+
* 当前时间.
|
403
|
+
*/
|
404
|
+
NOW: string;
|
405
|
+
/**
|
406
|
+
* 当前勾选行对应的属性.
|
407
|
+
*/
|
408
|
+
ROW: string;
|
409
|
+
/**
|
410
|
+
* 当前用户.
|
411
|
+
*/
|
412
|
+
USER: string;
|
413
|
+
/**
|
414
|
+
* 当前仓库编号.
|
415
|
+
*/
|
416
|
+
WAREHOUSE: string;
|
417
|
+
/**
|
418
|
+
* 当前工作区.
|
419
|
+
*/
|
420
|
+
WORK_AREA: string;
|
421
|
+
/**
|
422
|
+
* 当前工作站.
|
423
|
+
*/
|
424
|
+
WORK_STATION: string;
|
425
|
+
};
|
426
|
+
export declare const KG__DYNAMIC_PARAM_LIST: string[];
|
427
|
+
/**
|
428
|
+
* 动态参数, 在首尾添加了 # 字符.
|
429
|
+
*/
|
430
|
+
export declare const KG__DYNAMIC_PARAM_HASH: {
|
431
|
+
/**
|
432
|
+
* 空字符串.
|
433
|
+
*/
|
434
|
+
EMPTY_STRING: string;
|
435
|
+
/**
|
436
|
+
* 当前语言.
|
437
|
+
*/
|
438
|
+
LOCALE: string;
|
439
|
+
/**
|
440
|
+
* 当前时间.
|
441
|
+
*/
|
442
|
+
NOW: string;
|
443
|
+
/**
|
444
|
+
* 当前勾选行对应的属性.
|
445
|
+
*/
|
446
|
+
ROW: string;
|
447
|
+
/**
|
448
|
+
* 当前用户.
|
449
|
+
*/
|
450
|
+
USER: string;
|
451
|
+
/**
|
452
|
+
* 当前仓库编号.
|
453
|
+
*/
|
454
|
+
WAREHOUSE: string;
|
455
|
+
/**
|
456
|
+
* 当前工作区.
|
457
|
+
*/
|
458
|
+
WORK_AREA: string;
|
459
|
+
/**
|
460
|
+
* 当前工作站.
|
461
|
+
*/
|
462
|
+
WORK_STATION: string;
|
463
|
+
};
|
464
|
+
export declare const KG__DYNAMIC_PARAM_HASH_LIST: string[];
|
389
465
|
/**
|
390
466
|
* 栅格布局宽度.
|
391
467
|
*/
|
@@ -509,18 +585,6 @@ export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
|
|
509
585
|
export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
|
510
586
|
/** 模块菜单的临时ID:PDA. */
|
511
587
|
export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
512
|
-
/** 菜单. */
|
513
|
-
export interface Menu {
|
514
|
-
id: string;
|
515
|
-
app: string | null;
|
516
|
-
name: string;
|
517
|
-
title: string;
|
518
|
-
path?: string;
|
519
|
-
icon?: string;
|
520
|
-
hideMenu?: boolean;
|
521
|
-
children?: Menu[];
|
522
|
-
[key: string]: any;
|
523
|
-
}
|
524
588
|
/**
|
525
589
|
* 按钮确认弹窗的参数.
|
526
590
|
* <p>对应于 {@link VarButton#modal_props} 字段.</p>
|
@@ -919,7 +919,7 @@ export declare const useKgPageDdaCreateStore: import("pinia").StoreDefinition<"K
|
|
919
919
|
formID: string;
|
920
920
|
frmNam: string;
|
921
921
|
}) => void;
|
922
|
-
}, "getVarButtons" | "
|
922
|
+
}, "getVarButtons" | "getIsLoading" | "getCreateVarDdaQuery" | "getFrmId" | "getResultSetMetadataColumns">>, Pick<{
|
923
923
|
createVarButton: (button: VarButton) => void;
|
924
924
|
updateVarConfigDescription: (param: {
|
925
925
|
varName: string | null | undefined;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import type { RouteMeta } from 'vue-router';
|
2
|
+
export interface RouteItem {
|
3
|
+
path: string;
|
4
|
+
component: any;
|
5
|
+
meta: RouteMeta;
|
6
|
+
name?: string;
|
7
|
+
alias?: string | string[];
|
8
|
+
redirect?: string;
|
9
|
+
caseSensitive?: boolean;
|
10
|
+
children?: RouteItem[];
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @description: Get menu return value
|
14
|
+
*/
|
15
|
+
export declare type getMenuListResultModel = RouteItem[];
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* @description: Login interface parameters
|
3
|
+
*/
|
4
|
+
export interface LoginParams {
|
5
|
+
username: string;
|
6
|
+
password: string;
|
7
|
+
}
|
8
|
+
export interface ThirdLoginParams {
|
9
|
+
token: string;
|
10
|
+
thirdType: string;
|
11
|
+
}
|
12
|
+
export interface RoleInfo {
|
13
|
+
roleName: string;
|
14
|
+
value: string;
|
15
|
+
}
|
16
|
+
/**
|
17
|
+
* @description: Login interface return value
|
18
|
+
*/
|
19
|
+
export interface LoginResultModel {
|
20
|
+
userId: string | number;
|
21
|
+
token: string;
|
22
|
+
role: RoleInfo;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* @description: Get user information return value
|
26
|
+
*/
|
27
|
+
export interface GetUserInfoModel {
|
28
|
+
roles: RoleInfo[];
|
29
|
+
userId: string | number;
|
30
|
+
username: string;
|
31
|
+
realname: string;
|
32
|
+
avatar: string;
|
33
|
+
desc?: string;
|
34
|
+
userInfo?: any;
|
35
|
+
sysAllDictItems?: any;
|
36
|
+
userWarehouses?: any;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* @description: Get user information return value
|
40
|
+
*/
|
41
|
+
export interface GetResultModel {
|
42
|
+
code: number;
|
43
|
+
message: string;
|
44
|
+
result: object;
|
45
|
+
success: Boolean;
|
46
|
+
}
|
@@ -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 USER_INFO_KEY = "USER__INFO__";
|
3
|
+
export declare const LOCALE_KEY = "LOCALE__";
|
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 @@
|
|
1
|
+
export * from './web/useI18n';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
declare type I18nGlobalTranslation = {
|
2
|
+
(key: string): string;
|
3
|
+
(key: string, locale: string): string;
|
4
|
+
(key: string, locale: string, list: unknown[]): string;
|
5
|
+
(key: string, locale: string, named: Record<string, unknown>): string;
|
6
|
+
(key: string, list: unknown[]): string;
|
7
|
+
(key: string, named: Record<string, unknown>): string;
|
8
|
+
};
|
9
|
+
export declare function useI18n(namespace?: string): {
|
10
|
+
t: I18nGlobalTranslation;
|
11
|
+
};
|
12
|
+
export declare const t: (key: string) => string;
|
13
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export * from './api';
|
2
|
+
export * from './components';
|
3
|
+
export * from './enums';
|
4
|
+
export * from './hooks';
|
5
|
+
export * from './locales';
|
6
|
+
export * from './settings';
|
7
|
+
export * from './store';
|
8
|
+
export * from './router/types';
|
9
|
+
export * from './utils/cache/index';
|
10
|
+
export * from './utils/cache/memory';
|
11
|
+
export * from './utils/cache/persistent';
|
12
|
+
export * from './utils/cache/storageCache';
|
13
|
+
export * from './utils/cipher';
|
14
|
+
export * from './utils/env';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { LocaleType } from '../../types';
|
2
|
+
export declare const loadLocalePool: LocaleType[];
|
3
|
+
export declare function setHtmlPageLang(locale: LocaleType): void;
|
4
|
+
export declare function setLoadLocalePool(cb: (loadLocalePool: LocaleType[]) => void): void;
|
5
|
+
export declare function genMessage(langs: Record<string, Record<string, any>>, prefix?: string): Recordable<any>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* Multi-language related operations
|
3
|
+
*/
|
4
|
+
import { LocaleType } from '../../types';
|
5
|
+
export declare function useLocale(): {
|
6
|
+
getLocale: import("vue").ComputedRef<LocaleType>;
|
7
|
+
getShowLocalePicker: import("vue").ComputedRef<boolean>;
|
8
|
+
changeLocale: (locale: LocaleType) => Promise<LocaleType | undefined>;
|
9
|
+
getAntdLocale: import("vue").ComputedRef<any>;
|
10
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { defineComponent } from 'vue';
|
2
|
+
import type { RouteMeta, RouteRecordRaw } from 'vue-router';
|
3
|
+
export declare type Component<T extends any = any> = ReturnType<typeof defineComponent> | (() => Promise<any>) | (() => Promise<T>);
|
4
|
+
export interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
5
|
+
app?: string;
|
6
|
+
name: string;
|
7
|
+
meta: RouteMeta;
|
8
|
+
component?: Component | string;
|
9
|
+
components?: Component;
|
10
|
+
children?: AppRouteRecordRaw[];
|
11
|
+
props?: Recordable;
|
12
|
+
fullPath?: string;
|
13
|
+
alwaysShow?: boolean;
|
14
|
+
}
|
15
|
+
export interface MenuTag {
|
16
|
+
type?: 'primary' | 'error' | 'warn' | 'success';
|
17
|
+
content?: string;
|
18
|
+
dot?: boolean;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* 菜单.
|
22
|
+
*/
|
23
|
+
export interface Menu {
|
24
|
+
id: string;
|
25
|
+
app: string | null;
|
26
|
+
name: string;
|
27
|
+
title: string;
|
28
|
+
path?: string;
|
29
|
+
paramPath?: string;
|
30
|
+
icon?: string;
|
31
|
+
hideMenu?: boolean;
|
32
|
+
children?: Menu[];
|
33
|
+
meta?: Partial<RouteMeta>;
|
34
|
+
tag?: MenuTag;
|
35
|
+
alwaysShow?: boolean;
|
36
|
+
[key: string]: any;
|
37
|
+
}
|
38
|
+
export interface MenuModule {
|
39
|
+
orderNo?: number;
|
40
|
+
menu: Menu;
|
41
|
+
}
|
42
|
+
export declare type AppRouteModule = AppRouteRecordRaw;
|
@@ -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
|
+
};
|