@kengic/vue 0.26.6-beta.10 → 0.26.6-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +38743 -33624
- 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.ContextMenu.d.ts +107 -0
- package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
- package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +36 -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 +817 -0
- package/dist/src/components/KgModal/KgModal.service.d.ts +39 -0
- package/dist/src/components/KgModal/components/KgModal.HeaderButtons.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.Modal.d.ts +16 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.SelectFormIdModal.d.ts +27 -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 +27 -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 +725 -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 +2 -2
@@ -0,0 +1,73 @@
|
|
1
|
+
import { IRemoveEventListenerHandler } from '../../consts';
|
2
|
+
import { IKgFormChangeEventListener, IKgFormLookupBeforeOkEventListener, IKgFormLookupBeforeOpenEventListener, IKgFormLookupOkEventListener, IKgFormSelectBeforeRequestEventListener, IKgFormSelectBeforeSetDatasEventListener, IKgFormSelectChangeEventListener, IKgFormStore } from './index.store';
|
3
|
+
export declare type IUseKgForm = {
|
4
|
+
Select: {
|
5
|
+
/**
|
6
|
+
* 请求列表数据.
|
7
|
+
*
|
8
|
+
* @param param.varName 变量名称.
|
9
|
+
*/
|
10
|
+
requestDatas(param: {
|
11
|
+
varName: string | null | undefined;
|
12
|
+
}): void;
|
13
|
+
};
|
14
|
+
formID: string;
|
15
|
+
/**
|
16
|
+
* 监听事件: 表单控件的值发生变更.
|
17
|
+
*
|
18
|
+
* @param listener 事件监听函数.
|
19
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
20
|
+
*/
|
21
|
+
onChange(listener: IKgFormChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
22
|
+
/**
|
23
|
+
* 监听事件: 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件.
|
24
|
+
*
|
25
|
+
* @param listener 事件监听函数.
|
26
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
27
|
+
*/
|
28
|
+
onLookupBeforeOk(listener: IKgFormLookupBeforeOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
29
|
+
/**
|
30
|
+
* 监听事件: 查找弹窗打开之前.
|
31
|
+
*
|
32
|
+
* @param listener 事件监听函数.
|
33
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
34
|
+
*/
|
35
|
+
onLookupBeforeOpen(listener: IKgFormLookupBeforeOpenEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
36
|
+
/**
|
37
|
+
* 监听事件: 查找弹窗点击确定.
|
38
|
+
*
|
39
|
+
* @param listener 事件监听函数.
|
40
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
41
|
+
*/
|
42
|
+
onLookupOk(listener: IKgFormLookupOkEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
43
|
+
/**
|
44
|
+
* <p>监听事件: 即将发起查询请求, 如果返回 true 表示不会发起请求.</p>
|
45
|
+
* <p>通常在该事件中, 通过给 <code>response.value</code> 赋值, 来实现自定义下拉列表数据. 注意此时必须返回 true 来跳过后续的列表数据查询.</p>
|
46
|
+
*
|
47
|
+
* @param callback 事件监听函数.
|
48
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
49
|
+
*/
|
50
|
+
onSelectBeforeRequest(callback: IKgFormSelectBeforeRequestEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
51
|
+
/**
|
52
|
+
* 监听事件: 查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理.
|
53
|
+
*
|
54
|
+
* @param callback 事件监听函数.
|
55
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
56
|
+
*/
|
57
|
+
onSelectBeforeSetDatas(callback: IKgFormSelectBeforeSetDatasEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
58
|
+
/**
|
59
|
+
* 监听事件: 下拉列表选中某个(可能多个)数据.
|
60
|
+
*
|
61
|
+
* @param listener 事件监听函数.
|
62
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
63
|
+
*/
|
64
|
+
onSelectChange(listener: IKgFormSelectChangeEventListener, isOnce?: boolean): IRemoveEventListenerHandler;
|
65
|
+
/**
|
66
|
+
* 状态数据.
|
67
|
+
*/
|
68
|
+
store: IKgFormStore;
|
69
|
+
};
|
70
|
+
/**
|
71
|
+
* @param formID 界面标识.
|
72
|
+
*/
|
73
|
+
export declare function useKgForm(formID?: string | null): IUseKgForm;
|
@@ -0,0 +1,221 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
3
|
+
import { IKgEventListener, KG_FORM_CONTEXT } from '../../consts';
|
4
|
+
import { IKgTableRow } from '../KgTable';
|
5
|
+
/**
|
6
|
+
* 事件类型.
|
7
|
+
* 'change': 表单控件的值发生变更
|
8
|
+
* 'onSelectBeforeRequest': 即将发起查询请求, 如果返回 true 表示不会发起请求,
|
9
|
+
* 'selectBeforeSetDatas': 下拉列表查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
|
10
|
+
* 'selectChange': 下拉列表选中某个(可能多个)数据
|
11
|
+
* 'lookupBeforeOpen': 查找弹窗打开之前
|
12
|
+
* 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
|
13
|
+
* 'lookupOk': 查找弹窗点击确定
|
14
|
+
*/
|
15
|
+
export declare type IKgFormEvent = 'change' | 'onSelectBeforeRequest' | 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
|
16
|
+
export declare type IKgFormChangeEventListenerParameter = {
|
17
|
+
/**
|
18
|
+
* 表单控件所处环境.
|
19
|
+
*/
|
20
|
+
context: KG_FORM_CONTEXT;
|
21
|
+
/** @deprecated */
|
22
|
+
isCopying: boolean | null;
|
23
|
+
/** @deprecated */
|
24
|
+
isCreating: boolean | null;
|
25
|
+
/** @deprecated */
|
26
|
+
isDeleting: boolean | null;
|
27
|
+
/** @deprecated */
|
28
|
+
isUpdating: boolean | null;
|
29
|
+
/**
|
30
|
+
* 表单控件当前数据.
|
31
|
+
*/
|
32
|
+
value: any;
|
33
|
+
/**
|
34
|
+
* 变量名称.
|
35
|
+
*/
|
36
|
+
varName: string;
|
37
|
+
/** @deprecated */
|
38
|
+
variableName: string;
|
39
|
+
};
|
40
|
+
export declare type IKgFormChangeEventListener = ((param: IKgFormChangeEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
41
|
+
export declare type IKgFormSelectBeforeRequestEventListenerParameter = {
|
42
|
+
/**
|
43
|
+
* 表单控件所处环境.
|
44
|
+
*/
|
45
|
+
context: KG_FORM_CONTEXT;
|
46
|
+
/** 查询接口请求参数. */
|
47
|
+
params: Record<string, any>;
|
48
|
+
/** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供列表数据. */
|
49
|
+
response: Ref;
|
50
|
+
/**
|
51
|
+
* 变量名称.
|
52
|
+
*/
|
53
|
+
varName: string;
|
54
|
+
};
|
55
|
+
export declare type IKgFormSelectBeforeRequestEventListener = ((param: IKgFormSelectBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
56
|
+
export declare type IKgFormSelectBeforeSetDatasEventListenerParameter<T = any> = {
|
57
|
+
/**
|
58
|
+
* 表单控件所处环境.
|
59
|
+
*/
|
60
|
+
context: KG_FORM_CONTEXT;
|
61
|
+
/** 列表数据. */
|
62
|
+
datas: Ref<Array<T>>;
|
63
|
+
/** @deprecated */
|
64
|
+
isCopying: boolean | null;
|
65
|
+
/** @deprecated */
|
66
|
+
isCreating: boolean | null;
|
67
|
+
/** @deprecated */
|
68
|
+
isDeleting: boolean | null;
|
69
|
+
/** @deprecated */
|
70
|
+
isUpdating: boolean | null;
|
71
|
+
/** 变量名称. */
|
72
|
+
varName: string;
|
73
|
+
};
|
74
|
+
export declare type IKgFormSelectBeforeSetDatasEventListener = ((param: IKgFormSelectBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
75
|
+
export declare type IKgFormSelectChangeEventListenerParameter = {
|
76
|
+
/**
|
77
|
+
* 表单控件所处环境.
|
78
|
+
*/
|
79
|
+
context: KG_FORM_CONTEXT;
|
80
|
+
/** @deprecated */
|
81
|
+
isCopying: boolean | null;
|
82
|
+
/** @deprecated */
|
83
|
+
isCreating: boolean | null;
|
84
|
+
/** @deprecated */
|
85
|
+
isDeleting: boolean | null;
|
86
|
+
/** 是否多选, 否则单选. */
|
87
|
+
isMultiple: boolean;
|
88
|
+
/** @deprecated */
|
89
|
+
isUpdating: boolean | null;
|
90
|
+
/** @deprecated */
|
91
|
+
model: Ref<Record<string, any> | null> | null;
|
92
|
+
/**
|
93
|
+
* 表单数据对象.
|
94
|
+
* @deprecated
|
95
|
+
*/
|
96
|
+
formModel: Ref<Record<string, any> | null> | null;
|
97
|
+
/** 选中的数据对象组成的数组, 如果是单选则数组中只有一个数据对象. */
|
98
|
+
rows: Array<any> | null;
|
99
|
+
/** 选中的数据组成的数组, 如果是单选则数组中只有一个数据. */
|
100
|
+
values: Array<any>;
|
101
|
+
/** 变量. */
|
102
|
+
var_nam: string;
|
103
|
+
};
|
104
|
+
export declare type IKgFormSelectChangeEventListener = ((param: IKgFormSelectChangeEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
105
|
+
export declare type IKgFormLookupBeforeOpenEventListenerParameter = {
|
106
|
+
/**
|
107
|
+
* 表单控件所处环境.
|
108
|
+
*/
|
109
|
+
context: KG_FORM_CONTEXT;
|
110
|
+
/** 查找弹出的界面标识. */
|
111
|
+
lookupFormID: string;
|
112
|
+
/** 变量. */
|
113
|
+
var_nam: string;
|
114
|
+
};
|
115
|
+
export declare type IKgFormLookupBeforeOpenEventListener = ((param: IKgFormLookupBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
116
|
+
export declare type IKgFormLookupBeforeOkEventListenerParameter = {
|
117
|
+
/**
|
118
|
+
* 表单控件所处环境.
|
119
|
+
*/
|
120
|
+
context: KG_FORM_CONTEXT;
|
121
|
+
/** 是否多选, 否则单选. */
|
122
|
+
isMultiple: boolean;
|
123
|
+
/**
|
124
|
+
* 单选时, 勾选的那一行.
|
125
|
+
* @deprecated 请直接使用属性 rows.
|
126
|
+
*/
|
127
|
+
row?: IKgTableRow | null;
|
128
|
+
/** 勾选的所有行. */
|
129
|
+
rows?: Array<IKgTableRow> | null;
|
130
|
+
/**
|
131
|
+
* 单选时, 对应的一个值.
|
132
|
+
* @deprecated 请直接使用属性 values.
|
133
|
+
*/
|
134
|
+
value?: any | null;
|
135
|
+
/** 勾选的所有值. */
|
136
|
+
values?: Array<any> | null;
|
137
|
+
/** 变量. */
|
138
|
+
var_nam: string;
|
139
|
+
};
|
140
|
+
export declare type IKgFormLookupBeforeOkEventListener = ((param: IKgFormLookupBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
141
|
+
export declare type IKgFormLookupOkEventListenerParameter = {
|
142
|
+
/**
|
143
|
+
* 表单控件所处环境.
|
144
|
+
*/
|
145
|
+
context: KG_FORM_CONTEXT;
|
146
|
+
/** 是否多选, 否则单选. */
|
147
|
+
isMultiple: boolean;
|
148
|
+
/** 表单数据对象. */
|
149
|
+
model: ComputedRef<Record<string, any>>;
|
150
|
+
/**
|
151
|
+
* 单选时, 勾选的那一行.
|
152
|
+
* @deprecated 请直接使用属性 rows.
|
153
|
+
*/
|
154
|
+
row?: IKgTableRow | null;
|
155
|
+
/** 勾选的所有行. */
|
156
|
+
rows?: Array<IKgTableRow> | null;
|
157
|
+
/**
|
158
|
+
* 单选时, 对应的一个值.
|
159
|
+
* @deprecated 请直接使用属性 values.
|
160
|
+
*/
|
161
|
+
value?: any | null;
|
162
|
+
/** 勾选的所有值. */
|
163
|
+
values?: Array<any> | null;
|
164
|
+
/** 变量. */
|
165
|
+
var_nam: string;
|
166
|
+
};
|
167
|
+
export declare type IKgFormLookupOkEventListener = ((param: IKgFormLookupOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
|
168
|
+
export declare type IKgFormEventListenerParameter = IKgFormChangeEventListenerParameter | IKgFormSelectBeforeRequestEventListenerParameter | IKgFormSelectBeforeSetDatasEventListenerParameter | IKgFormSelectChangeEventListenerParameter | IKgFormLookupBeforeOpenEventListenerParameter | IKgFormLookupBeforeOkEventListenerParameter | IKgFormLookupOkEventListenerParameter;
|
169
|
+
export declare type IKgFormEventListener = IKgFormChangeEventListener | IKgFormSelectBeforeRequestEventListener | IKgFormSelectBeforeSetDatasEventListener | IKgFormSelectChangeEventListener | IKgFormLookupBeforeOpenEventListener | IKgFormLookupBeforeOkEventListener | IKgFormLookupOkEventListener;
|
170
|
+
export interface IUseKgFormStoreState {
|
171
|
+
changeEventListenerMap: Map<string, Array<IKgFormChangeEventListener>>;
|
172
|
+
lookupBeforeOkEventListenerMap: Map<string, Array<IKgFormLookupBeforeOkEventListener>>;
|
173
|
+
lookupBeforeOpenEventListenerMap: Map<string, Array<IKgFormLookupBeforeOpenEventListener>>;
|
174
|
+
lookupOkEventListenerMap: Map<string, Array<IKgFormLookupOkEventListener>>;
|
175
|
+
selectBeforeRequestEventListenerMap: Map<string, Array<IKgFormSelectBeforeRequestEventListener>>;
|
176
|
+
selectBeforeSetDatasEventListenerMap: Map<string, Array<IKgFormSelectBeforeSetDatasEventListener>>;
|
177
|
+
selectChangeEventListenerMap: Map<string, Array<IKgFormSelectChangeEventListener>>;
|
178
|
+
}
|
179
|
+
export interface IUseKgFormStoreGetters {
|
180
|
+
}
|
181
|
+
export interface IUseKgFormStoreActions {
|
182
|
+
/**
|
183
|
+
* 请求列表数据.
|
184
|
+
*
|
185
|
+
* @param formID 界面标识.
|
186
|
+
* @param param 参数.
|
187
|
+
* @param param.varName 变量名称.
|
188
|
+
*/
|
189
|
+
Select$requestDatas(formID: string | null | undefined, param: {
|
190
|
+
varName: string | null | undefined;
|
191
|
+
}): void;
|
192
|
+
/**
|
193
|
+
* 注册事件监听.
|
194
|
+
* @param formID 界面标识.
|
195
|
+
* @param event 事件名称.
|
196
|
+
* @param listener 事件监听函数.
|
197
|
+
*/
|
198
|
+
addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: any): void;
|
199
|
+
/**
|
200
|
+
* 清理数据.
|
201
|
+
* @param formID 页面标识.
|
202
|
+
*/
|
203
|
+
dispose(formID: string | null | undefined): void;
|
204
|
+
/**
|
205
|
+
* 触发事件.
|
206
|
+
* @param formID 界面标识.
|
207
|
+
* @param event 事件名称.
|
208
|
+
* @param param 数据.
|
209
|
+
*/
|
210
|
+
emit<T = IKgFormEventListenerParameter>(formID: string | null | undefined, event: IKgFormEvent, param: T): Promise<boolean>;
|
211
|
+
/**
|
212
|
+
* 退订事件监听.
|
213
|
+
* @param formID 界面标识.
|
214
|
+
* @param event 事件名称.
|
215
|
+
* @param listener 事件监听函数.
|
216
|
+
*/
|
217
|
+
removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: any): void;
|
218
|
+
}
|
219
|
+
export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
|
220
|
+
export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
|
221
|
+
export declare const useKgFormStore: IUseKgFormStore;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { FormInstance } from 'ant-design-vue/lib/form/Form';
|
2
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
3
|
+
/**
|
4
|
+
* 依赖注入表单数据对象.
|
5
|
+
* 在表单组件(KgForm)的任何下级组件中, 都可以通过注入获取表单数据对象.
|
6
|
+
*/
|
7
|
+
export declare const KG__DI__KG_FORM___FORM_MODEL: InjectionKey<ComputedRef<Record<string, any>>>;
|
8
|
+
/** 依赖注入 formRef. */
|
9
|
+
export declare const KG__DI__KG_FORM___FORM_REF: InjectionKey<Ref<FormInstance | null>>;
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { KG_FORM_CONTEXT } from '../../consts';
|
2
|
+
import './KgForm.Item.less';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
kgVarName: {
|
5
|
+
type: import("vue").PropType<string>;
|
6
|
+
required: boolean;
|
7
|
+
};
|
8
|
+
kgContext: {
|
9
|
+
type: import("vue").PropType<KG_FORM_CONTEXT>;
|
10
|
+
default: KG_FORM_CONTEXT;
|
11
|
+
};
|
12
|
+
kgDisabled: {
|
13
|
+
type: import("vue").PropType<boolean>;
|
14
|
+
default: undefined;
|
15
|
+
};
|
16
|
+
kgSpan: import("vue").PropType<number>;
|
17
|
+
kgPlaceholder: import("vue").PropType<string>;
|
18
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
19
|
+
kgShowLabel: {
|
20
|
+
type: import("vue").PropType<boolean>;
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
kgAllowClear: {
|
24
|
+
type: import("vue").PropType<boolean>;
|
25
|
+
default: undefined;
|
26
|
+
};
|
27
|
+
kgShowTime: {
|
28
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
29
|
+
default: undefined;
|
30
|
+
};
|
31
|
+
kgPicker: {
|
32
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
33
|
+
default: undefined;
|
34
|
+
};
|
35
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
36
|
+
value: {
|
37
|
+
type: import("vue").PropType<import("./index.vm").IKgFormItemValue>;
|
38
|
+
default: undefined;
|
39
|
+
};
|
40
|
+
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
|
41
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
42
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
43
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
44
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgSelectChange")[], "kgSubmit" | "kgSelectChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
45
|
+
kgVarName: {
|
46
|
+
type: import("vue").PropType<string>;
|
47
|
+
required: boolean;
|
48
|
+
};
|
49
|
+
kgContext: {
|
50
|
+
type: import("vue").PropType<KG_FORM_CONTEXT>;
|
51
|
+
default: KG_FORM_CONTEXT;
|
52
|
+
};
|
53
|
+
kgDisabled: {
|
54
|
+
type: import("vue").PropType<boolean>;
|
55
|
+
default: undefined;
|
56
|
+
};
|
57
|
+
kgSpan: import("vue").PropType<number>;
|
58
|
+
kgPlaceholder: import("vue").PropType<string>;
|
59
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
60
|
+
kgShowLabel: {
|
61
|
+
type: import("vue").PropType<boolean>;
|
62
|
+
default: boolean;
|
63
|
+
};
|
64
|
+
kgAllowClear: {
|
65
|
+
type: import("vue").PropType<boolean>;
|
66
|
+
default: undefined;
|
67
|
+
};
|
68
|
+
kgShowTime: {
|
69
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
70
|
+
default: undefined;
|
71
|
+
};
|
72
|
+
kgPicker: {
|
73
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
74
|
+
default: undefined;
|
75
|
+
};
|
76
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
77
|
+
value: {
|
78
|
+
type: import("vue").PropType<import("./index.vm").IKgFormItemValue>;
|
79
|
+
default: undefined;
|
80
|
+
};
|
81
|
+
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
|
82
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
83
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
84
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
85
|
+
}>> & {
|
86
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
87
|
+
onKgSelectChange?: ((...args: any[]) => any) | undefined;
|
88
|
+
}, {
|
89
|
+
value: import("./index.vm").IKgFormItemValue;
|
90
|
+
kgDisabled: boolean;
|
91
|
+
kgContext: KG_FORM_CONTEXT;
|
92
|
+
kgShowLabel: boolean;
|
93
|
+
kgAllowClear: boolean;
|
94
|
+
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
95
|
+
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
96
|
+
}>;
|
97
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { RuleObject } from 'ant-design-vue/es/form';
|
2
|
+
import { KgFormItemProps } from './index.vm';
|
3
|
+
export declare function _useFormRules(props: KgFormItemProps): {
|
4
|
+
/** 表单验证规则. */
|
5
|
+
formRules: import("vue").ComputedRef<RuleObject[]>;
|
6
|
+
isFormRulesChange: import("vue").Ref<boolean>;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
*
|
10
|
+
* @param props
|
11
|
+
*/
|
12
|
+
export declare function useKgFormItem<T = Record<string, any>>(props?: KgFormItemProps): {
|
13
|
+
/** 控件类型. */
|
14
|
+
controlType: import("vue").ComputedRef<string | null | undefined>;
|
15
|
+
/** 控件配置参数. */
|
16
|
+
controlProperties: import("vue").ComputedRef<T>;
|
17
|
+
};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
/**
|
4
|
+
* 表单控件类型.
|
5
|
+
*/
|
6
|
+
kgControlType: {
|
7
|
+
type: PropType<string | null>;
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
/**
|
11
|
+
* 表单控件是否禁用.
|
12
|
+
*/
|
13
|
+
kgDisabled: {
|
14
|
+
type: PropType<boolean>;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
export declare type KgFormItemAddonDynamicQueryOperatorProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
18
|
+
declare const _default: import("vue").DefineComponent<{
|
19
|
+
/**
|
20
|
+
* 表单控件类型.
|
21
|
+
*/
|
22
|
+
kgControlType: {
|
23
|
+
type: PropType<string | null>;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* 表单控件是否禁用.
|
28
|
+
*/
|
29
|
+
kgDisabled: {
|
30
|
+
type: PropType<boolean>;
|
31
|
+
};
|
32
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
33
|
+
/**
|
34
|
+
* 表单控件类型.
|
35
|
+
*/
|
36
|
+
kgControlType: {
|
37
|
+
type: PropType<string | null>;
|
38
|
+
default: string;
|
39
|
+
};
|
40
|
+
/**
|
41
|
+
* 表单控件是否禁用.
|
42
|
+
*/
|
43
|
+
kgDisabled: {
|
44
|
+
type: PropType<boolean>;
|
45
|
+
};
|
46
|
+
}>>, {
|
47
|
+
kgControlType: string | null;
|
48
|
+
}>;
|
49
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
visible: PropType<boolean>;
|
4
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
5
|
+
};
|
6
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
7
|
+
declare const _default: import("vue").DefineComponent<{
|
8
|
+
visible: PropType<boolean>;
|
9
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
10
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
11
|
+
visible: PropType<boolean>;
|
12
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
13
|
+
}>> & {
|
14
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
15
|
+
}, {}>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const getProps: () => {
|
3
|
+
/** 是否禁用. */
|
4
|
+
kgDisabled: {
|
5
|
+
type: PropType<boolean>;
|
6
|
+
default: undefined;
|
7
|
+
};
|
8
|
+
/** 查找配置ID. */
|
9
|
+
kgLookupID: PropType<string>;
|
10
|
+
};
|
11
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
12
|
+
declare const _default: import("vue").DefineComponent<{
|
13
|
+
/** 是否禁用. */
|
14
|
+
kgDisabled: {
|
15
|
+
type: PropType<boolean>;
|
16
|
+
default: undefined;
|
17
|
+
};
|
18
|
+
/** 查找配置ID. */
|
19
|
+
kgLookupID: PropType<string>;
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
21
|
+
/** 是否禁用. */
|
22
|
+
kgDisabled: {
|
23
|
+
type: PropType<boolean>;
|
24
|
+
default: undefined;
|
25
|
+
};
|
26
|
+
/** 查找配置ID. */
|
27
|
+
kgLookupID: PropType<string>;
|
28
|
+
}>>, {
|
29
|
+
kgDisabled: boolean;
|
30
|
+
}>;
|
31
|
+
export default _default;
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import { KG_FORM_CONTEXT } from '../../../consts';
|
2
|
+
/**
|
3
|
+
* <p>表单控件:多选框.</p>
|
4
|
+
* <p>组件 Checkbox 的 checked 属性使用的是 true/false, 本组件实际传入的参数为 1/0, 因此存在数据转换.</p>
|
5
|
+
*/
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
7
|
+
kgVarName: {
|
8
|
+
type: import("vue").PropType<string>;
|
9
|
+
required: boolean;
|
10
|
+
};
|
11
|
+
kgContext: {
|
12
|
+
type: import("vue").PropType<KG_FORM_CONTEXT>;
|
13
|
+
default: KG_FORM_CONTEXT;
|
14
|
+
};
|
15
|
+
kgDisabled: {
|
16
|
+
type: import("vue").PropType<boolean>;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
kgSpan: import("vue").PropType<number>;
|
20
|
+
kgPlaceholder: import("vue").PropType<string>;
|
21
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
22
|
+
kgShowLabel: {
|
23
|
+
type: import("vue").PropType<boolean>;
|
24
|
+
default: boolean;
|
25
|
+
};
|
26
|
+
kgAllowClear: {
|
27
|
+
type: import("vue").PropType<boolean>;
|
28
|
+
default: undefined;
|
29
|
+
};
|
30
|
+
kgShowTime: {
|
31
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
32
|
+
default: undefined;
|
33
|
+
};
|
34
|
+
kgPicker: {
|
35
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
36
|
+
default: undefined;
|
37
|
+
};
|
38
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
39
|
+
value: {
|
40
|
+
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
41
|
+
default: undefined;
|
42
|
+
};
|
43
|
+
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
44
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
45
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
46
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit")[], "update:value" | "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
|
+
kgVarName: {
|
49
|
+
type: import("vue").PropType<string>;
|
50
|
+
required: boolean;
|
51
|
+
};
|
52
|
+
kgContext: {
|
53
|
+
type: import("vue").PropType<KG_FORM_CONTEXT>;
|
54
|
+
default: KG_FORM_CONTEXT;
|
55
|
+
};
|
56
|
+
kgDisabled: {
|
57
|
+
type: import("vue").PropType<boolean>;
|
58
|
+
default: undefined;
|
59
|
+
};
|
60
|
+
kgSpan: import("vue").PropType<number>;
|
61
|
+
kgPlaceholder: import("vue").PropType<string>;
|
62
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
63
|
+
kgShowLabel: {
|
64
|
+
type: import("vue").PropType<boolean>;
|
65
|
+
default: boolean;
|
66
|
+
};
|
67
|
+
kgAllowClear: {
|
68
|
+
type: import("vue").PropType<boolean>;
|
69
|
+
default: undefined;
|
70
|
+
};
|
71
|
+
kgShowTime: {
|
72
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
73
|
+
default: undefined;
|
74
|
+
};
|
75
|
+
kgPicker: {
|
76
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
77
|
+
default: undefined;
|
78
|
+
};
|
79
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
80
|
+
value: {
|
81
|
+
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
82
|
+
default: undefined;
|
83
|
+
};
|
84
|
+
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
85
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
86
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
87
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
88
|
+
}>> & {
|
89
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
90
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
91
|
+
}, {
|
92
|
+
value: import("../index.vm").IKgFormItemValue;
|
93
|
+
kgDisabled: boolean;
|
94
|
+
kgContext: KG_FORM_CONTEXT;
|
95
|
+
kgShowLabel: boolean;
|
96
|
+
kgAllowClear: boolean;
|
97
|
+
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
98
|
+
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
99
|
+
}>;
|
100
|
+
export default _default;
|