@kengic/vue 0.24.1-beta.2 → 0.25.1-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +4498 -4599
  4. package/dist/src/apis/WMS/models.d.ts +2 -2
  5. package/dist/src/components/KgForm/index.hooks.d.ts +10 -0
  6. package/dist/src/components/KgForm/index.store.d.ts +13 -3
  7. package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +1 -4
  8. package/dist/src/components/KgForm.Item/addon/KgForm.Item.Addon.DynamicQueryOperator.d.ts +49 -0
  9. package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +1 -6
  10. package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +1 -6
  11. package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +1 -4
  12. package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +1 -4
  13. package/dist/src/components/KgForm.Item/components/KgForm.Item.Image.d.ts +0 -2
  14. package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +1 -4
  15. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +1 -4
  16. package/dist/src/components/KgForm.Item/components/KgForm.Item.InputPassword.d.ts +96 -0
  17. package/dist/src/components/KgForm.Item/components/KgForm.Item.RadioGroup.d.ts +5 -6
  18. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +1 -6
  19. package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.service.d.ts +8 -9
  20. package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +1 -4
  21. package/dist/src/components/KgForm.Item/components/KgForm.Item.TextArea.d.ts +1 -4
  22. package/dist/src/components/KgForm.Item/index.vm.d.ts +8 -4
  23. package/dist/src/components/KgSearch/index.store.d.ts +1 -1
  24. package/dist/src/components/KgVar/KgVar.d.ts +14 -4
  25. package/dist/src/components/KgVar/index.hooks.d.ts +4 -0
  26. package/dist/src/components/KgVar/index.store.d.ts +2 -0
  27. package/dist/src/components/KgVar/index.vm.d.ts +6 -0
  28. package/dist/src/components/KgVarConfig/index.store.d.ts +0 -17
  29. package/dist/src/config/index.store.d.ts +5 -0
  30. package/dist/src/consts/i18n/en.d.ts +1 -8
  31. package/dist/src/consts/i18n/zh_CN.d.ts +1 -7
  32. package/dist/src/pages/KgVarFactory/KgVarFactory.d.ts +62 -0
  33. package/dist/src/pages/KgVarFactory/index.d.ts +1 -0
  34. package/dist/src/pages/index.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/dist/src/components/KgVarConfig/components/var/KgVarConfig.Modal.Var.d.ts +0 -2
  37. package/dist/src/pages/KgVarContainer/KgVarContainer.d.ts +0 -6
  38. package/dist/src/pages/KgVarContainer/index.d.ts +0 -1
@@ -627,9 +627,9 @@ export declare class VarGridConfig {
627
627
  mult_flg?: number | null;
628
628
  /** 单击某行时的操作. */
629
629
  operation_on_row_click?: number | null;
630
- /** 当前分页下拉选项(PageSizeOption). */
630
+ /** 默认分页大小(PageSizeOption). */
631
631
  pg_size_opt?: number | null;
632
- /** 所有分页下拉选项(PageSizeOptions). */
632
+ /** 所有分页大小(PageSizeOptions). */
633
633
  pg_size_opts?: string | null;
634
634
  /** 查询条件的界面标识. */
635
635
  prf_frm_id?: string | null;
@@ -1,6 +1,16 @@
1
1
  import { IRemoveEventListenerHandler } from '../../consts';
2
2
  import { IKgFormChangeEventListener, IKgFormLookupBeforeOkEventListener, IKgFormLookupBeforeOpenEventListener, IKgFormLookupOkEventListener, IKgFormSelectBeforeRequestEventListener, IKgFormSelectBeforeSetDatasEventListener, IKgFormSelectChangeEventListener, IKgFormStore } from './index.store';
3
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
+ };
4
14
  formID: string;
