@kengic/vue 0.16.6 → 0.16.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3479 -2941
- package/dist/src/apis/WMS/Controllers/VarContextController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +24 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +31 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarContextController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/VarController/GetAll.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/Update.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarGridMasterController/index.d.ts +2 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/QueryByID.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarProfileMasterController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Add.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Delete.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/DeleteBatch.d.ts +18 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/Edit.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ExportXls.d.ts +30 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/ImportExcel.d.ts +15 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/List.d.ts +37 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/QueryById.d.ts +19 -0
- package/dist/src/apis/WMS/Controllers/VarVariableCatalogController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +52 -0
- package/dist/src/apis/WMS/Controllers/WhController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +6 -0
- package/dist/src/apis/WMS/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +728 -0
- package/dist/src/apis/api.d.ts +1 -0
- package/dist/src/apis/def.d.ts +1 -0
- package/dist/src/apis/index.d.ts +2 -0
- package/dist/src/components/KgAppSelect/KgAppSelect.d.ts +47 -0
- package/dist/src/components/KgAppSelect/index.d.ts +3 -0
- package/dist/src/components/KgAppSelect/index.hooks.d.ts +41 -0
- package/dist/src/components/KgAppSelect/index.store.d.ts +73 -0
- package/dist/src/components/KgButton/KgButton.Item.d.ts +41 -0
- package/dist/src/components/KgButton/KgButton.Item.data.d.ts +31 -0
- package/dist/src/components/KgButton/KgButton.d.ts +34 -0
- package/dist/src/components/KgButton/KgButton.hooks.d.ts +61 -0
- package/dist/src/components/KgButton/KgButton.store.d.ts +89 -0
- package/dist/src/components/KgButton/components/KgButton.Copy.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Create.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Delete.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Export.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Import.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.ImportTemplate.d.ts +39 -0
- package/dist/src/components/KgButton/components/KgButton.Other.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Search.d.ts +40 -0
- package/dist/src/components/KgButton/components/KgButton.Update.d.ts +39 -0
- package/dist/src/components/KgButton/index.d.ts +62 -0
- package/dist/src/components/KgForm/KgForm.d.ts +414 -0
- package/dist/src/components/KgForm/index.d.ts +604 -0
- package/dist/src/components/KgForm/index.hooks.d.ts +42 -0
- package/dist/src/components/KgForm/index.store.d.ts +107 -0
- package/dist/src/components/KgForm/index.vm.d.ts +9 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +100 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.Modal.d.ts +17 -0
- package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.Lookup.d.ts +32 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +103 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +102 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +100 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +104 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.hooks.d.ts +27 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +99 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +99 -0
- package/dist/src/components/KgForm.Item/index.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +104 -0
- package/dist/src/components/KgModal/KgModal.d.ts +395 -0
- package/dist/src/components/KgModal/components/KgModal.Close.d.ts +41 -0
- package/dist/src/components/KgModal/index.d.ts +2 -0
- package/dist/src/components/KgModal/index.vm.d.ts +194 -0
- package/dist/src/components/KgProgressA/KgProgressA.d.ts +85 -0
- package/dist/src/components/KgProgressA/index.d.ts +1 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +143 -0
- package/dist/src/components/KgResizable/index.d.ts +1 -0
- package/dist/src/components/KgSearch/KgSearch.d.ts +42 -0
- package/dist/src/components/KgSearch/KgSearch.hooks.d.ts +39 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileConfig.d.ts +8 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.d.ts +24 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.VarProfileMaster.hooks.d.ts +7 -0
- package/dist/src/components/KgSearch/components/KgSearch.ConfigModal.d.ts +32 -0
- package/dist/src/components/KgSearch/index.d.ts +3 -0
- package/dist/src/components/KgSearch/index.hooks.d.ts +41 -0
- package/dist/src/components/KgSearch/index.store.d.ts +86 -0
- package/dist/src/components/KgSearch/index.vm.d.ts +1 -0
- package/dist/src/components/KgSubmit/KgSubmit.d.ts +41 -0
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +20 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.VarSubmitConfig.d.ts +28 -0
- package/dist/src/components/KgSubmit/components/KgSubmit.Header.d.ts +82 -0
- package/dist/src/components/KgSubmit/index.d.ts +4 -0
- package/dist/src/components/KgSubmit/index.hooks.d.ts +74 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +130 -0
- package/dist/src/components/KgSubmit/index.vm.d.ts +10 -0
- package/dist/src/components/KgTable/KgTable.d.ts +39 -0
- package/dist/src/components/KgTable/KgTable.hooks.d.ts +43 -0
- package/dist/src/components/KgTable/components/KgTable.Cell.d.ts +61 -0
- package/dist/src/components/KgTable/components/KgTable.Info.d.ts +58 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.VarGridMaster.SaveAs.d.ts +5 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +14 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.Body.d.ts +22 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridConfig.d.ts +21 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.d.ts +24 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts +23 -0
- package/dist/src/components/KgTable/components/setting/config/KgTable.Setting.ConfigModal.d.ts +33 -0
- package/dist/src/components/KgTable/index.d.ts +4 -0
- package/dist/src/components/KgTable/index.hooks.d.ts +84 -0
- package/dist/src/components/KgTable/index.store.d.ts +157 -0
- package/dist/src/components/KgTable/index.vm.d.ts +66 -0
- package/dist/src/components/KgVar/KgVar.d.ts +28 -0
- package/dist/src/components/KgVar/index.d.ts +4 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +242 -0
- package/dist/src/components/KgVar/index.store.d.ts +315 -0
- package/dist/src/components/KgVar/index.store.service.d.ts +21 -0
- package/dist/src/components/KgVar/index.vm.d.ts +47 -0
- package/dist/src/components/KgVarConfig/KgVarConfig.d.ts +2 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.FormIDsModal.d.ts +24 -0
- package/dist/src/components/KgVarConfig/components/KgVarConfig.Modal.d.ts +17 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButton.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.VarButtonConfig.d.ts +29 -0
- package/dist/src/components/KgVarConfig/components/button/KgVarConfig.Modal.Button.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.VarSubmitField.d.ts +25 -0
- package/dist/src/components/KgVarConfig/components/submit/KgVarConfig.Modal.Submit.d.ts +22 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +33 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariableCatalog.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.Vars.data.d.ts +3 -0
- package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +3 -0
- package/dist/src/components/KgVarConfig/index.d.ts +2 -0
- package/dist/src/components/KgVarConfig/index.store.d.ts +20 -0
- package/dist/src/components/KgVarConfig/index.vm.d.ts +3 -0
- package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +38 -0
- package/dist/src/components/KgWarehouse/index.d.ts +4 -0
- package/dist/src/components/KgWarehouse/index.guard.d.ts +8 -0
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +27 -0
- package/dist/src/components/KgWarehouse/index.store.d.ts +63 -0
- package/dist/src/components/KgYesOrNo/KgYesOrNo.d.ts +60 -0
- package/dist/src/components/KgYesOrNo/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +16 -0
- package/dist/src/components/util.d.ts +14 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.hooks.d.ts +43 -0
- package/dist/src/config/index.store.d.ts +192 -0
- package/dist/src/config/setup.d.ts +45 -0
- package/dist/src/consts/i18n/en.d.ts +228 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +227 -0
- package/dist/src/consts/index.d.ts +253 -0
- package/dist/src/consts/index.vm.d.ts +170 -0
- package/dist/src/consts/injection-keys.const.d.ts +9 -0
- package/dist/src/helpers/ant-design-vue.d.ts +316 -0
- package/dist/src/helpers/tsx.helper.d.ts +13 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/pages/KgPageDda/KgPageDda.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.SqlModal.d.ts +32 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Basic.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Button.d.ts +8 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Child.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Search.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +7 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +29 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +26 -0
- package/dist/src/pages/KgPageDda/index.const.d.ts +11 -0
- package/dist/src/pages/KgPageDda/index.d.ts +5 -0
- package/dist/src/pages/index.d.ts +2 -0
- package/dist/src/services/http-client.d.ts +46 -0
- package/dist/src/services/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/kg-auth.util.d.ts +26 -0
- package/dist/src/utils/kg-dom.util.d.ts +12 -0
- package/dist/src/utils/kg-logger.util.d.ts +65 -0
- package/dist/src/utils/kg-route.util.d.ts +54 -0
- package/dist/src/utils/kg-var.util.d.ts +36 -0
- package/dist/src/utils/kg.util.d.ts +114 -0
- package/package.json +6 -5
@@ -0,0 +1,107 @@
|
|
1
|
+
import { StoreDefinition } from 'pinia';
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
3
|
+
import { IKgEventCb } from '../../consts';
|
4
|
+
import { IKgTableRow } from '../KgTable';
|
5
|
+
/**
|
6
|
+
* 事件类型.
|
7
|
+
* 'selectBeforeSetDatas': 查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
|
8
|
+
* 'selectChange': 下拉列表选中某个(可能多个)数据
|
9
|
+
* 'lookupBeforeOpen': 查找弹窗打开之前
|
10
|
+
* 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
|
11
|
+
* 'lookupOk': 查找弹窗点击确定
|
12
|
+
*/
|
13
|
+
export declare type IKgFormEvent = 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
|
14
|
+
/** 事件监听函数: selectBeforeSetDatas. */
|
15
|
+
export declare type IKgFormSelectBeforeSetDatasCbParam<T = any> = {
|
16
|
+
/** 变量名称. */
|
17
|
+
variableName: string;
|
18
|
+
isCreating: boolean | null;
|
19
|
+
isUpdating: boolean | null;
|
20
|
+
isCopying: boolean | null;
|
21
|
+
isDeleting: boolean | null;
|
22
|
+
/** 列表数据. */
|
23
|
+
datas: Ref<Array<T>>;
|
24
|
+
};
|
25
|
+
export declare type IKgFormSelectBeforeSetDatasCb = ((param: IKgFormSelectBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
|
26
|
+
/** 事件监听函数: selectChange. */
|
27
|
+
export declare type IKgFormSelectChangeCbParam = {
|
28
|
+
/** 变量. */
|
29
|
+
var_nam: string;
|
30
|
+
/** 是否多选, 否则单选. */
|
31
|
+
isMultiple: boolean;
|
32
|
+
/** 选中的数据组成的数组, 如果是单选则数组中只有一个数据. */
|
33
|
+
values: Array<any>;
|
34
|
+
/** 选中的数据对象组成的数组, 如果是单选则数组中只有一个数据对象. */
|
35
|
+
rows: Array<any> | null;
|
36
|
+
isCreating: boolean | null;
|
37
|
+
isUpdating: boolean | null;
|
38
|
+
isCopying: boolean | null;
|
39
|
+
isDeleting: boolean | null;
|
40
|
+
/** 表单数据对象. */
|
41
|
+
model: Ref<Record<string, any>> | null;
|
42
|
+
};
|
43
|
+
export declare type IKgFormSelectChangeCb = ((param: IKgFormSelectChangeCbParam) => Promise<boolean>) & IKgEventCb;
|
44
|
+
/** 事件监听函数: lookupBeforeOpen. */
|
45
|
+
export declare type IKgFormLookupBeforeOpenCbParam = {
|
46
|
+
/** 变量. */
|
47
|
+
var_nam: string;
|
48
|
+
/** 查找弹出的界面标识. */
|
49
|
+
lookupFormID: string;
|
50
|
+
};
|
51
|
+
export declare type IKgFormLookupBeforeOpenCb = ((param: IKgFormLookupBeforeOpenCbParam) => Promise<boolean>) & IKgEventCb;
|
52
|
+
/** 事件监听函数: lookupBeforeOk. */
|
53
|
+
export declare type IKgFormLookupBeforeOkCbParam = {
|
54
|
+
/** 变量. */
|
55
|
+
var_nam: string;
|
56
|
+
/** 是否多选, 否则单选. */
|
57
|
+
isMultiple: boolean;
|
58
|
+
/** 单选时, 对应的一个值. */
|
59
|
+
value?: any | null;
|
60
|
+
/** 单选时, 对应的多个值. */
|
61
|
+
values?: Array<any> | null;
|
62
|
+
/** 单选时, 勾选的那一行. */
|
63
|
+
row?: IKgTableRow | null;
|
64
|
+
/** 多选时, 勾选的所有行. */
|
65
|
+
rows?: Array<IKgTableRow> | null;
|
66
|
+
};
|
67
|
+
export declare type IKgFormLookupBeforeOkCb = ((param: IKgFormLookupBeforeOkCbParam) => Promise<boolean>) & IKgEventCb;
|
68
|
+
/** 事件监听函数: lookupOk. */
|
69
|
+
export declare type IKgFormLookupOkCbParam = {
|
70
|
+
/** 变量. */
|
71
|
+
var_nam: string;
|
72
|
+
/** 表单数据对象. */
|
73
|
+
model: ComputedRef<Record<string, any>>;
|
74
|
+
/** 是否多选, 否则单选. */
|
75
|
+
isMultiple: boolean;
|
76
|
+
/** 单选时, 对应的一个值. */
|
77
|
+
value?: any | null;
|
78
|
+
/** 多选时, 对应的多个值. */
|
79
|
+
values?: Array<any> | null;
|
80
|
+
/** 单选时, 勾选的那一行. */
|
81
|
+
row?: IKgTableRow | null;
|
82
|
+
/** 多选时, 勾选的所有行. */
|
83
|
+
rows?: Array<IKgTableRow> | null;
|
84
|
+
};
|
85
|
+
export declare type IKgFormLookupOkCb = ((param: IKgFormLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
|
86
|
+
export declare type IKgFormCbParam = IKgFormSelectBeforeSetDatasCbParam | IKgFormSelectChangeCbParam | IKgFormLookupBeforeOpenCbParam | IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam;
|
87
|
+
export declare type IKgFormCb = IKgFormSelectBeforeSetDatasCb | IKgFormSelectChangeCb | IKgFormLookupBeforeOpenCb | IKgFormLookupBeforeOkCb | IKgFormLookupOkCb;
|
88
|
+
export interface IKgFormState {
|
89
|
+
selectBeforeSetDatasListenersMap: Map<string, Array<IKgFormSelectBeforeSetDatasCb>>;
|
90
|
+
selectChangeListenersMap: Map<string, Array<IKgFormSelectChangeCb>>;
|
91
|
+
lookupBeforeOpenListenersMap: Map<string, Array<IKgFormLookupBeforeOpenCb>>;
|
92
|
+
lookupBeforeOkListenersMap: Map<string, Array<IKgFormLookupBeforeOkCb>>;
|
93
|
+
lookupOkListenersMap: Map<string, Array<IKgFormLookupOkCb>>;
|
94
|
+
}
|
95
|
+
export declare type IKgFormStoreDefinition = StoreDefinition<'KgForm', IKgFormState, {}, {
|
96
|
+
addEventListener(frm_id: string, event: IKgFormEvent, cb: IKgFormCb): void;
|
97
|
+
removeEventListener(frm_id: string, event: IKgFormEvent, cb?: IKgFormCb): void;
|
98
|
+
/**
|
99
|
+
* 触发事件.
|
100
|
+
* @param frm_id 界面标识.
|
101
|
+
* @param event 事件名称.
|
102
|
+
* @param param 数据.
|
103
|
+
*/
|
104
|
+
emit(frm_id: string, event: IKgFormEvent, param?: IKgFormCbParam | null): Promise<boolean>;
|
105
|
+
}>;
|
106
|
+
export declare type IKgFormStore = ReturnType<IKgFormStoreDefinition>;
|
107
|
+
export declare const useKgFormStore: () => IKgFormStoreDefinition;
|
@@ -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 DI_FORM_MODEL: InjectionKey<ComputedRef<Record<string, any>>>;
|
8
|
+
/** 依赖注入 formRef. */
|
9
|
+
export declare const DI_FORM_REF: InjectionKey<Ref<FormInstance | null>>;
|
@@ -0,0 +1,100 @@
|
|
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<string>;
|
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
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
43
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
44
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
45
|
+
}, () => JSX.Element | null, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "kgSelectChange")[], "kgSubmit" | "kgChange" | "kgSelectChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
|
+
kgVarName: {
|
47
|
+
type: import("vue").PropType<string>;
|
48
|
+
required: boolean;
|
49
|
+
};
|
50
|
+
kgContext: {
|
51
|
+
type: import("vue").PropType<string>;
|
52
|
+
default: KG_FORM_CONTEXT;
|
53
|
+
};
|
54
|
+
kgDisabled: {
|
55
|
+
type: import("vue").PropType<boolean>;
|
56
|
+
default: undefined;
|
57
|
+
};
|
58
|
+
kgSpan: import("vue").PropType<number>;
|
59
|
+
kgPlaceholder: import("vue").PropType<string>;
|
60
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
61
|
+
kgShowLabel: {
|
62
|
+
type: import("vue").PropType<boolean>;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
kgAllowClear: {
|
66
|
+
type: import("vue").PropType<boolean>;
|
67
|
+
default: undefined;
|
68
|
+
};
|
69
|
+
kgShowTime: {
|
70
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
71
|
+
default: undefined;
|
72
|
+
};
|
73
|
+
kgPicker: {
|
74
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
75
|
+
default: undefined;
|
76
|
+
};
|
77
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
78
|
+
value: {
|
79
|
+
type: import("vue").PropType<import("./index.vm").IKgFormItemValue>;
|
80
|
+
default: undefined;
|
81
|
+
};
|
82
|
+
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
|
83
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
84
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
85
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
86
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
87
|
+
}>> & {
|
88
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
89
|
+
onKgChange?: ((...args: any[]) => any) | undefined;
|
90
|
+
onKgSelectChange?: ((...args: any[]) => any) | undefined;
|
91
|
+
}, {
|
92
|
+
value: import("./index.vm").IKgFormItemValue;
|
93
|
+
kgDisabled: boolean;
|
94
|
+
kgContext: string;
|
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;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Rule } from 'ant-design-vue/es/form';
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
3
|
+
import { IKgFormItemProps } from './index.vm';
|
4
|
+
export declare type IUseRules = {
|
5
|
+
/** 表单验证规则. */
|
6
|
+
rules: Ref<Rule[]>;
|
7
|
+
/** 正在计算表单验证规则. */
|
8
|
+
isRulesLoading: Ref<boolean>;
|
9
|
+
};
|
10
|
+
export declare function _useRules(props: IKgFormItemProps): IUseRules;
|
11
|
+
export declare type IUseKgFormItem<T = Record<string, any>> = {
|
12
|
+
/** 控件类型. */
|
13
|
+
controlType: ComputedRef<string | null | undefined>;
|
14
|
+
/** 控件配置参数. */
|
15
|
+
controlProperties: ComputedRef<T>;
|
16
|
+
};
|
17
|
+
export declare function useKgFormItem<T = Record<string, any>>(props?: IKgFormItemProps): IUseKgFormItem<T>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgForm.Item.Addon.Lookup.Modal.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
visible: PropType<boolean>;
|
5
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
6
|
+
};
|
7
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
9
|
+
visible: PropType<boolean>;
|
10
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
11
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
12
|
+
visible: PropType<boolean>;
|
13
|
+
'onUpdate:visible': PropType<(value: boolean) => void>;
|
14
|
+
}>> & {
|
15
|
+
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
16
|
+
}, {}>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgForm.Item.Addon.Lookup.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/** 是否禁用. */
|
5
|
+
kgDisabled: {
|
6
|
+
type: PropType<boolean>;
|
7
|
+
default: undefined;
|
8
|
+
};
|
9
|
+
/** 查找配置ID. */
|
10
|
+
kgLookupID: PropType<string>;
|
11
|
+
};
|
12
|
+
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
14
|
+
/** 是否禁用. */
|
15
|
+
kgDisabled: {
|
16
|
+
type: PropType<boolean>;
|
17
|
+
default: undefined;
|
18
|
+
};
|
19
|
+
/** 查找配置ID. */
|
20
|
+
kgLookupID: PropType<string>;
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
22
|
+
/** 是否禁用. */
|
23
|
+
kgDisabled: {
|
24
|
+
type: PropType<boolean>;
|
25
|
+
default: undefined;
|
26
|
+
};
|
27
|
+
/** 查找配置ID. */
|
28
|
+
kgLookupID: PropType<string>;
|
29
|
+
}>>, {
|
30
|
+
kgDisabled: boolean;
|
31
|
+
}>;
|
32
|
+
export default _default;
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import '../KgForm.Item.less';
|
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<string>;
|
13
|
+
default: import("../../..").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
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
46
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
47
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
49
|
+
kgVarName: {
|
50
|
+
type: import("vue").PropType<string>;
|
51
|
+
required: boolean;
|
52
|
+
};
|
53
|
+
kgContext: {
|
54
|
+
type: import("vue").PropType<string>;
|
55
|
+
default: import("../../..").KG_FORM_CONTEXT;
|
56
|
+
};
|
57
|
+
kgDisabled: {
|
58
|
+
type: import("vue").PropType<boolean>;
|
59
|
+
default: undefined;
|
60
|
+
};
|
61
|
+
kgSpan: import("vue").PropType<number>;
|
62
|
+
kgPlaceholder: import("vue").PropType<string>;
|
63
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
64
|
+
kgShowLabel: {
|
65
|
+
type: import("vue").PropType<boolean>;
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
kgAllowClear: {
|
69
|
+
type: import("vue").PropType<boolean>;
|
70
|
+
default: undefined;
|
71
|
+
};
|
72
|
+
kgShowTime: {
|
73
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
74
|
+
default: undefined;
|
75
|
+
};
|
76
|
+
kgPicker: {
|
77
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
78
|
+
default: undefined;
|
79
|
+
};
|
80
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
81
|
+
value: {
|
82
|
+
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
83
|
+
default: undefined;
|
84
|
+
};
|
85
|
+
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
86
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
87
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
88
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
89
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
90
|
+
}>> & {
|
91
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
92
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
93
|
+
onKgChange?: ((...args: any[]) => any) | undefined;
|
94
|
+
}, {
|
95
|
+
value: import("../index.vm").IKgFormItemValue;
|
96
|
+
kgDisabled: boolean;
|
97
|
+
kgContext: string;
|
98
|
+
kgShowLabel: boolean;
|
99
|
+
kgAllowClear: boolean;
|
100
|
+
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
101
|
+
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
102
|
+
}>;
|
103
|
+
export default _default;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import '../KgForm.Item.less';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
kgVarName: {
|
4
|
+
type: import("vue").PropType<string>;
|
5
|
+
required: boolean;
|
6
|
+
};
|
7
|
+
kgContext: {
|
8
|
+
type: import("vue").PropType<string>;
|
9
|
+
default: import("../../..").KG_FORM_CONTEXT;
|
10
|
+
};
|
11
|
+
kgDisabled: {
|
12
|
+
type: import("vue").PropType<boolean>;
|
13
|
+
default: undefined;
|
14
|
+
};
|
15
|
+
kgSpan: import("vue").PropType<number>;
|
16
|
+
kgPlaceholder: import("vue").PropType<string>;
|
17
|
+
/** 是否全选. */
|
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
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
43
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
44
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
45
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value" | "kgCheckboxGroupChange")[], "kgSubmit" | "kgChange" | "update:value" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
|
+
kgVarName: {
|
47
|
+
type: import("vue").PropType<string>;
|
48
|
+
required: boolean;
|
49
|
+
};
|
50
|
+
kgContext: {
|
51
|
+
type: import("vue").PropType<string>;
|
52
|
+
default: import("../../..").KG_FORM_CONTEXT;
|
53
|
+
};
|
54
|
+
kgDisabled: {
|
55
|
+
type: import("vue").PropType<boolean>;
|
56
|
+
default: undefined;
|
57
|
+
};
|
58
|
+
kgSpan: import("vue").PropType<number>;
|
59
|
+
kgPlaceholder: import("vue").PropType<string>;
|
60
|
+
/** 是否全选. */
|
61
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
62
|
+
kgShowLabel: {
|
63
|
+
type: import("vue").PropType<boolean>;
|
64
|
+
default: boolean;
|
65
|
+
};
|
66
|
+
kgAllowClear: {
|
67
|
+
type: import("vue").PropType<boolean>;
|
68
|
+
default: undefined;
|
69
|
+
};
|
70
|
+
kgShowTime: {
|
71
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
72
|
+
default: undefined;
|
73
|
+
};
|
74
|
+
kgPicker: {
|
75
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
76
|
+
default: undefined;
|
77
|
+
};
|
78
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
79
|
+
value: {
|
80
|
+
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
81
|
+
default: undefined;
|
82
|
+
};
|
83
|
+
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
84
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
85
|
+
onKgChange: import("vue").PropType<(value: any) => 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
|
+
onKgChange?: ((...args: any[]) => any) | undefined;
|
92
|
+
onKgCheckboxGroupChange?: ((...args: any[]) => any) | undefined;
|
93
|
+
}, {
|
94
|
+
value: import("../index.vm").IKgFormItemValue;
|
95
|
+
kgDisabled: boolean;
|
96
|
+
kgContext: string;
|
97
|
+
kgShowLabel: boolean;
|
98
|
+
kgAllowClear: boolean;
|
99
|
+
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
100
|
+
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
101
|
+
}>;
|
102
|
+
export default _default;
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import dayjs from 'dayjs';
|
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<string>;
|
10
|
+
default: import("../../..").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<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
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
43
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
44
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
45
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange" | "update:value")[], "kgSubmit" | "kgChange" | "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
|
+
kgVarName: {
|
47
|
+
type: import("vue").PropType<string>;
|
48
|
+
required: boolean;
|
49
|
+
};
|
50
|
+
kgContext: {
|
51
|
+
type: import("vue").PropType<string>;
|
52
|
+
default: import("../../..").KG_FORM_CONTEXT;
|
53
|
+
};
|
54
|
+
kgDisabled: {
|
55
|
+
type: import("vue").PropType<boolean>;
|
56
|
+
default: undefined;
|
57
|
+
};
|
58
|
+
kgSpan: import("vue").PropType<number>;
|
59
|
+
kgPlaceholder: import("vue").PropType<string>;
|
60
|
+
kgMode: import("vue").PropType<"multiple" | "tags">;
|
61
|
+
kgShowLabel: {
|
62
|
+
type: import("vue").PropType<boolean>;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
kgAllowClear: {
|
66
|
+
type: import("vue").PropType<boolean>;
|
67
|
+
default: undefined;
|
68
|
+
};
|
69
|
+
kgShowTime: {
|
70
|
+
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>>;
|
71
|
+
default: undefined;
|
72
|
+
};
|
73
|
+
kgPicker: {
|
74
|
+
type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
|
75
|
+
default: undefined;
|
76
|
+
};
|
77
|
+
kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
|
78
|
+
value: {
|
79
|
+
type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
|
80
|
+
default: undefined;
|
81
|
+
};
|
82
|
+
'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
|
83
|
+
onKgSubmit: import("vue").PropType<() => void>;
|
84
|
+
onKgChange: import("vue").PropType<(value: any) => void>;
|
85
|
+
onKgSelectChange: import("vue").PropType<(value: any) => void>;
|
86
|
+
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
87
|
+
}>> & {
|
88
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
89
|
+
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
90
|
+
onKgChange?: ((...args: any[]) => any) | undefined;
|
91
|
+
}, {
|
92
|
+
value: import("../index.vm").IKgFormItemValue;
|
93
|
+
kgDisabled: boolean;
|
94
|
+
kgContext: string;
|
95
|
+
kgShowLabel: boolean;
|
96
|
+
kgAllowClear: boolean;
|
97
|
+
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>;
|
98
|
+
kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
|
99
|
+
}>;
|
100
|
+
export default _default;
|