@kengic/vue 0.26.6-beta.5 → 0.26.6-beta.51
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/close-outlined-DMcSQWxQ.0f8277b6.mjs +8 -0
- package/dist/fullscreen-exit-outlined-X1iYkFc4.e97f2fdc.mjs +8 -0
- package/dist/fullscreen-exit-outlined.a75b82c2.mjs +8 -0
- package/dist/fullscreen-outlined-DDBrsRcy.e687ba4c.mjs +8 -0
- package/dist/fullscreen-outlined.c9ba7960.mjs +8 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +52160 -33447
- package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +51 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/ListByCodeNamesAndCodeValues.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/DescriptionController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +9 -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/VarVariableController/Delete.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +54 -0
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
- package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +11 -0
- package/dist/src/apis/WMS/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +1018 -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 +74 -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 +40 -0
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +40 -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 +40 -0
- package/dist/src/components/KgButton/index.d.ts +62 -0
- package/dist/src/components/KgButton/index.hooks.d.ts +183 -0
- package/dist/src/components/KgButton/index.store.d.ts +116 -0
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
- package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +43 -0
- package/dist/src/components/KgCanvas/KgCanvasContextMenu.d.ts +107 -0
- package/dist/src/components/KgCanvas/KgCanvasToolbarFullscreen.d.ts +8 -0
- package/dist/src/components/KgCanvas/KgCanvasTooltip.d.ts +31 -0
- package/dist/src/components/KgCanvas/index.d.ts +4 -0
- package/dist/src/components/KgCanvas/index.hooks.d.ts +67 -0
- package/dist/src/components/KgCanvas/index.store.d.ts +239 -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 +73 -0
- package/dist/src/components/KgForm/index.store.d.ts +221 -0
- package/dist/src/components/KgForm/index.vm.d.ts +9 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +97 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +16 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +31 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +97 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +92 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +96 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +96 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +98 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +98 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +29 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +96 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +96 -0
- package/dist/src/components/KgForm.Item/index.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +124 -0
- package/dist/src/components/KgImage/KgImage.d.ts +100 -0
- package/dist/src/components/KgImage/index.d.ts +1 -0
- package/dist/src/components/KgLayoutHeader/components/KgLayoutHeaderLocale.d.ts +38 -0
- package/dist/src/components/KgLayoutHeader/index.d.ts +2 -0
- package/dist/src/components/KgLayoutHeader/index.hooks.d.ts +4 -0
- package/dist/src/components/KgModal/KgModal.d.ts +823 -0
- package/dist/src/components/KgModal/KgModal.service.d.ts +39 -0
- package/dist/src/components/KgModal/KgModalHeaderButtons.d.ts +92 -0
- package/dist/src/components/KgModal/index.d.ts +1 -0
- package/dist/src/components/KgModal/index.vm.d.ts +8 -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 +91 -0
- package/dist/src/components/KgResizable/KgResizable.service.d.ts +12 -0
- package/dist/src/components/KgResizable/index.d.ts +1 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +26 -0
- package/dist/src/components/KgSearch/KgSearch.service.d.ts +32 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +16 -0
- package/dist/src/components/KgSearch/index.d.ts +3 -0
- package/dist/src/components/KgSearch/index.hooks.d.ts +67 -0
- package/dist/src/components/KgSearch/index.store.d.ts +147 -0
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/components/KgStation/KgStation.d.ts +47 -0
- package/dist/src/components/KgStation/index.d.ts +3 -0
- package/dist/src/components/KgStation/index.hooks.d.ts +29 -0
- package/dist/src/components/KgStation/index.store.d.ts +45 -0
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +21 -0
- package/dist/src/components/KgSubmit/KgSubmit.service.d.ts +29 -0
- package/dist/src/components/KgSubmit/index.d.ts +4 -0
- package/dist/src/components/KgSubmit/index.hooks.d.ts +295 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +194 -0
- package/dist/src/components/KgSubmit/index.vm.d.ts +57 -0
- package/dist/src/components/KgTable/KgTable.d.ts +39 -0
- package/dist/src/components/KgTable/KgTable.service.d.ts +34 -0
- package/dist/src/components/KgTable/components/KgTable.BodyCell.d.ts +60 -0
- package/dist/src/components/KgTable/components/KgTable.HeaderCell.d.ts +52 -0
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +57 -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 +21 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +16 -0
- package/dist/src/components/KgTable/index.d.ts +4 -0
- package/dist/src/components/KgTable/index.hooks.d.ts +148 -0
- package/dist/src/components/KgTable/index.store.d.ts +241 -0
- package/dist/src/components/KgTable/index.vm.d.ts +67 -0
- package/dist/src/components/KgVar/KgVar.d.ts +114 -0
- package/dist/src/components/KgVar/index.d.ts +4 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +184 -0
- package/dist/src/components/KgVar/index.store.d.ts +253 -0
- package/dist/src/components/KgVar/index.store.service.d.ts +30 -0
- package/dist/src/components/KgVar/index.vm.d.ts +55 -0
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfigModal.d.ts +15 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +5 -0
- package/dist/src/components/KgVarConfig/components/child/KgVarConfig.Modal.Child.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileConfig.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.VarProfileMaster.service.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/search/KgVarConfig.Modal.Search.d.ts +5 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitConfig.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitDetail.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +5 -0
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridConfig.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.d.ts +7 -0
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.VarGridMaster.service.d.ts +23 -0
- package/dist/src/components/KgVarConfig/components/table/KgVarConfig.Modal.Table.d.ts +5 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigControl.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigDescription.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.d.ts +3 -0
- package/dist/src/components/KgVarConfig/index.hooks.d.ts +17 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +16 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +50 -0
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +47 -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 +21 -0
- package/dist/src/components/util.d.ts +14 -0
- package/dist/src/components-next/KgVarConfig/KgVarConfig.d.ts +2 -0
- package/dist/src/components-next/KgVarConfig/index.d.ts +1 -0
- package/dist/src/components-next/index.d.ts +1 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +36 -0
- package/dist/src/config/index.store.d.ts +315 -0
- package/dist/src/config/setup/index.d.ts +3 -0
- package/dist/src/config/setup/setup.d.ts +28 -0
- package/dist/src/config/setup/setupKgLocale.d.ts +29 -0
- package/dist/src/config/setup/setupKgStore.d.ts +18 -0
- package/dist/src/consts/i18n/en.d.ts +274 -0
- package/dist/src/consts/i18n/es_ES.d.ts +274 -0
- package/dist/src/consts/i18n/fr_FR.d.ts +274 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/km_KH.d.ts +274 -0
- package/dist/src/consts/i18n/ko_KR.d.ts +274 -0
- package/dist/src/consts/i18n/vi_VN.d.ts +274 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +274 -0
- package/dist/src/consts/index.d.ts +3 -0
- package/dist/src/consts/index.vm.d.ts +733 -0
- package/dist/src/consts/injection-keys.const.d.ts +9 -0
- package/dist/src/helpers/ant-design-vue.d.ts +347 -0
- package/dist/src/helpers/tsx.helper.d.ts +23 -0
- package/dist/src/index.d.ts +12 -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 +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 +33 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1322 -0
- package/dist/src/pages/KgPageDda/index.d.ts +5 -0
- package/dist/src/pages/KgPageDda/index.vm.d.ts +12 -0
- package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +62 -0
- package/dist/src/pages/KgVarFactory/index.d.ts +1 -0
- package/dist/src/pages/index.d.ts +9 -0
- package/dist/src/project/build/getConfigFileName.d.ts +5 -0
- package/dist/src/project/build/index.d.ts +1 -0
- package/dist/src/project/index.d.ts +3 -0
- package/dist/src/project/types/axios.d.ts +35 -0
- package/dist/src/project/types/config.d.ts +121 -0
- package/dist/src/project/types/index.d.ts +4 -0
- package/dist/src/project/types/store.d.ts +42 -0
- package/dist/src/project/types/utils.d.ts +4 -0
- package/dist/src/services/http-client.d.ts +93 -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 +69 -0
- package/dist/src/utils/kg-route.util.d.ts +57 -0
- package/dist/src/utils/kg-var.util.d.ts +76 -0
- package/dist/src/utils/kg.util.d.ts +150 -0
- package/package.json +29 -19
@@ -0,0 +1,148 @@
|
|
1
|
+
import { ComputedRef } from 'vue';
|
2
|
+
import { VarGridConfig, VarGridDetail } from '../../apis/WMS/models';
|
3
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
4
|
+
import { IKgTableAfterRequestEventListener, IKgTableBeforeParseParameterEventListener, IKgTableBeforeRequestEventListener, IKgTableBeforeSetDatasEventListener, IKgTableReadyEventListener, IKgTableRowDoubleClickEventListener, IKgTableStore } from './index.store';
|
5
|
+
export interface IUseKgTable {
|
6
|
+
/**
|
7
|
+
* 列表数据.
|
8
|
+
*/
|
9
|
+
datas: ComputedRef<ReturnType<IKgTableStore['getDatas']>>;
|
10
|
+
/** 界面标识. */
|
11
|
+
formID: string;
|
12
|
+
/**
|
13
|
+
* 获取某个「表格视图明细」.
|
14
|
+
*
|
15
|
+
* @param param
|
16
|
+
* @param param.varName 变量名称.
|
17
|
+
*/
|
18
|
+
getVarGridDetail(param: {
|
19
|
+
varName: string | null | undefined;
|
20
|
+
}): VarGridDetail | null;
|
21
|
+
/** @deprecated 已弃用, 请使用 {@link IUseKgTable.idKey}. */
|
22
|
+
id: ComputedRef<string>;
|
23
|
+
/**
|
24
|
+
* 作为主键的属性名.
|
25
|
+
*/
|
26
|
+
idKey: ComputedRef<string>;
|
27
|
+
/** 是否自动查询. */
|
28
|
+
isAutoRequest: ComputedRef<boolean>;
|
29
|
+
/** 是否支持多选. */
|
30
|
+
isMultiSelect: ComputedRef<boolean>;
|
31
|
+
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
32
|
+
isReady: ComputedRef<ReturnType<IKgTableStore['getIsReady']>>;
|
33
|
+
/** 是否已经查询过一次了. */
|
34
|
+
isRequested: ComputedRef<ReturnType<IKgTableStore['getIsRequested']>>;
|
35
|
+
/** 是否正在查询. */
|
36
|
+
isRetrieving: ComputedRef<ReturnType<IKgTableStore['getIsRequesting']>>;
|
37
|
+
/** 是否显示底部左侧. */
|
38
|
+
isShowBottomLeft: ComputedRef<boolean>;
|
39
|
+
/** 是否显示底部右侧. */
|
40
|
+
isShowBottomRight: ComputedRef<boolean>;
|
41
|
+
/**
|
42
|
+
* <p>是否显示描述.</p>
|
43
|
+
* <ul>
|
44
|
+
* <li>是: 所有描述列(即显示类型为 {@link KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC} 的列)显示的是描述,</li>
|
45
|
+
* <li>否: 所有描述列(即显示类型为 {@link KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC} 的列)显示的是原始的值,</li>
|
46
|
+
* </ul>
|
47
|
+
*
|
48
|
+
* @default true
|
49
|
+
*/
|
50
|
+
isShowDescription: ComputedRef<ReturnType<IKgTableStore['getIsShowDescription']>>;
|
51
|
+
/** 查询条件的界面标识. */
|
52
|
+
kgSearchFormID: ComputedRef<string>;
|
53
|
+
/**
|
54
|
+
* 监听事件: 查询请求成功, 表格数据已经赋值, 表格状态已经更新.
|
55
|
+
* @param listener 事件监听函数.
|
56
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
57
|
+
*/
|
58
|
+
onAfterRequest(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
59
|
+
/**
|
60
|
+
* @deprecated 已废弃, 请使用 onAfterRequest() 方法.
|
61
|
+
*/
|
62
|
+
onAfterSearch(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
63
|
+
/**
|
64
|
+
* <p>监听事件: 即将解析请求参数.</p>
|
65
|
+
* <p>在该事件中, 可以修改解析前的参数.</p>
|
66
|
+
*
|
67
|
+
* @param listener 事件监听函数.
|
68
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
69
|
+
*/
|
70
|
+
onBeforeParseRequestParameter(listener: IKgTableBeforeParseParameterEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
71
|
+
/**
|
72
|
+
* 监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.
|
73
|
+
* @param listener 事件监听函数.
|
74
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
75
|
+
*/
|
76
|
+
onBeforeRequest(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
77
|
+
/**
|
78
|
+
* @deprecated 已废弃, 请使用 onBeforeRequest() 方法.
|
79
|
+
*/
|
80
|
+
onBeforeRetrieve(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
81
|
+
/**
|
82
|
+
* @deprecated 已废弃, 请使用 onBeforeRequest() 方法.
|
83
|
+
*/
|
84
|
+
onBeforeSearch(listener: IKgTableBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
85
|
+
/**
|
86
|
+
* 监听事件: 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
87
|
+
* @param listener 事件监听函数.
|
88
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
89
|
+
*/
|
90
|
+
onBeforeSetDatas(listener: IKgTableBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
91
|
+
/**
|
92
|
+
* 监听事件: ready, 配置初始完成, 组件渲染完成.
|
93
|
+
* @param listener 事件监听函数.
|
94
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
95
|
+
*/
|
96
|
+
onReady(listener: IKgTableReadyEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
97
|
+
/**
|
98
|
+
* @deprecated 已废弃, 请使用 onAfterSearch() 方法.
|
99
|
+
*/
|
100
|
+
onRetrieve(listener: IKgTableAfterRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
101
|
+
/**
|
102
|
+
* 监听事件: 双击某行.
|
103
|
+
* @param listener 事件监听函数.
|
104
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
105
|
+
*/
|
106
|
+
onRowDoubleClick(listener: IKgTableRowDoubleClickEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
107
|
+
/** 当前分页选项. */
|
108
|
+
pageSizeOption: ComputedRef<number>;
|
109
|
+
/** 所有分页选项. */
|
110
|
+
pageSizeOptions: ComputedRef<number[]>;
|
111
|
+
/**
|
112
|
+
* 修改「表格配置」的部分属性.
|
113
|
+
*
|
114
|
+
* @param param.properties 要修改的部分属性.
|
115
|
+
*/
|
116
|
+
patchVarGridConfig(param: {
|
117
|
+
properties: VarGridConfig;
|
118
|
+
}): Promise<void>;
|
119
|
+
/**
|
120
|
+
* 修改「表格视图明细」的部分属性.
|
121
|
+
*
|
122
|
+
* @param param
|
123
|
+
* @param param.varName 变量名称.
|
124
|
+
* @param param.properties 要修改的部分属性.
|
125
|
+
*/
|
126
|
+
patchVarGridDetail(param: {
|
127
|
+
varName: string | null | undefined;
|
128
|
+
properties: VarGridDetail;
|
129
|
+
}): Promise<void>;
|
130
|
+
/**
|
131
|
+
* <p>查询参数.</p>
|
132
|
+
* <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
|
133
|
+
*/
|
134
|
+
requestParams: ComputedRef<ReturnType<IKgTableStore['getRequestParams']>>;
|
135
|
+
/** 当前勾选的第一行. */
|
136
|
+
selectedFirstRow: ComputedRef<ReturnType<IKgTableStore['getSelectedFirstRow']>>;
|
137
|
+
/** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
138
|
+
selectedRow: ComputedRef<ReturnType<IKgTableStore['getSelectedRow']>>;
|
139
|
+
/** 当前勾选的所有行. */
|
140
|
+
selectedRows: ComputedRef<ReturnType<IKgTableStore['getSelectedRows']>>;
|
141
|
+
setIsShowDescription(value: boolean): void;
|
142
|
+
/** 状态数据. */
|
143
|
+
store: IKgTableStore;
|
144
|
+
}
|
145
|
+
/**
|
146
|
+
* @param formID 界面标识.
|
147
|
+
*/
|
148
|
+
export declare function useKgTable(formID?: string | null): IUseKgTable;
|
@@ -0,0 +1,241 @@
|
|
1
|
+
import { Key } from 'ant-design-vue/lib/_util/type';
|
2
|
+
import { StoreDefinition } from 'pinia';
|
3
|
+
import { Ref } from 'vue';
|
4
|
+
import { IPage, VarGridConfig, VarGridDetail } from '../../apis/WMS/models';
|
5
|
+
import { IKgEventListener } from '../../consts';
|
6
|
+
import { IKgTableRow, IKgTableRowHeight } from './index.vm';
|
7
|
+
/**
|
8
|
+
* 事件类型.
|
9
|
+
* 'ready': 就绪, 配置初始完成, 组件渲染完成
|
10
|
+
* 'rowDoubleClick': 双击某行
|
11
|
+
* 'beforeParseRequestParameter': 即将解析请求参数,
|
12
|
+
* 'beforeRequest': 即将发起查询请求, 如果返回 true 表示不会发起请求
|
13
|
+
* 'beforeSetDatas': 查询请求成功, 表格数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
|
14
|
+
* 'afterRequest': 查询请求成功, 表格数据已经赋值, 表格状态已经更新
|
15
|
+
*/
|
16
|
+
export declare type IKgTableEvent = 'ready' | 'rowDoubleClick' | 'beforeParseRequestParameter' | 'beforeRequest' | 'beforeSetDatas' | 'afterRequest';
|
17
|
+
export declare type IKgTableReadyEventListenerParameter = {};
|
18
|
+
export declare type IKgTableReadyEventListener = ((param: IKgTableReadyEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
19
|
+
export declare type IKgTableRowDoubleClickEventListenerParameter = {
|
20
|
+
/** 双击的行. */
|
21
|
+
row: IKgTableRow;
|
22
|
+
};
|
23
|
+
export declare type IKgTableRowDoubleClickEventListener = ((param: IKgTableRowDoubleClickEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
24
|
+
export declare type IKgTableBeforeParseRequestParameterEventListenerParameter = {
|
25
|
+
/**
|
26
|
+
* 查询接口请求参数, 尚未解析.
|
27
|
+
*/
|
28
|
+
params: Record<string, any>;
|
29
|
+
};
|
30
|
+
export declare type IKgTableBeforeParseParameterEventListener = ((param: IKgTableBeforeParseRequestParameterEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
31
|
+
export declare type IKgTableBeforeRequestEventListenerParameter = {
|
32
|
+
/** 查询接口请求参数. */
|
33
|
+
params: Record<string, any>;
|
34
|
+
/** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供表格数据. */
|
35
|
+
response: Ref;
|
36
|
+
};
|
37
|
+
export declare type IKgTableBeforeRequestEventListener = ((param: IKgTableBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
38
|
+
export declare type IKgTableBeforeSetDatasEventListenerParameter = {
|
39
|
+
/**
|
40
|
+
* 列表数据.
|
41
|
+
*/
|
42
|
+
datas: Ref<Array<IKgTableRow>>;
|
43
|
+
/**
|
44
|
+
* 数据总数.
|
45
|
+
*/
|
46
|
+
total: Ref<Number>;
|
47
|
+
};
|
48
|
+
export declare type IKgTableBeforeSetDatasEventListener = ((param: IKgTableBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
49
|
+
export declare type IKgTableAfterRequestEventListenerParameter = {
|
50
|
+
/** 查询接口请求参数. */
|
51
|
+
params: Record<string, any>;
|
52
|
+
/** 接口返回的分页数据. */
|
53
|
+
response: IPage<IKgTableRow> | null | undefined;
|
54
|
+
/** 列表数据. */
|
55
|
+
datas: Ref<Array<IKgTableRow>>;
|
56
|
+
};
|
57
|
+
export declare type IKgTableAfterRequestEventListener = ((param: IKgTableAfterRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
58
|
+
export declare type IKgTableEventListenerParameter = IKgTableReadyEventListenerParameter | IKgTableRowDoubleClickEventListenerParameter | IKgTableBeforeParseRequestParameterEventListenerParameter | IKgTableBeforeRequestEventListenerParameter | IKgTableBeforeSetDatasEventListenerParameter | IKgTableAfterRequestEventListenerParameter;
|
59
|
+
export declare type IKgTableEventListener = IKgTableReadyEventListener | IKgTableRowDoubleClickEventListener | IKgTableBeforeParseParameterEventListener | IKgTableBeforeRequestEventListener | IKgTableBeforeSetDatasEventListener | IKgTableAfterRequestEventListener;
|
60
|
+
export interface IUseKgTableStoreState {
|
61
|
+
afterRequestEventListenerMap: Map<string, Array<IKgTableAfterRequestEventListener>>;
|
62
|
+
beforeParseParameterEventListenerMap: Map<string, Array<IKgTableBeforeParseParameterEventListener>>;
|
63
|
+
beforeRequestEventListenerMap: Map<string, Array<IKgTableBeforeRequestEventListener>>;
|
64
|
+
beforeSetDatasEventListenerMap: Map<string, Array<IKgTableBeforeSetDatasEventListener>>;
|
65
|
+
/** 列表数据. */
|
66
|
+
datasMap: Map<String, Array<any>>;
|
67
|
+
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
68
|
+
isReadyMap: Map<string, boolean>;
|
69
|
+
/**
|
70
|
+
* <p>是否已经查询过一次了.</p>
|
71
|
+
* <ul>
|
72
|
+
* <li>如果表格禁用了自动查询, 当用户手动点击查询按钮后, 此属性会设置为 true,</li>
|
73
|
+
* <li>如果表格启用了自动查询, 当第一次自动查询之后, 此属性会设置为 true,</li>
|
74
|
+
* </ul>
|
75
|
+
*/
|
76
|
+
isRequestedMap: Map<string, boolean>;
|
77
|
+
/** 是否正在查询. */
|
78
|
+
isRequestingMap: Map<string, boolean>;
|
79
|
+
/**
|
80
|
+
* <p>是否显示描述.</p>
|
81
|
+
* <ul>
|
82
|
+
* <li>是: 所有描述列显示的是描述,</li>
|
83
|
+
* <li>否: 所有描述列显示的是原始的值,</li>
|
84
|
+
* </ul>
|
85
|
+
* <p>描述列指的是显示类型为 KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC 的列.</p>
|
86
|
+
*
|
87
|
+
* @default true
|
88
|
+
*/
|
89
|
+
isShowDescriptionMap: Map<string, boolean>;
|
90
|
+
/** 事件监听函数列表: ready. */
|
91
|
+
onReadyEventListenerMap: Map<string, Array<IKgTableReadyEventListener>>;
|
92
|
+
/**
|
93
|
+
* <p>查询参数.</p>
|
94
|
+
* <p>此查询参数是最终传给后端接口的参数, 包含了查询条件, 还包含了表格中的排序和分页, 还包含了表格配置中的参数.</p>
|
95
|
+
*/
|
96
|
+
requestParamsMap: Map<string, Record<string, any>>;
|
97
|
+
/** '双击某行'事件监听函数列表. */
|
98
|
+
rowDoubleClickEventListenerMap: Map<string, Array<IKgTableRowDoubleClickEventListener>>;
|
99
|
+
/** 行高. */
|
100
|
+
rowHeightMap: Map<string, IKgTableRowHeight>;
|
101
|
+
/** 勾选的行的主键. */
|
102
|
+
selectedRowKeysMap: Map<string, Ref<Array<Key>>>;
|
103
|
+
/** 勾选的行. */
|
104
|
+
selectedRowsMap: Map<string, Array<any>>;
|
105
|
+
/** 表格宽度. */
|
106
|
+
tableWidthMap: Map<string, number>;
|
107
|
+
}
|
108
|
+
export interface IUseKgTableStoreGetters {
|
109
|
+
/** 列表数据. */
|
110
|
+
getDatas(): (formID: string | null | undefined) => Array<Record<string, any>>;
|
111
|
+
/** 是否就绪. */
|
112
|
+
getIsReady(): (formID: string | null | undefined) => boolean;
|
113
|
+
/**
|
114
|
+
* 根据 formID 获取是否已经查询过一次了.
|
115
|
+
*/
|
116
|
+
getIsRequested(): (formID: string | null | undefined) => boolean;
|
117
|
+
/**
|
118
|
+
* 根据 formID 获取是否正在查询.
|
119
|
+
*/
|
120
|
+
getIsRequesting(): (formID: string | null | undefined) => boolean | null;
|
121
|
+
getIsShowDescription(): (formID: string | null | undefined) => boolean;
|
122
|
+
/**
|
123
|
+
* 根据 formID 获取查询参数.
|
124
|
+
*/
|
125
|
+
getRequestParams(): (formID: string | null | undefined) => Record<string, any>;
|
126
|
+
getRowHeight(): (formID: string | null | undefined) => IKgTableRowHeight;
|
127
|
+
/** 当前勾选的第一行. */
|
128
|
+
getSelectedFirstRow(): (formID: string | null | undefined) => IKgTableRow | null;
|
129
|
+
/** 当前勾选的唯一行. */
|
130
|
+
getSelectedRow(): (formID: string | null | undefined) => IKgTableRow | null;
|
131
|
+
/** 当前勾选的行的主键. */
|
132
|
+
getSelectedRowKeys(): (formID: string | null | undefined) => Ref<Array<Key>>;
|
133
|
+
/** 当前勾选的行. */
|
134
|
+
getSelectedRows(): (formID: string | null | undefined) => Array<IKgTableRow> | null;
|
135
|
+
/**
|
136
|
+
* 根据 formID 获取表格宽度.
|
137
|
+
*/
|
138
|
+
getTableWidth(): (formID: string | null | undefined) => number | null;
|
139
|
+
getVarGridDetail(): (formID: string | null | undefined, param: {
|
140
|
+
varName: string | null | undefined;
|
141
|
+
}) => VarGridDetail | null;
|
142
|
+
}
|
143
|
+
export interface IUseKgTableStoreActions {
|
144
|
+
/**
|
145
|
+
* 注册事件监听.
|
146
|
+
* @param formID 界面标识.
|
147
|
+
* @param event 事件名称.
|
148
|
+
* @param listener 事件监听函数.
|
149
|
+
*/
|
150
|
+
addEventListener(formID: string | null | undefined, event: IKgTableEvent, listener: any): void;
|
151
|
+
/**
|
152
|
+
* 清空表格数据.
|
153
|
+
* @param formID 界面标识.
|
154
|
+
*/
|
155
|
+
clearDatas(formID: string | null | undefined): void;
|
156
|
+
/**
|
157
|
+
* 清理数据.
|
158
|
+
* @param formID 页面标识.
|
159
|
+
*/
|
160
|
+
dispose(formID: string | null | undefined): void;
|
161
|
+
/**
|
162
|
+
* 触发事件.
|
163
|
+
* @param formID 界面标识.
|
164
|
+
* @param event 事件名称.
|
165
|
+
* @param param 数据.
|
166
|
+
*/
|
167
|
+
emit<T = IKgTableEventListenerParameter>(formID: string | null | undefined, event: IKgTableEvent, param: T): Promise<boolean>;
|
168
|
+
/**
|
169
|
+
* 修改「表格配置」的部分属性.
|
170
|
+
*
|
171
|
+
* @param formID 界面标识.
|
172
|
+
* @param param
|
173
|
+
* @param param.properties 要修改的部分属性.
|
174
|
+
*/
|
175
|
+
patchVarGridConfig(formID: string, param: {
|
176
|
+
properties: VarGridConfig;
|
177
|
+
}): Promise<void>;
|
178
|
+
/**
|
179
|
+
* 修改「表格视图明细」的部分属性.
|
180
|
+
*
|
181
|
+
* @param formID 界面标识.
|
182
|
+
* @param param
|
183
|
+
* @param param.varName 变量名称.
|
184
|
+
* @param param.properties 要修改的部分属性.
|
185
|
+
*/
|
186
|
+
patchVarGridDetail(formID: string | null | undefined, param: {
|
187
|
+
varName: string | null | undefined;
|
188
|
+
properties: VarGridDetail;
|
189
|
+
}): Promise<void>;
|
190
|
+
/**
|
191
|
+
* 刷新勾选的行. 表格列表数据变更之后, 需要同步到勾选的行.
|
192
|
+
* @param formID 界面标识.
|
193
|
+
*/
|
194
|
+
refreshSelectedRows(formID: string | null | undefined): void;
|
195
|
+
/**
|
196
|
+
* 退订事件监听.
|
197
|
+
* @param formID 界面标识.
|
198
|
+
* @param event 事件名称.
|
199
|
+
* @param listener 事件监听函数.
|
200
|
+
*/
|
201
|
+
removeEventListener(formID: string | null | undefined, event: IKgTableEvent, listener?: any): void;
|
202
|
+
/**
|
203
|
+
* 设置列表数据.
|
204
|
+
* @param param.frmId 界面标识.
|
205
|
+
* @param param.datas 列表数据.
|
206
|
+
* @param param.isPreserveSelectedRows 是否保留行的勾选状态. 默认为 false.
|
207
|
+
*/
|
208
|
+
setDatas(param: {
|
209
|
+
frmId: string | null | undefined;
|
210
|
+
datas: Array<any>;
|
211
|
+
isPreserveSelectedRows?: boolean;
|
212
|
+
}): void;
|
213
|
+
/**
|
214
|
+
* 设置是否就绪.
|
215
|
+
* @param formID 界面标识.
|
216
|
+
* @param ready 是否就绪.
|
217
|
+
*/
|
218
|
+
setIsReady(formID: string | null | undefined, ready?: boolean): void;
|
219
|
+
setIsRequested(formID: string | null | undefined, value: boolean): void;
|
220
|
+
setIsRequesting(formID: string | null | undefined, value: boolean): void;
|
221
|
+
setIsShowDescription(formID: string | null | undefined, value: boolean): void;
|
222
|
+
setRequestParams(formID: string | null | undefined, requestParams: Record<string, any> | null | undefined): void;
|
223
|
+
setRowHeight(formID: string | null | undefined, value: IKgTableRowHeight): void;
|
224
|
+
/**
|
225
|
+
* 设置某行的勾选状态.
|
226
|
+
* @param formID 界面标识.
|
227
|
+
* @param row 行.
|
228
|
+
* @param isSelected 是否勾选.
|
229
|
+
*/
|
230
|
+
setRowSelect(formID: string | null | undefined, row: IKgTableRow, isSelected: boolean): void;
|
231
|
+
/**
|
232
|
+
* 设置勾选的行.
|
233
|
+
* @param formID 界面标识.
|
234
|
+
* @param selectedRows 勾选的行.
|
235
|
+
*/
|
236
|
+
setSelectedRows(formID: string | null | undefined, selectedRows: Array<IKgTableRow>): void;
|
237
|
+
setTableWidth(formID: string | null | undefined, value: number): void;
|
238
|
+
}
|
239
|
+
export declare type IUseKgTableStore = StoreDefinition<'KgTable', IUseKgTableStoreState, IUseKgTableStoreGetters, IUseKgTableStoreActions>;
|
240
|
+
export declare type IKgTableStore = ReturnType<IUseKgTableStore>;
|
241
|
+
export declare const useKgTableStore: IUseKgTableStore;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import { ColumnType } from 'ant-design-vue/es/table/interface';
|
2
|
+
import { VarGridDetail } from '../../apis/WMS/models';
|
3
|
+
/** 行高. */
|
4
|
+
export declare type IKgTableRowHeight = 'L' | 'M' | 'H';
|
5
|
+
/** 表格的行. */
|
6
|
+
export declare type IKgTableRow = {
|
7
|
+
id?: string | null;
|
8
|
+
[index: string]: any;
|
9
|
+
};
|
10
|
+
/** 查询方法参数. */
|
11
|
+
export interface IKgTableRequestParameter {
|
12
|
+
/**
|
13
|
+
* 重新查询之后, 是否保留行的勾选状态.
|
14
|
+
*
|
15
|
+
* @default false
|
16
|
+
*/
|
17
|
+
isPreserveSelectedRows?: boolean;
|
18
|
+
/**
|
19
|
+
* 是否查询首页, 否则会查询当前页.
|
20
|
+
*
|
21
|
+
* @default false
|
22
|
+
*/
|
23
|
+
isSearchFirstPage?: boolean;
|
24
|
+
}
|
25
|
+
/** 插槽参数. */
|
26
|
+
export interface IKgTableSlotParams<T = IKgTableRow> {
|
27
|
+
bodyCell: {
|
28
|
+
column: ColumnType;
|
29
|
+
index: number;
|
30
|
+
record: T;
|
31
|
+
text: any | null;
|
32
|
+
value: any | null;
|
33
|
+
row: T;
|
34
|
+
varGridDetail: VarGridDetail | null;
|
35
|
+
defaultRender: JSX.Element;
|
36
|
+
};
|
37
|
+
expandedRowRender: {
|
38
|
+
record: IKgTableRow;
|
39
|
+
index: number;
|
40
|
+
indent: number;
|
41
|
+
expanded: boolean;
|
42
|
+
};
|
43
|
+
'summary.bodyCell': {
|
44
|
+
index: number;
|
45
|
+
column: ColumnType;
|
46
|
+
varGridDetail: VarGridDetail | null;
|
47
|
+
};
|
48
|
+
}
|
49
|
+
/** 表格的单元格所处环境. */
|
50
|
+
export declare const enum KG_TABLE_CELL_CONTEXT {
|
51
|
+
/** 表体的单元格. */
|
52
|
+
TABLE_CELL = "TABLE_CELL",
|
53
|
+
/** 表头的过滤器. */
|
54
|
+
TABLE_FILTER = "TABLE_FILTER"
|
55
|
+
}
|
56
|
+
/** 列的默认宽度. 如果 VarGridDetail 没有配置宽度, 则使用该宽度. */
|
57
|
+
export declare const KG_TABLE_TD_DEFAULT_WIDTH = 120;
|
58
|
+
/** 列的最小宽度. 拖动修改列的宽度时, 不允许超过该最小宽度. */
|
59
|
+
export declare const KG_TABLE_TD_MIN_WIDTH = 80;
|
60
|
+
/** 列的最大宽度. 拖动修改列的宽度时, 不允许超过该最大宽度. */
|
61
|
+
export declare const KG_TABLE_TD_MAX_WIDTH = 1920;
|
62
|
+
/** 勾选列的宽度. */
|
63
|
+
export declare const KG_TABLE_TD_CHECK_WIDTH = 32;
|
64
|
+
/** 序号列的宽度. */
|
65
|
+
export declare const KG_TABLE_TD_INDEX_WIDTH = 40;
|
66
|
+
/** 在表格内创建时, 空白行的临时主键. */
|
67
|
+
export declare const KG_TABLE_TEMP_ID = "__KG_TABLE_TEMP_ID__";
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import { IKgProps, IKgSlots } from './index.vm';
|
3
|
+
import './KgVar.less';
|
4
|
+
export declare function getProps(): {
|
5
|
+
/**
|
6
|
+
* 是否使用灰色背景.
|
7
|
+
*
|
8
|
+
* @default false
|
9
|
+
*/
|
10
|
+
kgBackgroundGray: {
|
11
|
+
type: PropType<boolean>;
|
12
|
+
default: undefined;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* 界面标识.
|
16
|
+
*
|
17
|
+
* @default undefined
|
18
|
+
*/
|
19
|
+
kgFormID: PropType<string>;
|
20
|
+
/**
|
21
|
+
* <p>界面层级.</p>
|
22
|
+
* <p>比如普通界面的层级为 0, 弹窗的界面层级为 1, 弹窗中的弹窗的界面层级为 2, 以此类推.</p>
|
23
|
+
*
|
24
|
+
* @default 0
|
25
|
+
*/
|
26
|
+
kgLevel: {
|
27
|
+
type: PropType<number>;
|
28
|
+
default: number;
|
29
|
+
};
|
30
|
+
/**
|
31
|
+
* 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义.
|
32
|
+
*/
|
33
|
+
kgProps: PropType<IKgProps>;
|
34
|
+
/**
|
35
|
+
* 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义.
|
36
|
+
*/
|
37
|
+
kgSlots: PropType<IKgSlots>;
|
38
|
+
};
|
39
|
+
/** @deprecated */
|
40
|
+
export declare type IKgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
41
|
+
export declare type KgVarProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
42
|
+
declare const _default: import("vue").DefineComponent<{
|
43
|
+
/**
|
44
|
+
* 是否使用灰色背景.
|
45
|
+
*
|
46
|
+
* @default false
|
47
|
+
*/
|
48
|
+
kgBackgroundGray: {
|
49
|
+
type: PropType<boolean>;
|
50
|
+
default: undefined;
|
51
|
+
};
|
52
|
+
/**
|
53
|
+
* 界面标识.
|
54
|
+
*
|
55
|
+
* @default undefined
|
56
|
+
*/
|
57
|
+
kgFormID: PropType<string>;
|
58
|
+
/**
|
59
|
+
* <p>界面层级.</p>
|
60
|
+
* <p>比如普通界面的层级为 0, 弹窗的界面层级为 1, 弹窗中的弹窗的界面层级为 2, 以此类推.</p>
|
61
|
+
*
|
62
|
+
* @default 0
|
63
|
+
*/
|
64
|
+
kgLevel: {
|
65
|
+
type: PropType<number>;
|
66
|
+
default: number;
|
67
|
+
};
|
68
|
+
/**
|
69
|
+
* 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义.
|
70
|
+
*/
|
71
|
+
kgProps: PropType<IKgProps>;
|
72
|
+
/**
|
73
|
+
* 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义.
|
74
|
+
*/
|
75
|
+
kgSlots: PropType<IKgSlots>;
|
76
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
77
|
+
/**
|
78
|
+
* 是否使用灰色背景.
|
79
|
+
*
|
80
|
+
* @default false
|
81
|
+
*/
|
82
|
+
kgBackgroundGray: {
|
83
|
+
type: PropType<boolean>;
|
84
|
+
default: undefined;
|
85
|
+
};
|
86
|
+
/**
|
87
|
+
* 界面标识.
|
88
|
+
*
|
89
|
+
* @default undefined
|
90
|
+
*/
|
91
|
+
kgFormID: PropType<string>;
|
92
|
+
/**
|
93
|
+
* <p>界面层级.</p>
|
94
|
+
* <p>比如普通界面的层级为 0, 弹窗的界面层级为 1, 弹窗中的弹窗的界面层级为 2, 以此类推.</p>
|
95
|
+
*
|
96
|
+
* @default 0
|
97
|
+
*/
|
98
|
+
kgLevel: {
|
99
|
+
type: PropType<number>;
|
100
|
+
default: number;
|
101
|
+
};
|
102
|
+
/**
|
103
|
+
* 参数. 通过该参数可以给下面任意的子组件传递 props 参数, 当前支持的参数可以参考 {@link IKgProps} 中的定义.
|
104
|
+
*/
|
105
|
+
kgProps: PropType<IKgProps>;
|
106
|
+
/**
|
107
|
+
* 插槽. 通过该参数可以给下面任意的子组件传递 slots 插槽, 当前支持的插槽可以参考 {@link IKgSlots} 中的定义.
|
108
|
+
*/
|
109
|
+
kgSlots: PropType<IKgSlots>;
|
110
|
+
}>>, {
|
111
|
+
kgBackgroundGray: boolean;
|
112
|
+
kgLevel: number;
|
113
|
+
}>;
|
114
|
+
export default _default;
|