@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,58 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import './KgTable.Info.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/**
|
5
|
+
* 行数.
|
6
|
+
* @default 0
|
7
|
+
*/
|
8
|
+
kgTotal: {
|
9
|
+
type: PropType<number>;
|
10
|
+
default: number;
|
11
|
+
};
|
12
|
+
/** 是否显示'清空'按钮. */
|
13
|
+
kgShowClearCheck: PropType<boolean>;
|
14
|
+
/** 是否显示'清空表格'按钮. */
|
15
|
+
kgShowClearTable: PropType<boolean>;
|
16
|
+
/** 是否禁用. */
|
17
|
+
kgDisabled: PropType<boolean>;
|
18
|
+
/** 是否显示'定位'按钮. */
|
19
|
+
kgShowLocate: PropType<boolean>;
|
20
|
+
};
|
21
|
+
declare const _default: import("vue").DefineComponent<{
|
22
|
+
/**
|
23
|
+
* 行数.
|
24
|
+
* @default 0
|
25
|
+
*/
|
26
|
+
kgTotal: {
|
27
|
+
type: PropType<number>;
|
28
|
+
default: number;
|
29
|
+
};
|
30
|
+
/** 是否显示'清空'按钮. */
|
31
|
+
kgShowClearCheck: PropType<boolean>;
|
32
|
+
/** 是否显示'清空表格'按钮. */
|
33
|
+
kgShowClearTable: PropType<boolean>;
|
34
|
+
/** 是否禁用. */
|
35
|
+
kgDisabled: PropType<boolean>;
|
36
|
+
/** 是否显示'定位'按钮. */
|
37
|
+
kgShowLocate: PropType<boolean>;
|
38
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
39
|
+
/**
|
40
|
+
* 行数.
|
41
|
+
* @default 0
|
42
|
+
*/
|
43
|
+
kgTotal: {
|
44
|
+
type: PropType<number>;
|
45
|
+
default: number;
|
46
|
+
};
|
47
|
+
/** 是否显示'清空'按钮. */
|
48
|
+
kgShowClearCheck: PropType<boolean>;
|
49
|
+
/** 是否显示'清空表格'按钮. */
|
50
|
+
kgShowClearTable: PropType<boolean>;
|
51
|
+
/** 是否禁用. */
|
52
|
+
kgDisabled: PropType<boolean>;
|
53
|
+
/** 是否显示'定位'按钮. */
|
54
|
+
kgShowLocate: PropType<boolean>;
|
55
|
+
}>>, {
|
56
|
+
kgTotal: number;
|
57
|
+
}>;
|
58
|
+
export default _default;
|
package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save";
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgClose"[], "kgClose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
3
|
+
onKgClose?: ((...args: any[]) => any) | undefined;
|
4
|
+
}, {}>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import './KgTable.Setting.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
kgDisabled: {
|
5
|
+
type: PropType<boolean>;
|
6
|
+
default: undefined;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
10
|
+
kgDisabled: {
|
11
|
+
type: PropType<boolean>;
|
12
|
+
default: undefined;
|
13
|
+
};
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
kgDisabled: {
|
16
|
+
type: PropType<boolean>;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
}>>, {
|
20
|
+
kgDisabled: boolean;
|
21
|
+
}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { VarGridDetail } from '../../../../apis/WMS/models';
|
3
|
+
export declare type IUseServices = {
|
4
|
+
/**
|
5
|
+
* 用于表格的列下拉列表, 根据关键字搜索某列, 如果匹配就显示该列, 否则隐藏该列.
|
6
|
+
* 匹配时忽略大小写.
|
7
|
+
* @param varGridDetail
|
8
|
+
* @param key 关键字.
|
9
|
+
*/
|
10
|
+
filterVarGridDetailByKey: (varGridDetail: VarGridDetail, key?: string | null) => boolean;
|
11
|
+
};
|
12
|
+
export declare function _useServices(): IUseServices;
|
13
|
+
/** 监控表格列的下拉列表的尺寸变化, 从而调整位置, 防止遮盖. */
|
14
|
+
export declare function _useObserveMenuColumns(isMenuItemColumnsVisible: Ref<boolean>): void;
|
package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
/** 主页面的页面标识. */
|
4
|
+
hostFormID: {
|
5
|
+
type: PropType<string>;
|
6
|
+
required: boolean;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<{
|
10
|
+
/** 主页面的页面标识. */
|
11
|
+
hostFormID: {
|
12
|
+
type: PropType<string>;
|
13
|
+
required: boolean;
|
14
|
+
};
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
|
+
/** 主页面的页面标识. */
|
17
|
+
hostFormID: {
|
18
|
+
type: PropType<string>;
|
19
|
+
required: boolean;
|
20
|
+
};
|
21
|
+
}>>, {}>;
|
22
|
+
export default _default;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig";
|
3
|
+
export declare const getProps: () => {
|
4
|
+
hostFormID: {
|
5
|
+
type: PropType<string>;
|
6
|
+
required: boolean;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
export declare type IKgTableSettingConfigModalVarGridConfigProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
11
|
+
hostFormID: {
|
12
|
+
type: PropType<string>;
|
13
|
+
required: boolean;
|
14
|
+
};
|
15
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
16
|
+
hostFormID: {
|
17
|
+
type: PropType<string>;
|
18
|
+
required: boolean;
|
19
|
+
};
|
20
|
+
}>>, {}>;
|
21
|
+
export default _default;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgTable.Setting.ConfigModal.VarGridMaster.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/** 主页面的页面标识. */
|
5
|
+
hostFormID: {
|
6
|
+
type: PropType<string>;
|
7
|
+
required: boolean;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
export declare type IKgTableSettingConfigModalVarGridMasterProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
11
|
+
declare const _default: import("vue").DefineComponent<{
|
12
|
+
/** 主页面的页面标识. */
|
13
|
+
hostFormID: {
|
14
|
+
type: PropType<string>;
|
15
|
+
required: boolean;
|
16
|
+
};
|
17
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
18
|
+
/** 主页面的页面标识. */
|
19
|
+
hostFormID: {
|
20
|
+
type: PropType<string>;
|
21
|
+
required: boolean;
|
22
|
+
};
|
23
|
+
}>>, {}>;
|
24
|
+
export default _default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ColumnsType } from 'ant-design-vue/es/table';
|
2
|
+
import { Ref, UnwrapRef } from 'vue';
|
3
|
+
import { VarGridDetail } from '../../../../../apis/WMS/models';
|
4
|
+
export declare type IUseTransferColumns = {
|
5
|
+
/** 左侧表格的列. */
|
6
|
+
leftColumns: () => ColumnsType<VarGridDetail>;
|
7
|
+
/** 右侧表格的列. */
|
8
|
+
rightColumns: () => ColumnsType<VarGridDetail>;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
*
|
12
|
+
* @param hostFormID 宿主页面标识.
|
13
|
+
* @param varGridDetails
|
14
|
+
*/
|
15
|
+
export declare function _useTransferColumns(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseTransferColumns;
|
16
|
+
export declare type IUseDragRow = {};
|
17
|
+
/**
|
18
|
+
*
|
19
|
+
* @param hostFormID 宿主页面标识.
|
20
|
+
* @param varGridDetails
|
21
|
+
* @param transferRightRows
|
22
|
+
*/
|
23
|
+
export declare function _useDragRow(hostFormID: string | undefined, varGridDetails: Ref<UnwrapRef<Array<VarGridDetail>>>, transferRightRows: Ref<UnwrapRef<Array<VarGridDetail>>>): IUseDragRow;
|
package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import '../KgTable.Setting.less';
|
3
|
+
import './KgTable.Setting.ConfigModal.less';
|
4
|
+
export declare const getProps: () => {
|
5
|
+
visible: PropType<boolean>;
|
6
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
7
|
+
/** 主页面的页面标识. */
|
8
|
+
hostFormID: {
|
9
|
+
type: PropType<string>;
|
10
|
+
required: boolean;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
export declare type IKgTableSettingConfigModalProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
14
|
+
declare const _default: import("vue").DefineComponent<{
|
15
|
+
visible: PropType<boolean>;
|
16
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
17
|
+
/** 主页面的页面标识. */
|
18
|
+
hostFormID: {
|
19
|
+
type: PropType<string>;
|
20
|
+
required: boolean;
|
21
|
+
};
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
23
|
+
visible: PropType<boolean>;
|
24
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
25
|
+
/** 主页面的页面标识. */
|
26
|
+
hostFormID: {
|
27
|
+
type: PropType<string>;
|
28
|
+
required: boolean;
|
29
|
+
};
|
30
|
+
}>> & {
|
31
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
32
|
+
}, {}>;
|
33
|
+
export default _default;
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
2
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
3
|
+
import { IKgTableAfterSearchCb, IKgTableBeforeSearchCb, IKgTableBeforeSetDatasCb, IKgTableReadyCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
|
4
|
+
export declare type IUseKgTable = {
|
5
|
+
formID: string;
|
6
|
+
/** 状态数据. */
|
7
|
+
store: IKgTableStore;
|
8
|
+
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
9
|
+
isReady: ComputedRef<ReturnType<IKgTableStore['getIsReady']>>;
|
10
|
+
/** 是否正在查询. */
|
11
|
+
isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRetrieving']>>;
|
12
|
+
/** 当前勾选的第一行. */
|
13
|
+
selectedFirstRow: ComputedRef<ReturnType<IKgTableStore['getSelectedFirstRow']>>;
|
14
|
+
/** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
15
|
+
selectedRow: ComputedRef<ReturnType<IKgTableStore['getSelectedRow']>>;
|
16
|
+
/** 当前勾选的所有行. */
|
17
|
+
selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
|
18
|
+
/** 是否支持多选. */
|
19
|
+
isMultiSelect: Ref<boolean>;
|
20
|
+
/** 是否自动查询. */
|
21
|
+
isAutoSearch: Ref<boolean>;
|
22
|
+
/** 是否已经查询过一次了. */
|
23
|
+
isSearched: Ref<boolean>;
|
24
|
+
/** 是否显示底部左侧. */
|
25
|
+
isShowBottomLeft: Ref<boolean>;
|
26
|
+
/** 是否显示底部右侧. */
|
27
|
+
isShowBottomRight: Ref<boolean>;
|
28
|
+
/** 主键字段. */
|
29
|
+
id: Ref<string>;
|
30
|
+
/** 所有分页选项. */
|
31
|
+
pageSizeOptions: Ref<Array<number>>;
|
32
|
+
/** 当前分页选项. */
|
33
|
+
pageSizeOption: Ref<number>;
|
34
|
+
/** 查询条件的界面标识. */
|
35
|
+
profileFormID: Ref<string>;
|
36
|
+
/**
|
37
|
+
* 事件: ready, 配置初始完成, 组件渲染完成.
|
38
|
+
* @param cb 回调函数.
|
39
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
40
|
+
* */
|
41
|
+
onReady(cb: IKgTableReadyCb, once?: boolean): IRemoveEventListenerHandler;
|
42
|
+
/**
|
43
|
+
* 事件: 双击某行.
|
44
|
+
* @param cb 回调函数.
|
45
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
46
|
+
*/
|
47
|
+
onRowDoubleClick(cb: IKgTableRowDoubleClickCb, once?: boolean): IRemoveEventListenerHandler;
|
48
|
+
/**
|
49
|
+
* 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
50
|
+
* @param cb 回调函数.
|
51
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
52
|
+
*/
|
53
|
+
onBeforeSearch(cb: IKgTableBeforeSearchCb, once?: boolean): IRemoveEventListenerHandler;
|
54
|
+
/**
|
55
|
+
* 事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
56
|
+
* @param cb 回调函数.
|
57
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
58
|
+
*/
|
59
|
+
onBeforeSetDatas(cb: IKgTableBeforeSetDatasCb, once?: boolean): IRemoveEventListenerHandler;
|
60
|
+
/**
|
61
|
+
* 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
62
|
+
* @param cb 回调函数.
|
63
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
64
|
+
*/
|
65
|
+
onAfterSearch(cb: IKgTableAfterSearchCb, once?: boolean): IRemoveEventListenerHandler;
|
66
|
+
/**
|
67
|
+
* 事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
68
|
+
* @param cb 回调函数.
|
69
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
70
|
+
* @deprecated 已废弃, 请使用 onBeforeSearch() 方法.
|
71
|
+
*/
|
72
|
+
onBeforeRetrieve(cb: IKgTableBeforeSearchCb, once?: boolean): IRemoveEventListenerHandler;
|
73
|
+
/**
|
74
|
+
* 事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
75
|
+
* @param cb 回调函数.
|
76
|
+
* @param once 是否只会触发一次. 默认为 undefined.
|
77
|
+
* @deprecated 已废弃, 请使用 onAfterSearch() 方法.
|
78
|
+
*/
|
79
|
+
onRetrieve(cb: IKgTableAfterSearchCb, once?: boolean): IRemoveEventListenerHandler;
|
80
|
+
};
|
81
|
+
/**
|
82
|
+
* @param formID 界面标识.
|
83
|
+
*/
|
84
|
+
export declare function useKgTable(formID?: string | null): IUseKgTable;
|
@@ -0,0 +1,157 @@
|
|
1
|
+
import { Key } from 'ant-design-vue/lib/_util/type';
|
2
|
+
import { StoreDefinition } from 'pinia';
|
3
|
+
import { Ref } from 'vue';
|
4
|
+
import { IPage } from '../../apis/WMS/models';
|
5
|
+
import { IKgEventCb } from '../../consts';
|
6
|
+
import { IKgTableRow, IKgTableRowHeight } from './index.vm';
|
7
|
+
/**
|
8
|
+
* 事件类型.
|
9
|
+
* 'ready': 就绪, 配置初始完成, 组件渲染完成
|
10
|
+
* 'rowDoubleClick': 双击某行
|
11
|
+
* 'beforeSearch': 即将发起查询请求, 如果返回 true 表示不会发起请求
|
12
|
+
* 'beforeSetDatas': 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
|
13
|
+
* 'afterSearch': 查询请求成功, 表格数据已经赋值, 表格状态已经更新
|
14
|
+
*/
|
15
|
+
export declare type IKgTableEvent = 'ready' | 'rowDoubleClick' | 'beforeSearch' | 'beforeSetDatas' | 'afterSearch';
|
16
|
+
/** 事件监听函数: ready. */
|
17
|
+
export declare type IKgTableReadyParam = {};
|
18
|
+
export declare type IKgTableReadyCb = ((param: IKgTableReadyParam) => Promise<boolean>) & IKgEventCb;
|
19
|
+
/** 事件监听函数: rowDoubleClick. */
|
20
|
+
export declare type IKgTableRowDoubleClickParam = {
|
21
|
+
/** 双击的行. */
|
22
|
+
row: IKgTableRow;
|
23
|
+
};
|
24
|
+
export declare type IKgTableRowDoubleClickCb = ((param: IKgTableRowDoubleClickParam) => Promise<boolean>) & IKgEventCb;
|
25
|
+
/** 事件监听函数: beforeSearch. */
|
26
|
+
export declare type IKgTableBeforeSearchCbParam = {
|
27
|
+
/** 查询接口请求参数. */
|
28
|
+
params: Record<string, any>;
|
29
|
+
/** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
|
30
|
+
response: Ref;
|
31
|
+
};
|
32
|
+
export declare type IKgTableBeforeSearchCb = ((param: IKgTableBeforeSearchCbParam) => Promise<boolean>) & IKgEventCb;
|
33
|
+
/** 事件监听函数: beforeSetDatas. */
|
34
|
+
export declare type IKgTableBeforeSetDatasCbParam = {
|
35
|
+
/** 列表数据. */
|
36
|
+
datas: Ref<Array<IKgTableRow>>;
|
37
|
+
/** 设置列表数据. */
|
38
|
+
setDatas(datas: Array<IKgTableRow>): void;
|
39
|
+
};
|
40
|
+
export declare type IKgTableBeforeSetDatasCb = ((param: IKgTableBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
|
41
|
+
/** 事件监听函数: afterSearch. */
|
42
|
+
export declare type IKgTableAfterSearchCbParam = {
|
43
|
+
/** 查询接口请求参数. */
|
44
|
+
params: Record<string, any>;
|
45
|
+
/** 接口返回的分页数据. */
|
46
|
+
response: IPage<IKgTableRow> | null | undefined;
|
47
|
+
/** 列表数据. */
|
48
|
+
datas: Ref<Array<IKgTableRow>>;
|
49
|
+
/**
|
50
|
+
* 设置列表数据的方法.
|
51
|
+
* 在事件的回调函数中, 可以直接调用该方法来手动设置列表数据, 该方法内部实际上就是调用的 kgTable.store.setDatas() 方法.
|
52
|
+
*/
|
53
|
+
setDatas<T = IKgTableRow>(datas: Array<T>): void;
|
54
|
+
};
|
55
|
+
export declare type IKgTableAfterSearchCb = ((param: IKgTableAfterSearchCbParam) => Promise<boolean>) & IKgEventCb;
|
56
|
+
export declare type IKgTableCbParam = IKgTableReadyParam | IKgTableRowDoubleClickParam | IKgTableBeforeSearchCbParam | IKgTableBeforeSetDatasCbParam | IKgTableAfterSearchCbParam;
|
57
|
+
export declare type IKgTableCb = IKgTableReadyCb | IKgTableRowDoubleClickCb | IKgTableBeforeSearchCb | IKgTableBeforeSetDatasCb | IKgTableAfterSearchCb;
|
58
|
+
export interface IKgTableState {
|
59
|
+
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
60
|
+
isReadyMap: Map<string, boolean>;
|
61
|
+
/** 列表数据. */
|
62
|
+
datasMap: Map<String, Array<any>>;
|
63
|
+
/** 勾选的行的主键. */
|
64
|
+
selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
|
65
|
+
/** 勾选的行. */
|
66
|
+
selectedRowsMap: Map<string, Array<any>>;
|
67
|
+
/**
|
68
|
+
* 是否已经查询过一次了.
|
69
|
+
* 如果表格禁用了自动查询, 当用户手动点击查询按钮后, 该属性会设置为 true,
|
70
|
+
* 如果表格启用了自动查询, 当第一次自动查询之后, 该属性会设置为 true.
|
71
|
+
*/
|
72
|
+
isSearchedMap: Map<string, boolean>;
|
73
|
+
/** 是否正在查询. */
|
74
|
+
isRetrievingMap: Map<string, boolean>;
|
75
|
+
/** 表格宽度. */
|
76
|
+
tableWidthMap: Map<string, number>;
|
77
|
+
/** 行高. */
|
78
|
+
rowHeightMap: Map<string, IKgTableRowHeight>;
|
79
|
+
/** 事件监听函数列表: ready. */
|
80
|
+
onReadyListenersMap: Map<string, Array<IKgTableReadyCb>>;
|
81
|
+
/** '双击某行'事件监听函数列表. */
|
82
|
+
rowDoubleClickListenersMap: Map<string, Array<IKgTableRowDoubleClickCb>>;
|
83
|
+
beforeSearchListenersMap: Map<string, Array<IKgTableBeforeSearchCb>>;
|
84
|
+
beforeSetDatasListenersMap: Map<string, Array<IKgTableBeforeSetDatasCb>>;
|
85
|
+
afterSearchListenersMap: Map<string, Array<IKgTableAfterSearchCb>>;
|
86
|
+
}
|
87
|
+
export declare type IKgTableStoreDefinition = StoreDefinition<'KgTable', IKgTableState, {
|
88
|
+
/** 是否就绪. */
|
89
|
+
getIsReady(): (formID: string | null | undefined) => boolean;
|
90
|
+
/** 列表数据. */
|
91
|
+
getDatas(): <T = IKgTableRow>(formID: string | null | undefined) => Array<T>;
|
92
|
+
/** 当前勾选的所有行的主键. */
|
93
|
+
getSelectedRowKeys(): (formID: string | null | undefined) => Ref<Array<Key>>;
|
94
|
+
/** 当前勾选的所有行. */
|
95
|
+
getSelectedRows(): (formID: string | null | undefined) => Array<IKgTableRow> | null;
|
96
|
+
/** 当前勾选的第一行. */
|
97
|
+
getSelectedFirstRow(): (formID: string | null | undefined) => IKgTableRow | null;
|
98
|
+
/** 当前勾选的唯一行. */
|
99
|
+
getSelectedRow(): (formID: string | null | undefined) => IKgTableRow | null;
|
100
|
+
/**
|
101
|
+
* 根据 formID 获取是否已经查询过一次了.
|
102
|
+
*/
|
103
|
+
getIsSearched(): (formID: string | null | undefined) => boolean;
|
104
|
+
getIsRetrieving(): (formID: string | null | undefined) => boolean | null;
|
105
|
+
getTableWidth(): (formID: string | null | undefined) => number | null;
|
106
|
+
getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
|
107
|
+
}, {
|
108
|
+
/**
|
109
|
+
* 清理数据.
|
110
|
+
* @param formID 页面标识.
|
111
|
+
*/
|
112
|
+
dispose(formID: string | null | undefined): void;
|
113
|
+
addEventListener(formID: string | null | undefined, event: IKgTableEvent, cb: IKgTableCb): void;
|
114
|
+
removeEventListener(formID: string | null | undefined, event: IKgTableEvent, cb?: IKgTableCb): void;
|
115
|
+
emit<T = IKgTableCbParam>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
|
116
|
+
/**
|
117
|
+
* 设置是否就绪.
|
118
|
+
* @param formID 界面标识.
|
119
|
+
* @param ready 是否就绪.
|
120
|
+
*/
|
121
|
+
setIsReady(formID: string | null | undefined, ready?: boolean): void;
|
122
|
+
/**
|
123
|
+
* 设置列表数据.
|
124
|
+
* @param formID 界面标识.
|
125
|
+
* @param datas 列表数据.
|
126
|
+
*/
|
127
|
+
setDatas<TRow = IKgTableRow>(formID: string | null | undefined, datas: Array<TRow>): void;
|
128
|
+
/**
|
129
|
+
* 设置勾选的行.
|
130
|
+
* @param formID 界面标识.
|
131
|
+
* @param selectedRows 勾选的行.
|
132
|
+
*/
|
133
|
+
setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
|
134
|
+
/**
|
135
|
+
* 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
|
136
|
+
* @param formID 界面标识.
|
137
|
+
*/
|
138
|
+
refreshSelectedRows(formID: string | null | undefined): void;
|
139
|
+
/**
|
140
|
+
* 设置某行的勾选状态.
|
141
|
+
* @param formID 界面标识.
|
142
|
+
* @param row 行.
|
143
|
+
* @param selected 是否勾选.
|
144
|
+
*/
|
145
|
+
setRowSelect(formID: string | null | undefined, row: IKgTableRow, selected: boolean): void;
|
146
|
+
setIsSearched(formID: string | null | undefined, value: boolean): void;
|
147
|
+
setIsRetrieving(formID: string | null | undefined, value: boolean): void;
|
148
|
+
setTableWidth(formID: string | null | undefined, value: number): void;
|
149
|
+
setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
|
150
|
+
/**
|
151
|
+
* 清空表格数据.
|
152
|
+
* @param formID 界面标识.
|
153
|
+
*/
|
154
|
+
clearDatas(formID: string | null | undefined): void;
|
155
|
+
}>;
|
156
|
+
export declare type IKgTableStore = ReturnType<IKgTableStoreDefinition>;
|
157
|
+
export declare const useKgTableStore: () => IKgTableStoreDefinition;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
2
|
+
import { VarGridDetail } from '../../apis/WMS/models';
|
3
|
+
export declare const FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
|
4
|
+
/** 行高. */
|
5
|
+
export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
|
6
|
+
/** 表格的行. */
|
7
|
+
export declare type IKgTableRow = {
|
8
|
+
id?: string | null;
|
9
|
+
[index: string]: any;
|
10
|
+
};
|
11
|
+
/** 查询方法参数. */
|
12
|
+
export interface IKgTableSearchParams {
|
13
|
+
/**
|
14
|
+
* 是否查询首页, 否则查询当页.
|
15
|
+
* @default false
|
16
|
+
*/
|
17
|
+
isSearchFirstPage?: boolean;
|
18
|
+
/**
|
19
|
+
* 是否保留行的勾选状态.
|
20
|
+
* @default false
|
21
|
+
*/
|
22
|
+
isPreserveSelectedRows?: boolean;
|
23
|
+
}
|
24
|
+
/** 插槽参数. */
|
25
|
+
export interface IKgTableSlotParams<TRow = IKgTableRow> {
|
26
|
+
bodyCell: {
|
27
|
+
column: ColumnType;
|
28
|
+
index: number;
|
29
|
+
record: TRow;
|
30
|
+
text: any | null;
|
31
|
+
value: any | null;
|
32
|
+
row: TRow;
|
33
|
+
varGridDetail: VarGridDetail | null;
|
34
|
+
defaultRender: JSX.Element;
|
35
|
+
};
|
36
|
+
expandedRowRender: {
|
37
|
+
record: IKgTableRow;
|
38
|
+
index: number;
|
39
|
+
indent: number;
|
40
|
+
expanded: boolean;
|
41
|
+
};
|
42
|
+
'summary.bodyCell': {
|
43
|
+
index: number;
|
44
|
+
column: ColumnType;
|
45
|
+
varGridDetail: VarGridDetail | null;
|
46
|
+
};
|
47
|
+
}
|
48
|
+
/** 表格的单元格所处环境. */
|
49
|
+
export declare const enum KG_TABLE_CELL_CONTEXT {
|
50
|
+
/** 表格的单元格. */
|
51
|
+
TABLE_CELL = "TABLE_CELL",
|
52
|
+
/** 表头的过滤器. */
|
53
|
+
TABLE_FILTER = "TABLE_FILTER"
|
54
|
+
}
|
55
|
+
/** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
|
56
|
+
export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
|
57
|
+
/** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
|
58
|
+
export declare const KG_TABLE_TD_MIN_WIDTH = 80;
|
59
|
+
/** 列的最大宽度. 拖动修改列的宽度时, 不允许超过该最大宽度. */
|
60
|
+
export declare const KG_TABLE_TD_MAX_WIDTH = 1920;
|
61
|
+
/** 勾选列的宽度. */
|
62
|
+
export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
|
63
|
+
/** 序号列的宽度. */
|
64
|
+
export declare const KG_TABLE_TD_INDEX_WIDTH = 40;
|
65
|
+
/** 在表格内创建时, 空白行的临时主键. */
|
66
|
+
export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID__";
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { IKgProps, IKgSlots } from './index.vm';
|
3
|
+
import './KgVar.less';
|
4
|
+
export declare const getProps: () => {
|
5
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
6
|
+
kgSlots: PropType<IKgSlots>;
|
7
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
8
|
+
kgProps: PropType<IKgProps>;
|
9
|
+
/** 是否使用灰色背景. */
|
10
|
+
KgBackgroundGray: PropType<boolean>;
|
11
|
+
};
|
12
|
+
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
14
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
15
|
+
kgSlots: PropType<IKgSlots>;
|
16
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
17
|
+
kgProps: PropType<IKgProps>;
|
18
|
+
/** 是否使用灰色背景. */
|
19
|
+
KgBackgroundGray: PropType<boolean>;
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
21
|
+
/** 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义. */
|
22
|
+
kgSlots: PropType<IKgSlots>;
|
23
|
+
/** 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义. */
|
24
|
+
kgProps: PropType<IKgProps>;
|
25
|
+
/** 是否使用灰色背景. */
|
26
|
+
KgBackgroundGray: PropType<boolean>;
|
27
|
+
}>>, {}>;
|
28
|
+
export default _default;
|