@wyfex/ivue 0.22.2 → 0.22.3
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.es.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/ivue.css +1 -1
- package/dist/types/UseCrud/defaultExtConfig.d.ts +1 -0
- package/dist/types/UseCrud/index.vue.d.ts +0 -9
- package/dist/types/UseCrud/props.d.ts +0 -5
- package/dist/types/UseElConfigProvider/defaultExtConfig.d.ts +2 -0
- package/dist/types/UseElConfigProvider/types.d.ts +2 -0
- package/dist/types/UseElDescriptions/index.vue.d.ts +9 -18
- package/dist/types/UseElDescriptions/props.d.ts +5 -9
- package/dist/types/UseElForm/components/QueryForm.vue.d.ts +9 -18
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +23 -28
- package/dist/types/UseElForm/components/controls/Cascader.vue.d.ts +2 -2
- package/dist/types/UseElForm/components/controls/Radio.vue.d.ts +2 -2
- package/dist/types/UseElForm/components/controls/Select.vue.d.ts +2 -2
- package/dist/types/UseElForm/components/controls/TreeSelect.vue.d.ts +2 -2
- package/dist/types/UseElForm/index.vue.d.ts +9 -18
- package/dist/types/UseElForm/props.d.ts +5 -9
- package/dist/types/UseElSelect/hook.d.ts +1 -1
- package/dist/types/UseElSelect/index.vue.d.ts +1 -1
- package/dist/types/UseElTable/defaultExtConfig.d.ts +5 -0
- package/dist/types/UseElTable/index.vue.d.ts +5 -14
- package/dist/types/UseElTable/props.d.ts +3 -7
- package/dist/types/UseElTable/types.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/UseCrud/defaultExtConfig.ts +1 -1
- package/src/components/UseCrud/props.ts +0 -8
- package/src/components/UseElConfigProvider/defaultExtConfig.ts +6 -1
- package/src/components/UseElConfigProvider/types.ts +4 -0
- package/src/components/UseElDescriptions/props.ts +8 -15
- package/src/components/UseElForm/props.ts +8 -15
- package/src/components/UseElSelect/props.ts +1 -0
- package/src/components/UseElTable/defaultExtConfig.ts +1 -0
- package/src/components/UseElTable/props.ts +4 -11
- package/src/components/UseElTable/types.ts +6 -1
- package/src/types/index.ts +7 -0
|
@@ -3,10 +3,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
3
3
|
type: import('vue').PropType<import('./types').Configs[]>;
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
|
-
dict: {
|
|
7
|
-
type: import('vue').PropType<import('../../types').Dict>;
|
|
8
|
-
default: () => {};
|
|
9
|
-
};
|
|
10
6
|
extConfig: {
|
|
11
7
|
type: import('vue').PropType<import('./types').MergedExtConfig>;
|
|
12
8
|
default: () => {};
|
|
@@ -33,10 +29,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
33
29
|
type: import('vue').PropType<import('./types').Configs[]>;
|
|
34
30
|
required: boolean;
|
|
35
31
|
};
|
|
36
|
-
dict: {
|
|
37
|
-
type: import('vue').PropType<import('../../types').Dict>;
|
|
38
|
-
default: () => {};
|
|
39
|
-
};
|
|
40
32
|
extConfig: {
|
|
41
33
|
type: import('vue').PropType<import('./types').MergedExtConfig>;
|
|
42
34
|
default: () => {};
|
|
@@ -45,7 +37,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
45
37
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
46
38
|
}>, {
|
|
47
39
|
extConfig: import('./types').MergedExtConfig;
|
|
48
|
-
dict: import('../../types').Dict;
|
|
49
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
41
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
51
42
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Configs, MergedExtConfig } from './types';
|
|
3
|
-
import { Dict } from '../../types';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
5
|
type: PropType<Configs[]>;
|
|
7
6
|
required: boolean;
|
|
8
7
|
};
|
|
9
|
-
dict: {
|
|
10
|
-
type: PropType<Dict>;
|
|
11
|
-
default: () => {};
|
|
12
|
-
};
|
|
13
8
|
extConfig: {
|
|
14
9
|
type: PropType<MergedExtConfig>;
|
|
15
10
|
default: () => {};
|
|
@@ -3,6 +3,8 @@ import { default as componentProps } from './props';
|
|
|
3
3
|
import { Dict, UploadConfig } from '../../types';
|
|
4
4
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
5
5
|
export interface QueryApiPayload {
|
|
6
|
+
pageField?: string;
|
|
7
|
+
pageSizeField?: string;
|
|
6
8
|
default?: string;
|
|
7
9
|
records?: string;
|
|
8
10
|
total?: string;
|
|
@@ -8,18 +8,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
8
8
|
type: import('vue').PropType<Record<string, any>>;
|
|
9
9
|
required: boolean;
|
|
10
10
|
};
|
|
11
|
+
dict: {
|
|
12
|
+
type: import('vue').PropType<import('../../types').Dict>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
11
15
|
useRender: {
|
|
12
16
|
type: import('vue').PropType<boolean | RenderConfig>;
|
|
13
17
|
default: boolean;
|
|
14
18
|
};
|
|
15
|
-
dictMap: {
|
|
16
|
-
type: import('vue').PropType<import('../../types').DictMap>;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
dictProps: {
|
|
20
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
19
|
column: {
|
|
24
20
|
type: NumberConstructor;
|
|
25
21
|
default: number;
|
|
@@ -55,18 +51,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
55
51
|
type: import('vue').PropType<Record<string, any>>;
|
|
56
52
|
required: boolean;
|
|
57
53
|
};
|
|
54
|
+
dict: {
|
|
55
|
+
type: import('vue').PropType<import('../../types').Dict>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
58
|
useRender: {
|
|
59
59
|
type: import('vue').PropType<boolean | RenderConfig>;
|
|
60
60
|
default: boolean;
|
|
61
61
|
};
|
|
62
|
-
dictMap: {
|
|
63
|
-
type: import('vue').PropType<import('../../types').DictMap>;
|
|
64
|
-
default: () => {};
|
|
65
|
-
};
|
|
66
|
-
dictProps: {
|
|
67
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
68
|
-
default: () => {};
|
|
69
|
-
};
|
|
70
62
|
column: {
|
|
71
63
|
type: NumberConstructor;
|
|
72
64
|
default: number;
|
|
@@ -94,9 +86,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
94
86
|
}>> & Readonly<{
|
|
95
87
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
96
88
|
}>, {
|
|
89
|
+
dict: import('../../types').Dict;
|
|
97
90
|
useRender: boolean | RenderConfig;
|
|
98
|
-
dictMap: import('../../types').DictMap;
|
|
99
|
-
dictProps: import('../../types').DictProps;
|
|
100
91
|
labelWidth: string | number;
|
|
101
92
|
column: number;
|
|
102
93
|
border: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ConfigColumn } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { Dict, RenderConfig } from '../../types';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
configs: {
|
|
6
6
|
type: PropType<ConfigColumn[]>;
|
|
@@ -10,18 +10,14 @@ declare const _default: {
|
|
|
10
10
|
type: PropType<Record<string, any>>;
|
|
11
11
|
required: boolean;
|
|
12
12
|
};
|
|
13
|
+
dict: {
|
|
14
|
+
type: PropType<Dict>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
13
17
|
useRender: {
|
|
14
18
|
type: PropType<boolean | RenderConfig>;
|
|
15
19
|
default: boolean;
|
|
16
20
|
};
|
|
17
|
-
dictMap: {
|
|
18
|
-
type: PropType<DictMap>;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
|
-
dictProps: {
|
|
22
|
-
type: PropType<DictProps>;
|
|
23
|
-
default: () => {};
|
|
24
|
-
};
|
|
25
21
|
column: {
|
|
26
22
|
type: NumberConstructor;
|
|
27
23
|
default: number;
|
|
@@ -7,18 +7,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
7
7
|
type: import('vue').PropType<Record<string, any>>;
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
|
+
dict: {
|
|
11
|
+
type: import('vue').PropType<import('../../../types').Dict>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
10
14
|
useRender: {
|
|
11
15
|
type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
|
|
12
16
|
default: boolean;
|
|
13
17
|
};
|
|
14
|
-
dictMap: {
|
|
15
|
-
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
dictProps: {
|
|
19
|
-
type: import('vue').PropType<import('../../../types').DictProps>;
|
|
20
|
-
default: () => {};
|
|
21
|
-
};
|
|
22
18
|
formItemWidth: {
|
|
23
19
|
type: StringConstructor;
|
|
24
20
|
default: string;
|
|
@@ -65,18 +61,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
65
61
|
type: import('vue').PropType<Record<string, any>>;
|
|
66
62
|
required: boolean;
|
|
67
63
|
};
|
|
64
|
+
dict: {
|
|
65
|
+
type: import('vue').PropType<import('../../../types').Dict>;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
68
68
|
useRender: {
|
|
69
69
|
type: import('vue').PropType<boolean | import('../../../types').RenderConfig>;
|
|
70
70
|
default: boolean;
|
|
71
71
|
};
|
|
72
|
-
dictMap: {
|
|
73
|
-
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
74
|
-
default: () => {};
|
|
75
|
-
};
|
|
76
|
-
dictProps: {
|
|
77
|
-
type: import('vue').PropType<import('../../../types').DictProps>;
|
|
78
|
-
default: () => {};
|
|
79
|
-
};
|
|
80
72
|
formItemWidth: {
|
|
81
73
|
type: StringConstructor;
|
|
82
74
|
default: string;
|
|
@@ -112,9 +104,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
112
104
|
default: () => {};
|
|
113
105
|
};
|
|
114
106
|
}>> & Readonly<{}>, {
|
|
107
|
+
dict: import('../../../types').Dict;
|
|
115
108
|
useRender: boolean | import('../../../types').RenderConfig;
|
|
116
|
-
dictMap: import('../../../types').DictMap;
|
|
117
|
-
dictProps: import('../../../types').DictProps;
|
|
118
109
|
formItemWidth: string;
|
|
119
110
|
labelSuffix: string;
|
|
120
111
|
labelWidth: string;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
formColumns: {
|
|
3
|
-
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
3
|
+
type: import('vue').PropType<import('../types.ts').FormColumn[]>;
|
|
4
4
|
required: boolean;
|
|
5
5
|
};
|
|
6
6
|
formModel: {
|
|
7
7
|
type: import('vue').PropType<Record<string, any>>;
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
type: import('vue').PropType<
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
dictMap: {
|
|
15
|
-
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
10
|
+
dict: {
|
|
11
|
+
type: import('vue').PropType<import('../../../types/index.ts').Dict>;
|
|
16
12
|
default: () => {};
|
|
17
13
|
};
|
|
18
|
-
|
|
19
|
-
type: import('vue').PropType<import('../../../types').
|
|
20
|
-
default:
|
|
14
|
+
useRender: {
|
|
15
|
+
type: import('vue').PropType<boolean | import('../../../types/index.ts').RenderConfig>;
|
|
16
|
+
default: boolean;
|
|
21
17
|
};
|
|
22
18
|
formItemWidth: {
|
|
23
19
|
type: StringConstructor;
|
|
@@ -50,31 +46,29 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
50
46
|
default: boolean;
|
|
51
47
|
};
|
|
52
48
|
queryConfig: {
|
|
53
|
-
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
49
|
+
type: import('vue').PropType<import('../types.ts').QueryConfig>;
|
|
54
50
|
default: () => {};
|
|
55
51
|
};
|
|
56
52
|
}>, {
|
|
57
53
|
efRef: import('vue').Ref<null, null>;
|
|
58
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}
|
|
54
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
55
|
+
onDictKeys: (value?: string[] | undefined) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
59
57
|
formColumns: {
|
|
60
|
-
type: import('vue').PropType<import('../types').FormColumn[]>;
|
|
58
|
+
type: import('vue').PropType<import('../types.ts').FormColumn[]>;
|
|
61
59
|
required: boolean;
|
|
62
60
|
};
|
|
63
61
|
formModel: {
|
|
64
62
|
type: import('vue').PropType<Record<string, any>>;
|
|
65
63
|
required: boolean;
|
|
66
64
|
};
|
|
67
|
-
|
|
68
|
-
type: import('vue').PropType<
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
dictMap: {
|
|
72
|
-
type: import('vue').PropType<import('../../../types').DictMap>;
|
|
65
|
+
dict: {
|
|
66
|
+
type: import('vue').PropType<import('../../../types/index.ts').Dict>;
|
|
73
67
|
default: () => {};
|
|
74
68
|
};
|
|
75
|
-
|
|
76
|
-
type: import('vue').PropType<import('../../../types').
|
|
77
|
-
default:
|
|
69
|
+
useRender: {
|
|
70
|
+
type: import('vue').PropType<boolean | import('../../../types/index.ts').RenderConfig>;
|
|
71
|
+
default: boolean;
|
|
78
72
|
};
|
|
79
73
|
formItemWidth: {
|
|
80
74
|
type: StringConstructor;
|
|
@@ -107,13 +101,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
107
101
|
default: boolean;
|
|
108
102
|
};
|
|
109
103
|
queryConfig: {
|
|
110
|
-
type: import('vue').PropType<import('../types').QueryConfig>;
|
|
104
|
+
type: import('vue').PropType<import('../types.ts').QueryConfig>;
|
|
111
105
|
default: () => {};
|
|
112
106
|
};
|
|
113
|
-
}>> & Readonly<{
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
}>> & Readonly<{
|
|
108
|
+
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
109
|
+
}>, {
|
|
110
|
+
dict: import('../../../types/index.ts').Dict;
|
|
111
|
+
useRender: boolean | import('../../../types/index.ts').RenderConfig;
|
|
117
112
|
formItemWidth: string;
|
|
118
113
|
labelSuffix: string;
|
|
119
114
|
labelWidth: string;
|
|
@@ -121,7 +116,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
121
116
|
rowGutter: number;
|
|
122
117
|
colSpan: number;
|
|
123
118
|
disabled: boolean;
|
|
124
|
-
queryConfig: import('../types').QueryConfig;
|
|
119
|
+
queryConfig: import('../types.ts').QueryConfig;
|
|
125
120
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
126
121
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
127
122
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Dict, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
item: FormColumn;
|
|
5
5
|
formModel: Record<string, any>;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
|
-
|
|
7
|
+
dict: Dict;
|
|
8
8
|
formItemWidth: string;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Dict, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
item: FormColumn;
|
|
5
5
|
formModel: Record<string, any>;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
|
-
|
|
7
|
+
dict: Dict;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Dict, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
modelValue: string | number | boolean | string[] | number[] | undefined;
|
|
5
5
|
item: FormColumn;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
|
-
|
|
7
|
+
dict: Dict;
|
|
8
8
|
formItemWidth: string;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { Dict, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
item: FormColumn;
|
|
5
5
|
formModel: Record<string, any>;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
|
-
|
|
7
|
+
dict: Dict;
|
|
8
8
|
formItemWidth: string;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,18 +7,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
7
7
|
type: import('vue').PropType<Record<string, any>>;
|
|
8
8
|
required: boolean;
|
|
9
9
|
};
|
|
10
|
+
dict: {
|
|
11
|
+
type: import('vue').PropType<import('../../types/index.ts').Dict>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
10
14
|
useRender: {
|
|
11
15
|
type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
|
|
12
16
|
default: boolean;
|
|
13
17
|
};
|
|
14
|
-
dictMap: {
|
|
15
|
-
type: import('vue').PropType<import('../../types/index.ts').DictMap>;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
|
-
dictProps: {
|
|
19
|
-
type: import('vue').PropType<import('../../types/index.ts').DictProps>;
|
|
20
|
-
default: () => {};
|
|
21
|
-
};
|
|
22
18
|
formItemWidth: {
|
|
23
19
|
type: StringConstructor;
|
|
24
20
|
default: string;
|
|
@@ -72,18 +68,14 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
72
68
|
type: import('vue').PropType<Record<string, any>>;
|
|
73
69
|
required: boolean;
|
|
74
70
|
};
|
|
71
|
+
dict: {
|
|
72
|
+
type: import('vue').PropType<import('../../types/index.ts').Dict>;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
75
|
useRender: {
|
|
76
76
|
type: import('vue').PropType<boolean | import('../../types/index.ts').RenderConfig>;
|
|
77
77
|
default: boolean;
|
|
78
78
|
};
|
|
79
|
-
dictMap: {
|
|
80
|
-
type: import('vue').PropType<import('../../types/index.ts').DictMap>;
|
|
81
|
-
default: () => {};
|
|
82
|
-
};
|
|
83
|
-
dictProps: {
|
|
84
|
-
type: import('vue').PropType<import('../../types/index.ts').DictProps>;
|
|
85
|
-
default: () => {};
|
|
86
|
-
};
|
|
87
79
|
formItemWidth: {
|
|
88
80
|
type: StringConstructor;
|
|
89
81
|
default: string;
|
|
@@ -121,9 +113,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
121
113
|
}>> & Readonly<{
|
|
122
114
|
onOnDictKeys?: ((value?: string[] | undefined) => any) | undefined;
|
|
123
115
|
}>, {
|
|
116
|
+
dict: import('../../types/index.ts').Dict;
|
|
124
117
|
useRender: boolean | import('../../types/index.ts').RenderConfig;
|
|
125
|
-
dictMap: import('../../types/index.ts').DictMap;
|
|
126
|
-
dictProps: import('../../types/index.ts').DictProps;
|
|
127
118
|
formItemWidth: string;
|
|
128
119
|
labelSuffix: string;
|
|
129
120
|
labelWidth: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { FormColumn, QueryConfig } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { Dict, RenderConfig } from '../../types';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
formColumns: {
|
|
6
6
|
type: PropType<FormColumn[]>;
|
|
@@ -10,18 +10,14 @@ declare const _default: {
|
|
|
10
10
|
type: PropType<Record<string, any>>;
|
|
11
11
|
required: boolean;
|
|
12
12
|
};
|
|
13
|
+
dict: {
|
|
14
|
+
type: PropType<Dict>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
13
17
|
useRender: {
|
|
14
18
|
type: PropType<boolean | RenderConfig>;
|
|
15
19
|
default: boolean;
|
|
16
20
|
};
|
|
17
|
-
dictMap: {
|
|
18
|
-
type: PropType<DictMap>;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
|
-
dictProps: {
|
|
22
|
-
type: PropType<DictProps>;
|
|
23
|
-
default: () => {};
|
|
24
|
-
};
|
|
25
21
|
formItemWidth: {
|
|
26
22
|
type: StringConstructor;
|
|
27
23
|
default: string;
|
|
@@ -9,7 +9,7 @@ export declare const useElSelect: ({ props, emits, globalConfig }: {
|
|
|
9
9
|
optionsComputed: ComputedRef<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}[]>;
|
|
12
|
-
|
|
12
|
+
defaultProps: ComputedRef<import('../../types').DictProps>;
|
|
13
13
|
modelValue: ComputedRef<string | string[]>;
|
|
14
14
|
contentComputed: ComputedRef<{}>;
|
|
15
15
|
handleSelectChange: (e: string | number | (string | number)[]) => void;
|
|
@@ -79,8 +79,8 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
79
79
|
"onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
80
80
|
"onUpdate:label"?: ((label: string | string[]) => any) | undefined;
|
|
81
81
|
}>, {
|
|
82
|
-
useRender: boolean | import('../../types').RenderConfig;
|
|
83
82
|
dict: import('../../types').Dict;
|
|
83
|
+
useRender: boolean | import('../../types').RenderConfig;
|
|
84
84
|
clearable: boolean;
|
|
85
85
|
placeholder: string;
|
|
86
86
|
width: string;
|
|
@@ -16,12 +16,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
16
16
|
default: string;
|
|
17
17
|
validator: (val: string) => boolean;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
type: import('vue').PropType<import('../../types').
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
|
-
dictProps: {
|
|
24
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
19
|
+
dict: {
|
|
20
|
+
type: import('vue').PropType<import('../../types').Dict>;
|
|
25
21
|
default: () => {};
|
|
26
22
|
};
|
|
27
23
|
currentPage: {
|
|
@@ -74,12 +70,8 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
74
70
|
default: string;
|
|
75
71
|
validator: (val: string) => boolean;
|
|
76
72
|
};
|
|
77
|
-
|
|
78
|
-
type: import('vue').PropType<import('../../types').
|
|
79
|
-
default: () => {};
|
|
80
|
-
};
|
|
81
|
-
dictProps: {
|
|
82
|
-
type: import('vue').PropType<import('../../types').DictProps>;
|
|
73
|
+
dict: {
|
|
74
|
+
type: import('vue').PropType<import('../../types').Dict>;
|
|
83
75
|
default: () => {};
|
|
84
76
|
};
|
|
85
77
|
currentPage: {
|
|
@@ -112,8 +104,7 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
112
104
|
"onUpdate:currentPage"?: ((currentPage: number) => any) | undefined;
|
|
113
105
|
"onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
|
|
114
106
|
}>, {
|
|
115
|
-
|
|
116
|
-
dictProps: import('../../types').DictProps;
|
|
107
|
+
dict: import('../../types').Dict;
|
|
117
108
|
extConfig: import('./types').ExtConfig;
|
|
118
109
|
tableLoading: boolean;
|
|
119
110
|
tableColumnAlign: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ExtConfig, TableColumn } from './types';
|
|
3
|
-
import {
|
|
3
|
+
import { Dict } from '../../types';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
tableColumns: {
|
|
6
6
|
type: PropType<TableColumn[]>;
|
|
@@ -19,12 +19,8 @@ declare const _default: {
|
|
|
19
19
|
default: string;
|
|
20
20
|
validator: (val: string) => boolean;
|
|
21
21
|
};
|
|
22
|
-
|
|
23
|
-
type: PropType<
|
|
24
|
-
default: () => {};
|
|
25
|
-
};
|
|
26
|
-
dictProps: {
|
|
27
|
-
type: PropType<DictProps>;
|
|
22
|
+
dict: {
|
|
23
|
+
type: PropType<Dict>;
|
|
28
24
|
default: () => {};
|
|
29
25
|
};
|
|
30
26
|
currentPage: {
|
|
@@ -63,8 +63,11 @@ export interface Selection {
|
|
|
63
63
|
export type Query = {
|
|
64
64
|
api?: Function;
|
|
65
65
|
immediate?: boolean;
|
|
66
|
+
isPageApi?: boolean;
|
|
67
|
+
resolveParamsFn?: Function;
|
|
66
68
|
autoCancelStrategy?: 'none' | 'unmount' | 'deactivate' | 'both';
|
|
67
69
|
onQueryBefore?: (opts: {
|
|
70
|
+
params: Record<string, any>;
|
|
68
71
|
dictKeys: string[];
|
|
69
72
|
done: (continueRequest?: boolean) => void;
|
|
70
73
|
}) => void;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import type { MergedExtConfig } from './types'
|
|
|
4
4
|
* 默认扩展配置
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
|
-
query: { immediate: true, autoCancelStrategy: 'unmount' },
|
|
7
|
+
query: { immediate: true, isPageApi: true, autoCancelStrategy: 'unmount' },
|
|
8
8
|
mode: { type: 'PAGE' },
|
|
9
9
|
actionBar: {
|
|
10
10
|
margin: '20px 0',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue'
|
|
2
2
|
import type { Configs, MergedExtConfig } from './types'
|
|
3
|
-
import type { Dict } from '@/types'
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* 组件props
|
|
@@ -15,13 +14,6 @@ export default {
|
|
|
15
14
|
type: Array as PropType<Configs[]>,
|
|
16
15
|
required: true
|
|
17
16
|
},
|
|
18
|
-
/**
|
|
19
|
-
* 字典 可配置api、payload和props等,默认由UseElConfigProvider提供
|
|
20
|
-
*/
|
|
21
|
-
dict: {
|
|
22
|
-
type: Object as PropType<Dict>,
|
|
23
|
-
default: () => ({})
|
|
24
|
-
},
|
|
25
17
|
/**
|
|
26
18
|
* 扩展配置 如【操作栏/弹窗】等
|
|
27
19
|
* 该extConfig是本组件extConfig和UseElTable组件extConfig合并后的扩展配置
|
|
@@ -5,6 +5,11 @@ import type { ExtConfig } from './types'
|
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
7
7
|
dict: { props: { value: 'value', label: 'label', children: 'children' } },
|
|
8
|
-
queryApiPayload: {
|
|
8
|
+
queryApiPayload: {
|
|
9
|
+
pageField: 'page',
|
|
10
|
+
pageSizeField: 'pageSize',
|
|
11
|
+
records: 'records',
|
|
12
|
+
total: 'total'
|
|
13
|
+
},
|
|
9
14
|
table: { pageBottomOffset: 20, modalBottomOffset: 92 }
|
|
10
15
|
} satisfies ExtConfig
|
|
@@ -11,6 +11,10 @@ export type Props = ExtractPropTypes<typeof componentProps>
|
|
|
11
11
|
* 查询接口载荷接口
|
|
12
12
|
*/
|
|
13
13
|
export interface QueryApiPayload {
|
|
14
|
+
/** 分页字段 */
|
|
15
|
+
pageField?: string
|
|
16
|
+
/** 分页大小字段 */
|
|
17
|
+
pageSizeField?: string
|
|
14
18
|
/** 非分页接口响应数据载荷 */
|
|
15
19
|
default?: string
|
|
16
20
|
/** 分页接口响应数据载荷 */
|