5
15
  /**
6
16
  * 监听事件: 表单控件的值发生变更.
@@ -168,13 +168,23 @@ export interface IUseKgFormStoreState {
168
168
  export interface IUseKgFormStoreGetters {
169
169
  }
170
170
  export interface IUseKgFormStoreActions {
171
+ /**
172
+ * 请求列表数据.
173
+ *
174
+ * @param formID 界面标识.
175
+ * @param param 参数.
176
+ * @param param.varName 变量名称.
177
+ */
178
+ Select$requestDatas(formID: string | null | undefined, param: {
179
+ varName: string | null | undefined;
180
+ }): void;
171
181
  /**
172
182
  * 注册事件监听.
173
183
  * @param formID 界面标识.
174
184
  * @param event 事件名称.
175
185
  * @param listener 事件监听函数.
176
186
  */
177
- addEventListener(formID: string, event: IKgFormEvent, listener: IKgFormEventListener): void;
187
+ addEventListener(formID: string | null | undefined, event: IKgFormEvent, listener: IKgFormEventListener): void;
178
188
  /**
179
189
  * 清理数据.
180
190
  * @param formID 页面标识.
@@ -186,14 +196,14 @@ export interface IUseKgFormStoreActions {
186
196
  * @param event 事件名称.
187
197
  * @param param 数据.
188
198
  */
189
- emit<T = IKgFormEventListenerParameter>(formID: string, event: IKgFormEvent, param: T): Promise<boolean>;
199
+ emit<T = IKgFormEventListenerParameter>(formID: string | null | undefined, event: IKgFormEvent, param: T): Promise<boolean>;
190
200
  /**
191
201
  * 退订事件监听.
192
202
  * @param formID 界面标识.
193
203
  * @param event 事件名称.
194
204
  * @param listener 事件监听函数.
195
205
  */
196
- removeEventListener(formID: string, event: IKgFormEvent, listener?: IKgFormEventListener): void;
206
+ removeEventListener(formID: string | null | undefined, event: IKgFormEvent, listener?: IKgFormEventListener): void;
197
207
  }
198
208
  export declare type IUseKgFormStore = StoreDefinition<'KgForm', IUseKgFormStoreState, IUseKgFormStoreGetters, IUseKgFormStoreActions>;
199
209
  export declare type IKgFormStore = ReturnType<IUseKgFormStore>;
@@ -39,10 +39,9 @@ declare const _default: import("vue").DefineComponent<{
39
39
  };
40
40
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
41
41
  onKgSubmit: import("vue").PropType<() => void>;
