@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.
Files changed (50) hide show
  1. package/dist/components/JcCascader/index.d.ts +25 -187
  2. package/dist/components/JcCascader/index.vue.d.ts +37 -100
  3. package/dist/components/JcColumnConfig/index.d.ts +10 -94
  4. package/dist/components/JcColumnConfig/index.vue.d.ts +24 -63
  5. package/dist/components/JcColumnConfig/types.d.ts +2 -0
  6. package/dist/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
  7. package/dist/components/JcDatePicker/index.d.ts +24 -105
  8. package/dist/components/JcDatePicker/index.vue.d.ts +26 -58
  9. package/dist/components/JcImportButton/index.d.ts +14 -41
  10. package/dist/components/JcImportButton/index.vue.d.ts +19 -26
  11. package/dist/components/JcImportDialog/index.d.ts +14 -74
  12. package/dist/components/JcImportDialog/index.vue.d.ts +25 -48
  13. package/dist/components/JcInputComplex/index.d.ts +48 -90
  14. package/dist/components/JcInputComplex/index.vue.d.ts +32 -48
  15. package/dist/components/JcInputSwitch/index.d.ts +42 -90
  16. package/dist/components/JcInputSwitch/index.vue.d.ts +30 -48
  17. package/dist/components/JcMoreQueryContain/index.d.ts +14 -197
  18. package/dist/components/JcMoreQueryContain/index.vue.d.ts +23 -88
  19. package/dist/components/JcSelectQuery/index.d.ts +19 -178
  20. package/dist/components/JcSelectQuery/index.vue.d.ts +37 -106
  21. package/dist/components/JcTagQuery/index.d.ts +4 -19
  22. package/dist/components/JcTagQuery/index.vue.d.ts +7 -12
  23. package/dist/es/index.mjs +2032 -2066
  24. package/dist/index.css +2 -2
  25. package/dist/index.d.ts +3 -1
  26. package/dist/lib/index.cjs +8 -8
  27. package/dist/types/components/JcCascader/index.d.ts +25 -187
  28. package/dist/types/components/JcCascader/index.vue.d.ts +37 -100
  29. package/dist/types/components/JcColumnConfig/index.d.ts +10 -94
  30. package/dist/types/components/JcColumnConfig/index.vue.d.ts +24 -63
  31. package/dist/types/components/JcColumnConfig/types.d.ts +2 -0
  32. package/dist/types/components/JcColumnConfig/useColumnConfig.d.ts +2 -0
  33. package/dist/types/components/JcDatePicker/index.d.ts +24 -105
  34. package/dist/types/components/JcDatePicker/index.vue.d.ts +26 -58
  35. package/dist/types/components/JcImportButton/index.d.ts +14 -41
  36. package/dist/types/components/JcImportButton/index.vue.d.ts +19 -26
  37. package/dist/types/components/JcImportDialog/index.d.ts +14 -74
  38. package/dist/types/components/JcImportDialog/index.vue.d.ts +25 -48
  39. package/dist/types/components/JcInputComplex/index.d.ts +51 -93
  40. package/dist/types/components/JcInputComplex/index.vue.d.ts +126 -141
  41. package/dist/types/components/JcInputSwitch/index.d.ts +45 -93
  42. package/dist/types/components/JcInputSwitch/index.vue.d.ts +74 -91
  43. package/dist/types/components/JcMoreQueryContain/index.d.ts +14 -197
  44. package/dist/types/components/JcMoreQueryContain/index.vue.d.ts +108 -172
  45. package/dist/types/components/JcSelectQuery/index.d.ts +19 -178
  46. package/dist/types/components/JcSelectQuery/index.vue.d.ts +137 -206
  47. package/dist/types/components/JcTagQuery/index.d.ts +4 -19
  48. package/dist/types/components/JcTagQuery/index.vue.d.ts +7 -12
  49. package/dist/types/index.d.ts +3 -1
  50. package/package.json +2 -2
@@ -1,75 +1,21 @@
1
1
  export declare const JcCascader: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
