@kengic/vue 0.0.2-beta.63 → 0.0.2-beta.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ import './KgButton.Delete.less';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
4
+ kgDisabled: import("vue").PropType<boolean>;
5
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgDeleteOk"[], "kgDeleteOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
6
+ kgType: import("vue").PropType<import("../..").KG_BUTTON_TYPES_ENUM>;
7
+ kgDisabled: import("vue").PropType<boolean>;
8
+ }>> & {
9
+ onKgDeleteOk?: ((...args: any[]) => any) | undefined;
10
+ }, {}>;
11
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import './KgButton.less';
2
+ import { KG_BUTTON_TYPES_ENUM } from '../../consts';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ kgType: import("vue").PropType<KG_BUTTON_TYPES_ENUM>;
5
+ kgDisabled: import("vue").PropType<boolean>;
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgDeleteOk" | "kgClick")[], "kgDeleteOk" | "kgClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ kgType: import("vue").PropType<KG_BUTTON_TYPES_ENUM>;
8
+ kgDisabled: import("vue").PropType<boolean>;
9
+ }>> & {
10
+ onKgDeleteOk?: ((...args: any[]) => any) | undefined;
11
+ onKgClick?: ((...args: any[]) => any) | undefined;
12
+ }, {}>;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import KgButton from './KgButton';
2
+ import { type KgButtonProps } from './index.vm';
3
+ export { type KgButtonProps };
4
+ export default KgButton;
@@ -0,0 +1,9 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ import { KG_BUTTON_TYPES_ENUM } from '../../consts';
3
+ export declare const getProps: () => {
4
+ /** 按钮类型. */
5
+ kgType: PropType<KG_BUTTON_TYPES_ENUM>;
6
+ /** 是否禁用. */
7
+ kgDisabled: PropType<boolean>;
8
+ };
9
+ export declare type KgButtonProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -1,31 +1,60 @@
1
1
  import './KgControl.less';
2
2
  declare const _default: import("vue").DefineComponent<{
3
+ kgVarName: {
4
+ type: import("vue").PropType<string>;
5
+ required: boolean;
6
+ };
7
+ kgSpan: {
8
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
9
+ default: number;
10
+ };
3
11
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
12
+ kgPlaceholder: import("vue").PropType<string>;
4
13
  kgCodeColumn: import("vue").PropType<string>;
5
14
  kgDescriptionColumn: import("vue").PropType<string>;
6
15
  kgAction: import("vue").PropType<string>;
7
16
  kgActionParameter: import("vue").PropType<string>;
17
+ kgValidateInfos: {
18
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
19
+ default: () => {};
20
+ };
8
21
  kgActionType: {
9
22
  type: import("vue").PropType<import("axios").Method>;
10
23
  default: string;
11
24
  };
12
25
  value: import("vue").PropType<string | number | (string | number)[]>;
13
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
14
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
27
+ }, () => 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<{
28
+ kgVarName: {
29
+ type: import("vue").PropType<string>;
30
+ required: boolean;
31
+ };
32
+ kgSpan: {
33
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
34
+ default: number;
35
+ };
15
36
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
37
+ kgPlaceholder: import("vue").PropType<string>;
16
38
  kgCodeColumn: import("vue").PropType<string>;
17
39
  kgDescriptionColumn: import("vue").PropType<string>;
18
40
  kgAction: import("vue").PropType<string>;
19
41
  kgActionParameter: import("vue").PropType<string>;
42
+ kgValidateInfos: {
43
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
44
+ default: () => {};
45
+ };
20
46
  kgActionType: {
21
47
  type: import("vue").PropType<import("axios").Method>;
22
48
  default: string;
23
49
  };
24
50
  value: import("vue").PropType<string | number | (string | number)[]>;
25
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
51
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
26
52
  }>> & {
27
53
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
54
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
28
55
  }, {
56
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
57
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
29
58
  kgActionType: import("axios").Method;
30
59
  }>;
31
60
  export default _default;
@@ -1,29 +1,57 @@
1
1
  import './KgControl.less';