42
- onKgChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
44
43
  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<{
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<{
46
45
  kgVarName: {
47
46
  type: import("vue").PropType<string>;
48
47
  required: boolean;
@@ -81,12 +80,10 @@ declare const _default: import("vue").DefineComponent<{
81
80
  };
82
81
  'onUpdate:value': import("vue").PropType<(value: import("./index.vm").IKgFormItemValue | null) => void>;
83
82
  onKgSubmit: import("vue").PropType<() => void>;
84
- onKgChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
86
84
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
87
85
  }>> & {
88
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
89
- onKgChange?: ((...args: any[]) => any) | undefined;
90
87
  onKgSelectChange?: ((...args: any[]) => any) | undefined;
91
88
  }, {
92
89
  value: import("./index.vm").IKgFormItemValue;
@@ -0,0 +1,49 @@
1
+ import { ExtractPropTypes } 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;
@@ -6,7 +6,6 @@ import { KG_FORM_CONTEXT } from '../../../consts';
6
6
  declare const _default: import("vue").DefineComponent<{
7
7
  kgVarName: {
8
8
  type: import("vue").PropType<string>;
9
- /** 是否勾选. */
10
9
  required: boolean;
11
10
  };
12
11
  kgContext: {
@@ -43,13 +42,11 @@ declare const _default: import("vue").DefineComponent<{
43
42
  };
44
43
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
45
44
  onKgSubmit: import("vue").PropType<() => void>;
46
- onKgChange: import("vue").PropType<(value: any) => void>;
47
45
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
48
46
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
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<{
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<{
50
48
  kgVarName: {
51
49
  type: import("vue").PropType<string>;
52
- /** 是否勾选. */
53
50
  required: boolean;
54
51
  };
55
52
  kgContext: {
@@ -86,13 +83,11 @@ declare const _default: import("vue").DefineComponent<{
86
83
  };
87
84
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
88
85
  onKgSubmit: import("vue").PropType<() => void>;
89
- onKgChange: import("vue").PropType<(value: any) => void>;
90
86
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
91
87
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
92
88
  }>> & {
93
89
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
94
90
  onKgSubmit?: ((...args: any[]) => any) | undefined;
95
- onKgChange?: ((...args: any[]) => any) | undefined;
96
91
  }, {
97
92
  value: import("../index.vm").IKgFormItemValue;
98
93
  kgDisabled: boolean;
@@ -16,7 +16,6 @@ declare const _default: import("vue").DefineComponent<{
16
16
  kgPlaceholder: import("vue").PropType<string>;
17
17
  kgMode: import("vue").PropType<"multiple" | "tags">;
18
18
  kgShowLabel: {
19
- /** 是否全选. */
20
19
  type: import("vue").PropType<boolean>;
21
20
  default: boolean;
22
21
  };
@@ -39,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
39
38
  };
40
39
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
41
40
  onKgSubmit: import("vue").PropType<() => void>;
42
- onKgChange: import("vue").PropType<(value: any) => void>;
43
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
44
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
45
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgCheckboxGroupChange")[], "update:value" | "kgSubmit" | "kgCheckboxGroupChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
44
  kgVarName: {
47
45
  type: import("vue").PropType<string>;
48
46
  required: boolean;
@@ -59,7 +57,6 @@ declare const _default: import("vue").DefineComponent<{
59
57
  kgPlaceholder: import("vue").PropType<string>;
60
58
  kgMode: import("vue").PropType<"multiple" | "tags">;
61
59
  kgShowLabel: {
62
- /** 是否全选. */
63
60
  type: import("vue").PropType<boolean>;
64
61
  default: boolean;
65
62
  };
@@ -82,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
82
79
  };
83
80
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
84
81
  onKgSubmit: import("vue").PropType<() => void>;
85
- onKgChange: import("vue").PropType<(value: any) => void>;
86
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
87
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
88
84
  }>> & {
89
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
90
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
91
- onKgChange?: ((...args: any[]) => any) | undefined;
92
87
  onKgCheckboxGroupChange?: ((...args: any[]) => any) | undefined;
93
88
  }, {
94
89
  value: import("../index.vm").IKgFormItemValue;
@@ -39,10 +39,9 @@ declare const _default: import("vue").DefineComponent<{
39
39
  };
40
40
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
41
41
  onKgSubmit: import("vue").PropType<() => void>;
42
- onKgChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
44
43
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
45
- }, () => 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<{
44
+ }, () => 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<{
46
45
  kgVarName: {
47
46
  type: import("vue").PropType<string>;
48
47
  required: boolean;
@@ -81,13 +80,11 @@ declare const _default: import("vue").DefineComponent<{
81
80
  };
82
81
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
83
82
  onKgSubmit: import("vue").PropType<() => void>;
84
- onKgChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
86
84
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
87
85
  }>> & {
88
86
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
89
87
  onKgSubmit?: ((...args: any[]) => any) | undefined;
90
- onKgChange?: ((...args: any[]) => any) | undefined;
91
88
  }, {
92
89
  value: import("../index.vm").IKgFormItemValue;
93
90
  kgDisabled: boolean;
@@ -39,10 +39,9 @@ declare const _default: import("vue").DefineComponent<{
39
39
  };
40
40
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
41
41
  onKgSubmit: import("vue").PropType<() => void>;
42
- onKgChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
44
43
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
45
- }, () => 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<{
44
+ }, () => 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<{
46
45
  kgVarName: {
47
46
  type: import("vue").PropType<string>;
48
47
  required: boolean;
@@ -81,13 +80,11 @@ declare const _default: import("vue").DefineComponent<{
81
80
  };
82
81
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
83
82
  onKgSubmit: import("vue").PropType<() => void>;
84
- onKgChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
86
84
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
87
85
  }>> & {
88
86
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
89
87
  onKgSubmit?: ((...args: any[]) => any) | undefined;
90
- onKgChange?: ((...args: any[]) => any) | undefined;
91
88
  }, {
92
89
  value: import("../index.vm").IKgFormItemValue;
93
90
  kgDisabled: boolean;
@@ -37,7 +37,6 @@ declare const _default: import("vue").DefineComponent<{
37
37
  };
38
38
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
39
39
  onKgSubmit: import("vue").PropType<() => void>;
40
- onKgChange: import("vue").PropType<(value: any) => void>;
41
40
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
41
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
43
42
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -79,7 +78,6 @@ declare const _default: import("vue").DefineComponent<{
79
78
  };
80
79
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
81
80
  onKgSubmit: import("vue").PropType<() => void>;
82
- onKgChange: import("vue").PropType<(value: any) => void>;
83
81
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
84
82
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
85
83
  }>>, {
@@ -38,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
38
38
  };
39
39
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
- onKgChange: import("vue").PropType<(value: any) => void>;
42
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => 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<{
43
+ }, () => 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<{
45
44
  kgVarName: {
46
45
  type: import("vue").PropType<string>;
47
46
  required: boolean;
@@ -80,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
80
79
  };
81
80
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
82
81
  onKgSubmit: import("vue").PropType<() => void>;
83
- onKgChange: import("vue").PropType<(value: any) => void>;
84
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
86
84
  }>> & {
87
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
88
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
89
- onKgChange?: ((...args: any[]) => any) | undefined;
90
87
  }, {
91
88
  value: import("../index.vm").IKgFormItemValue;
92
89
  kgDisabled: boolean;
@@ -38,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
38
38
  };
39
39
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
- onKgChange: import("vue").PropType<(value: any) => void>;
42
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => 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<{
43
+ }, () => 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<{
45
44
  kgVarName: {
46
45
  type: import("vue").PropType<string>;
47
46
  required: boolean;
@@ -80,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
80
79
  };
81
80
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
82
81
  onKgSubmit: import("vue").PropType<() => void>;
83
- onKgChange: import("vue").PropType<(value: any) => void>;
84
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
86
84
  }>> & {
87
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
88
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
89
- onKgChange?: ((...args: any[]) => any) | undefined;
90
87
  }, {
91
88
  value: import("../index.vm").IKgFormItemValue;
92
89
  kgDisabled: boolean;
@@ -0,0 +1,96 @@
1
+ import { KG_FORM_CONTEXT } from '../../../consts';
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<KG_FORM_CONTEXT>;
9
+ default: 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
+ kgMode: import("vue").PropType<"multiple" | "tags">;
18
+ kgShowLabel: {
19
+ type: import("vue").PropType<boolean>;
20
+ default: boolean;
21
+ };
22
+ kgAllowClear: {
23
+ type: import("vue").PropType<boolean>;
24
+ default: undefined;
25
+ };
26
+ kgShowTime: {
27
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
28
+ default: undefined;
29
+ };
30
+ kgPicker: {
31
+ type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
32
+ default: undefined;
33
+ };
34
+ kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
35
+ value: {
36
+ type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
37
+ default: undefined;
38
+ };
39
+ 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
+ onKgSubmit: import("vue").PropType<() => void>;
41
+ onKgSelectChange: import("vue").PropType<(value: any) => void>;
42
+ onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
43
+ }, () => 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<{
44
+ kgVarName: {
45
+ type: import("vue").PropType<string>;
46
+ required: boolean;
47
+ };
48
+ kgContext: {
49
+ type: import("vue").PropType<KG_FORM_CONTEXT>;
50
+ default: KG_FORM_CONTEXT;
51
+ };
52
+ kgDisabled: {
53
+ type: import("vue").PropType<boolean>;
54
+ default: undefined;
55
+ };
56
+ kgSpan: import("vue").PropType<number>;
57
+ kgPlaceholder: import("vue").PropType<string>;
58
+ kgMode: import("vue").PropType<"multiple" | "tags">;
59
+ kgShowLabel: {
60
+ type: import("vue").PropType<boolean>;
61
+ default: boolean;
62
+ };
63
+ kgAllowClear: {
64
+ type: import("vue").PropType<boolean>;
65
+ default: undefined;
66
+ };
67
+ kgShowTime: {
68
+ type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
69
+ default: undefined;
70
+ };
71
+ kgPicker: {
72
+ type: import("vue").PropType<import("ant-design-vue/lib/vc-picker/interface").PickerMode>;
73
+ default: undefined;
74
+ };
75
+ kgRules: import("vue").PropType<import("ant-design-vue/es/form").RuleObject[]>;
76
+ value: {
77
+ type: import("vue").PropType<import("../index.vm").IKgFormItemValue>;
78
+ default: undefined;
79
+ };
80
+ 'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
81
+ onKgSubmit: import("vue").PropType<() => void>;
82
+ onKgSelectChange: import("vue").PropType<(value: any) => void>;
83
+ onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
84
+ }>> & {
85
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
86
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
87
+ }, {
88
+ value: import("../index.vm").IKgFormItemValue;
89
+ kgDisabled: boolean;
90
+ kgContext: KG_FORM_CONTEXT;
91
+ kgShowLabel: boolean;
92
+ kgAllowClear: boolean;
93
+ kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
94
+ kgPicker: import("ant-design-vue/lib/vc-picker/interface").PickerMode;
95
+ }>;
96
+ export default _default;
@@ -15,8 +15,9 @@ declare const _default: import("vue").DefineComponent<{
15
15
  kgSpan: import("vue").PropType<number>;
16
16
  kgPlaceholder: import("vue").PropType<string>;
17
17
  kgMode: import("vue").PropType<"multiple" | "tags">;
18
+ /** 初始. */
18
19
  kgShowLabel: {
19
- type: import("vue").PropType<boolean>; /** 初始. */
20
+ type: import("vue").PropType<boolean>;
20
21
  default: boolean;
21
22
  };
22
23
  kgAllowClear: {
@@ -38,10 +39,9 @@ declare const _default: import("vue").DefineComponent<{
38
39
  };
39
40
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
41
  onKgSubmit: import("vue").PropType<() => void>;
41
- onKgChange: import("vue").PropType<(value: any) => void>;
42
42
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
43
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => 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<{
44
+ }, () => 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<{
45
45
  kgVarName: {
46
46
  type: import("vue").PropType<string>;
47
47
  required: boolean;
@@ -57,8 +57,9 @@ 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
+ /** 初始. */
60
61
  kgShowLabel: {
61
- type: import("vue").PropType<boolean>; /** 初始. */
62
+ type: import("vue").PropType<boolean>;
62
63
  default: boolean;
63
64
  };
64
65
  kgAllowClear: {
@@ -80,13 +81,11 @@ declare const _default: import("vue").DefineComponent<{
80
81
  };
81
82
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
82
83
  onKgSubmit: import("vue").PropType<() => void>;
83
- onKgChange: import("vue").PropType<(value: any) => void>;
84
84
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
85
85
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
86
86
  }>> & {
87
87
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
88
88
  onKgSubmit?: ((...args: any[]) => any) | undefined;
89
- onKgChange?: ((...args: any[]) => any) | undefined;
90
89
  }, {
91
90
  value: import("../index.vm").IKgFormItemValue;
92
91
  kgDisabled: boolean;
@@ -21,7 +21,6 @@ declare const _default: import("vue").DefineComponent<{
21
21
  };
22
22
  kgAllowClear: {
23
23
  type: import("vue").PropType<boolean>;
24
- /** 是否允许清空. */
25
24
  default: undefined;
26
25
  };
27
26
  kgShowTime: {
@@ -39,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
39
38
  };
40
39
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
41
40
  onKgSubmit: import("vue").PropType<() => void>;
42
- onKgChange: import("vue").PropType<(value: any) => void>;
43
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
44
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
45
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgSelectChange" | "kgSelectDatasChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgSelectChange" | "kgSelectDatasChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgSelectChange" | "kgSelectDatasChange")[], "update:value" | "kgSubmit" | "kgSelectChange" | "kgSelectDatasChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
44
  kgVarName: {
47
45
  type: import("vue").PropType<string>;
48
46
  required: boolean;
@@ -64,7 +62,6 @@ declare const _default: import("vue").DefineComponent<{
64
62
  };
65
63
  kgAllowClear: {
66
64
  type: import("vue").PropType<boolean>;
67
- /** 是否允许清空. */
68
65
  default: undefined;
69
66
  };
70
67
  kgShowTime: {
@@ -82,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
82
79
  };
83
80
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
84
81
  onKgSubmit: import("vue").PropType<() => void>;
85
- onKgChange: import("vue").PropType<(value: any) => void>;
86
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
87
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
88
84
  }>> & {
89
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
90
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
91
- onKgChange?: ((...args: any[]) => any) | undefined;
92
87
  onKgSelectChange?: ((...args: any[]) => any) | undefined;
93
88
  onKgSelectDatasChange?: ((...args: any[]) => any) | undefined;
94
89
  }, {
@@ -1,17 +1,19 @@
1
- import { ComputedRef, Ref } from 'vue';
1
+ import { ComputedRef } from 'vue';
2
2
  import { VarConfigPossibility } from '../../../apis/WMS/models';
3
3
  import { KgFormItemProps } from '../index.vm';
4
- export declare type IUseKgFormItemSelect = {
4
+ export declare function useKgFormItemSelect(param: {
5
+ props: KgFormItemProps;
6
+ }): {
5
7
  /** 列表数据. */
6
- datas: Ref<Array<Record<string, any>>>;
8
+ datas: import("vue").Ref<Record<string, any>[]>;
7
9
  /** 是否正在查询列表数据. */
8
- isDatasRequesting: Ref<boolean>;
10
+ isDatasRequesting: import("vue").Ref<boolean>;
9
11
  /** 作为显示的列. */
10
12
  lbl_clm: ComputedRef<string>;
11
13
  /**
12
14
  * 查询列表数据.
13
15
  */
14
- requestDatas(): Promise<void>;
16
+ requestDatas: () => Promise<void>;
15
17
  /** 查询参数. */
16
18
  requestParams: ComputedRef<Record<string, any>>;
17
19
  /**
@@ -19,12 +21,9 @@ export declare type IUseKgFormItemSelect = {
19
21
  * @param datas 原始列表数据.
20
22
  * @return {} 处理后的列表数据.
21
23
  */
22
- transformDatas(datas?: Array<Record<string, any>> | null): Array<Record<string, any>>;
24
+ transformDatas: (datas?: Array<Record<string, any>> | null) => Array<Record<string, any>>;
23
25
  /** 作为数据的列. */
24
26
  val_clm: ComputedRef<string>;
25
27
  /** VarConfigPossibility 配置. */
26
28
  varConfigPossibility: ComputedRef<VarConfigPossibility | null>;
27
29
  };
28
- export declare function useKgFormItemSelect(param: {
29
- props: KgFormItemProps;
30
- }): IUseKgFormItemSelect;
@@ -38,10 +38,9 @@ declare const _default: import("vue").DefineComponent<{
38
38
  };
39
39
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
40
40
  onKgSubmit: import("vue").PropType<() => void>;
41
- onKgChange: import("vue").PropType<(value: any) => void>;
42
41
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
43
42
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
44
- }, () => 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<{
43
+ }, () => 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<{
45
44
  kgVarName: {
46
45
  type: import("vue").PropType<string>;
47
46
  required: boolean;
@@ -80,13 +79,11 @@ declare const _default: import("vue").DefineComponent<{
80
79
  };
81
80
  'onUpdate:value': import("vue").PropType<(value: import("../index.vm").IKgFormItemValue | null) => void>;
82
81
  onKgSubmit: import("vue").PropType<() => void>;
83
- onKgChange: import("vue").PropType<(value: any) => void>;
84
82
  onKgSelectChange: import("vue").PropType<(value: any) => void>;
85
83
  onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
86
84
  }>> & {
87
85
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
88
86
  onKgSubmit?: ((...args: any[]) => any) | undefined;
89
- onKgChange?: ((...args: any[]) => any) | undefined;
90
87
  }, {
91
88
  value: import("../index.vm").IKgFormItemValue;
92
89
  kgDisabled: boolean;