@kengic/vue 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +6479 -5667
  4. package/dist/project/build/script/buildConf.ts +1 -2
  5. package/dist/project/build/script/postBuild.ts +1 -1
  6. package/dist/project/src/api/sys/model/userModel.ts +1 -0
  7. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/index.d.ts +0 -7
  8. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/ExecuteQuery.d.ts +18 -0
  9. package/dist/src/apis/WMS/Controllers/VarConfigPossibilityController/index.d.ts +1 -0
  10. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  11. package/dist/src/apis/WMS/models.d.ts +20 -4
  12. package/dist/src/components/KgAppSelect/index.hooks.d.ts +3 -3
  13. package/dist/src/components/KgAppSelect/index.store.d.ts +30 -29
  14. package/dist/src/components/KgButton/KgButton.d.ts +18 -12
  15. package/dist/src/components/KgButton/index.d.ts +4 -4
  16. package/dist/src/components/KgButton/index.hooks.d.ts +7 -5
  17. package/dist/src/components/KgButton/index.store.d.ts +19 -16
  18. package/dist/src/components/KgForm/index.hooks.d.ts +21 -8
  19. package/dist/src/components/KgForm/index.store.d.ts +74 -34
  20. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -3
  21. package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +3 -3
  22. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +8 -7
  23. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +6 -7
  24. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -5
  25. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +6 -5
  26. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +3 -3
  27. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -5
  28. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -5
  29. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +6 -5
  30. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +7 -3
  31. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +16 -13
  32. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -5
  33. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +6 -5
  34. package/dist/src/components/KgForm.Item/index.d.ts +1 -1
  35. package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -7
  36. package/dist/src/components/KgResizable/KgResizable.d.ts +52 -52
  37. package/dist/src/components/KgSearch/KgSearch.d.ts +0 -16
  38. package/dist/src/components/KgSearch/KgSearch.service.d.ts +20 -16
  39. package/dist/src/components/KgSearch/index.hooks.d.ts +33 -9
  40. package/dist/src/components/KgSearch/index.store.d.ts +44 -37
  41. package/dist/src/components/KgSubmit/index.hooks.d.ts +48 -15
  42. package/dist/src/components/KgSubmit/index.store.d.ts +44 -45
  43. package/dist/src/components/KgSubmit/index.vm.d.ts +2 -1
  44. package/dist/src/components/KgTable/components/setting/KgTable.Setting.service.d.ts +1 -1
  45. package/dist/src/components/KgTable/index.hooks.d.ts +23 -8
  46. package/dist/src/components/KgTable/index.store.d.ts +48 -34
  47. package/dist/src/components/KgTable/index.vm.d.ts +1 -1
  48. package/dist/src/components/KgVar/index.hooks.d.ts +9 -11
  49. package/dist/src/components/KgVar/index.store.d.ts +51 -60
  50. package/dist/src/components/KgVar/index.store.service.d.ts +2 -1
  51. package/dist/src/components/KgVar/index.vm.d.ts +7 -7
  52. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigInput.d.ts +2 -0
  53. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigLookup.d.ts +2 -0
  54. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigPossibility.d.ts +2 -0
  55. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarConfigTip.d.ts +2 -0
  56. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.VarVariable.d.ts +2 -0
  57. package/dist/src/components/KgVarConfig/index.store.d.ts +23 -16
  58. package/dist/src/components/KgVarConfig/index.vm.d.ts +32 -0
  59. package/dist/src/components/KgWarehouse/index.hooks.d.ts +10 -6
  60. package/dist/src/components/KgWarehouse/index.store.d.ts +15 -14
  61. package/dist/src/components/util.d.ts +7 -7
  62. package/dist/src/consts/i18n/en.d.ts +10 -7
  63. package/dist/src/consts/i18n/zh_CN.d.ts +10 -7
  64. package/dist/src/consts/index.d.ts +0 -284
  65. package/dist/src/consts/index.vm.d.ts +425 -24
  66. package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +6 -0
  67. package/dist/src/utils/kg-var.util.d.ts +4 -3
  68. package/dist/src/utils/kg.util.d.ts +11 -14
  69. package/package.json +2 -2
  70. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Delete.d.ts +0 -18
  71. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/DeleteBatch.d.ts +0 -18
  72. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/Edit.d.ts +0 -16
  73. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ExportXls.d.ts +0 -30
  74. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/ImportExcel.d.ts +0 -15
  75. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/List.d.ts +0 -37
  76. package/dist/src/apis/WMS/Controllers/VarConfigDescriptionController/QueryById.d.ts +0 -19
  77. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.CreateModal.d.ts +0 -32
  78. /package/dist/src/components/KgTable/components/setting/config/{KgTable.Setting.ConfigModal.VarGridMaster.hooks.d.ts → KgTable.Setting.ConfigModal.VarGridMaster.service.d.ts} +0 -0
  79. /package/dist/src/components/KgVarConfig/components/var/{KgVarConfig.Modal.Var.Vars.d.ts → KgVarConfig.Modal.Var.VarConfigControl.d.ts} +0 -0