2
2
  declare const _default: import("vue").DefineComponent<{
3
+ kgVarName: {
4
+ type: import("vue").PropType<string>;
5
+ required: boolean;
6
+ };
7
+ kgSpan: {
8
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
9
+ default: number;
10
+ };
3
11
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
12
+ kgPlaceholder: import("vue").PropType<string>;
4
13
  kgCodeColumn: import("vue").PropType<string>;
5
14
  kgDescriptionColumn: import("vue").PropType<string>;
6
15
  kgAction: import("vue").PropType<string>;
7
16
  kgActionParameter: import("vue").PropType<string>;
17
+ kgValidateInfos: {
18
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
19
+ default: () => {};
20
+ };
8
21
  kgActionType: {
9
22
  type: import("vue").PropType<import("axios").Method>;
10
23
  default: string;
11
24
  };
12
25
  value: import("vue").PropType<string | number | (string | number)[]>;
13
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
26
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
14
27
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ kgVarName: {
29
+ type: import("vue").PropType<string>;
30
+ required: boolean;
31
+ };
32
+ kgSpan: {
33
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
34
+ default: number;
35
+ };
15
36
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
37
+ kgPlaceholder: import("vue").PropType<string>;
16
38
  kgCodeColumn: import("vue").PropType<string>;
17
39
  kgDescriptionColumn: import("vue").PropType<string>;
18
40
  kgAction: import("vue").PropType<string>;
19
41
  kgActionParameter: import("vue").PropType<string>;
42
+ kgValidateInfos: {
43
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
44
+ default: () => {};
45
+ };
20
46
  kgActionType: {
21
47
  type: import("vue").PropType<import("axios").Method>;
22
48
  default: string;
23
49
  };
24
50
  value: import("vue").PropType<string | number | (string | number)[]>;
25
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
51
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
26
52
  }>>, {
53
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
54
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
27
55
  kgActionType: import("axios").Method;
28
56
  }>;
29
57
  export default _default;
@@ -1,30 +1,60 @@
1
1
  import './KgControl.less';
2
2
  import { KG_CONTROL_TYPES_ENUM } from '../../consts';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ kgVarName: {
5
+ type: import("vue").PropType<string>;
6
+ required: boolean;
7
+ };
8
+ kgSpan: {
9
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
10
+ default: number;
11
+ };
4
12
  kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
13
+ kgPlaceholder: import("vue").PropType<string>;
5
14
  kgCodeColumn: import("vue").PropType<string>;
6
15
  kgDescriptionColumn: import("vue").PropType<string>;
7
16
  kgAction: import("vue").PropType<string>;
8
17
  kgActionParameter: import("vue").PropType<string>;
18
+ kgValidateInfos: {
19
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
20
+ default: () => {};
21
+ };
9
22
  kgActionType: {
10
23
  type: import("vue").PropType<import("axios").Method>;
11
24
  default: string;
12
25
  };
13
26
  value: import("vue").PropType<string | number | (string | number)[]>;
14
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
15
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
28
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ kgVarName: {
30
+ type: import("vue").PropType<string>;
31
+ required: boolean;
32
+ };
33
+ kgSpan: {
34
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
35
+ default: number;
36
+ };
16
37
  kgType: import("vue").PropType<KG_CONTROL_TYPES_ENUM>;
38
+ kgPlaceholder: import("vue").PropType<string>;
17
39
  kgCodeColumn: import("vue").PropType<string>;
18
40
  kgDescriptionColumn: import("vue").PropType<string>;
19
41
  kgAction: import("vue").PropType<string>;
20
42
  kgActionParameter: import("vue").PropType<string>;
43
+ kgValidateInfos: {
44
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
45
+ default: () => {};
46
+ };
21
47
  kgActionType: {
22
48
  type: import("vue").PropType<import("axios").Method>;
23
49
  default: string;
24
50
  };
25
51
  value: import("vue").PropType<string | number | (string | number)[]>;
26
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
27
- }>>, {
52
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
53
+ }>> & {
54
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
55
+ }, {
56
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
57
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
28
58
  kgActionType: import("axios").Method;
29
59
  }>;
30
60
  export default _default;
