@kengic/vue 0.16.7-beta.0 → 0.16.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3476 -2938
- package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +24 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +31 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +30 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +37 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +52 -0
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +6 -0
- package/dist/src/apis/WMS/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +728 -0
- package/dist/src/apis/api.d.ts +1 -0
- package/dist/src/apis/def.d.ts +1 -0
- package/dist/src/apis/index.d.ts +2 -0
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/components/KgAppSelect/index.d.ts +3 -0
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +73 -0
- package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
- package/dist/src/components/KgButton/KgButton.d.ts +34 -0
- package/dist/src/components/KgButton/KgButton.hooks.d.ts +61 -0
- package/dist/src/components/KgButton/KgButton.store.d.ts +89 -0
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +39 -0
- package/dist/src/components/KgButton/index.d.ts +62 -0
- package/dist/src/components/KgForm/KgForm.d.ts +414 -0
- package/dist/src/components/KgForm/index.d.ts +604 -0
- package/dist/src/components/KgForm/index.hooks.d.ts +42 -0
- package/dist/src/components/KgForm/index.store.d.ts +107 -0
- package/dist/src/components/KgForm/index.vm.d.ts +9 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +100 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +32 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +103 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +102 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +104 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +27 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +99 -0
- package/dist/src/components/KgForm.Item/index.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +104 -0
- package/dist/src/components/KgModal/KgModal.d.ts +395 -0
- package/dist/src/components/KgModal/components/KgModal.Close.d.ts +41 -0
- package/dist/src/components/KgModal/index.d.ts +2 -0
- package/dist/src/components/KgModal/index.vm.d.ts +194 -0
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/components/KgProgressA/index.d.ts +1 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +143 -0
- package/dist/src/components/KgResizable/index.d.ts +1 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +42 -0
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +39 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +8 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +24 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +7 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +32 -0
- package/dist/src/components/KgSearch/index.d.ts +3 -0
- package/dist/src/components/KgSearch/index.hooks.d.ts +41 -0
- package/dist/src/components/KgSearch/index.store.d.ts +86 -0
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +41 -0
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +20 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +28 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +82 -0
- package/dist/src/components/KgSubmit/index.d.ts +4 -0
- package/dist/src/components/KgSubmit/index.hooks.d.ts +74 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +130 -0
- package/dist/src/components/KgSubmit/index.vm.d.ts +10 -0
- package/dist/src/components/KgTable/KgTable.d.ts +39 -0
- package/dist/src/components/KgTable/KgTable.hooks.d.ts +43 -0
- package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +61 -0
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +58 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +14 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +21 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +24 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +23 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +33 -0
- package/dist/src/components/KgTable/index.d.ts +4 -0
- package/dist/src/components/KgTable/index.hooks.d.ts +84 -0
- package/dist/src/components/KgTable/index.store.d.ts +157 -0
- package/dist/src/components/KgTable/index.vm.d.ts +66 -0
- package/dist/src/components/KgVar/KgVar.d.ts +28 -0
- package/dist/src/components/KgVar/index.d.ts +4 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +242 -0
- package/dist/src/components/KgVar/index.store.d.ts +315 -0
- package/dist/src/components/KgVar/index.store.service.d.ts +21 -0
- package/dist/src/components/KgVar/index.vm.d.ts +47 -0
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
- package/dist/src/components/KgVarConfig/index.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +38 -0
- package/dist/src/components/KgWarehouse/index.d.ts +4 -0
- package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
- package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +16 -0
- package/dist/src/components/util.d.ts +14 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +43 -0
- package/dist/src/config/index.store.d.ts +192 -0
- package/dist/src/config/setup.d.ts +45 -0
- package/dist/src/consts/i18n/en.d.ts +228 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +227 -0
- package/dist/src/consts/index.d.ts +253 -0
- package/dist/src/consts/index.vm.d.ts +170 -0
- package/dist/src/consts/injection-keys.const.d.ts +9 -0
- package/dist/src/helpers/ant-design-vue.d.ts +316 -0
- package/dist/src/helpers/tsx.helper.d.ts +13 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Child.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +29 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +26 -0
- package/dist/src/pages/KgPageDda/index.const.d.ts +11 -0
- package/dist/src/pages/KgPageDda/index.d.ts +5 -0
- package/dist/src/pages/index.d.ts +2 -0
- package/dist/src/services/http-client.d.ts +46 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/kg-auth.util.d.ts +26 -0
- package/dist/src/utils/kg-dom.util.d.ts +12 -0
- package/dist/src/utils/kg-logger.util.d.ts +65 -0
- package/dist/src/utils/kg-route.util.d.ts +54 -0
- package/dist/src/utils/kg-var.util.d.ts +36 -0
- package/dist/src/utils/kg.util.d.ts +114 -0
- package/package.json +6 -5
@@ -0,0 +1,192 @@
|
|
1
|
+
import { Pinia, StoreDefinition } from 'pinia';
|
2
|
+
import { ComputedRef } from 'vue';
|
3
|
+
import { Router } from 'vue-router';
|
4
|
+
import { SysUserWarehouseDTO } from '../apis/WMS/models';
|
5
|
+
import { IKgLocale, KG_APP, Menu } from '../consts';
|
6
|
+
export declare type IKgOption = {
|
7
|
+
/** 模块首页地址. */
|
8
|
+
appIndex?: {
|
9
|
+
/** 默认为 '/wms/data-manager/index'. */
|
10
|
+
[KG_APP.WMS_DATA_MANAGER]?: string;
|
11
|
+
/** 默认为 '/wms/business-manager/index'. */
|
12
|
+
[KG_APP.WMS_BUSINESS_MANAGER]?: string;
|
13
|
+
/** 默认为 '/wcs/index'. */
|
14
|
+
[KG_APP.WCS]?: string;
|
15
|
+
/** 默认为 '/sys/index'. */
|
16
|
+
[KG_APP.SYS]?: string;
|
17
|
+
};
|
18
|
+
/** 模块标题. */
|
19
|
+
appTitle?: {
|
20
|
+
/** 默认为 '数据管理'. */
|
21
|
+
[KG_APP.WMS_DATA_MANAGER]?: string;
|
22
|
+
/** 默认为 '仓库管理'. */
|
23
|
+
[KG_APP.WMS_BUSINESS_MANAGER]?: string;
|
24
|
+
/** 默认为 'WCS'. */
|
25
|
+
[KG_APP.WCS]?: string;
|
26
|
+
/** 默认为 '系统配置'. */
|
27
|
+
[KG_APP.SYS]?: string;
|
28
|
+
};
|
29
|
+
KgModal?: {
|
30
|
+
/** 拖拽移动. */
|
31
|
+
drag?: {
|
32
|
+
/**
|
33
|
+
* 是否启用功能.
|
34
|
+
* @default false
|
35
|
+
*/
|
36
|
+
on?: boolean;
|
37
|
+
};
|
38
|
+
/** 拖动边缘改变尺寸. */
|
39
|
+
resize?: {
|
40
|
+
/**
|
41
|
+
* 是否启用功能.
|
42
|
+
* @default false
|
43
|
+
*/
|
44
|
+
on?: boolean;
|
45
|
+
};
|
46
|
+
};
|
47
|
+
KgSearch?: {
|
48
|
+
/** 高级查询. */
|
49
|
+
dynamicQuery?: {
|
50
|
+
/**
|
51
|
+
* 是否启用功能.
|
52
|
+
* @default false
|
53
|
+
*/
|
54
|
+
on?: boolean;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
KgTable?: {
|
58
|
+
/** 列的过滤. */
|
59
|
+
filter?: {
|
60
|
+
/**
|
61
|
+
* 是否启用功能.
|
62
|
+
* @default false
|
63
|
+
*/
|
64
|
+
on?: boolean;
|
65
|
+
};
|
66
|
+
/** 表格设置菜单. */
|
67
|
+
Setting?: {
|
68
|
+
/** 行高. */
|
69
|
+
rowHeight?: {
|
70
|
+
/**
|
71
|
+
* 是否启用功能.
|
72
|
+
* @default false
|
73
|
+
*/
|
74
|
+
on?: boolean;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
};
|
78
|
+
/** 仓库选择. */
|
79
|
+
KgWarehouse?: {
|
80
|
+
/**
|
81
|
+
* 是否启用功能.
|
82
|
+
* @default true
|
83
|
+
*/
|
84
|
+
on?: boolean;
|
85
|
+
/** 默认的仓库编码, 只有在 {@link IKgOption.KgWarehouse.on} 为 false 时才生效. */
|
86
|
+
defaultWarehouseID?: string;
|
87
|
+
};
|
88
|
+
};
|
89
|
+
/** 翻译的方法. */
|
90
|
+
export declare type T = {
|
91
|
+
(key: string | null | undefined): string;
|
92
|
+
(key: string | null | undefined, locale: string): string;
|
93
|
+
(key: string | null | undefined, locale: string, list: unknown[]): string;
|
94
|
+
(key: string | null | undefined, locale: string, named: Record<string, unknown>): string;
|
95
|
+
(key: string | null | undefined, list: unknown[]): string;
|
96
|
+
(key: string | null | undefined, named: Record<string, unknown>): string;
|
97
|
+
};
|
98
|
+
/** 检查权限的方法. */
|
99
|
+
export declare type P = {
|
100
|
+
(permissionCode?: string | Array<string> | null): boolean;
|
101
|
+
};
|
102
|
+
export interface RoleInfo {
|
103
|
+
roleName: string;
|
104
|
+
value: string;
|
105
|
+
}
|
106
|
+
export interface UserInfo {
|
107
|
+
id: string | number;
|
108
|
+
userId: string | number;
|
109
|
+
username: string;
|
110
|
+
realname: string;
|
111
|
+
avatar: string;
|
112
|
+
desc?: string;
|
113
|
+
homePath?: string;
|
114
|
+
tenantid?: string | number;
|
115
|
+
roles: RoleInfo[];
|
116
|
+
orgCode?: string;
|
117
|
+
}
|
118
|
+
interface UserState {
|
119
|
+
userInfo: UserInfo | null;
|
120
|
+
token?: string;
|
121
|
+
roleList: any[];
|
122
|
+
userWarehouses: SysUserWarehouseDTO[];
|
123
|
+
sessionTimeout?: boolean;
|
124
|
+
}
|
125
|
+
interface AuthItem {
|
126
|
+
/** 权限编码. */
|
127
|
+
action: string;
|
128
|
+
/** 权限策略. 1:显示, 2:禁用. */
|
129
|
+
type: string | number;
|
130
|
+
/** 权限状态. 0:无效, 1:有效. */
|
131
|
+
status: string | number;
|
132
|
+
/** 权限名称. */
|
133
|
+
describe?: string;
|
134
|
+
}
|
135
|
+
interface PermissionState {
|
136
|
+
/** 当前登录用户所拥有的权限编码列表. */
|
137
|
+
permCodeList: string[] | number[];
|
138
|
+
/** 菜单列表. */
|
139
|
+
backMenuList: Menu[];
|
140
|
+
/** 当前登录用户所拥有的权限配置. */
|
141
|
+
authList: AuthItem[];
|
142
|
+
/** 全部权限配置. */
|
143
|
+
allAuthList: AuthItem[];
|
144
|
+
}
|
145
|
+
export interface IKgState {
|
146
|
+
/** 语言. */
|
147
|
+
locale: ComputedRef<IKgLocale> | null;
|
148
|
+
/** 翻译的方法. */
|
149
|
+
tFunction: T | null;
|
150
|
+
/** 检查权限的方法. */
|
151
|
+
pFunction: P | null;
|
152
|
+
router: Router | null;
|
153
|
+
/** 用户数据. */
|
154
|
+
useUserStore: StoreDefinition | null;
|
155
|
+
/** 权限数据. */
|
156
|
+
usePermissionStore: StoreDefinition | null;
|
157
|
+
/** 配置参数. */
|
158
|
+
option: IKgOption;
|
159
|
+
}
|
160
|
+
export declare type IKgStoreDefinition = StoreDefinition<'Kg', IKgState, {
|
161
|
+
/** 获取配置参数. */
|
162
|
+
getLocale: ComputedRef<IKgLocale> | null;
|
163
|
+
getRouter: Router | null;
|
164
|
+
getUseUserStore(): StoreDefinition<string, UserState, {
|
165
|
+
getToken(): string;
|
166
|
+
getRoleList(): any[];
|
167
|
+
getUserWarehouses(): SysUserWarehouseDTO[];
|
168
|
+
getSessionTimeout(): boolean;
|
169
|
+
getUserInfo(): UserInfo;
|
170
|
+
}, {}> | null;
|
171
|
+
getUsePermissionStore(): StoreDefinition<string, PermissionState, {
|
172
|
+
getPermCodeList(): string[] | number[];
|
173
|
+
getBackMenuList(): Menu[];
|
174
|
+
}> | null;
|
175
|
+
/** 获取配置参数. */
|
176
|
+
getOption: IKgOption;
|
177
|
+
}, {
|
178
|
+
setLocale(locale: ComputedRef<IKgLocale> | null): void;
|
179
|
+
setRouter(router: Router): void;
|
180
|
+
setUseUserStore(useUserStore: StoreDefinition<any, any, any, any>): void;
|
181
|
+
setUsePermissionStore(usePermissionStore: StoreDefinition<any, any, any, any>): void;
|
182
|
+
setT(i18n: any): void;
|
183
|
+
setP(fn: P): void;
|
184
|
+
setOption(option: IKgOption): void;
|
185
|
+
/** 翻译. */
|
186
|
+
t: T;
|
187
|
+
/** 检查权限. */
|
188
|
+
p: P;
|
189
|
+
}>;
|
190
|
+
export declare type IKgStore = ReturnType<IKgStoreDefinition>;
|
191
|
+
export declare const useKgStore: (_pinia?: Pinia) => IKgStoreDefinition;
|
192
|
+
export {};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { Pinia, StoreDefinition } from 'pinia';
|
2
|
+
import { App, ComputedRef } from 'vue';
|
3
|
+
import { Router } from 'vue-router';
|
4
|
+
import { IKgLocale } from '../consts';
|
5
|
+
import { IKgOption, P } from './index.store';
|
6
|
+
/**
|
7
|
+
* 配置 pinia 实例.
|
8
|
+
* @param pinia pinia 实例.
|
9
|
+
*/
|
10
|
+
export declare function setPinia(pinia: Pinia): void;
|
11
|
+
/**
|
12
|
+
* 获取 pinia 实例.
|
13
|
+
* @return {} pinia 实例.
|
14
|
+
* @throws Error 如果 pinia 实例为空, 抛错.
|
15
|
+
*/
|
16
|
+
export declare function getPinia(): Pinia | null;
|
17
|
+
export declare type IKgOptions = {
|
18
|
+
app: App;
|
19
|
+
/** 当前语言. */
|
20
|
+
locale: ComputedRef<IKgLocale>;
|
21
|
+
/**
|
22
|
+
* import { createI18n } from 'vue-i18n';
|
23
|
+
* ReturnType<typeof createI18n>
|
24
|
+
*/
|
25
|
+
i18n: any;
|
26
|
+
router: Router;
|
27
|
+
/** 状态数据: 用户. */
|
28
|
+
useUserStore: StoreDefinition<any, any, any, any>;
|
29
|
+
/** 状态数据: 权限. */
|
30
|
+
usePermissionStore: StoreDefinition<any, any, any, any>;
|
31
|
+
/** 权限方法, 用来判断是否具有某个(某些)权限. */
|
32
|
+
pFunction: P;
|
33
|
+
/** 配置参数. */
|
34
|
+
option?: IKgOption;
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* 初始化 pinia.
|
38
|
+
* @param pinia pinia.
|
39
|
+
*/
|
40
|
+
export declare function setupKgStore(pinia: Pinia): void;
|
41
|
+
/**
|
42
|
+
* 初始化组件库.
|
43
|
+
* @param options 参数.
|
44
|
+
*/
|
45
|
+
export declare function setup(options: IKgOptions): void;
|
@@ -0,0 +1,228 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
kg: {
|
3
|
+
KgAppSelect: {
|
4
|
+
businessManager: string;
|
5
|
+
dataManager: string;
|
6
|
+
sys: string;
|
7
|
+
tooltip: string;
|
8
|
+
};
|
9
|
+
KgFormItem: {
|
10
|
+
mustGT: string;
|
11
|
+
mustGTE: string;
|
12
|
+
mustLT: string;
|
13
|
+
mustLTE: string;
|
14
|
+
};
|
15
|
+
KgPageDdaCreate: {
|
16
|
+
'confirm-cancel': string;
|
17
|
+
done: string;
|
18
|
+
'next-step': string;
|
19
|
+
'previous-step': string;
|
20
|
+
};
|
21
|
+
KgPageDdaCreateBasic: {
|
22
|
+
'form-id': string;
|
23
|
+
'form-name': string;
|
24
|
+
maintenance: string;
|
25
|
+
sql: string;
|
26
|
+
type: string;
|
27
|
+
};
|
28
|
+
KgPageDdaCreateSearch: {
|
29
|
+
available: string;
|
30
|
+
'column-description': string;
|
31
|
+
'column-name': string;
|
32
|
+
'column-type': string;
|
33
|
+
selected: string;
|
34
|
+
};
|
35
|
+
KgPageDdaCreateTable: {
|
36
|
+
available: string;
|
37
|
+
'column-description': string;
|
38
|
+
'column-name': string;
|
39
|
+
'column-type': string;
|
40
|
+
selected: string;
|
41
|
+
};
|
42
|
+
KgPageDdaCreateSubmit: {
|
43
|
+
available: string;
|
44
|
+
'column-description': string;
|
45
|
+
'column-name': string;
|
46
|
+
'column-type': string;
|
47
|
+
selected: string;
|
48
|
+
};
|
49
|
+
KgSearch: {
|
50
|
+
title: string;
|
51
|
+
};
|
52
|
+
KgSearchConfigModal: {
|
53
|
+
BETWEEN: string;
|
54
|
+
'BETWEEN-desc': string;
|
55
|
+
CONTAIN: string;
|
56
|
+
'CONTAIN-desc': string;
|
57
|
+
END_WITH: string;
|
58
|
+
'END_WITH-desc': string;
|
59
|
+
EQ: string;
|
60
|
+
'EQ-desc': string;
|
61
|
+
GT: string;
|
62
|
+
'GT-desc': string;
|
63
|
+
GTE: string;
|
64
|
+
'GTE-desc': string;
|
65
|
+
IN: string;
|
66
|
+
'IN-desc': string;
|
67
|
+
LT: string;
|
68
|
+
'LT-desc': string;
|
69
|
+
LTE: string;
|
70
|
+
'LTE-desc': string;
|
71
|
+
NE: string;
|
72
|
+
'NE-desc': string;
|
73
|
+
START_WITH: string;
|
74
|
+
'START_WITH-desc': string;
|
75
|
+
VarProfileConfig: string;
|
76
|
+
VarProfileMaster: string;
|
77
|
+
canNotUpdateSystemVarProfileMaster: string;
|
78
|
+
close: string;
|
79
|
+
formTitle: string;
|
80
|
+
pleaseSelectVarProfileMaster: string;
|
81
|
+
};
|
82
|
+
KgSubmitHeaderVarSubmitConfig: {
|
83
|
+
invalidWidthForSpan: string;
|
84
|
+
};
|
85
|
+
KgTable: {
|
86
|
+
canNotUpdateSystemVarGridMaster: string;
|
87
|
+
column: string;
|
88
|
+
config: string;
|
89
|
+
'dynamic-query-is-off-in-server': string;
|
90
|
+
emptyText: string;
|
91
|
+
'request-fail-error': string;
|
92
|
+
'request-fail-no-data': string;
|
93
|
+
rowHeight: string;
|
94
|
+
rowHeightH: string;
|
95
|
+
rowHeightL: string;
|
96
|
+
rowHeightM: string;
|
97
|
+
'save-var-grid-master-as-success-message': string;
|
98
|
+
saveVarGridMaster: string;
|
99
|
+
saveVarGridMasterAs: string;
|
100
|
+
saveVarGridMasterSuccessMessage: string;
|
101
|
+
totalText: string;
|
102
|
+
varGridMasters: string;
|
103
|
+
};
|
104
|
+
KgTableInfo: {
|
105
|
+
check: string;
|
106
|
+
clearCheck: string;
|
107
|
+
clearTable: string;
|
108
|
+
locate: string;
|
109
|
+
row: string;
|
110
|
+
};
|
111
|
+
KgTableSettingConfigModal: {
|
112
|
+
VarGridConfig: string;
|
113
|
+
VarGridMaster: string;
|
114
|
+
};
|
115
|
+
KgTableSettingConfigModalVarGridMaster: {
|
116
|
+
DESC: string;
|
117
|
+
ENUM: string;
|
118
|
+
FILE_SIZE: string;
|
119
|
+
PROGRESS: string;
|
120
|
+
ROUTE_LINK: string;
|
121
|
+
UPDATE_LINK: string;
|
122
|
+
YN: string;
|
123
|
+
center: string;
|
124
|
+
left: string;
|
125
|
+
'not-sort': string;
|
126
|
+
right: string;
|
127
|
+
};
|
128
|
+
KgTableSettingVarGridConfig: {
|
129
|
+
emptyPageSizeOptions: string;
|
130
|
+
invalidCommandParameter: string;
|
131
|
+
invalidPageSizeOption: string;
|
132
|
+
invalidPageSizeOptions: string;
|
133
|
+
};
|
134
|
+
KgTableSettingVarGridMasterSaveAs: {
|
135
|
+
title: string;
|
136
|
+
};
|
137
|
+
KgVarConfig: {
|
138
|
+
action: string;
|
139
|
+
allForm: string;
|
140
|
+
allLanguage: string;
|
141
|
+
applyTo: string;
|
142
|
+
catalog: string;
|
143
|
+
confirm: string;
|
144
|
+
createConfig: string;
|
145
|
+
createSuccess: string;
|
146
|
+
currentForm: string;
|
147
|
+
currentLanguage: string;
|
148
|
+
customLevel: string;
|
149
|
+
deleteConfirmMessage: string;
|
150
|
+
deleteSuccess: string;
|
151
|
+
discardConfirmMessage: string;
|
152
|
+
form: string;
|
153
|
+
formId: string;
|
154
|
+
groupName: string;
|
155
|
+
language: string;
|
156
|
+
required: string;
|
157
|
+
saveSuccess: string;
|
158
|
+
tabButton: string;
|
159
|
+
tabSearch: string;
|
160
|
+
tabSubmit: string;
|
161
|
+
tabTable: string;
|
162
|
+
variable: string;
|
163
|
+
variableName: string;
|
164
|
+
variables: string;
|
165
|
+
};
|
166
|
+
KgVarConfigFormIDsModal: {
|
167
|
+
title: string;
|
168
|
+
};
|
169
|
+
KgVarConfigModalButton: {
|
170
|
+
VarButton: string;
|
171
|
+
VarButtonConfig: string;
|
172
|
+
};
|
173
|
+
KgVarConfigModalSubmit: {
|
174
|
+
VarSubmitConfig: string;
|
175
|
+
VarSubmitField: string;
|
176
|
+
};
|
177
|
+
KgWarehouse: {
|
178
|
+
reloadMessage: string;
|
179
|
+
selectWarehouse: string;
|
180
|
+
title: string;
|
181
|
+
warehouse: string;
|
182
|
+
};
|
183
|
+
action: string;
|
184
|
+
add: string;
|
185
|
+
asc: string;
|
186
|
+
button: string;
|
187
|
+
cancel: string;
|
188
|
+
close: string;
|
189
|
+
confirm: string;
|
190
|
+
confirmDelete: string;
|
191
|
+
copy: string;
|
192
|
+
copySuccess: string;
|
193
|
+
create: string;
|
194
|
+
createSuccess: string;
|
195
|
+
default: string;
|
196
|
+
delete: string;
|
197
|
+
deleteSuccess: string;
|
198
|
+
desc: string;
|
199
|
+
edit: string;
|
200
|
+
empty: string;
|
201
|
+
emptyText: string;
|
202
|
+
export: string;
|
203
|
+
exportSuccess: string;
|
204
|
+
formId: string;
|
205
|
+
import: string;
|
206
|
+
'import-template': string;
|
207
|
+
importSuccess: string;
|
208
|
+
importTemplate: string;
|
209
|
+
loading: string;
|
210
|
+
lookup: string;
|
211
|
+
no: string;
|
212
|
+
ok: string;
|
213
|
+
query: string;
|
214
|
+
refresh: string;
|
215
|
+
required: string;
|
216
|
+
reset: string;
|
217
|
+
save: string;
|
218
|
+
search: string;
|
219
|
+
selectAll: string;
|
220
|
+
show: string;
|
221
|
+
succeed: string;
|
222
|
+
tip: string;
|
223
|
+
update: string;
|
224
|
+
updateSuccess: string;
|
225
|
+
yes: string;
|
226
|
+
};
|
227
|
+
};
|
228
|
+
export default _default;
|
@@ -0,0 +1,227 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
kg: {
|
3
|
+
KgAppSelect: {
|
4
|
+
businessManager: string;
|
5
|
+
dataManager: string;
|
6
|
+
sys: string;
|
7
|
+
tooltip: string;
|
8
|
+
};
|
9
|
+
KgFormItem: {
|
10
|
+
mustGT: string;
|
11
|
+
mustGTE: string;
|
12
|
+
mustLT: string;
|
13
|
+
mustLTE: string;
|
14
|
+
};
|
15
|
+
KgPageDdaCreate: {
|
16
|
+
'confirm-cancel': string;
|
17
|
+
done: string;
|
18
|
+
'next-step': string;
|
19
|
+
'previous-step': string;
|
20
|
+
};
|
21
|
+
KgPageDdaCreateBasic: {
|
22
|
+
'form-id': string;
|
23
|
+
'form-name': string;
|
24
|
+
maintenance: string;
|
25
|
+
sql: string;
|
26
|
+
type: string;
|
27
|
+
};
|
28
|
+
KgPageDdaCreateSearch: {
|
29
|
+
available: string;
|
30
|
+
'column-description': string;
|
31
|
+
'column-name': string;
|
32
|
+
'column-type': string;
|
33
|
+
selected: string;
|
34
|
+
};
|
35
|
+
KgPageDdaCreateTable: {
|
36
|
+
available: string;
|
37
|
+
'column-description': string;
|
38
|
+
'column-name': string;
|
39
|
+
'column-type': string;
|
40
|
+
selected: string;
|
41
|
+
};
|
42
|
+
KgPageDdaCreateSubmit: {
|
43
|
+
available: string;
|
44
|
+
'column-description': string;
|
45
|
+
'column-name': string;
|
46
|
+
'column-type': string;
|
47
|
+
selected: string;
|
48
|
+
};
|
49
|
+
KgSearch: {
|
50
|
+
title: string;
|
51
|
+
};
|
52
|
+
KgSearchConfigModal: {
|
53
|
+
BETWEEN: string;
|
54
|
+
'BETWEEN-desc': string;
|
55
|
+
CONTAIN: string;
|
56
|
+
'CONTAIN-desc': string;
|
57
|
+
END_WITH: string;
|
58
|
+
'END_WITH-desc': string;
|
59
|
+
EQ: string;
|
60
|
+
'EQ-desc': string;
|
61
|
+
GT: string;
|
62
|
+
'GT-desc': string;
|
63
|
+
GTE: string;
|
64
|
+
'GTE-desc': string;
|
65
|
+
IN: string;
|
66
|
+
'IN-desc': string;
|
67
|
+
LT: string;
|
68
|
+
'LT-desc': string;
|
69
|
+
LTE: string;
|
70
|
+
'LTE-desc': string;
|
71
|
+
NE: string;
|
72
|
+
'NE-desc': string;
|
73
|
+
START_WITH: string;
|
74
|
+
'START_WITH-desc': string;
|
75
|
+
VarProfileConfig: string;
|
76
|
+
VarProfileMaster: string;
|
77
|
+
canNotUpdateSystemVarProfileMaster: string;
|
78
|
+
close: string;
|
79
|
+
formTitle: string;
|
80
|
+
pleaseSelectVarProfileMaster: string;
|
81
|
+
};
|
82
|
+
KgSubmitHeaderVarSubmitConfig: {
|
83
|
+
invalidWidthForSpan: string;
|
84
|
+
};
|
85
|
+
KgTable: {
|
86
|
+
canNotUpdateSystemVarGridMaster: string;
|
87
|
+
column: string;
|
88
|
+
config: string;
|
89
|
+
'dynamic-query-is-off-in-server': string;
|
90
|
+
emptyText: string;
|
91
|
+
'request-fail-error': string;
|
92
|
+
'request-fail-no-data': string;
|
93
|
+
rowHeight: string;
|
94
|
+
rowHeightH: string;
|
95
|
+
rowHeightL: string;
|
96
|
+
rowHeightM: string;
|
97
|
+
'save-var-grid-master-as-success-message': string;
|
98
|
+
saveVarGridMaster: string;
|
99
|
+
saveVarGridMasterAs: string;
|
100
|
+
saveVarGridMasterSuccessMessage: string;
|
101
|
+
totalText: string;
|
102
|
+
varGridMasters: string;
|
103
|
+
};
|
104
|
+
KgTableInfo: {
|
105
|
+
check: string;
|
106
|
+
clearCheck: string;
|
107
|
+
clearTable: string;
|
108
|
+
locate: string;
|
109
|
+
row: string;
|
110
|
+
};
|
111
|
+
KgTableSettingConfigModal: {
|
112
|
+
VarGridConfig: string;
|
113
|
+
VarGridMaster: string;
|
114
|
+
};
|
115
|
+
KgTableSettingConfigModalVarGridMaster: {
|
116
|
+
DESC: string;
|
117
|
+
ENUM: string;
|
118
|
+
FILE_SIZE: string;
|
119
|
+
PROGRESS: string;
|
120
|
+
ROUTE_LINK: string;
|
121
|
+
UPDATE_LINK: string;
|
122
|
+
YN: string;
|
123
|
+
center: string;
|
124
|
+
left: string;
|
125
|
+
'not-sort': string;
|
126
|
+
right: string;
|
127
|
+
};
|
128
|
+
KgTableSettingVarGridConfig: {
|
129
|
+
emptyPageSizeOptions: string;
|
130
|
+
invalidCommandParameter: string;
|
131
|
+
invalidPageSizeOption: string;
|
132
|
+
invalidPageSizeOptions: string;
|
133
|
+
};
|
134
|
+
KgTableSettingVarGridMasterSaveAs: {
|
135
|
+
title: string;
|
136
|
+
};
|
137
|
+
KgVarConfig: {
|
138
|
+
action: string;
|
139
|
+
allForm: string;
|
140
|
+
allLanguage: string;
|
141
|
+
applyTo: string;
|
142
|
+
catalog: string;
|
143
|
+
confirm: string;
|
144
|
+
createConfig: string;
|
145
|
+
createSuccess: string;
|
146
|
+
currentForm: string;
|
147
|
+
currentLanguage: string;
|
148
|
+
customLevel: string;
|
149
|
+
deleteConfirmMessage: string;
|
150
|
+
deleteSuccess: string;
|
151
|
+
discardConfirmMessage: string;
|
152
|
+
form: string;
|
153
|
+
formId: string;
|
154
|
+
groupName: string;
|
155
|
+
language: string;
|
156
|
+
saveSuccess: string;
|
157
|
+
tabButton: string;
|
158
|
+
tabSearch: string;
|
159
|
+
tabSubmit: string;
|
160
|
+
tabTable: string;
|
161
|
+
variable: string;
|
162
|
+
variableName: string;
|
163
|
+
variables: string;
|
164
|
+
};
|
165
|
+
KgVarConfigFormIDsModal: {
|
166
|
+
title: string;
|
167
|
+
};
|
168
|
+
KgVarConfigModalButton: {
|
169
|
+
VarButton: string;
|
170
|
+
VarButtonConfig: string;
|
171
|
+
};
|
172
|
+
KgVarConfigModalSubmit: {
|
173
|
+
VarSubmitConfig: string;
|
174
|
+
VarSubmitField: string;
|
175
|
+
};
|
176
|
+
KgWarehouse: {
|
177
|
+
reloadMessage: string;
|
178
|
+
selectWarehouse: string;
|
179
|
+
title: string;
|
180
|
+
warehouse: string;
|
181
|
+
};
|
182
|
+
action: string;
|
183
|
+
add: string;
|
184
|
+
asc: string;
|
185
|
+
button: string;
|
186
|
+
cancel: string;
|
187
|
+
close: string;
|
188
|
+
confirm: string;
|
189
|
+
confirmDelete: string;
|
190
|
+
copy: string;
|
191
|
+
copySuccess: string;
|
192
|
+
create: string;
|
193
|
+
createSuccess: string;
|
194
|
+
default: string;
|
195
|
+
delete: string;
|
196
|
+
deleteSuccess: string;
|
197
|
+
desc: string;
|
198
|
+
edit: string;
|
199
|
+
empty: string;
|
200
|
+
emptyText: string;
|
201
|
+
export: string;
|
202
|
+
exportSuccess: string;
|
203
|
+
formId: string;
|
204
|
+
import: string;
|
205
|
+
'import-template': string;
|
206
|
+
importSuccess: string;
|
207
|
+
importTemplate: string;
|
208
|
+
loading: string;
|
209
|
+
lookup: string;
|
210
|
+
no: string;
|
211
|
+
ok: string;
|
212
|
+
query: string;
|
213
|
+
refresh: string;
|
214
|
+
required: string;
|
215
|
+
reset: string;
|
216
|
+
save: string;
|
217
|
+
search: string;
|
218
|
+
selectAll: string;
|
219
|
+
show: string;
|
220
|
+
succeed: string;
|
221
|
+
tip: string;
|
222
|
+
update: string;
|
223
|
+
updateSuccess: string;
|
224
|
+
yes: string;
|
225
|
+
};
|
226
|
+
};
|
227
|
+
export default _default;
|