@kengic/vue 0.2.2-beta.8 → 0.3.0
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.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +3679 -3279
- package/dist/src/apis/WMS/Controllers/VarCatalogController/List.d.ts +8 -8
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +9 -1
- package/dist/src/apis/WMS/models.d.ts +72 -42
- package/dist/src/components/KgControl/KgControl.Date.d.ts +21 -27
- package/dist/src/components/KgControl/KgControl.Input.d.ts +21 -27
- package/dist/src/components/KgControl/KgControl.InputNumber.d.ts +21 -27
- package/dist/src/components/KgControl/KgControl.Select.d.ts +23 -29
- package/dist/src/components/KgControl/KgControl.Switch.d.ts +21 -27
- package/dist/src/components/KgControl/KgControl.d.ts +29 -36
- package/dist/src/components/KgControl/addon/KgControl.Addon.Lookup.d.ts +4 -0
- package/dist/src/components/KgControl/index.d.ts +1 -1
- package/dist/src/components/KgControl/index.vm.d.ts +21 -28
- package/dist/src/components/KgResizable/KgResizable.d.ts +131 -0
- package/dist/src/components/KgResizable/index.d.ts +1 -0
- package/dist/src/components/KgSearch/KgSearch.data.d.ts +11 -2
- package/dist/src/components/KgSearch/index.hooks.d.ts +1 -3
- package/dist/src/components/KgSearch/index.store.d.ts +1 -5
- package/dist/src/components/KgTable/KgTable.data.d.ts +2 -0
- package/dist/src/components/KgTable/index.hooks.d.ts +5 -3
- package/dist/src/components/KgTable/index.store.d.ts +14 -6
- package/dist/src/components/KgVar/index.hooks.d.ts +13 -7
- package/dist/src/components/KgVar/index.store.d.ts +38 -13
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/consts/i18n/en.d.ts +1 -0
- package/dist/src/consts/i18n/index.d.ts +2 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
- package/dist/src/consts/index.d.ts +7 -0
- package/dist/src/utils/kg.util.d.ts +10 -0
- package/dist/src/utils/var.util.d.ts +1 -1
- package/package.json +2 -2
@@ -1,18 +1,24 @@
|
|
1
1
|
import './KgControl.less';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
+
kgModel: {
|
4
|
+
type: import("vue").PropType<Record<string, any>>;
|
5
|
+
required: boolean;
|
6
|
+
};
|
3
7
|
kgVarName: {
|
4
8
|
type: import("vue").PropType<string>;
|
5
9
|
required: boolean;
|
6
10
|
};
|
11
|
+
kgContext: {
|
12
|
+
type: import("vue").PropType<string>;
|
13
|
+
default: import("../..").KG_CONTROL_CONTEXT;
|
14
|
+
};
|
7
15
|
kgDisabled: import("vue").PropType<boolean>;
|
8
16
|
kgGutter: {
|
9
17
|
type: import("vue").PropType<number>;
|
10
18
|
default: number;
|
11
19
|
};
|
12
|
-
kgSpan:
|
13
|
-
|
14
|
-
default: number;
|
15
|
-
};
|
20
|
+
kgSpan: import("vue").PropType<number>;
|
21
|
+
kgPlaceholder: import("vue").PropType<string>;
|
16
22
|
kgShowLabel: {
|
17
23
|
type: import("vue").PropType<boolean>;
|
18
24
|
default: boolean;
|
@@ -22,20 +28,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
28
|
default: boolean;
|
23
29
|
};
|
24
30
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPE>;
|
25
|
-
|
26
|
-
type: import("vue").PropType<string>;
|
27
|
-
default: string;
|
28
|
-
};
|
31
|
+
/** 获取下拉列表数据. */
|
29
32
|
kgValidateInfo: {
|
30
33
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
31
34
|
default: () => {};
|
32
35
|
};
|
33
36
|
/** 获取下拉列表数据. */
|
34
|
-
kgActionType: {
|
35
|
-
type: import("vue").PropType<import("axios").Method>;
|
36
|
-
/** 获取下拉列表数据. */
|
37
|
-
default: string;
|
38
|
-
};
|
39
37
|
kgShowTime: {
|
40
38
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
41
39
|
default: undefined;
|
@@ -47,19 +45,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
45
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
48
46
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
49
47
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "kgSubmit" | "kgChange" | "kgSelectDatasChange")[], "update:value" | "kgSubmit" | "kgChange" | "kgSelectDatasChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
|
+
kgModel: {
|
49
|
+
type: import("vue").PropType<Record<string, any>>;
|
50
|
+
required: boolean;
|
51
|
+
};
|
50
52
|
kgVarName: {
|
51
53
|
type: import("vue").PropType<string>;
|
52
54
|
required: boolean;
|
53
55
|
};
|
56
|
+
kgContext: {
|
57
|
+
type: import("vue").PropType<string>;
|
58
|
+
default: import("../..").KG_CONTROL_CONTEXT;
|
59
|
+
};
|
54
60
|
kgDisabled: import("vue").PropType<boolean>;
|
55
61
|
kgGutter: {
|
56
62
|
type: import("vue").PropType<number>;
|
57
63
|
default: number;
|
58
64
|
};
|
59
|
-
kgSpan:
|
60
|
-
|
61
|
-
default: number;
|
62
|
-
};
|
65
|
+
kgSpan: import("vue").PropType<number>;
|
66
|
+
kgPlaceholder: import("vue").PropType<string>;
|
63
67
|
kgShowLabel: {
|
64
68
|
type: import("vue").PropType<boolean>;
|
65
69
|
default: boolean;
|
@@ -69,20 +73,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
73
|
default: boolean;
|
70
74
|
};
|
71
75
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPE>;
|
72
|
-
|
73
|
-
type: import("vue").PropType<string>;
|
74
|
-
default: string;
|
75
|
-
};
|
76
|
+
/** 获取下拉列表数据. */
|
76
77
|
kgValidateInfo: {
|
77
78
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
78
79
|
default: () => {};
|
79
80
|
};
|
80
81
|
/** 获取下拉列表数据. */
|
81
|
-
kgActionType: {
|
82
|
-
type: import("vue").PropType<import("axios").Method>;
|
83
|
-
/** 获取下拉列表数据. */
|
84
|
-
default: string;
|
85
|
-
};
|
86
82
|
kgShowTime: {
|
87
83
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
88
84
|
default: undefined;
|
@@ -99,13 +95,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
95
|
onKgChange?: ((...args: any[]) => any) | undefined;
|
100
96
|
onKgSelectDatasChange?: ((...args: any[]) => any) | undefined;
|
101
97
|
}, {
|
98
|
+
kgContext: string;
|
102
99
|
kgGutter: number;
|
103
|
-
kgSpan: number;
|
104
100
|
kgShowLabel: boolean;
|
105
101
|
kgAllowClear: boolean;
|
106
|
-
kgPlaceholder: string;
|
107
102
|
kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
|
108
|
-
kgActionType: import("axios").Method;
|
109
103
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
110
104
|
}>;
|
111
105
|
export default _default;
|
@@ -1,18 +1,24 @@
|
|
1
1
|
import './KgControl.less';
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
3
|
+
kgModel: {
|
4
|
+
type: import("vue").PropType<Record<string, any>>;
|
5
|
+
required: boolean;
|
6
|
+
};
|
3
7
|
kgVarName: {
|
4
8
|
type: import("vue").PropType<string>;
|
5
9
|
required: boolean;
|
6
10
|
};
|
11
|
+
kgContext: {
|
12
|
+
type: import("vue").PropType<string>;
|
13
|
+
default: import("../..").KG_CONTROL_CONTEXT;
|
14
|
+
};
|
7
15
|
kgDisabled: import("vue").PropType<boolean>;
|
8
16
|
kgGutter: {
|
9
17
|
type: import("vue").PropType<number>;
|
10
18
|
default: number;
|
11
19
|
};
|
12
|
-
kgSpan:
|
13
|
-
|
14
|
-
default: number;
|
15
|
-
};
|
20
|
+
kgSpan: import("vue").PropType<number>;
|
21
|
+
kgPlaceholder: import("vue").PropType<string>;
|
16
22
|
kgShowLabel: {
|
17
23
|
type: import("vue").PropType<boolean>;
|
18
24
|
default: boolean;
|
@@ -22,18 +28,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
28
|
default: boolean;
|
23
29
|
};
|
24
30
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPE>;
|
25
|
-
kgPlaceholder: {
|
26
|
-
type: import("vue").PropType<string>;
|
27
|
-
default: string;
|
28
|
-
};
|
29
31
|
kgValidateInfo: {
|
30
32
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
31
33
|
default: () => {};
|
32
34
|
};
|
33
|
-
kgActionType: {
|
34
|
-
type: import("vue").PropType<import("axios").Method>;
|
35
|
-
default: string;
|
36
|
-
};
|
37
35
|
kgShowTime: {
|
38
36
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
39
37
|
default: undefined;
|
@@ -45,19 +43,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
43
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
46
44
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
47
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<{
|
46
|
+
kgModel: {
|
47
|
+
type: import("vue").PropType<Record<string, any>>;
|
48
|
+
required: boolean;
|
49
|
+
};
|
48
50
|
kgVarName: {
|
49
51
|
type: import("vue").PropType<string>;
|
50
52
|
required: boolean;
|
51
53
|
};
|
54
|
+
kgContext: {
|
55
|
+
type: import("vue").PropType<string>;
|
56
|
+
default: import("../..").KG_CONTROL_CONTEXT;
|
57
|
+
};
|
52
58
|
kgDisabled: import("vue").PropType<boolean>;
|
53
59
|
kgGutter: {
|
54
60
|
type: import("vue").PropType<number>;
|
55
61
|
default: number;
|
56
62
|
};
|
57
|
-
kgSpan:
|
58
|
-
|
59
|
-
default: number;
|
60
|
-
};
|
63
|
+
kgSpan: import("vue").PropType<number>;
|
64
|
+
kgPlaceholder: import("vue").PropType<string>;
|
61
65
|
kgShowLabel: {
|
62
66
|
type: import("vue").PropType<boolean>;
|
63
67
|
default: boolean;
|
@@ -67,18 +71,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
71
|
default: boolean;
|
68
72
|
};
|
69
73
|
kgType: import("vue").PropType<import("../..").KG_CONTROL_TYPE>;
|
70
|
-
kgPlaceholder: {
|
71
|
-
type: import("vue").PropType<string>;
|
72
|
-
default: string;
|
73
|
-
};
|
74
74
|
kgValidateInfo: {
|
75
75
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
76
76
|
default: () => {};
|
77
77
|
};
|
78
|
-
kgActionType: {
|
79
|
-
type: import("vue").PropType<import("axios").Method>;
|
80
|
-
default: string;
|
81
|
-
};
|
82
78
|
kgShowTime: {
|
83
79
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
84
80
|
default: undefined;
|
@@ -94,13 +90,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
94
90
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
95
91
|
onKgChange?: ((...args: any[]) => any) | undefined;
|
96
92
|
}, {
|
93
|
+
kgContext: string;
|
97
94
|
kgGutter: number;
|
98
|
-
kgSpan: number;
|
99
95
|
kgShowLabel: boolean;
|
100
96
|
kgAllowClear: boolean;
|
101
|
-
kgPlaceholder: string;
|
102
97
|
kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
|
103
|
-
kgActionType: import("axios").Method;
|
104
98
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
105
99
|
}>;
|
106
100
|
export default _default;
|
@@ -1,20 +1,26 @@
|
|
1
1
|
import './KgControl.less';
|
2
|
-
import { KG_CONTROL_TYPE } from '../../consts';
|
2
|
+
import { KG_CONTROL_CONTEXT, KG_CONTROL_TYPE } from '../../consts';
|
3
3
|
import { IKgTableRecord } from '../KgTable';
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
5
|
+
kgModel: {
|
6
|
+
type: import("vue").PropType<Record<string, any>>;
|
7
|
+
required: boolean;
|
8
|
+
};
|
5
9
|
kgVarName: {
|
6
10
|
type: import("vue").PropType<string>;
|
7
11
|
required: boolean;
|
8
12
|
};
|
13
|
+
kgContext: {
|
14
|
+
type: import("vue").PropType<string>;
|
15
|
+
default: KG_CONTROL_CONTEXT;
|
16
|
+
};
|
9
17
|
kgDisabled: import("vue").PropType<boolean>;
|
10
18
|
kgGutter: {
|
11
19
|
type: import("vue").PropType<number>;
|
12
20
|
default: number;
|
13
21
|
};
|
14
|
-
kgSpan:
|
15
|
-
|
16
|
-
default: number;
|
17
|
-
};
|
22
|
+
kgSpan: import("vue").PropType<number>;
|
23
|
+
kgPlaceholder: import("vue").PropType<string>;
|
18
24
|
kgShowLabel: {
|
19
25
|
type: import("vue").PropType<boolean>;
|
20
26
|
default: boolean;
|
@@ -24,42 +30,40 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
30
|
default: boolean;
|
25
31
|
};
|
26
32
|
kgType: import("vue").PropType<KG_CONTROL_TYPE>;
|
27
|
-
kgPlaceholder: {
|
28
|
-
type: import("vue").PropType<string>;
|
29
|
-
default: string;
|
30
|
-
}; /** 样式. */
|
31
33
|
kgValidateInfo: {
|
32
34
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
33
35
|
default: () => {};
|
34
36
|
};
|
35
|
-
kgActionType: {
|
36
|
-
type: import("vue").PropType<import("axios").Method>;
|
37
|
-
default: string;
|
38
|
-
}; /** 样式. */
|
39
37
|
kgShowTime: {
|
40
38
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
41
|
-
default: undefined;
|
42
|
-
};
|
39
|
+
default: undefined;
|
40
|
+
};
|
43
41
|
onKgBeforeLookupOk: import("vue").PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => boolean>;
|
44
42
|
value: import("vue").PropType<import("./index.vm").KgControlValue>;
|
45
|
-
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
|
43
|
+
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>; /** 控件宽度. */
|
46
44
|
onKgSubmit: import("vue").PropType<() => void>;
|
47
45
|
onKgChange: 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, ("
|
47
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("kgSubmit" | "kgChange")[], "kgSubmit" | "kgChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
48
|
+
kgModel: {
|
49
|
+
type: import("vue").PropType<Record<string, any>>;
|
50
|
+
required: boolean;
|
51
|
+
};
|
50
52
|
kgVarName: {
|
51
53
|
type: import("vue").PropType<string>;
|
52
54
|
required: boolean;
|
53
55
|
};
|
56
|
+
kgContext: {
|
57
|
+
type: import("vue").PropType<string>;
|
58
|
+
default: KG_CONTROL_CONTEXT;
|
59
|
+
};
|
54
60
|
kgDisabled: import("vue").PropType<boolean>;
|
55
61
|
kgGutter: {
|
56
62
|
type: import("vue").PropType<number>;
|
57
63
|
default: number;
|
58
64
|
};
|
59
|
-
kgSpan:
|
60
|
-
|
61
|
-
default: number;
|
62
|
-
};
|
65
|
+
kgSpan: import("vue").PropType<number>;
|
66
|
+
kgPlaceholder: import("vue").PropType<string>;
|
63
67
|
kgShowLabel: {
|
64
68
|
type: import("vue").PropType<boolean>;
|
65
69
|
default: boolean;
|
@@ -69,40 +73,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
73
|
default: boolean;
|
70
74
|
};
|
71
75
|
kgType: import("vue").PropType<KG_CONTROL_TYPE>;
|
72
|
-
kgPlaceholder: {
|
73
|
-
type: import("vue").PropType<string>;
|
74
|
-
default: string;
|
75
|
-
}; /** 样式. */
|
76
76
|
kgValidateInfo: {
|
77
77
|
type: import("vue").PropType<import("ant-design-vue/lib/form/useForm").ValidateInfo>;
|
78
78
|
default: () => {};
|
79
79
|
};
|
80
|
-
kgActionType: {
|
81
|
-
type: import("vue").PropType<import("axios").Method>;
|
82
|
-
default: string;
|
83
|
-
}; /** 样式. */
|
84
80
|
kgShowTime: {
|
85
81
|
type: import("vue").PropType<boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>>;
|
86
|
-
default: undefined;
|
87
|
-
};
|
82
|
+
default: undefined;
|
83
|
+
};
|
88
84
|
onKgBeforeLookupOk: import("vue").PropType<(value: any, record: IKgTableRecord<{}> | IKgTableRecord<{}>[]) => boolean>;
|
89
85
|
value: import("vue").PropType<import("./index.vm").KgControlValue>;
|
90
|
-
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>;
|
86
|
+
'onUpdate:value': import("vue").PropType<(value: import("./index.vm").KgControlValue | null) => void>; /** 控件宽度. */
|
91
87
|
onKgSubmit: import("vue").PropType<() => void>;
|
92
88
|
onKgChange: import("vue").PropType<(value: any) => void>;
|
93
89
|
onKgSelectDatasChange: import("vue").PropType<(datas: any[]) => void>;
|
94
90
|
}>> & {
|
95
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
96
91
|
onKgSubmit?: ((...args: any[]) => any) | undefined;
|
97
92
|
onKgChange?: ((...args: any[]) => any) | undefined;
|
98
93
|
}, {
|
94
|
+
kgContext: string;
|
99
95
|
kgGutter: number;
|
100
|
-
kgSpan: number;
|
101
96
|
kgShowLabel: boolean;
|
102
97
|
kgAllowClear: boolean;
|
103
|
-
kgPlaceholder: string;
|
104
98
|
kgValidateInfo: import("ant-design-vue/lib/form/useForm").ValidateInfo;
|
105
|
-
kgActionType: import("axios").Method;
|
106
99
|
kgShowTime: boolean | import("ant-design-vue/es/vc-picker/panels/TimePanel").SharedTimeProps<import("dayjs").Dayjs>;
|
107
100
|
}>;
|
108
101
|
export default _default;
|
@@ -1,13 +1,17 @@
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
2
2
|
import './KgControl.Addon.Lookup.less';
|
3
3
|
import { IKgTableRecord } from '../../KgTable';
|
4
|
+
import { VarLookup } from '../../../apis/WMS/models';
|
4
5
|
export declare const getProps: () => {
|
6
|
+
kgVarLookup: PropType<VarLookup | null>;
|
5
7
|
onKgOk: PropType<(value: any, row: IKgTableRecord) => void>;
|
6
8
|
};
|
7
9
|
export declare type IProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
8
10
|
declare const _default: import("vue").DefineComponent<{
|
11
|
+
kgVarLookup: PropType<VarLookup | null>;
|
9
12
|
onKgOk: PropType<(value: any, row: IKgTableRecord<{}>) => void>;
|
10
13
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "kgOk"[], "kgOk", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
14
|
+
kgVarLookup: PropType<VarLookup | null>;
|
11
15
|
onKgOk: PropType<(value: any, row: IKgTableRecord<{}>) => void>;
|
12
16
|
}>> & {
|
13
17
|
onKgOk?: ((...args: any[]) => any) | undefined;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export { default as KgControl } from './KgControl';
|
2
|
-
export { type
|
2
|
+
export { type IKgControlProps } from './index.vm';
|
@@ -1,17 +1,29 @@
|
|
1
1
|
import { ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
2
|
-
import { KG_CONTROL_TYPE } from '../../consts';
|
3
|
-
import { Method } from 'axios';
|
2
|
+
import { KG_CONTROL_CONTEXT, KG_CONTROL_TYPE } from '../../consts';
|
4
3
|
import { ValidateInfo } from 'ant-design-vue/lib/form/useForm';
|
5
4
|
import { Dayjs } from 'dayjs';
|
6
5
|
import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
|
7
6
|
import { IKgTableRecord } from '../KgTable';
|
8
7
|
export declare type KgControlValue = string | number | Array<string | number>;
|
9
8
|
export declare const getProps: () => {
|
9
|
+
/** 表单数据对象. */
|
10
|
+
kgModel: {
|
11
|
+
type: PropType<Record<string, any>>;
|
12
|
+
required: boolean;
|
13
|
+
};
|
10
14
|
/** 变量名称. */
|
11
15
|
kgVarName: {
|
12
16
|
type: PropType<string>;
|
13
17
|
required: boolean;
|
14
18
|
};
|
19
|
+
/**
|
20
|
+
* 控件所处环境.
|
21
|
+
* @default KG_CONTROL_CONTEXT.SUBMIT
|
22
|
+
*/
|
23
|
+
kgContext: {
|
24
|
+
type: PropType<string>;
|
25
|
+
default: KG_CONTROL_CONTEXT;
|
26
|
+
};
|
15
27
|
/** 是否禁用. */
|
16
28
|
kgDisabled: PropType<boolean>;
|
17
29
|
/**
|
@@ -22,14 +34,10 @@ export declare const getProps: () => {
|
|
22
34
|
type: PropType<number>;
|
23
35
|
default: number;
|
24
36
|
};
|
25
|
-
/**
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
kgSpan: {
|
30
|
-
type: PropType<number>;
|
31
|
-
default: number;
|
32
|
-
};
|
37
|
+
/** 控件宽度. */
|
38
|
+
kgSpan: PropType<number>;
|
39
|
+
/** 提示文字. */
|
40
|
+
kgPlaceholder: PropType<string>;
|
33
41
|
/**
|
34
42
|
* 是否显示标签文本.
|
35
43
|
* @default true
|
@@ -40,7 +48,7 @@ export declare const getProps: () => {
|
|
40
48
|
};
|
41
49
|
/**
|
42
50
|
/**
|
43
|
-
*
|
51
|
+
* 是否允许清空.
|
44
52
|
* @default true
|
45
53
|
*/
|
46
54
|
kgAllowClear: {
|
@@ -52,13 +60,6 @@ export declare const getProps: () => {
|
|
52
60
|
* @default {@link KG_CONTROL_TYPE.INPUT}
|
53
61
|
*/
|
54
62
|
kgType: PropType<KG_CONTROL_TYPE>;
|
55
|
-
/**
|
56
|
-
* @default ' '
|
57
|
-
*/
|
58
|
-
kgPlaceholder: {
|
59
|
-
type: PropType<string>;
|
60
|
-
default: string;
|
61
|
-
};
|
62
63
|
/**
|
63
64
|
* 表单验证信息.
|
64
65
|
* @default {}
|
@@ -67,14 +68,6 @@ export declare const getProps: () => {
|
|
67
68
|
type: PropType<ValidateInfo>;
|
68
69
|
default: () => {};
|
69
70
|
};
|
70
|
-
/**
|
71
|
-
* 接口方法.
|
72
|
-
* @default 'GET'
|
73
|
-
*/
|
74
|
-
kgActionType: {
|
75
|
-
type: PropType<Method>;
|
76
|
-
default: string;
|
77
|
-
};
|
78
71
|
/**
|
79
72
|
* 时间配置.
|
80
73
|
* https://www.antdv.com/components/date-picker#DatePicker
|
@@ -96,6 +89,6 @@ export declare const getProps: () => {
|
|
96
89
|
/** 下拉列表数据发生变更. */
|
97
90
|
onKgSelectDatasChange: PropType<(datas: Array<any>) => void>;
|
98
91
|
};
|
99
|
-
export declare type
|
92
|
+
export declare type IKgControlProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
100
93
|
/** 依赖注入 onKgBeforeLookupOk 参数. */
|
101
|
-
export declare const
|
94
|
+
export declare const DI_ON_KG_BEFORE_LOOKUP_OK: InjectionKey<(value: any | Array<any>, record: IKgTableRecord | Array<IKgTableRecord>) => boolean>;
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
import './KgResizable.less';
|
3
|
+
export declare const getProps: () => {
|
4
|
+
/** 拖拽条的位置. */
|
5
|
+
kgType: {
|
6
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
7
|
+
default: string;
|
8
|
+
};
|
9
|
+
/** 当前宽度. */
|
10
|
+
kgWidth: {
|
11
|
+
type: PropType<number>;
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
'onUpdate:kgWidth': PropType<(value: number) => void>;
|
15
|
+
/** 最小宽度. */
|
16
|
+
kgMinWidth: {
|
17
|
+
type: PropType<number>;
|
18
|
+
default: number;
|
19
|
+
};
|
20
|
+
/** 最大宽度. */
|
21
|
+
kgMaxWidth: {
|
22
|
+
type: PropType<number>;
|
23
|
+
default: number;
|
24
|
+
};
|
25
|
+
/** 当前高度. */
|
26
|
+
kgHeight: {
|
27
|
+
type: PropType<number>;
|
28
|
+
default: number;
|
29
|
+
};
|
30
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
31
|
+
/** 最小高度. */
|
32
|
+
kgMinHeight: {
|
33
|
+
type: PropType<number>;
|
34
|
+
default: number;
|
35
|
+
};
|
36
|
+
/** 最大高度. */
|
37
|
+
kgMaxHeight: {
|
38
|
+
type: PropType<number>;
|
39
|
+
default: number;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<typeof getProps>>>;
|
43
|
+
declare const _default: import("vue").DefineComponent<{
|
44
|
+
/** 拖拽条的位置. */
|
45
|
+
kgType: {
|
46
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
/** 当前宽度. */
|
50
|
+
kgWidth: {
|
51
|
+
type: PropType<number>;
|
52
|
+
default: number;
|
53
|
+
};
|
54
|
+
'onUpdate:kgWidth': PropType<(value: number) => void>;
|
55
|
+
/** 最小宽度. */
|
56
|
+
kgMinWidth: {
|
57
|
+
type: PropType<number>;
|
58
|
+
default: number;
|
59
|
+
};
|
60
|
+
/** 最大宽度. */
|
61
|
+
kgMaxWidth: {
|
62
|
+
type: PropType<number>;
|
63
|
+
default: number;
|
64
|
+
};
|
65
|
+
/** 当前高度. */
|
66
|
+
kgHeight: {
|
67
|
+
type: PropType<number>;
|
68
|
+
default: number;
|
69
|
+
};
|
70
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
71
|
+
/** 最小高度. */
|
72
|
+
kgMinHeight: {
|
73
|
+
type: PropType<number>;
|
74
|
+
default: number;
|
75
|
+
};
|
76
|
+
/** 最大高度. */
|
77
|
+
kgMaxHeight: {
|
78
|
+
type: PropType<number>;
|
79
|
+
default: number;
|
80
|
+
};
|
81
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
82
|
+
/** 拖拽条的位置. */
|
83
|
+
kgType: {
|
84
|
+
type: PropType<"left" | "right" | "top" | "bottom">;
|
85
|
+
default: string;
|
86
|
+
};
|
87
|
+
/** 当前宽度. */
|
88
|
+
kgWidth: {
|
89
|
+
type: PropType<number>;
|
90
|
+
default: number;
|
91
|
+
};
|
92
|
+
'onUpdate:kgWidth': PropType<(value: number) => void>;
|
93
|
+
/** 最小宽度. */
|
94
|
+
kgMinWidth: {
|
95
|
+
type: PropType<number>;
|
96
|
+
default: number;
|
97
|
+
};
|
98
|
+
/** 最大宽度. */
|
99
|
+
kgMaxWidth: {
|
100
|
+
type: PropType<number>;
|
101
|
+
default: number;
|
102
|
+
};
|
103
|
+
/** 当前高度. */
|
104
|
+
kgHeight: {
|
105
|
+
type: PropType<number>;
|
106
|
+
default: number;
|
107
|
+
};
|
108
|
+
'onUpdate:kgHeight': PropType<(value: number) => void>;
|
109
|
+
/** 最小高度. */
|
110
|
+
kgMinHeight: {
|
111
|
+
type: PropType<number>;
|
112
|
+
default: number;
|
113
|
+
};
|
114
|
+
/** 最大高度. */
|
115
|
+
kgMaxHeight: {
|
116
|
+
type: PropType<number>;
|
117
|
+
default: number;
|
118
|
+
};
|
119
|
+
}>> & {
|
120
|
+
"onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
|
121
|
+
"onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
|
122
|
+
}, {
|
123
|
+
kgType: "left" | "right" | "top" | "bottom";
|
124
|
+
kgWidth: number;
|
125
|
+
kgMinWidth: number;
|
126
|
+
kgMaxWidth: number;
|
127
|
+
kgHeight: number;
|
128
|
+
kgMinHeight: number;
|
129
|
+
kgMaxHeight: number;
|
130
|
+
}>;
|
131
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KgResizable, type IKgResizableProps } from './KgResizable';
|
@@ -1,6 +1,15 @@
|
|
1
1
|
import { VarProfileDetail } from '../../apis/WMS/models';
|
2
|
+
/** 头部高度. */
|
3
|
+
export declare const HEADER_HEIGHT = 42;
|
4
|
+
/** 一个查询字段的高度. */
|
5
|
+
export declare const FORM_ITEM_HEIGHT = 38;
|
2
6
|
/**
|
3
|
-
*
|
7
|
+
* 根据查询字段计算默认高度.
|
4
8
|
* @param varProfileDetails 查询字段列表.
|
5
9
|
*/
|
6
|
-
export declare function
|
10
|
+
export declare function getDefaultHeight(varProfileDetails: Array<VarProfileDetail>): number;
|
11
|
+
/**
|
12
|
+
* 根据查询字段计算最大高度.
|
13
|
+
* @param varProfileDetails 查询字段列表.
|
14
|
+
*/
|
15
|
+
export declare function getMaxHeight(varProfileDetails: Array<VarProfileDetail>): number;
|
@@ -10,12 +10,10 @@ export declare type IUseKgSearch = {
|
|
10
10
|
onReset(cb: IKgSearchResetCb): void;
|
11
11
|
/** 是否准备就绪. 即查询条件是否已经初始化完成了. */
|
12
12
|
isReady: ComputedRef<ReturnType<KgSearchStore['getIsReady']>>;
|
13
|
-
/**
|
13
|
+
/** 表单数据对象. */
|
14
14
|
model: ComputedRef<ReturnType<KgSearchStore['getModel']>>;
|
15
15
|
/** 表单组件. */
|
16
16
|
form: ComputedRef<ReturnType<KgSearchStore['getForm']>>;
|
17
|
-
/** 表单区的高度. */
|
18
|
-
height: ComputedRef<ReturnType<KgSearchStore['getHeight']>>;
|
19
17
|
/** 执行查询. */
|
20
18
|
search: ComputedRef<ReturnType<KgSearchStore['getSearchFn']>>;
|
21
19
|
/** 执行重置. */
|