@kengic/vue 0.16.6 → 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 +3479 -2941
- 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,253 @@
|
|
1
|
+
export * from './i18n';
|
2
|
+
export * from './index.vm';
|
3
|
+
export * from './injection-keys.const';
|
4
|
+
/** 模块. */
|
5
|
+
export declare const enum KG_APP {
|
6
|
+
WMS_DATA_MANAGER = "data-manager",
|
7
|
+
WMS_BUSINESS_MANAGER = "business-manager",
|
8
|
+
WCS = "wcs",
|
9
|
+
SYS = "sys"
|
10
|
+
}
|
11
|
+
/** 所有模块. */
|
12
|
+
export declare const KG_APPS: Array<KG_APP>;
|
13
|
+
/** 模块路径前缀. */
|
14
|
+
export declare const enum KG_APP_PREFIX {
|
15
|
+
WMS_DATA_MANAGER = "/wms/data-manager",
|
16
|
+
WMS_BUSINESS_MANAGER = "/wms/business-manager",
|
17
|
+
WCS = "/wcs",
|
18
|
+
SYS = "/sys"
|
19
|
+
}
|
20
|
+
/** 所有模块路径前缀. */
|
21
|
+
export declare const KG_APP_PREFIXS: Array<KG_APP_PREFIX>;
|
22
|
+
/**
|
23
|
+
* 表单控件类型.
|
24
|
+
* @see VarVariableConfig.ctrl_prop
|
25
|
+
* @see IKgVariableConfigProps
|
26
|
+
*/
|
27
|
+
export declare const enum KG_FORM_ITEM_TYPE {
|
28
|
+
/** 文本. */
|
29
|
+
INPUT = "INPUT",
|
30
|
+
/** 密码. */
|
31
|
+
INPUT_PASSWORD = "INPUT_PASSWORD",
|
32
|
+
/** 数字. */
|
33
|
+
INPUT_NUMBER = "INPUT_NUMBER",
|
34
|
+
/** 多行文本. */
|
35
|
+
TEXT_AREA = "TEXT_AREA",
|
36
|
+
/** 多选框. */
|
37
|
+
CHECKBOX = "CHECKBOX",
|
38
|
+
/**
|
39
|
+
* 多选框列表.
|
40
|
+
* 配置属性参见 {@link IKgVariableConfigProps.CHECKBOX_GROUP}.
|
41
|
+
*/
|
42
|
+
CHECKBOX_GROUP = "CHECKBOX_GROUP",
|
43
|
+
/**
|
44
|
+
* 单选框列表.
|
45
|
+
* 配置属性参见 {@link IKgVariableConfigProps.RADIO_GROUP}.
|
46
|
+
*/
|
47
|
+
RADIO_GROUP = "RADIO_GROUP",
|
48
|
+
/** 开关. */
|
49
|
+
SWITCH = "SWITCH",
|
50
|
+
/** 下拉列表单选. */
|
51
|
+
SELECT = "SELECT",
|
52
|
+
/** 下拉列表多选. */
|
53
|
+
SELECT_MULTIPLE = "SELECT_MULTIPLE",
|
54
|
+
/** 年月日, 2020-05-01. */
|
55
|
+
DATE_DATE = "DATE_DATE",
|
56
|
+
/** 年月日的范围, [DATE_DATE, DATE_DATE] */
|
57
|
+
DATE_DATE_RANGE = "DATE_DATE_RANGE",
|
58
|
+
/** 时分秒, 11:59:59. */
|
59
|
+
DATE_TIME = "DATE_TIME",
|
60
|
+
/** 时分秒的范围, [DATE_TIME, DATE_TIME]. */
|
61
|
+
DATE_TIME_RANGE = "DATE_TIME_RANGE",
|
62
|
+
/** 年月日时分秒, 2020-05-01 11:59:59. */
|
63
|
+
DATE_DATETIME = "DATE_DATETIME",
|
64
|
+
/** 年月日时分秒的范围, [DATE_DATETIME, DATE_DATETIME] */
|
65
|
+
DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE",
|
66
|
+
DATE_WEEK = "DATE_WEEK",
|
67
|
+
DATE_MONTH = "DATE_MONTH",
|
68
|
+
DATE_YEAR = "DATE_YEAR",
|
69
|
+
/** 文件上传按钮. */
|
70
|
+
BUTTON_UPLOAD = "BUTTON_UPLOAD"
|
71
|
+
}
|
72
|
+
/** 表单控件所处环境. */
|
73
|
+
export declare const enum KG_FORM_CONTEXT {
|
74
|
+
/** 位于查询条件. */
|
75
|
+
SEARCH = "SEARCH",
|
76
|
+
/** 位于表单. */
|
77
|
+
SUBMIT = "SUBMIT",
|
78
|
+
/** 位于表格内的表单. */
|
79
|
+
TABLE = "TABLE"
|
80
|
+
}
|
81
|
+
/**
|
82
|
+
* 表格单元格的显示类型.
|
83
|
+
* @see VarGridDetail.display_type_properties
|
84
|
+
* @see IKgGridDetailDisplayTypeProperties
|
85
|
+
*/
|
86
|
+
export declare const enum KG_TABLE_CELL_DISPLAY_TYPE {
|
87
|
+
/** 布尔数据, 使用 KgYesOrNo 组件显示. */
|
88
|
+
YN = "YN",
|
89
|
+
/** 枚举数据, 使用 Tag 组件显示. */
|
90
|
+
ENUM = "ENUM",
|
91
|
+
/** 进度条, 使用 KgProgressA 组件显示. */
|
92
|
+
PROGRESS = "PROGRESS",
|
93
|
+
/** 文件大小, 将以字节(byte)为单位的数字格式化显示(XXX MB, XXX GB, ...). */
|
94
|
+
FILE_SIZE = "FILE_SIZE",
|
95
|
+
/** 显示为超链接, 点击打开更新弹窗. */
|
96
|
+
UPDATE_LINK = "UPDATE_LINK",
|
97
|
+
/** 显示为超链接, 点击跳转到其他路由. */
|
98
|
+
ROUTE_LINK = "ROUTE_LINK",
|
99
|
+
/**
|
100
|
+
* 显示描述字段.
|
101
|
+
* 假如原字段为 'status', 则实际上会显示描述字段 'status_dsc(或者 statusDsc)' 的值.
|
102
|
+
* 默认, 描述字段是原字段加上 '_dsc(或者 Dsc)' 后缀, 比如原字段为 'status', 则描述字段为 'status_dsc(或者 statusDsc)'.
|
103
|
+
* 可以通过 {@link IKgGridDetailDisplayTypeProperties.DESC.dscFieldName} 设置自定义的描述字段名.
|
104
|
+
*/
|
105
|
+
DESC = "DESC"
|
106
|
+
}
|
107
|
+
/** 按钮类型. */
|
108
|
+
export declare const enum KG_BUTTON_TYPE {
|
109
|
+
/** 查询. */
|
110
|
+
SEARCH = "SEARCH",
|
111
|
+
/** 创建. */
|
112
|
+
CREATE = "CREATE",
|
113
|
+
/** 更新. */
|
114
|
+
UPDATE = "UPDATE",
|
115
|
+
/** 复制. */
|
116
|
+
COPY = "COPY",
|
117
|
+
/** 删除. */
|
118
|
+
DELETE = "DELETE",
|
119
|
+
/** 导入. */
|
120
|
+
IMPORT = "IMPORT",
|
121
|
+
/** 下载导入模板. */
|
122
|
+
IMPORT_TEMPLATE = "IMPORT_TEMPLATE",
|
123
|
+
/** 导出. */
|
124
|
+
EXPORT = "EXPORT",
|
125
|
+
/** 其他. */
|
126
|
+
OTHER = "OTHER"
|
127
|
+
}
|
128
|
+
/** 按钮颜色. */
|
129
|
+
export declare const enum KG_BUTTON_COLOR {
|
130
|
+
/** 错误. */
|
131
|
+
DANGER = "DANGER",
|
132
|
+
/** 警告. */
|
133
|
+
WARN = "WARN"
|
134
|
+
}
|
135
|
+
/** 按钮显示方式. */
|
136
|
+
export declare const enum KG_BUTTON_DISPLAY_TYPE {
|
137
|
+
/** 按钮依次排列在一横排. */
|
138
|
+
DEFAULT = "DEFAULT",
|
139
|
+
/** 显示为下拉的菜单列表. */
|
140
|
+
SELECT = "SELECT"
|
141
|
+
}
|
142
|
+
/** 表单显示方式. */
|
143
|
+
export declare const enum KG_VAR_SUBMIT__DISPLAY_TYPE {
|
144
|
+
/** 弹窗. */
|
145
|
+
MODAL = "MODAL",
|
146
|
+
/** 抽屉. */
|
147
|
+
DRAWER = "DRAWER",
|
148
|
+
/** 在表格内. */
|
149
|
+
TABLE = "TABLE"
|
150
|
+
}
|
151
|
+
/** 表单布局方式. */
|
152
|
+
export declare const enum KG_VAR_SUBMIT__LAYOUT {
|
153
|
+
/** 垂直. */
|
154
|
+
VERTICAL = "vertical",
|
155
|
+
/** 水平. */
|
156
|
+
HORIZONTAL = "horizontal"
|
157
|
+
}
|
158
|
+
/** 变量表单输入验证: 数据类型. */
|
159
|
+
export declare const enum KG_VAR_INPUT__DATA_TYPE {
|
160
|
+
/** 数字(整数, 小数). */
|
161
|
+
NUMBER = "NUMBER"
|
162
|
+
}
|
163
|
+
/** 定制级别. */
|
164
|
+
export declare const enum KG_CUSTOM_LEVEL {
|
165
|
+
/** 系统. */
|
166
|
+
L0 = 0,
|
167
|
+
/** 用户. */
|
168
|
+
L10 = 10
|
169
|
+
}
|
170
|
+
/** 下拉列表数据中值的类型. */
|
171
|
+
export declare const enum KG_POSSIBILITY_DATA_TYPE {
|
172
|
+
STRING = "string",
|
173
|
+
NUMBER = "number",
|
174
|
+
BOOLEAN = "boolean"
|
175
|
+
}
|
176
|
+
/** 宽度单位. */
|
177
|
+
export declare const enum KG_WIDTH_UNIT {
|
178
|
+
/** 网格. */
|
179
|
+
SPAN = "SPAN",
|
180
|
+
/** 像素. */
|
181
|
+
PX = "PX"
|
182
|
+
}
|
183
|
+
/** EXCEL 文件后缀. */
|
184
|
+
export declare const enum KG_EXCEL_SUFFIX {
|
185
|
+
XLS = "xls",
|
186
|
+
XLSX = "xlsx"
|
187
|
+
}
|
188
|
+
/** 系统描述表中的键. */
|
189
|
+
export declare const enum KG_DESCRIPTION_CODE_NAME {
|
190
|
+
/** 是否. */
|
191
|
+
YN = "yn",
|
192
|
+
/** 表单布局方式. */
|
193
|
+
VAR_SUBMIT_LAYOUT = "var_submit_layout",
|
194
|
+
/** 网格布局可选的列. */
|
195
|
+
VAR_SPAN = "var_span",
|
196
|
+
/** 按钮显示样式. */
|
197
|
+
VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type",
|
198
|
+
/** 宽度单位. */
|
199
|
+
VAR_WIDTH_UNIT = "var_width_unit"
|
200
|
+
}
|
201
|
+
/** 高级查询的操作符. */
|
202
|
+
export declare enum KG_DYNAMIC_QUERY_OPERATOR {
|
203
|
+
/** 等于. */
|
204
|
+
EQ = "eq",
|
205
|
+
/** 不等于. */
|
206
|
+
NE = "ne",
|
207
|
+
/** 大于. */
|
208
|
+
GT = "gt",
|
209
|
+
/** 小于. */
|
210
|
+
LT = "lt",
|
211
|
+
/** 大于等于. */
|
212
|
+
GTE = "gte",
|
213
|
+
/** 小于等于. */
|
214
|
+
LTE = "lte",
|
215
|
+
/** 以之开始. */
|
216
|
+
START_WITH = "start",
|
217
|
+
/** 以之结束. */
|
218
|
+
END_WITH = "end",
|
219
|
+
/** 包含. */
|
220
|
+
CONTAIN = "contain",
|
221
|
+
/** 属于. */
|
222
|
+
IN = "in",
|
223
|
+
/** 范围之内. */
|
224
|
+
BETWEEN = "between"
|
225
|
+
}
|
226
|
+
/** 请求头部. */
|
227
|
+
export declare enum KG_HTTP_HEADERS {
|
228
|
+
/** 是否启用高级查询. */
|
229
|
+
KG_DYNAMIC_QUERY = "Kg-Dynamic-Query",
|
230
|
+
/** 拼接后的查询 SQL: WHERE + ORDER BY. */
|
231
|
+
KG_QUERY_SQL = "Kg-Query-Sql",
|
232
|
+
/** 拼接后的查询 SQL: WHERE. */
|
233
|
+
KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql",
|
234
|
+
/** 拼接后的查询 SQL: ORDER BY. */
|
235
|
+
KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql",
|
236
|
+
/**
|
237
|
+
* 高级查询时, 每个查询字段的操作符(=,>,<...).
|
238
|
+
* 是一个 JSON 字符串, 由后端进行解析.
|
239
|
+
*/
|
240
|
+
KG_QUERY_OPERATOR = "Kg-Query-Operator"
|
241
|
+
}
|
242
|
+
/** 特殊属性:请求返回的原始响应数据. */
|
243
|
+
export declare const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
244
|
+
/** 模块菜单的临时ID:数据管理. */
|
245
|
+
export declare const KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER";
|
246
|
+
/** 模块菜单的临时ID:仓库管理. */
|
247
|
+
export declare const KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER";
|
248
|
+
/** 模块菜单的临时ID:WCS. */
|
249
|
+
export declare const KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS";
|
250
|
+
/** 模块菜单的临时ID:系统配置. */
|
251
|
+
export declare const KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS";
|
252
|
+
/** 模块菜单的临时ID:PDA. */
|
253
|
+
export declare const KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
|
@@ -0,0 +1,170 @@
|
|
1
|
+
import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
|
2
|
+
/** 移除事件监听函数. */
|
3
|
+
export declare type IRemoveEventListenerHandler = () => void;
|
4
|
+
export declare type IKgEventCb = {
|
5
|
+
/** 是否只会触发一次. */
|
6
|
+
once?: boolean;
|
7
|
+
/** 是否已经触发过一次了. */
|
8
|
+
invoked?: boolean;
|
9
|
+
};
|
10
|
+
/** 菜单. */
|
11
|
+
export interface Menu {
|
12
|
+
id: string;
|
13
|
+
app: string | null;
|
14
|
+
name: string;
|
15
|
+
title: string;
|
16
|
+
path?: string;
|
17
|
+
icon?: string;
|
18
|
+
hideMenu?: boolean;
|
19
|
+
children?: Menu[];
|
20
|
+
[key: string]: any;
|
21
|
+
}
|
22
|
+
/** 语言. */
|
23
|
+
export declare type IKgLocale = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko';
|
24
|
+
/**
|
25
|
+
* 按钮确认弹窗的参数.
|
26
|
+
* <p>对应于 {@link VarButton.modal_props} 字段.</p>
|
27
|
+
*/
|
28
|
+
export declare type IKgButtonModalProps = ModalFuncProps & {
|
29
|
+
/** 是否隐藏取消按钮. */
|
30
|
+
kgHideCancelButton?: boolean;
|
31
|
+
};
|
32
|
+
/**
|
33
|
+
* 提交弹窗的参数.
|
34
|
+
* <p>对应于 {@link VarSubmitConfig.props} 字段.</p>
|
35
|
+
*/
|
36
|
+
export interface IKgSubmitConfigProps {
|
37
|
+
/** 创建时, 确认按钮的文本对应的变量名. */
|
38
|
+
'footer.ok-button.text-var-name.creating'?: string;
|
39
|
+
/** 更新时, 确认按钮的文本对应的变量名. */
|
40
|
+
'footer.ok-button.text-var-name.updating'?: string;
|
41
|
+
/** 复制时, 确认按钮的文本对应的变量名. */
|
42
|
+
'footer.ok-button.text-var-name.copying'?: string;
|
43
|
+
/** 删除时, 确认按钮的文本对应的变量名. */
|
44
|
+
'footer.ok-button.text-var-name.deleting'?: string;
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* 表单控件的参数.
|
48
|
+
* <p>对应于 {@link VarVariableConfig.ctrl_prop} 字段, 根据表单控件的类型, 设置额外的参数.</p>
|
49
|
+
* @see VarVariableConfig.ctrl_prop
|
50
|
+
* @see KG_FORM_ITEM_TYPE
|
51
|
+
*/
|
52
|
+
export interface IKgVariableConfigProps {
|
53
|
+
DATE_RANGE: {
|
54
|
+
/**
|
55
|
+
* <p>是否允许为空.</p>
|
56
|
+
* <p>参考 <a href="https://3x.antdv.com/components/date-picker#RangePicker">https://3x.antdv.com/components/date-picker#RangePicker</a>.</p>
|
57
|
+
*
|
58
|
+
* @default [false, false]
|
59
|
+
*/
|
60
|
+
allowEmpty?: [boolean, boolean];
|
61
|
+
};
|
62
|
+
TEXT_AREA: {
|
63
|
+
/**
|
64
|
+
* 文本框的高度.
|
65
|
+
* @default 5
|
66
|
+
*/
|
67
|
+
rows?: number;
|
68
|
+
};
|
69
|
+
CHECKBOX_GROUP: {
|
70
|
+
/**
|
71
|
+
* 数据项的宽度.
|
72
|
+
* @default 24
|
73
|
+
*/
|
74
|
+
span?: number;
|
75
|
+
/** 要排除哪些值. */
|
76
|
+
excludeValues?: Array<any>;
|
77
|
+
};
|
78
|
+
RADIO_GROUP: {
|
79
|
+
/**
|
80
|
+
* 数据项的宽度.
|
81
|
+
* @default 24
|
82
|
+
*/
|
83
|
+
span?: number;
|
84
|
+
};
|
85
|
+
SELECT: {
|
86
|
+
/**
|
87
|
+
* 是否允许清空.
|
88
|
+
* @default true
|
89
|
+
*/
|
90
|
+
allowClear?: boolean;
|
91
|
+
};
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* 对应于 {@link VarGridDetail.display_type_properties} 字段, 根据显示类型, 设置额外的参数.
|
95
|
+
* @see VarGridDetail.display_type_properties
|
96
|
+
* @see KG_TABLE_CELL_DISPLAY_TYPE
|
97
|
+
*/
|
98
|
+
export interface IKgGridDetailDisplayTypeProps {
|
99
|
+
YN: {
|
100
|
+
/**
|
101
|
+
* 显示为'是'的值.
|
102
|
+
* @default 1
|
103
|
+
*/
|
104
|
+
yValue?: any;
|
105
|
+
/**
|
106
|
+
* 显示为'否'的值.
|
107
|
+
* @default 0
|
108
|
+
*/
|
109
|
+
nValue?: any;
|
110
|
+
/**
|
111
|
+
* 是否将 null/undefined 当成 false.
|
112
|
+
* @default false
|
113
|
+
*/
|
114
|
+
nilAsFalse?: boolean;
|
115
|
+
};
|
116
|
+
/** @deprecated 请使用 {@link IKgGridDetailDisplayTypeProps.DESC}. */
|
117
|
+
ENUM: Array<{
|
118
|
+
/** 变量名称. */
|
119
|
+
varName: string;
|
120
|
+
/** 数据. */
|
121
|
+
value: any;
|
122
|
+
/**
|
123
|
+
* 颜色.
|
124
|
+
* @default 'default'
|
125
|
+
*/
|
126
|
+
color?: string;
|
127
|
+
}>;
|
128
|
+
PROGRESS: {
|
129
|
+
/** 左侧数值对应的列. */
|
130
|
+
leftColumn: string;
|
131
|
+
/** 右侧数值对应的列. */
|
132
|
+
rightColumn: string;
|
133
|
+
/**
|
134
|
+
* 右侧文本的宽度. 例如: "100px".
|
135
|
+
* @default 'auto'
|
136
|
+
*/
|
137
|
+
textWidth?: 'auto' | string;
|
138
|
+
};
|
139
|
+
FILE_SIZE: {};
|
140
|
+
UPDATE_LINK: {};
|
141
|
+
ROUTE_LINK: {
|
142
|
+
/** 要跳转的路由地址. */
|
143
|
+
path: string;
|
144
|
+
};
|
145
|
+
DESC: {
|
146
|
+
/**
|
147
|
+
* 对应的描述字段的名称.
|
148
|
+
* @default 原字段 + '_dsc', 原字段 + 'Dsc'
|
149
|
+
*/
|
150
|
+
dscFieldName?: string;
|
151
|
+
/**
|
152
|
+
* 是否显示为一个 Tag 标签.
|
153
|
+
* @default false
|
154
|
+
*/
|
155
|
+
isTag?: boolean;
|
156
|
+
/**
|
157
|
+
* 如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 true, 则该属性用来定义每个值对应的标签颜色分别是什么.
|
158
|
+
* 如果 {@link IKgGridDetailDisplayTypeProps.DESC.isTag} 为 false, 则该属性会被忽略.
|
159
|
+
*/
|
160
|
+
tagColors?: Array<{
|
161
|
+
/** 值. */
|
162
|
+
value: any;
|
163
|
+
/**
|
164
|
+
* 颜色.
|
165
|
+
* @default 'default'
|
166
|
+
*/
|
167
|
+
color?: string;
|
168
|
+
}>;
|
169
|
+
};
|
170
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { InjectionKey } from 'vue';
|
2
|
+
/** 界面标识. */
|
3
|
+
export declare const KG_DI_FORM_ID: InjectionKey<string>;
|
4
|
+
/** 宿主界面标识. */
|
5
|
+
export declare const KG_DI_HOST_FORM_ID: InjectionKey<string>;
|
6
|
+
/** 变量名称. */
|
7
|
+
export declare const KG_DI_VAR_NAME: InjectionKey<string>;
|
8
|
+
/** 变量查找编号. */
|
9
|
+
export declare const KG_DI_LOOKUP_ID: InjectionKey<string>;
|