@@ -1,19 +1,23 @@
1
1
  import { StoreDefinition } from 'pinia';
2
2
  import { ComputedRef, Ref } from 'vue';
3
- import { IKgEventCb } from '../../consts';
3
+ import { IKgEventListener, KG_FORM_CONTEXT } from '../../consts';
4
4
  import { IKgTableRow } from '../KgTable';
5
5
  /**
6
6
  * 事件类型.
7
- * 'change': 表单控件数据发生变更
7
+ * 'change': 表单控件的值发生变更
8
+ * 'selectBeforeRequest': 即将发起查询请求, 如果返回 true 表示不会发起请求,
8
9
  * 'selectBeforeSetDatas': 下拉列表查询请求成功, 列表数据尚未赋值. 此处可以对查询接口返回的列表数据作处理
9
10
  * 'selectChange': 下拉列表选中某个(可能多个)数据
10
11
  * 'lookupBeforeOpen': 查找弹窗打开之前
11
12
  * 'lookupBeforeOk': 查找弹窗点击确定之前. 如果返回 true 则查找弹窗不会触发 kgOk 事件
12
13
  * 'lookupOk': 查找弹窗点击确定
13
14
  */
14
- export declare type IKgFormEvent = 'change' | 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
15
- /** 事件监听函数: change. */
16
- export declare type IKgFormChangeCbParam = {
15
+ export declare type IKgFormEvent = 'change' | 'selectBeforeRequest' | 'selectBeforeSetDatas' | 'selectChange' | 'lookupBeforeOpen' | 'lookupBeforeOk' | 'lookupOk';
16
+ export declare type IKgFormChangeEventListenerParameter = {
17
+ /**
18
+ * 表单控件所处环境.
19
+ */
20
+ context: KG_FORM_CONTEXT;
17
21
  isCopying: boolean | null;
18
22
  isCreating: boolean | null;
19
23
  isDeleting: boolean | null;
@@ -27,9 +31,27 @@ export declare type IKgFormChangeCbParam = {
27
31
  */
28
32
  variableName: string;
29
33
  };
30
- export declare type IKgFormChangeCb = ((param: IKgFormChangeCbParam) => Promise<boolean>) & IKgEventCb;
31
- /** 事件监听函数: selectBeforeSetDatas. */
32
- export declare type IKgFormSelectBeforeSetDatasCbParam<T = any> = {
34
+ export declare type IKgFormChangeEventListener = ((param: IKgFormChangeEventListenerParameter) => Promise<boolean>) & IKgEventListener;
35
+ export declare type IKgFormSelectBeforeRequestEventListenerParameter = {
36
+ /**
37
+ * 表单控件所处环境.
38
+ */
39
+ context: KG_FORM_CONTEXT;
40
+ /** 查询接口请求参数. */
41
+ params: Record<string, any>;
42
+ /** 查询接口返回的数据, 调用者可以直接修改该数据, 从而实现手动提供列表数据. */
43
+ response: Ref;
44
+ /**
45
+ * 变量名称.
46
+ */
47
+ varName: string;
48
+ };
49
+ export declare type IKgFormSelectBeforeRequestEventListener = ((param: IKgFormSelectBeforeRequestEventListenerParameter) => Promise<boolean>) & IKgEventListener;
50
+ export declare type IKgFormSelectBeforeSetDatasEventListenerParameter<T = any> = {
51
+ /**
52
+ * 表单控件所处环境.
53
+ */
54
+ context: KG_FORM_CONTEXT;
33
55
  /** 列表数据. */
34
56
  datas: Ref<Array<T>>;
35
57
  isCopying: boolean | null;
@@ -37,11 +59,14 @@ export declare type IKgFormSelectBeforeSetDatasCbParam<T = any> = {
37
59
  isDeleting: boolean | null;
38
60
  isUpdating: boolean | null;
39
61
  /** 变量名称. */
40
- variableName: string;
62
+ varName: string;
41
63
  };
42
- export declare type IKgFormSelectBeforeSetDatasCb = ((param: IKgFormSelectBeforeSetDatasCbParam) => Promise<boolean>) & IKgEventCb;
43
- /** 事件监听函数: selectChange. */
44
- export declare type IKgFormSelectChangeCbParam = {
64
+ export declare type IKgFormSelectBeforeSetDatasEventListener = ((param: IKgFormSelectBeforeSetDatasEventListenerParameter) => Promise<boolean>) & IKgEventListener;
65
+ export declare type IKgFormSelectChangeEventListenerParameter = {
66
+ /**
67
+ * 表单控件所处环境.
68
+ */
69
+ context: KG_FORM_CONTEXT;
45
70
  isCopying: boolean | null;
46
71
  isCreating: boolean | null;
47
72
  isDeleting: boolean | null;
@@ -49,7 +74,7 @@ export declare type IKgFormSelectChangeCbParam = {
49
74
  isMultiple: boolean;
50
75
  isUpdating: boolean | null;
51
76
  /** 表单数据对象. */
52
- model: Ref<Record<string, any>> | null;
77
+ model: Ref<Record<string, any> | null> | null;
53
78
  /** 选中的数据对象组成的数组, 如果是单选则数组中只有一个数据对象. */
54
79
  rows: Array<any> | null;
55
80
  /** 选中的数据组成的数组, 如果是单选则数组中只有一个数据. */
@@ -57,17 +82,23 @@ export declare type IKgFormSelectChangeCbParam = {
57
82
  /** 变量. */
58
83
  var_nam: string;
59
84
  };
60
- export declare type IKgFormSelectChangeCb = ((param: IKgFormSelectChangeCbParam) => Promise<boolean>) & IKgEventCb;
61
- /** 事件监听函数: lookupBeforeOpen. */
62
- export declare type IKgFormLookupBeforeOpenCbParam = {
85
+ export declare type IKgFormSelectChangeEventListener = ((param: IKgFormSelectChangeEventListenerParameter) => Promise<boolean>) & IKgEventListener;
86
+ export declare type IKgFormLookupBeforeOpenEventListenerParameter = {
87
+ /**
88
+ * 表单控件所处环境.
89
+ */
90
+ context: KG_FORM_CONTEXT;
63
91
  /** 查找弹出的界面标识. */
64
92
  lookupFormID: string;
65
93
  /** 变量. */
66
94
  var_nam: string;
67
95
  };
68
- export declare type IKgFormLookupBeforeOpenCb = ((param: IKgFormLookupBeforeOpenCbParam) => Promise<boolean>) & IKgEventCb;
69
- /** 事件监听函数: lookupBeforeOk. */
70
- export declare type IKgFormLookupBeforeOkCbParam = {
96
+ export declare type IKgFormLookupBeforeOpenEventListener = ((param: IKgFormLookupBeforeOpenEventListenerParameter) => Promise<boolean>) & IKgEventListener;
97
+ export declare type IKgFormLookupBeforeOkEventListenerParameter = {
98
+ /**
99
+ * 表单控件所处环境.
100
+ */
101
+ context: KG_FORM_CONTEXT;
71
102
  /** 是否多选, 否则单选. */
72
103
  isMultiple: boolean;
73
104
  /**
@@ -87,9 +118,12 @@ export declare type IKgFormLookupBeforeOkCbParam = {
87
118
  /** 变量. */
88
119
  var_nam: string;
89
120
  };
90
- export declare type IKgFormLookupBeforeOkCb = ((param: IKgFormLookupBeforeOkCbParam) => Promise<boolean>) & IKgEventCb;
91
- /** 事件监听函数: lookupOk. */
92
- export declare type IKgFormLookupOkCbParam = {
121
+ export declare type IKgFormLookupBeforeOkEventListener = ((param: IKgFormLookupBeforeOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
122
+ export declare type IKgFormLookupOkEventListenerParameter = {
123
+ /**
124
+ * 表单控件所处环境.
125
+ */
126
+ context: KG_FORM_CONTEXT;
93
127
  /** 是否多选, 否则单选. */
94
128
  isMultiple: boolean;
95
129
  /** 表单数据对象. */
@@ -111,16 +145,17 @@ export declare type IKgFormLookupOkCbParam = {
111
145
  /** 变量. */
112
146
  var_nam: string;
113
147
  };
114
- export declare type IKgFormLookupOkCb = ((param: IKgFormLookupOkCbParam) => Promise<boolean>) & IKgEventCb;
115
- export declare type IKgFormCbParam = IKgFormChangeCbParam | IKgFormSelectBeforeSetDatasCbParam | IKgFormSelectChangeCbParam | IKgFormLookupBeforeOpenCbParam | IKgFormLookupBeforeOkCbParam | IKgFormLookupOkCbParam;
116
- export declare type IKgFormCb = IKgFormChangeCb | IKgFormSelectBeforeSetDatasCb | IKgFormSelectChangeCb | IKgFormLookupBeforeOpenCb | IKgFormLookupBeforeOkCb | IKgFormLookupOkCb;
148
+ export declare type IKgFormLookupOkEventListener = ((param: IKgFormLookupOkEventListenerParameter) => Promise<boolean>) & IKgEventListener;
149
+ export declare type IKgFormEventListenerParameter = IKgFormChangeEventListenerParameter | IKgFormSelectBeforeRequestEventListenerParameter | IKgFormSelectBeforeSetDatasEventListenerParameter | IKgFormSelectChangeEventListenerParameter | IKgFormLookupBeforeOpenEventListenerParameter | IKgFormLookupBeforeOkEventListenerParameter | IKgFormLookupOkEventListenerParameter;
150
+ export declare type IKgFormEventListener = IKgFormChangeEventListener | IKgFormSelectBeforeRequestEventListener | IKgFormSelectBeforeSetDatasEventListener | IKgFormSelectChangeEventListener | IKgFormLookupBeforeOpenEventListener | IKgFormLookupBeforeOkEventListener | IKgFormLookupOkEventListener;
117
151
  export interface IUseKgFormStoreState {
118
- changeListenersMap: Map<string, Array<IKgFormChangeCb>>;
119
- lookupBeforeOkListenersMap: Map<string, Array<IKgFormLookupBeforeOkCb>>;
120
- lookupBeforeOpenListenersMap: Map<string, Array<IKgFormLookupBeforeOpenCb>>;
121
- lookupOkListenersMap: Map<string, Array<IKgFormLookupOkCb>>;
122
- selectBeforeSetDatasListenersMap: Map<string, Array<IKgFormSelectBeforeSetDatasCb>>;
123
- selectChangeListenersMap: Map<string, Array<IKgFormSelectChangeCb>>;
152
+ changeEventListenersMap: Map<string, Array<IKgFormChangeEventListener>>;
153
+ lookupBeforeOkEventListenersMap: Map<string, Array<IKgFormLookupBeforeOkEventListener>>;
154
+ lookupBeforeOpenEventListenersMap: Map<string, Array<IKgFormLookupBeforeOpenEventListener>>;
155
+ lookupOkEventListenersMap: Map<string, Array<IKgFormLookupOkEventListener>>;
156
+ selectBeforeRequestEventListenersMap: Map<string, Array<IKgFormSelectBeforeRequestEventListener>>;
157
+ selectBeforeSetDatasEventListenersMap: Map<string, Array<IKgFormSelectBeforeSetDatasEventListener>>;
158
+ selectChangeEventListenersMap: Map<string, Array<IKgFormSelectChangeEventListener>>;
124
159
  }
125
160
  export interface IUseKgFormStoreGetters {
126
161
  }
@@ -131,21 +166,26 @@ export interface IUseKgFormStoreActions {
131
166
  * @param event 事件名称.
132
167
  * @param cb 回调函数.
133
168
  */
134
- addEventListener(formID: string, event: IKgFormEvent, cb: IKgFormCb): void;
169
+ addEventListener(formID: string, event: IKgFormEvent, cb: IKgFormEventListener): void;
170
+ /**
171
+ * 清理数据.
172
+ * @param formID 页面标识.
173
+ */
174
+ dispose(formID: string | null | undefined): void;
135
175
  /**
136
176
  * 触发事件.
137
177
  * @param formID 界面标识.
138
178
  * @param event 事件名称.
139
179
  * @param param 数据.
140
180
  */
141
- emit<T = IKgFormCbParam>(formID: string, event: IKgFormEvent, param: T): Promise<boolean>;
181
+ emit<T = IKgFormEventListenerParameter>(formID: string, event: IKgFormEvent, param: T): Promise<boolean>;
142
182
  /**
143
183
  * 退订事件监听.
144
184
  * @param formID 界面标识.
145
185
  * @param event 事件名称.
146
186
  * @param cb 回调函数.
147
187
  */
148
- removeEventListener(formID: string, event: IKgFormEvent, cb?: IKgFormCb): void;
188
+ removeEventListener(formID: string, event: IKgFormEvent, cb?: IKgFormEventListener): void;
149
189
  }
150
190
  export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
151
191
  export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  required: boolean;
7
7
  };
8
8
  kgContext: {
9
- type: import("vue").PropType<string>;
9
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
10
10
  default: KG_FORM_CONTEXT;
11
11
  };
12
12
  kgDisabled: {
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  required: boolean;
49
49
  };
50
50
  kgContext: {
51
- type: import("vue").PropType<string>;
51
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
52
52
  default: KG_FORM_CONTEXT;
53
53
  };
54
54
  kgDisabled: {
@@ -91,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
91
91
  }, {
92
92
  value: import("./index.vm").IKgFormItemValue;
93
93
  kgDisabled: boolean;
94
- kgContext: string;
94
+ kgContext: KG_FORM_CONTEXT;
95
95
  kgShowLabel: boolean;
96
96
  kgAllowClear: boolean;
97
97
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,11 +1,11 @@
1
- import { IKgFormItemProps } from './index.vm';
2
- export declare function _useFormRules(props: IKgFormItemProps): {
1
+ import { KgFormItemProps } from './index.vm';
2
+ export declare function _useFormRules(props: KgFormItemProps): {
3
3
  /** 表单验证规则. */
4
4
  formRules: import("vue").ComputedRef<import("ant-design-vue/es/form").RuleObject[]>;
5
5
  /** 正在计算表单验证规则. */
6
6
  isFormRulesLoading: import("vue").Ref<boolean>;
7
7
  };
8
- export declare function useKgFormItem<T = Record<string, any>>(props?: IKgFormItemProps): {
8
+ export declare function useKgFormItem<T = Record<string, any>>(props?: KgFormItemProps): {
9
9
  /** 控件类型. */
10
10
  controlType: import("vue").ComputedRef<string | null | undefined>;
11
11
  /** 控件配置参数. */
@@ -1,16 +1,17 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
1
2
  /**
2
3
  * <p>表单控件:多选框.</p>
3
4
  * <p>组件 Checkbox 的 checked 属性使用的是 true/false, 本组件实际传入的参数为 1/0, 因此存在数据转换.</p>
4
5
  */
5
6
  declare const _default: import("vue").DefineComponent<{
6
- /** 是否勾选. */
7
7
  kgVarName: {
8
8
  type: import("vue").PropType<string>;
9
+ /** 是否勾选. */
9
10
  required: boolean;
10
11
  };
11
12
  kgContext: {
12
- type: import("vue").PropType<string>;
13
- default: import("../../..").KG_FORM_CONTEXT;
13
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
14
+ default: KG_FORM_CONTEXT;
14
15
  };
15
16
  kgDisabled: {
16
17
  type: import("vue").PropType<boolean>;
@@ -46,14 +47,14 @@ declare const _default: import("vue").DefineComponent<{
46
47
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
47
48
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
48
49
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange")[], "update:value" | "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
- /** 是否勾选. */
50
50
  kgVarName: {
51
51
  type: import("vue").PropType<string>;
52
+ /** 是否勾选. */
52
53
  required: boolean;
53
54
  };
54
55
  kgContext: {
55
- type: import("vue").PropType<string>;
56
- default: import("../../..").KG_FORM_CONTEXT;
56
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
57
+ default: KG_FORM_CONTEXT;
57
58
  };
58
59
  kgDisabled: {
59
60
  type: import("vue").PropType<boolean>;
@@ -95,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
95
96
  }, {
96
97
  value: import("../index.vm").IKgFormItemValue;
97
98
  kgDisabled: boolean;
98
- kgContext: string;
99
+ kgContext: KG_FORM_CONTEXT;
99
100
  kgShowLabel: boolean;
100
101
  kgAllowClear: boolean;
101
102
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,11 +1,12 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  kgVarName: {
3
4
  type: import("vue").PropType<string>;
4
5
  required: boolean;
5
6
  };
6
7
  kgContext: {
7
- type: import("vue").PropType<string>;
8
- default: import("../../..").KG_FORM_CONTEXT;
8
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
9
+ default: KG_FORM_CONTEXT;
9
10
  };
10
11
  kgDisabled: {
11
12
  type: import("vue").PropType<boolean>;
@@ -14,7 +15,6 @@ declare const _default: import("vue").DefineComponent<{
14
15
  kgSpan: import("vue").PropType<number>;
15
16
  kgPlaceholder: import("vue").PropType<string>;
16
17
  kgMode: import("vue").PropType<"multiple" | "tags">;
17
- /** 是否全选. */
18
18
  kgShowLabel: {
19
19
  type: import("vue").PropType<boolean>;
20
20
  default: boolean;
@@ -47,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
47
47
  required: boolean;
48
48
  };
49
49
  kgContext: {
50
- type: import("vue").PropType<string>;
51
- default: import("../../..").KG_FORM_CONTEXT;
50
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
51
+ default: KG_FORM_CONTEXT;
52
52
  };
53
53
  kgDisabled: {
54
54
  type: import("vue").PropType<boolean>;
@@ -57,7 +57,6 @@ declare const _default: import("vue").DefineComponent<{
57
57
  kgSpan: import("vue").PropType<number>;
58
58
  kgPlaceholder: import("vue").PropType<string>;
59
59
  kgMode: import("vue").PropType<"multiple" | "tags">;
60
- /** 是否全选. */
61
60
  kgShowLabel: {
62
61
  type: import("vue").PropType<boolean>;
63
62
  default: boolean;
@@ -92,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
92
91
  }, {
93
92
  value: import("../index.vm").IKgFormItemValue;
94
93
  kgDisabled: boolean;
95
- kgContext: string;
94
+ kgContext: KG_FORM_CONTEXT;
96
95
  kgShowLabel: boolean;
97
96
  kgAllowClear: boolean;
98
97
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,12 +1,13 @@
1
1
  import dayjs from 'dayjs';
2
+ import { KG_FORM_CONTEXT } from '../../../consts';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  kgVarName: {
4
5
  type: import("vue").PropType<string>;
5
6
  required: boolean;
6
7
  };
7
8
  kgContext: {
8
- type: import("vue").PropType<string>;
9
- default: import("../../..").KG_FORM_CONTEXT;
9
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
10
+ default: KG_FORM_CONTEXT;
10
11
  };
11
12
  kgDisabled: {
12
13
  type: import("vue").PropType<boolean>;
@@ -47,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
47
48
  required: boolean;
48
49
  };
49
50
  kgContext: {
50
- type: import("vue").PropType<string>;
51
- default: import("../../..").KG_FORM_CONTEXT;
51
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
52
+ default: KG_FORM_CONTEXT;
52
53
  };
53
54
  kgDisabled: {
54
55
  type: import("vue").PropType<boolean>;
@@ -90,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
90
91
  }, {
91
92
  value: import("../index.vm").IKgFormItemValue;
92
93
  kgDisabled: boolean;
93
- kgContext: string;
94
+ kgContext: KG_FORM_CONTEXT;
94
95
  kgShowLabel: boolean;
95
96
  kgAllowClear: boolean;
96
97
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>;
@@ -1,12 +1,13 @@
1
1
  import dayjs from 'dayjs';
2
+ import { KG_FORM_CONTEXT } from '../../../consts';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  kgVarName: {
4
5
  type: import("vue").PropType<string>;
5
6
  required: boolean;
6
7
  };
7
8
  kgContext: {
8
- type: import("vue").PropType<string>;
9
- default: import("../../../consts").KG_FORM_CONTEXT;
9
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
10
+ default: KG_FORM_CONTEXT;
10
11
  };
11
12
  kgDisabled: {
12
13
  type: import("vue").PropType<boolean>;
@@ -47,8 +48,8 @@ declare const _default: import("vue").DefineComponent<{
47
48
  required: boolean;
48
49
  };
49
50
  kgContext: {
50
- type: import("vue").PropType<string>;
51
- default: import("../../../consts").KG_FORM_CONTEXT;
51
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
52
+ default: KG_FORM_CONTEXT;
52
53
  };
53
54
  kgDisabled: {
54
55
  type: import("vue").PropType<boolean>;
@@ -90,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
90
91
  }, {
91
92
  value: import("../index.vm").IKgFormItemValue;
92
93
  kgDisabled: boolean;
93
- kgContext: string;
94
+ kgContext: KG_FORM_CONTEXT;
94
95
  kgShowLabel: boolean;
95
96
  kgAllowClear: boolean;
96
97
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<dayjs.Dayjs>;
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{
4
4
  required: boolean;
5
5
  };
6
6
  kgContext: {
7
- type: import("vue").PropType<string>;
7
+ type: import("vue").PropType<import("../../../consts").KG_FORM_CONTEXT>;
8
8
  default: import("../../../consts").KG_FORM_CONTEXT;
9
9
  };
10
10
  kgDisabled: {
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<{
46
46
  required: boolean;
47
47
  };
48
48
  kgContext: {
49
- type: import("vue").PropType<string>;
49
+ type: import("vue").PropType<import("../../../consts").KG_FORM_CONTEXT>;
50
50
  default: import("../../../consts").KG_FORM_CONTEXT;
51
51
  };
52
52
  kgDisabled: {
@@ -85,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
85
85
  }>>, {
86
86
  value: import("../index.vm").IKgFormItemValue;
87
87
  kgDisabled: boolean;
88
- kgContext: string;
88
+ kgContext: import("../../../consts").KG_FORM_CONTEXT;
89
89
  kgShowLabel: boolean;
90
90
  kgAllowClear: boolean;
91
91
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,11 +1,12 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  kgVarName: {
3
4
  type: import("vue").PropType<string>;
4
5
  required: boolean;
5
6
  };
6
7
  kgContext: {
7
- type: import("vue").PropType<string>;
8
- default: import("../../..").KG_FORM_CONTEXT;
8
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
9
+ default: KG_FORM_CONTEXT;
9
10
  };
10
11
  kgDisabled: {
11
12
  type: import("vue").PropType<boolean>;
@@ -46,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
46
47
  required: boolean;
47
48
  };
48
49
  kgContext: {
49
- type: import("vue").PropType<string>;
50
- default: import("../../..").KG_FORM_CONTEXT;
50
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
51
+ default: KG_FORM_CONTEXT;
51
52
  };
52
53
  kgDisabled: {
53
54
  type: import("vue").PropType<boolean>;
@@ -89,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
89
90
  }, {
90
91
  value: import("../index.vm").IKgFormItemValue;
91
92
  kgDisabled: boolean;
92
- kgContext: string;
93
+ kgContext: KG_FORM_CONTEXT;
93
94
  kgShowLabel: boolean;
94
95
  kgAllowClear: boolean;
95
96
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,11 +1,12 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  kgVarName: {
3
4
  type: import("vue").PropType<string>;
4
5
  required: boolean;
5
6
  };
6
7
  kgContext: {
7
- type: import("vue").PropType<string>;
8
- default: import("../../..").KG_FORM_CONTEXT;
8
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
9
+ default: KG_FORM_CONTEXT;
9
10
  };
10
11
  kgDisabled: {
11
12
  type: import("vue").PropType<boolean>;
@@ -46,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
46
47
  required: boolean;
47
48
  };
48
49
  kgContext: {
49
- type: import("vue").PropType<string>;
50
- default: import("../../..").KG_FORM_CONTEXT;
50
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
51
+ default: KG_FORM_CONTEXT;
51
52
  };
52
53
  kgDisabled: {
53
54
  type: import("vue").PropType<boolean>;
@@ -89,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
89
90
  }, {
90
91
  value: import("../index.vm").IKgFormItemValue;
91
92
  kgDisabled: boolean;
92
- kgContext: string;
93
+ kgContext: KG_FORM_CONTEXT;
93
94
  kgShowLabel: boolean;
94
95
  kgAllowClear: boolean;
95
96
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,11 +1,12 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  kgVarName: {
3
4
  type: import("vue").PropType<string>;
4
5
  required: boolean;
5
6
  };
6
7
  kgContext: {
7
- type: import("vue").PropType<string>;
8
- default: import("../../../consts").KG_FORM_CONTEXT;
8
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
9
+ default: KG_FORM_CONTEXT;
9
10
  };
10
11
  kgDisabled: {
11
12
  type: import("vue").PropType<boolean>;
@@ -46,8 +47,8 @@ declare const _default: import("vue").DefineComponent<{
46
47
  required: boolean;
47
48
  };
48
49
  kgContext: {
49
- type: import("vue").PropType<string>;
50
- default: import("../../../consts").KG_FORM_CONTEXT;
50
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
51
+ default: KG_FORM_CONTEXT;
51
52
  };
52
53
  kgDisabled: {
53
54
  type: import("vue").PropType<boolean>;
@@ -89,7 +90,7 @@ declare const _default: import("vue").DefineComponent<{
89
90
  }, {
90
91
  value: import("../index.vm").IKgFormItemValue;
91
92
  kgDisabled: boolean;
92
- kgContext: string;
93
+ kgContext: KG_FORM_CONTEXT;
93
94
  kgShowLabel: boolean;
94
95
  kgAllowClear: boolean;
95
96
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  required: boolean;
6
6
  };
7
7
  kgContext: {
8
- type: import("vue").PropType<string>;
8
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
9
9
  default: KG_FORM_CONTEXT;
10
10
  };
11
11
  kgDisabled: {
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
20
20
  default: boolean;
21
21
  };
22
22
  kgAllowClear: {
23
+ /** 是否允许清空. */
23
24
  type: import("vue").PropType<boolean>;
24
25
  default: undefined;
25
26
  };
@@ -36,6 +37,7 @@ declare const _default: import("vue").DefineComponent<{
36
37
  type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
37
38
  default: undefined;
38
39
  };
40
+ /** 初始. */
39
41
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
42
  onKgSubmit: import("vue").PropType<() => void>;
41
43
  onKgChange: import("vue").PropType<(value: any) => void>;
@@ -47,7 +49,7 @@ declare const _default: import("vue").DefineComponent<{
47
49
  required: boolean;
48
50
  };
49
51
  kgContext: {
50
- type: import("vue").PropType<string>;
52
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
51
53
  default: KG_FORM_CONTEXT;
52
54
  };
53
55
  kgDisabled: {
@@ -62,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
62
64
  default: boolean;
63
65
  };
64
66
  kgAllowClear: {
67
+ /** 是否允许清空. */
65
68
  type: import("vue").PropType<boolean>;
66
69
  default: undefined;
67
70
  };
@@ -78,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
78
81
  type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
79
82
  default: undefined;
80
83
  };
84
+ /** 初始. */
81
85
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
82
86
  onKgSubmit: import("vue").PropType<() => void>;
83
87
  onKgChange: import("vue").PropType<(value: any) => void>;
@@ -92,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
92
96
  }, {
93
97
  value: import("../index.vm").IKgFormItemValue;
94
98
  kgDisabled: boolean;
95
- kgContext: string;
99
+ kgContext: KG_FORM_CONTEXT;
96
100
  kgShowLabel: boolean;
97
101
  kgAllowClear: boolean;
98
102
  kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
@@ -1,27 +1,30 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import { VarConfigPossibility } from '../../../apis/WMS/models';
3
+ import { KgFormItemProps } from '../index.vm';
3
4
  export declare type IUseKgFormItemSelect = {
4
- /** VarConfigPossibility 配置. */
5
- varPossibility: ComputedRef<VarConfigPossibility | null>;
6
- /** 作为数据的列. */
7
- val_clm: ComputedRef<string>;
8
- /** 作为显示的列. */
9
- lbl_clm: ComputedRef<string>;
10
- /** 查询参数. */
11
- requestParams: ComputedRef<Record<string, any>>;
12
5
  /** 列表数据. */
13
6
  datas: Ref<Array<Record<string, any>>>;
14
7
  /** 是否正在查询列表数据. */
15
8
  isDatasRequesting: Ref<boolean>;
9
+ /** 作为显示的列. */
10
+ lbl_clm: ComputedRef<string>;
11
+ /**
12
+ * 查询列表数据.
13
+ */
14
+ requestDatas(): Promise<void>;
15
+ /** 查询参数. */
16
+ requestParams: ComputedRef<Record<string, any>>;
16
17
  /**
17
18
  * 处理列表数据.
18
19
  * @param datas 原始列表数据.
19
20
  * @return {} 处理后的列表数据.
20
21
  */
21
22
  transformDatas(datas?: Array<Record<string, any>> | null): Array<Record<string, any>>;
22
- /**
23
- * 查询列表数据.
24
- */
25
- requestDatas(): Promise<void>;
23
+ /** 作为数据的列. */
24
+ val_clm: ComputedRef<string>;
25
+ /** VarConfigPossibility 配置. */
26
+ varConfigPossibility: ComputedRef<VarConfigPossibility | null>;
26
27
  };
27
- export declare function useKgFormItemSelect(): IUseKgFormItemSelect;
28
+ export declare function useKgFormItemSelect(param: {
29
+ props: KgFormItemProps;
30
+ }): IUseKgFormItemSelect;