@@ -7,20 +7,37 @@ declare const _default: {
7
7
  $: import("vue").ComponentInternalInstance;
8
8
  $data: {};
9
9
  $props: Partial<{
10
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
11
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
10
12
  kgActionType: import("axios").Method;
11
13
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
14
+ kgVarName: {
15
+ type: import("vue").PropType<string>;
16
+ required: boolean;
17
+ };
18
+ kgSpan: {
19
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
20
+ default: number;
21
+ };
12
22
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
23
+ kgPlaceholder: import("vue").PropType<string>;
13
24
  kgCodeColumn: import("vue").PropType<string>;
14
25
  kgDescriptionColumn: import("vue").PropType<string>;
15
26
  kgAction: import("vue").PropType<string>;
16
27
  kgActionParameter: import("vue").PropType<string>;
28
+ kgValidateInfos: {
29
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
30
+ default: () => {};
31
+ };
17
32
  kgActionType: {
18
33
  type: import("vue").PropType<import("axios").Method>;
19
34
  default: string;
20
35
  };
21
36
  value: import("vue").PropType<string | number | (string | number)[]>;
22
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
23
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgActionType">;
37
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
38
+ }>> & {
39
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
40
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "kgSpan" | "kgValidateInfos" | "kgActionType">;
24
41
  $attrs: {
25
42
  [x: string]: unknown;
26
43
  };
@@ -32,21 +49,38 @@ declare const _default: {
32
49
  }>;
33
50
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
34
51
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
35
- $emit: (event: string, ...args: any[]) => void;
52
+ $emit: (event: "kgSubmit", ...args: any[]) => void;
36
53
  $el: any;
37
54
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
55
+ kgVarName: {
56
+ type: import("vue").PropType<string>;
57
+ required: boolean;
58
+ };
59
+ kgSpan: {
60
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
61
+ default: number;
62
+ };
38
63
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
64
+ kgPlaceholder: import("vue").PropType<string>;
39
65
  kgCodeColumn: import("vue").PropType<string>;
40
66
  kgDescriptionColumn: import("vue").PropType<string>;
41
67
  kgAction: import("vue").PropType<string>;
42
68
  kgActionParameter: import("vue").PropType<string>;
69
+ kgValidateInfos: {
70
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
71
+ default: () => {};
72
+ };
43
73
  kgActionType: {
44
74
  type: import("vue").PropType<import("axios").Method>;
45
75
  default: string;
46
76
  };
47
77
  value: import("vue").PropType<string | number | (string | number)[]>;
48
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
49
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
78
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
79
+ }>> & {
80
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
81
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], string, {
82
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
83
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
50
84
  kgActionType: import("axios").Method;
51
85
  }, {}, string> & {
52
86
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -69,34 +103,66 @@ declare const _default: {
69
103
  $nextTick: typeof import("vue").nextTick;
70
104
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
71
105
  } & Readonly<import("vue").ExtractPropTypes<{
106
+ kgVarName: {
107
+ type: import("vue").PropType<string>;
108
+ required: boolean;
109
+ };
110
+ kgSpan: {
111
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
112
+ default: number;
113
+ };
72
114
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
115
+ kgPlaceholder: import("vue").PropType<string>;
73
116
  kgCodeColumn: import("vue").PropType<string>;
74
117
  kgDescriptionColumn: import("vue").PropType<string>;
75
118
  kgAction: import("vue").PropType<string>;
76
119
  kgActionParameter: import("vue").PropType<string>;
120
+ kgValidateInfos: {
121
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
122
+ default: () => {};
123
+ };
77
124
  kgActionType: {
78
125
  type: import("vue").PropType<import("axios").Method>;
79
126
  default: string;
80
127
  };
81
128
  value: import("vue").PropType<string | number | (string | number)[]>;
82
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
83
- }>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
129
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
130
+ }>> & {
131
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
132
+ } & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
84
133
  __isFragment?: undefined;
85
134
  __isTeleport?: undefined;
86
135
  __isSuspense?: undefined;
87
136
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
137
+ kgVarName: {
138
+ type: import("vue").PropType<string>;
139
+ required: boolean;
140
+ };
141
+ kgSpan: {
142
+ type: import("vue").PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
143
+ default: number;
144
+ };
88
145
  kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPES_ENUM>;
146
+ kgPlaceholder: import("vue").PropType<string>;
89
147
  kgCodeColumn: import("vue").PropType<string>;
90
148
  kgDescriptionColumn: import("vue").PropType<string>;
91
149
  kgAction: import("vue").PropType<string>;
92
150
  kgActionParameter: import("vue").PropType<string>;
151
+ kgValidateInfos: {
152
+ type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").validateInfos>;
153
+ default: () => {};
154
+ };
93
155
  kgActionType: {
94
156
  type: import("vue").PropType<import("axios").Method>;
95
157
  default: string;
96
158
  };
97
159
  value: import("vue").PropType<string | number | (string | number)[]>;
98
- 'onUpdate:value': import("vue").PropType<(value: string | number | (string | number)[]) => void>;
99
- }>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
160
+ 'onUpdate:value': import("vue").PropType<(value: any) => void>;
161
+ }>> & {
162
+ onKgSubmit?: ((...args: any[]) => any) | undefined;
163
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgSubmit"[], "kgSubmit", {
164
+ kgSpan: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24;
165
+ kgValidateInfos: import("ant-design-vue/lib/form/useForm").validateInfos;
100
166
  kgActionType: import("axios").Method;
101
167
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
102
168
  readonly Input: typeof KgControlInput;
@@ -1,12 +1,27 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { KG_CONTROL_TYPES_ENUM } from '../../consts';
3
3
  import { Method } from 'axios';
4
+ import { validateInfos } from 'ant-design-vue/lib/form/useForm';
4
5
  export declare const getProps: () => {
6
+ /** 变量名称. */
7
+ kgVarName: {
8
+ type: PropType<string>;
9
+ required: boolean;
10
+ };
11
+ /**
12
+ * 控件宽度.
13
+ * @default 6
14
+ */
15
+ kgSpan: {
16
+ type: PropType<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24>;
17
+ default: number;
18
+ };
5
19
  /**
6
20
  * 控件类型.
7
21
  * @default {@link KG_CONTROL_TYPES_ENUM.INPUT_BASIC}
8
22
  */
9
23
  kgType: PropType<KG_CONTROL_TYPES_ENUM>;
24
+ kgPlaceholder: PropType<string>;
10
25
  /**
11
26
  * 数据列.
12
27
  * {@link KG_CONTROL_TYPES_ENUM.SELECT_BASIC} 和 {@link KG_CONTROL_TYPES_ENUM.SELECT_MULTIPLE} 适用.
@@ -21,6 +36,11 @@ export declare const getProps: () => {
21
36
  kgAction: PropType<string>;
22
37
  /** 接口参数. */
23
38
  kgActionParameter: PropType<string>;
39
+ /** 表单验证信息. */
40
+ kgValidateInfos: {
41
+ type: PropType<validateInfos>;
42
+ default: () => {};
43
+ };
24
44
  /**
25
45
  * 接口方法.
26
46
  * @default GET
@@ -30,6 +50,6 @@ export declare const getProps: () => {
30
50
  default: string;
31
51
  };
32
52
  value: PropType<string | number | (string | number)[]>;
33
- 'onUpdate:value': PropType<(value: string | number | Array<string | number>) => void>;
53
+ 'onUpdate:value': PropType<(value: any) => void>;
34
54
  };
35
55
  export declare type KgControlProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -1,6 +1,16 @@
1
1
  import './KgSearch.less';
2
- declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "reset")[], "search" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
3
- onReset?: ((...args: any[]) => any) | undefined;
4
- onSearch?: ((...args: any[]) => any) | undefined;
2
+ declare const _default: import("vue").DefineComponent<{
3
+ kgModel: {
4
+ type: import("vue").PropType<Record<string, any>>;
5
+ required: boolean;
6
+ };
7
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSearch" | "kgReset")[], "kgSearch" | "kgReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ kgModel: {
9
+ type: import("vue").PropType<Record<string, any>>;
10
+ required: boolean;
11
+ };
12
+ }>> & {
13
+ onKgSearch?: ((...args: any[]) => any) | undefined;
14
+ onKgReset?: ((...args: any[]) => any) | undefined;
5
15
  }, {}>;
6
16
  export default _default;
@@ -0,0 +1,4 @@
1
+ import KgSearch from './KgSearch';
2
+ import { type KgSearchProps } from './index.vm';
3
+ export { type KgSearchProps };
4
+ export default KgSearch;
@@ -0,0 +1,9 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const getProps: () => {
3
+ /** 表单对象. */
4
+ kgModel: {
5
+ type: PropType<Record<string, any>>;
6
+ required: boolean;
7
+ };
8
+ };
9
+ export declare type KgSearchProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
@@ -4,9 +4,45 @@ import { ComputedRef, Ref } from 'vue';
4
4
  * @param formID 界面标识.
5
5
  */
6
6
  export declare function useKgVar(formID: string): {
7
- t1: (varName: string) => ComputedRef<string>;
8
- t2: (varName: string) => string;
7
+ /** 变量配置数据. */
8
+ kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
9
+ getTopFormID(): string | null;
10
+ getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
11
+ }, {
12
+ leave(formID: string): void;
13
+ deleteAll(formID: string): void;
14
+ retrieveAll(formID?: string | null | undefined): Promise<void>;
15
+ enter(formID: string): Promise<void>;
16
+ }>;
17
+ /**
18
+ * 翻译变量. 响应式的.
19
+ * @param varName 变量名称.
20
+ */
21
+ t1: (varName?: string | null) => ComputedRef<string>;
22
+ /**
23
+ * 翻译变量. 不是响应式的.
24
+ * @param varName 变量名称.
25
+ */
26
+ t2: (varName?: string | null) => string;
9
27
  } | {
10
- t1: (varName: string) => Ref<string>;
11
- t2: (varName: string) => string;
28
+ /** 变量配置数据. */
29
+ kgVarStore: import("pinia").Store<"KgVar", import("../store/index.data").KgVarState, {
30
+ getTopFormID(): string | null;
31
+ getVarCatalogs(): Map<string, import("../../../apis/WMS/models").VarCatalog[]>;
32
+ }, {
33
+ leave(formID: string): void;
34
+ deleteAll(formID: string): void;
35
+ retrieveAll(formID?: string | null | undefined): Promise<void>;
36
+ enter(formID: string): Promise<void>;
37
+ }>;
38
+ /**
39
+ * 翻译变量. 响应式的.
40
+ * @param varName 变量名称.
41
+ */
42
+ t1: (varName?: string | null) => Ref<string>;
43
+ /**
44
+ * 翻译变量. 不是响应式的.
45
+ * @param varName 变量名称.
46
+ */
47
+ t2: (varName?: string | null) => string;
12
48
  };
