@bscjc/webui 1.4.0 → 1.4.2
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/components/JcCascader/index.d.ts +25 -187
- package/dist/components/JcCascader/index.vue.d.ts +37 -100
- package/dist/components/JcColumnConfig/index.d.ts +10 -94
- package/dist/components/JcColumnConfig/index.vue.d.ts +24 -63
- package/dist/components/JcColumnConfig/types.d.ts +2 -0
- package/dist/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
- package/dist/components/JcDatePicker/index.d.ts +24 -105
- package/dist/components/JcDatePicker/index.vue.d.ts +26 -58
- package/dist/components/JcImportButton/index.d.ts +14 -41
- package/dist/components/JcImportButton/index.vue.d.ts +19 -26
- package/dist/components/JcImportDialog/index.d.ts +14 -74
- package/dist/components/JcImportDialog/index.vue.d.ts +25 -48
- package/dist/components/JcInputComplex/index.d.ts +48 -90
- package/dist/components/JcInputComplex/index.vue.d.ts +32 -48
- package/dist/components/JcInputSwitch/index.d.ts +42 -90
- package/dist/components/JcInputSwitch/index.vue.d.ts +30 -48
- package/dist/components/JcMoreQueryContain/index.d.ts +14 -197
- package/dist/components/JcMoreQueryContain/index.vue.d.ts +23 -88
- package/dist/components/JcSelectQuery/index.d.ts +19 -178
- package/dist/components/JcSelectQuery/index.vue.d.ts +37 -106
- package/dist/components/JcTagQuery/index.d.ts +4 -19
- package/dist/components/JcTagQuery/index.vue.d.ts +7 -12
- package/dist/es/index.mjs +2032 -2066
- package/dist/index.css +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/lib/index.cjs +8 -8
- package/dist/types/components/JcCascader/index.d.ts +25 -187
- package/dist/types/components/JcCascader/index.vue.d.ts +37 -100
- package/dist/types/components/JcColumnConfig/index.d.ts +10 -94
- package/dist/types/components/JcColumnConfig/index.vue.d.ts +24 -63
- package/dist/types/components/JcColumnConfig/types.d.ts +2 -0
- package/dist/types/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
- package/dist/types/components/JcDatePicker/index.d.ts +24 -105
- package/dist/types/components/JcDatePicker/index.vue.d.ts +26 -58
- package/dist/types/components/JcImportButton/index.d.ts +14 -41
- package/dist/types/components/JcImportButton/index.vue.d.ts +19 -26
- package/dist/types/components/JcImportDialog/index.d.ts +14 -74
- package/dist/types/components/JcImportDialog/index.vue.d.ts +25 -48
- package/dist/types/components/JcInputComplex/index.d.ts +51 -93
- package/dist/types/components/JcInputComplex/index.vue.d.ts +126 -141
- package/dist/types/components/JcInputSwitch/index.d.ts +45 -93
- package/dist/types/components/JcInputSwitch/index.vue.d.ts +74 -91
- package/dist/types/components/JcMoreQueryContain/index.d.ts +14 -197
- package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +108 -172
- package/dist/types/components/JcSelectQuery/index.d.ts +19 -178
- package/dist/types/components/JcSelectQuery/index.vue.d.ts +137 -206
- package/dist/types/components/JcTagQuery/index.d.ts +4 -19
- package/dist/types/components/JcTagQuery/index.vue.d.ts +7 -12
- package/dist/types/index.d.ts +3 -1
- package/package.json +2 -2
|
@@ -1,146 +1,38 @@
|
|
|
1
1
|
export declare const JcCascader: {
|
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
options: {
|
|
9
|
-
type: import("vue").PropType<Array<{
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
children?: Array<{
|
|
13
|
-
label: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}>;
|
|
16
|
-
}>> | never[];
|
|
17
|
-
default: () => never[];
|
|
18
|
-
};
|
|
19
|
-
keyField: {
|
|
20
|
-
type: any;
|
|
21
|
-
default: () => string[];
|
|
22
|
-
};
|
|
23
|
-
width: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
29
|
-
default: string;
|
|
30
|
-
validator: (value: string) => boolean;
|
|
31
|
-
};
|
|
32
|
-
footerBtnName: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
isNeedFooter: {
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
default: boolean;
|
|
39
|
-
};
|
|
40
|
-
isNeedHeader: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
isNeedOnlySelect: {
|
|
45
|
-
type: BooleanConstructor;
|
|
46
|
-
default: boolean;
|
|
47
|
-
};
|
|
48
|
-
injectionKey: {
|
|
49
|
-
type: StringConstructor;
|
|
50
|
-
default: string;
|
|
51
|
-
};
|
|
52
|
-
}>> & Readonly<{}>, {
|
|
53
|
-
[x: string]: any;
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{}>, {
|
|
3
|
+
getCheckedNodes: (leafOnly?: boolean) => import("element-plus").CascaderNode[] | undefined;
|
|
4
|
+
togglePopperVisible: (visible?: boolean) => void | undefined;
|
|
5
|
+
cascaderPanelRef: import("element-plus").CascaderPanelInstance | null | undefined;
|
|
6
|
+
contentRef: HTMLElement | undefined;
|
|
7
|
+
presentText: string | undefined;
|
|
54
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
55
9
|
size: "small" | "default" | "large";
|
|
56
10
|
injectionKey: string;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
label: string;
|
|
60
|
-
value: string;
|
|
61
|
-
children?: Array<{
|
|
62
|
-
label: string;
|
|
63
|
-
value: string;
|
|
64
|
-
}>;
|
|
65
|
-
}[];
|
|
66
|
-
keyField: any;
|
|
11
|
+
options: import("./index.vue").CascaderItem[];
|
|
12
|
+
keyField: string[];
|
|
67
13
|
width: string;
|
|
68
14
|
footerBtnName: string;
|
|
69
15
|
isNeedFooter: boolean;
|
|
70
16
|
isNeedOnlySelect: boolean;
|
|
71
17
|
isNeedHeader: boolean;
|
|
72
|
-
},
|
|
18
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
73
19
|
P: {};
|
|
74
20
|
B: {};
|
|
75
21
|
D: {};
|
|
76
22
|
C: {};
|
|
77
23
|
M: {};
|
|
78
24
|
Defaults: {};
|
|
79
|
-
}, Readonly<import("vue").
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options: {
|
|
86
|
-
type: import("vue").PropType<Array<{
|
|
87
|
-
label: string;
|
|
88
|
-
value: string;
|
|
89
|
-
children?: Array<{
|
|
90
|
-
label: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}>;
|
|
93
|
-
}>> | never[];
|
|
94
|
-
default: () => never[];
|
|
95
|
-
};
|
|
96
|
-
keyField: {
|
|
97
|
-
type: any;
|
|
98
|
-
default: () => string[];
|
|
99
|
-
};
|
|
100
|
-
width: {
|
|
101
|
-
type: StringConstructor;
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
size: {
|
|
105
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
106
|
-
default: string;
|
|
107
|
-
validator: (value: string) => boolean;
|
|
108
|
-
};
|
|
109
|
-
footerBtnName: {
|
|
110
|
-
type: StringConstructor;
|
|
111
|
-
default: string;
|
|
112
|
-
};
|
|
113
|
-
isNeedFooter: {
|
|
114
|
-
type: BooleanConstructor;
|
|
115
|
-
default: boolean;
|
|
116
|
-
};
|
|
117
|
-
isNeedHeader: {
|
|
118
|
-
type: BooleanConstructor;
|
|
119
|
-
default: boolean;
|
|
120
|
-
};
|
|
121
|
-
isNeedOnlySelect: {
|
|
122
|
-
type: BooleanConstructor;
|
|
123
|
-
default: boolean;
|
|
124
|
-
};
|
|
125
|
-
injectionKey: {
|
|
126
|
-
type: StringConstructor;
|
|
127
|
-
default: string;
|
|
128
|
-
};
|
|
129
|
-
}>> & Readonly<{}>, {
|
|
130
|
-
[x: string]: any;
|
|
25
|
+
}, Readonly<import("./index.vue").Props> & Readonly<{}>, {
|
|
26
|
+
getCheckedNodes: (leafOnly?: boolean) => import("element-plus").CascaderNode[] | undefined;
|
|
27
|
+
togglePopperVisible: (visible?: boolean) => void | undefined;
|
|
28
|
+
cascaderPanelRef: import("element-plus").CascaderPanelInstance | null | undefined;
|
|
29
|
+
contentRef: HTMLElement | undefined;
|
|
30
|
+
presentText: string | undefined;
|
|
131
31
|
}, {}, {}, {}, {
|
|
132
32
|
size: "small" | "default" | "large";
|
|
133
33
|
injectionKey: string;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
label: string;
|
|
137
|
-
value: string;
|
|
138
|
-
children?: Array<{
|
|
139
|
-
label: string;
|
|
140
|
-
value: string;
|
|
141
|
-
}>;
|
|
142
|
-
}[];
|
|
143
|
-
keyField: any;
|
|
34
|
+
options: import("./index.vue").CascaderItem[];
|
|
35
|
+
keyField: string[];
|
|
144
36
|
width: string;
|
|
145
37
|
footerBtnName: string;
|
|
146
38
|
isNeedFooter: boolean;
|
|
@@ -150,71 +42,17 @@ export declare const JcCascader: {
|
|
|
150
42
|
__isFragment?: never;
|
|
151
43
|
__isTeleport?: never;
|
|
152
44
|
__isSuspense?: never;
|
|
153
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
options: {
|
|
160
|
-
type: import("vue").PropType<Array<{
|
|
161
|
-
label: string;
|
|
162
|
-
value: string;
|
|
163
|
-
children?: Array<{
|
|
164
|
-
label: string;
|
|
165
|
-
value: string;
|
|
166
|
-
}>;
|
|
167
|
-
}>> | never[];
|
|
168
|
-
default: () => never[];
|
|
169
|
-
};
|
|
170
|
-
keyField: {
|
|
171
|
-
type: any;
|
|
172
|
-
default: () => string[];
|
|
173
|
-
};
|
|
174
|
-
width: {
|
|
175
|
-
type: StringConstructor;
|
|
176
|
-
default: string;
|
|
177
|
-
};
|
|
178
|
-
size: {
|
|
179
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
180
|
-
default: string;
|
|
181
|
-
validator: (value: string) => boolean;
|
|
182
|
-
};
|
|
183
|
-
footerBtnName: {
|
|
184
|
-
type: StringConstructor;
|
|
185
|
-
default: string;
|
|
186
|
-
};
|
|
187
|
-
isNeedFooter: {
|
|
188
|
-
type: BooleanConstructor;
|
|
189
|
-
default: boolean;
|
|
190
|
-
};
|
|
191
|
-
isNeedHeader: {
|
|
192
|
-
type: BooleanConstructor;
|
|
193
|
-
default: boolean;
|
|
194
|
-
};
|
|
195
|
-
isNeedOnlySelect: {
|
|
196
|
-
type: BooleanConstructor;
|
|
197
|
-
default: boolean;
|
|
198
|
-
};
|
|
199
|
-
injectionKey: {
|
|
200
|
-
type: StringConstructor;
|
|
201
|
-
default: string;
|
|
202
|
-
};
|
|
203
|
-
}>> & Readonly<{}>, {
|
|
204
|
-
[x: string]: any;
|
|
45
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{}>, {
|
|
46
|
+
getCheckedNodes: (leafOnly?: boolean) => import("element-plus").CascaderNode[] | undefined;
|
|
47
|
+
togglePopperVisible: (visible?: boolean) => void | undefined;
|
|
48
|
+
cascaderPanelRef: import("element-plus").CascaderPanelInstance | null | undefined;
|
|
49
|
+
contentRef: HTMLElement | undefined;
|
|
50
|
+
presentText: string | undefined;
|
|
205
51
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
206
52
|
size: "small" | "default" | "large";
|
|
207
53
|
injectionKey: string;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
label: string;
|
|
211
|
-
value: string;
|
|
212
|
-
children?: Array<{
|
|
213
|
-
label: string;
|
|
214
|
-
value: string;
|
|
215
|
-
}>;
|
|
216
|
-
}[];
|
|
217
|
-
keyField: any;
|
|
54
|
+
options: import("./index.vue").CascaderItem[];
|
|
55
|
+
keyField: string[];
|
|
218
56
|
width: string;
|
|
219
57
|
footerBtnName: string;
|
|
220
58
|
isNeedFooter: boolean;
|
|
@@ -1,111 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** 级联选项类型 */
|
|
2
|
+
export interface CascaderItem {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
isNeedFooter: {
|
|
39
|
-
type: BooleanConstructor;
|
|
40
|
-
default: boolean;
|
|
41
|
-
};
|
|
42
|
-
isNeedHeader: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
isNeedOnlySelect: {
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
default: boolean;
|
|
49
|
-
};
|
|
50
|
-
injectionKey: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
}>, {
|
|
55
|
-
[x: string]: any;
|
|
56
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
field: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
required: true;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
options: {
|
|
63
|
-
type: PropType<Array<CascaderItem>> | never[];
|
|
64
|
-
default: () => never[];
|
|
65
|
-
};
|
|
66
|
-
keyField: {
|
|
67
|
-
type: any;
|
|
68
|
-
default: () => string[];
|
|
69
|
-
};
|
|
70
|
-
width: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
size: {
|
|
75
|
-
type: PropType<"small" | "default" | "large">;
|
|
76
|
-
default: string;
|
|
77
|
-
validator: (value: string) => boolean;
|
|
78
|
-
};
|
|
79
|
-
footerBtnName: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
isNeedFooter: {
|
|
84
|
-
type: BooleanConstructor;
|
|
85
|
-
default: boolean;
|
|
86
|
-
};
|
|
87
|
-
isNeedHeader: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: boolean;
|
|
90
|
-
};
|
|
91
|
-
isNeedOnlySelect: {
|
|
92
|
-
type: BooleanConstructor;
|
|
93
|
-
default: boolean;
|
|
94
|
-
};
|
|
95
|
-
injectionKey: {
|
|
96
|
-
type: StringConstructor;
|
|
97
|
-
default: string;
|
|
98
|
-
};
|
|
99
|
-
}>> & Readonly<{}>, {
|
|
5
|
+
children?: CascaderItem[];
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
/** 组件 Props 类型 */
|
|
9
|
+
export interface Props {
|
|
10
|
+
/** 绑定的字段名 */
|
|
11
|
+
field: string;
|
|
12
|
+
/** 选项数据 */
|
|
13
|
+
options?: CascaderItem[];
|
|
14
|
+
/** 选项的键名配置 */
|
|
15
|
+
keyField?: string[];
|
|
16
|
+
/** 组件宽度 */
|
|
17
|
+
width?: string;
|
|
18
|
+
/** 组件尺寸 */
|
|
19
|
+
size?: "small" | "default" | "large";
|
|
20
|
+
/** 底部按钮文本 */
|
|
21
|
+
footerBtnName?: string;
|
|
22
|
+
/** 是否显示底部按钮区域 */
|
|
23
|
+
isNeedFooter?: boolean;
|
|
24
|
+
/** 是否显示头部全选区域 */
|
|
25
|
+
isNeedHeader?: boolean;
|
|
26
|
+
/** 是否显示仅筛选 */
|
|
27
|
+
isNeedOnlySelect?: boolean;
|
|
28
|
+
/** 自定义注入键值 */
|
|
29
|
+
injectionKey?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
32
|
+
getCheckedNodes: (leafOnly?: boolean) => import("element-plus").CascaderNode[] | undefined;
|
|
33
|
+
togglePopperVisible: (visible?: boolean) => void | undefined;
|
|
34
|
+
cascaderPanelRef: import("element-plus").CascaderPanelInstance | null | undefined;
|
|
35
|
+
contentRef: HTMLElement | undefined;
|
|
36
|
+
presentText: string | undefined;
|
|
37
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
100
38
|
size: "small" | "default" | "large";
|
|
101
39
|
injectionKey: string;
|
|
102
|
-
field: string;
|
|
103
40
|
options: CascaderItem[];
|
|
104
|
-
keyField:
|
|
41
|
+
keyField: string[];
|
|
105
42
|
width: string;
|
|
106
43
|
footerBtnName: string;
|
|
107
44
|
isNeedFooter: boolean;
|
|
108
45
|
isNeedOnlySelect: boolean;
|
|
109
46
|
isNeedHeader: boolean;
|
|
110
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
111
48
|
export default _default;
|
|
@@ -1,34 +1,5 @@
|
|
|
1
1
|
export declare const JcColumnConfig: {
|
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").
|
|
3
|
-
table: {
|
|
4
|
-
type: import("vue").PropType<import("vxe-table").VxeTableInstance>;
|
|
5
|
-
default: null;
|
|
6
|
-
};
|
|
7
|
-
itemWidth: {
|
|
8
|
-
type: NumberConstructor;
|
|
9
|
-
default: number;
|
|
10
|
-
};
|
|
11
|
-
drawerWidth: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
default: string;
|
|
14
|
-
};
|
|
15
|
-
maxFixedCount: {
|
|
16
|
-
type: NumberConstructor;
|
|
17
|
-
default: number;
|
|
18
|
-
};
|
|
19
|
-
lockFieldList: {
|
|
20
|
-
type: import("vue").PropType<string[]>;
|
|
21
|
-
default: () => never[];
|
|
22
|
-
};
|
|
23
|
-
storagePrefix: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
columnGroups: {
|
|
28
|
-
type: import("vue").PropType<import("./types").ColumnGroupConfig[]>;
|
|
29
|
-
default: () => never[];
|
|
30
|
-
};
|
|
31
|
-
}>> & Readonly<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.vue").Props> & Readonly<{
|
|
32
3
|
onChange?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
33
4
|
onReset?: (() => any) | undefined;
|
|
34
5
|
onSaved?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
@@ -53,50 +24,22 @@ export declare const JcColumnConfig: {
|
|
|
53
24
|
width: number;
|
|
54
25
|
}) => any;
|
|
55
26
|
}, import("vue").PublicProps, {
|
|
56
|
-
table: import("vxe-table").VxeTableInstance;
|
|
27
|
+
table: import("vxe-table").VxeTableInstance | null;
|
|
57
28
|
lockFieldList: string[];
|
|
58
29
|
maxFixedCount: number;
|
|
59
30
|
storagePrefix: string;
|
|
31
|
+
defaultVisibleFields: string[];
|
|
60
32
|
itemWidth: number;
|
|
61
33
|
drawerWidth: string;
|
|
62
34
|
columnGroups: import("./types").ColumnGroupConfig[];
|
|
63
|
-
},
|
|
35
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
64
36
|
P: {};
|
|
65
37
|
B: {};
|
|
66
38
|
D: {};
|
|
67
39
|
C: {};
|
|
68
40
|
M: {};
|
|
69
41
|
Defaults: {};
|
|
70
|
-
}, Readonly<import("vue").
|
|
71
|
-
table: {
|
|
72
|
-
type: import("vue").PropType<import("vxe-table").VxeTableInstance>;
|
|
73
|
-
default: null;
|
|
74
|
-
};
|
|
75
|
-
itemWidth: {
|
|
76
|
-
type: NumberConstructor;
|
|
77
|
-
default: number;
|
|
78
|
-
};
|
|
79
|
-
drawerWidth: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
|
-
maxFixedCount: {
|
|
84
|
-
type: NumberConstructor;
|
|
85
|
-
default: number;
|
|
86
|
-
};
|
|
87
|
-
lockFieldList: {
|
|
88
|
-
type: import("vue").PropType<string[]>;
|
|
89
|
-
default: () => never[];
|
|
90
|
-
};
|
|
91
|
-
storagePrefix: {
|
|
92
|
-
type: StringConstructor;
|
|
93
|
-
default: string;
|
|
94
|
-
};
|
|
95
|
-
columnGroups: {
|
|
96
|
-
type: import("vue").PropType<import("./types").ColumnGroupConfig[]>;
|
|
97
|
-
default: () => never[];
|
|
98
|
-
};
|
|
99
|
-
}>> & Readonly<{
|
|
42
|
+
}, Readonly<import("./index.vue").Props> & Readonly<{
|
|
100
43
|
onChange?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
101
44
|
onReset?: (() => any) | undefined;
|
|
102
45
|
onSaved?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
@@ -113,10 +56,11 @@ export declare const JcColumnConfig: {
|
|
|
113
56
|
onResizableChange: (params: import("vxe-table").VxeTableDefines.ResizableChangeEventParams) => void;
|
|
114
57
|
hasStoredConfig: () => boolean;
|
|
115
58
|
}, {}, {}, {}, {
|
|
116
|
-
table: import("vxe-table").VxeTableInstance;
|
|
59
|
+
table: import("vxe-table").VxeTableInstance | null;
|
|
117
60
|
lockFieldList: string[];
|
|
118
61
|
maxFixedCount: number;
|
|
119
62
|
storagePrefix: string;
|
|
63
|
+
defaultVisibleFields: string[];
|
|
120
64
|
itemWidth: number;
|
|
121
65
|
drawerWidth: string;
|
|
122
66
|
columnGroups: import("./types").ColumnGroupConfig[];
|
|
@@ -124,36 +68,7 @@ export declare const JcColumnConfig: {
|
|
|
124
68
|
__isFragment?: never;
|
|
125
69
|
__isTeleport?: never;
|
|
126
70
|
__isSuspense?: never;
|
|
127
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").
|
|
128
|
-
table: {
|
|
129
|
-
type: import("vue").PropType<import("vxe-table").VxeTableInstance>;
|
|
130
|
-
default: null;
|
|
131
|
-
};
|
|
132
|
-
itemWidth: {
|
|
133
|
-
type: NumberConstructor;
|
|
134
|
-
default: number;
|
|
135
|
-
};
|
|
136
|
-
drawerWidth: {
|
|
137
|
-
type: StringConstructor;
|
|
138
|
-
default: string;
|
|
139
|
-
};
|
|
140
|
-
maxFixedCount: {
|
|
141
|
-
type: NumberConstructor;
|
|
142
|
-
default: number;
|
|
143
|
-
};
|
|
144
|
-
lockFieldList: {
|
|
145
|
-
type: import("vue").PropType<string[]>;
|
|
146
|
-
default: () => never[];
|
|
147
|
-
};
|
|
148
|
-
storagePrefix: {
|
|
149
|
-
type: StringConstructor;
|
|
150
|
-
default: string;
|
|
151
|
-
};
|
|
152
|
-
columnGroups: {
|
|
153
|
-
type: import("vue").PropType<import("./types").ColumnGroupConfig[]>;
|
|
154
|
-
default: () => never[];
|
|
155
|
-
};
|
|
156
|
-
}>> & Readonly<{
|
|
71
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./index.vue").Props> & Readonly<{
|
|
157
72
|
onChange?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
158
73
|
onReset?: (() => any) | undefined;
|
|
159
74
|
onSaved?: ((config: import("./types").ColumnConfig[]) => any) | undefined;
|
|
@@ -178,10 +93,11 @@ export declare const JcColumnConfig: {
|
|
|
178
93
|
width: number;
|
|
179
94
|
}) => any;
|
|
180
95
|
}, string, {
|
|
181
|
-
table: import("vxe-table").VxeTableInstance;
|
|
96
|
+
table: import("vxe-table").VxeTableInstance | null;
|
|
182
97
|
lockFieldList: string[];
|
|
183
98
|
maxFixedCount: number;
|
|
184
99
|
storagePrefix: string;
|
|
100
|
+
defaultVisibleFields: string[];
|
|
185
101
|
itemWidth: number;
|
|
186
102
|
drawerWidth: string;
|
|
187
103
|
columnGroups: import("./types").ColumnGroupConfig[];
|
|
@@ -1,36 +1,25 @@
|
|
|
1
|
-
import { type PropType } from "vue";
|
|
2
1
|
import type { VxeTableInstance, VxeTableDefines } from "vxe-table";
|
|
3
2
|
import type { ColumnConfig, ColumnGroupConfig } from "./types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
itemWidth
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
storagePrefix: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
columnGroups: {
|
|
30
|
-
type: PropType<ColumnGroupConfig[]>;
|
|
31
|
-
default: () => never[];
|
|
32
|
-
};
|
|
33
|
-
}>, {
|
|
3
|
+
/** 组件 Props 类型 */
|
|
4
|
+
export interface Props {
|
|
5
|
+
/** 表格实例 */
|
|
6
|
+
table?: VxeTableInstance | null;
|
|
7
|
+
/** 每个字段项的宽度 */
|
|
8
|
+
itemWidth?: number;
|
|
9
|
+
/** 抽屉宽度 */
|
|
10
|
+
drawerWidth?: string;
|
|
11
|
+
/** 最大固定列数 */
|
|
12
|
+
maxFixedCount?: number;
|
|
13
|
+
/** 锁定的字段列表,这些字段不能取消显示 */
|
|
14
|
+
lockFieldList?: string[];
|
|
15
|
+
/** 存储键前缀 */
|
|
16
|
+
storagePrefix?: string;
|
|
17
|
+
/** 列分组配置 */
|
|
18
|
+
columnGroups?: ColumnGroupConfig[];
|
|
19
|
+
/** 默认可见的字段列表(仅这些字段可见,其他隐藏) */
|
|
20
|
+
defaultVisibleFields?: string[];
|
|
21
|
+
}
|
|
22
|
+
declare const _default: import("vue").DefineComponent<Props, {
|
|
34
23
|
openDrawer: () => void;
|
|
35
24
|
closeDrawer: () => void;
|
|
36
25
|
loadStoredConfig: () => Promise<void>;
|
|
@@ -46,36 +35,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
35
|
field: string;
|
|
47
36
|
width: number;
|
|
48
37
|
}) => any;
|
|
49
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
50
|
-
table: {
|
|
51
|
-
type: PropType<VxeTableInstance>;
|
|
52
|
-
default: null;
|
|
53
|
-
};
|
|
54
|
-
itemWidth: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
drawerWidth: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
maxFixedCount: {
|
|
63
|
-
type: NumberConstructor;
|
|
64
|
-
default: number;
|
|
65
|
-
};
|
|
66
|
-
lockFieldList: {
|
|
67
|
-
type: PropType<string[]>;
|
|
68
|
-
default: () => never[];
|
|
69
|
-
};
|
|
70
|
-
storagePrefix: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
columnGroups: {
|
|
75
|
-
type: PropType<ColumnGroupConfig[]>;
|
|
76
|
-
default: () => never[];
|
|
77
|
-
};
|
|
78
|
-
}>> & Readonly<{
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
79
39
|
onChange?: ((config: ColumnConfig[]) => any) | undefined;
|
|
80
40
|
onReset?: (() => any) | undefined;
|
|
81
41
|
onSaved?: ((config: ColumnConfig[]) => any) | undefined;
|
|
@@ -84,12 +44,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
44
|
width: number;
|
|
85
45
|
}) => any) | undefined;
|
|
86
46
|
}>, {
|
|
87
|
-
table: VxeTableInstance;
|
|
47
|
+
table: VxeTableInstance | null;
|
|
88
48
|
lockFieldList: string[];
|
|
89
49
|
maxFixedCount: number;
|
|
90
50
|
storagePrefix: string;
|
|
51
|
+
defaultVisibleFields: string[];
|
|
91
52
|
itemWidth: number;
|
|
92
53
|
drawerWidth: string;
|
|
93
54
|
columnGroups: ColumnGroupConfig[];
|
|
94
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
55
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
95
56
|
export default _default;
|
|
@@ -10,6 +10,8 @@ export interface UseColumnConfigOptions {
|
|
|
10
10
|
maxFixedCount: Ref<number>;
|
|
11
11
|
storagePrefix: Ref<string>;
|
|
12
12
|
columnGroupsConfig: Ref<ColumnGroupConfig[]>;
|
|
13
|
+
/** 默认可见的字段列表(仅这些字段可见,其他隐藏) */
|
|
14
|
+
defaultVisibleFields: Ref<string[]>;
|
|
13
15
|
}
|
|
14
16
|
export declare function useColumnConfig(options: UseColumnConfigOptions): {
|
|
15
17
|
allColumns: Ref<{
|