- field: {
4
- type: StringConstructor;
5
- required: true;
6
- default: string;
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
- field: string;
58
- options: {
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
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
18
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
73
19
  cascaderRef: unknown;
74
20
  }, any, import('vue').ComponentProvideOptions, {
75
21
  P: {};
@@ -78,71 +24,17 @@ export declare const JcCascader: {
78
24
  C: {};
79
25
  M: {};
80
26
  Defaults: {};
81
- }, Readonly<import('vue').ExtractPropTypes<{
82
- field: {
83
- type: StringConstructor;
84
- required: true;
85
- default: string;
86
- };
87
- options: {
88
- type: import('vue').PropType<Array<{
89
- label: string;
90
- value: string;
91
- children?: Array<{
92
- label: string;
93
- value: string;
94
- }>;
95
- }>> | never[];
96
- default: () => never[];
97
- };
98
- keyField: {
99
- type: any;
100
- default: () => string[];
101
- };
102
- width: {
103
- type: StringConstructor;
104
- default: string;
105
- };
106
- size: {
107
- type: import('vue').PropType<"small" | "default" | "large">;
108
- default: string;
109
- validator: (value: string) => boolean;
110
- };
111
- footerBtnName: {
112
- type: StringConstructor;
113
- default: string;
114
- };
115
- isNeedFooter: {
116
- type: BooleanConstructor;
117
- default: boolean;
118
- };
119
- isNeedHeader: {
120
- type: BooleanConstructor;
121
- default: boolean;
122
- };
123
- isNeedOnlySelect: {
124
- type: BooleanConstructor;
125
- default: boolean;
126
- };
127
- injectionKey: {
128
- type: StringConstructor;
129
- default: string;
130
- };
131
- }>> & Readonly<{}>, {
132
- [x: string]: any;
27
+ }, Readonly<import('./index.vue').Props> & Readonly<{}>, {
28
+ getCheckedNodes: (leafOnly?: boolean) => import('element-plus').CascaderNode[] | undefined;
29
+ togglePopperVisible: (visible?: boolean) => void | undefined;
30
+ cascaderPanelRef: import('element-plus').CascaderPanelInstance | null | undefined;
31
+ contentRef: HTMLElement | undefined;
32
+ presentText: string | undefined;
133
33
  }, {}, {}, {}, {
134
34
  size: "small" | "default" | "large";
135
35
  injectionKey: string;
136
- field: string;
137
- options: {
138
- label: string;
139
- value: string;
140
- children?: Array<{
141
- label: string;
142
- value: string;
143
- }>;
144
- }[];
145
- keyField: any;
36
+ options: import('./index.vue').CascaderItem[];
37
+ keyField: string[];
146
38
  width: string;
147
39
  footerBtnName: string;
148
40
  isNeedFooter: boolean;
@@ -152,71 +44,17 @@ export declare const JcCascader: {
152
44
  __isFragment?: never;
153
45
  __isTeleport?: never;
154
46
  __isSuspense?: never;
155
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
156
- field: {
157
- type: StringConstructor;
158
- required: true;
159
- default: string;
160
- };
161
- options: {
162
- type: import('vue').PropType<Array<{
163
- label: string;
164
- value: string;
165
- children?: Array<{
166
- label: string;
167
- value: string;
168
- }>;
169
- }>> | never[];
170
- default: () => never[];
171
- };
172
- keyField: {
173
- type: any;
174
- default: () => string[];
175
- };
176
- width: {
177
- type: StringConstructor;
178
- default: string;
179
- };
180
- size: {
181
- type: import('vue').PropType<"small" | "default" | "large">;
182
- default: string;
183
- validator: (value: string) => boolean;
184
- };
185
- footerBtnName: {
186
- type: StringConstructor;
187
- default: string;
188
- };
189
- isNeedFooter: {
190
- type: BooleanConstructor;
191
- default: boolean;
192
- };
193
- isNeedHeader: {
194
- type: BooleanConstructor;
195
- default: boolean;
196
- };
197
- isNeedOnlySelect: {
198
- type: BooleanConstructor;
199
- default: boolean;
200
- };
201
- injectionKey: {
202
- type: StringConstructor;
203
- default: string;
204
- };
205
- }>> & Readonly<{}>, {
206
- [x: string]: any;
47
+ } & import('vue').ComponentOptionsBase<Readonly<import('./index.vue').Props> & Readonly<{}>, {
48
+ getCheckedNodes: (leafOnly?: boolean) => import('element-plus').CascaderNode[] | undefined;
49
+ togglePopperVisible: (visible?: boolean) => void | undefined;
50
+ cascaderPanelRef: import('element-plus').CascaderPanelInstance | null | undefined;
51
+ contentRef: HTMLElement | undefined;
52
+ presentText: string | undefined;
207
53
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
208
54
  size: "small" | "default" | "large";
209
55
  injectionKey: string;
210
- field: string;
211
- options: {
212
- label: string;
213
- value: string;
214
- children?: Array<{
215
- label: string;
216
- value: string;
217
- }>;
218
- }[];
219
- keyField: any;
56
+ options: import('./index.vue').CascaderItem[];
57
+ keyField: string[];
220
58
  width: string;
221
59
  footerBtnName: string;
222
60
  isNeedFooter: boolean;
@@ -1,113 +1,50 @@
1
- import { PropType } from 'vue';
2
- type Item = {
1
+ /** 级联选项类型 */
2
+ export interface CascaderItem {
3
3
  label: string;
4
4
  value: string;
5
- };
6
- type CascaderItem = {
7
- label: string;
8
- value: string;
9
- children?: Array<Item>;
10
- };
11
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
- field: {
13
- type: StringConstructor;
14
- required: true;
15
- default: string;
16
- };
17
- options: {
18
- type: PropType<Array<CascaderItem>> | never[];
19
- default: () => never[];
20
- };
21
- keyField: {
22
- type: any;
23
- default: () => string[];
24
- };
25
- width: {
26
- type: StringConstructor;
27
- default: string;
28
- };
29
- size: {
30
- type: PropType<"small" | "default" | "large">;
31
- default: string;
32
- validator: (value: string) => boolean;
33
- };
34
- footerBtnName: {
35
- type: StringConstructor;
36
- default: string;
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: any;
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, true, {
47
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
111
48
  cascaderRef: unknown;
112
49
  }, any>;
113
50
  export default _default;
@@ -1,34 +1,5 @@
1
1
  export declare const JcColumnConfig: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
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
- }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
35
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, 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').ExtractPropTypes<{
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').ExtractPropTypes<{
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 { PropType } from 'vue';
2
1
  import { VxeTableInstance, VxeTableDefines } from 'vxe-table';
3
2
  import { ColumnConfig, ColumnGroupConfig } from './types';
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- table: {
6
- type: PropType<VxeTableInstance>;
7
- default: null;
8
- };
9
- itemWidth: {
10
- type: NumberConstructor;
11
- default: number;
12
- };
13
- drawerWidth: {
14
- type: StringConstructor;
15
- default: string;
16
- };
17
- maxFixedCount: {
18
- type: NumberConstructor;
19
- default: number;
20
- };
21
- lockFieldList: {
22
- type: PropType<string[]>;
23
- default: () => never[];
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<import('vue').ExtractPropTypes<{
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, true, {}, HTMLDivElement>;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
95
56
  export default _default;
@@ -74,6 +74,8 @@ export interface ToolbarColumnConfigV2Props {
74
74
  storagePrefix?: string;
75
75
  /** 列分组配置(可选) */
76
76
  columnGroups?: ColumnGroupConfig[];
77
+ /** 默认可见的字段列表(仅这些字段可见,其他隐藏) */
78
+ defaultVisibleFields?: string[];
77
79
  }
78
80
  /**
79
81
  * 组件暴露的方法
@@ -7,6 +7,8 @@ export interface UseColumnConfigOptions {
7
7
  maxFixedCount: Ref<number>;
8
8
  storagePrefix: Ref<string>;
9
9
  columnGroupsConfig: Ref<ColumnGroupConfig[]>;
10
+ /** 默认可见的字段列表(仅这些字段可见,其他隐藏) */
11
+ defaultVisibleFields: Ref<string[]>;
10
12
  }
11
13
  export declare function useColumnConfig(options: UseColumnConfigOptions): {
12
14
  allColumns: Ref<{