@@ -1,31 +1,14 @@
1
+ import { type StoreDefinition } from 'pinia';
1
2
  import { KgVarState } from './index.data';
2
3
  import { VarCatalog } from '../../../apis/WMS/models';
3
- export declare const useKgVarStore: import("pinia").StoreDefinition<"KgVar", KgVarState, {
4
- getVarCatalogs(): Map<string, Array<VarCatalog>>;
5
- /** 获取最顶层的界面标识. */
4
+ declare type IKgVarStore = StoreDefinition<'KgVar', KgVarState, {
6
5
  getTopFormID(): string | null;
6
+ getVarCatalogs(): Map<string, Array<VarCatalog>>;
7
7
  }, {
8
- /**
9
- * 进入一个界面.
10
- * 多个界面可以共用一个界面标识, 因此进入该界面时, 该界面标识可能已经存在了;
11
- * 如果该界面标识尚不存在, 则加载它的变量配置.
12
- * @param formID 界面标识.
13
- */
14
- enter(formID: string): Promise<void>;
15
- /**
16
- * 离开一个界面.
17
- * 如果该界面标识对应的所有页面都离开了, 则删除它的变量配置.
18
- * @param formID 界面标识.
19
- */
20
8
  leave(formID: string): void;
21
- /**
22
- * 查询所有变量配置.
23
- * @param formID 界面标识.
24
- */
25
- retrieveAll(formID?: string | null): Promise<void>;
26
- /**
27
- * 清空所有变量配置.
28
- * @param formID 界面标识.
29
- */
30
9
  deleteAll(formID: string): void;
10
+ retrieveAll(formID?: string | null): Promise<void>;
11
+ enter(formID: string): Promise<void>;
31
12
  }>;
13
+ export declare const useKgVarStore: () => IKgVarStore;
14
+ export {};
@@ -1,7 +1,8 @@
1
1
  export { default as KgControl, KgControlInput, KgControlSelect, type KgControlProps } from './KgControl';
2
+ export { default as KgSearch, type KgSearchProps } from './KgSearch';
3
+ export { default as KgButton, type KgButtonProps } from './KgButton';
2
4
  import KgPage from './KgPage/KgPage';
3
- import KgSearch from './KgSearch/KgSearch';
4
5
  import KgProgressA from './KgProgressA/KgProgressA';
5
6
  import KgYesOrNo from './KgYesOrNo/KgYesOrNo';
6
- export { KgPage, KgSearch, KgProgressA, KgYesOrNo };
7
+ export { KgPage, KgProgressA, KgYesOrNo };
7
8
  export * from './KgVar';
@@ -2,10 +2,24 @@ declare const _default: {
2
2
  kg: {
3
3
  yes: string;
4
4
  no: string;
5
+ reset: string;
6
+ search: string;
7
+ query: string;
8
+ required: string;
9
+ import: string;
10
+ export: string;
11
+ add: string;
12
+ create: string;
13
+ update: string;
14
+ edit: string;
15
+ copy: string;
16
+ delete: string;
17
+ save: string;
18
+ cancel: string;
19
+ confirm: string;
20
+ confirmDelete: string;
5
21
  KgSearch: {
6
22
  title: string;
7
- search: string;
8
- reset: string;
9
23
  };
10
24
  };
11
25
  };