bkui-vue 0.0.2-beta.33 → 0.0.2-beta.34
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.cjs.js +40 -40
- package/dist/index.esm.js +4794 -4779
- package/dist/index.umd.js +41 -41
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/table/components/table-cell.d.ts +4 -29
- package/lib/table/components/table-column.d.ts +31 -73
- package/lib/table/index.d.ts +36 -102
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.d.ts +2 -7
- package/lib/table/plugins/head-sort.d.ts +2 -7
- package/lib/table/plugins/settings.d.ts +2 -8
- package/lib/table/props.d.ts +8 -48
- package/lib/table/table.css +3 -1
- package/lib/table/table.d.ts +7 -29
- package/lib/table/table.less +3 -3
- package/lib/table/table.variable.css +3 -1
- package/lib/table/use-column.d.ts +3 -16
- package/lib/table/use-common.d.ts +1 -0
- package/lib/table-column/index.d.ts +78 -123
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
package/lib/table/table.d.ts
CHANGED
@@ -67,9 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
67
67
|
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
68
68
|
default: string;
|
69
69
|
};
|
70
|
-
settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType
|
71
|
-
default: boolean | (() => import("./props").Settings);
|
72
|
-
};
|
70
|
+
settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType>;
|
73
71
|
rowClass: import("vue-types").VueTypeDef<any> & {
|
74
72
|
default: any;
|
75
73
|
};
|
@@ -107,16 +105,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
105
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
108
106
|
default: any;
|
109
107
|
};
|
110
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp
|
111
|
-
default: boolean | (() => {
|
112
|
-
content: string | Function;
|
113
|
-
disabled?: boolean;
|
114
|
-
watchCellResize?: boolean;
|
115
|
-
mode?: "auto" | "static";
|
116
|
-
popoverOption?: any;
|
117
|
-
resizerWay?: import("./props").ResizerWay;
|
118
|
-
});
|
119
|
-
};
|
108
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
120
109
|
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
121
110
|
default: boolean;
|
122
111
|
} & {
|
@@ -185,7 +174,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
174
|
isAll: boolean;
|
186
175
|
}) => boolean;
|
187
176
|
pageLimitChange: (_arg: number) => boolean;
|
188
|
-
pageValueChange: (_arg: number) => boolean;
|
177
|
+
pageValueChange: (_arg: number) => boolean; /**
|
178
|
+
* 保证每次计算宽度正确
|
179
|
+
*/
|
189
180
|
settingChange: (_args: {
|
190
181
|
checked: string[];
|
191
182
|
size: string;
|
@@ -290,9 +281,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
290
281
|
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
291
282
|
default: string;
|
292
283
|
};
|
293
|
-
settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType
|
294
|
-
default: boolean | (() => import("./props").Settings);
|
295
|
-
};
|
284
|
+
settings: import("vue-types").VueTypeDef<import("./props").ISettingPropType>;
|
296
285
|
rowClass: import("vue-types").VueTypeDef<any> & {
|
297
286
|
default: any;
|
298
287
|
};
|
@@ -330,16 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
330
319
|
rowKey: import("vue-types").VueTypeDef<any> & {
|
331
320
|
default: any;
|
332
321
|
};
|
333
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp
|
334
|
-
default: boolean | (() => {
|
335
|
-
content: string | Function;
|
336
|
-
disabled?: boolean;
|
337
|
-
watchCellResize?: boolean;
|
338
|
-
mode?: "auto" | "static";
|
339
|
-
popoverOption?: any;
|
340
|
-
resizerWay?: import("./props").ResizerWay;
|
341
|
-
});
|
342
|
-
};
|
322
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
343
323
|
asyncData: import("vue-types").VueTypeValidableDef<boolean> & {
|
344
324
|
default: boolean;
|
345
325
|
} & {
|
@@ -461,7 +441,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
461
441
|
scrollLoading: boolean | {
|
462
442
|
[key: string]: any;
|
463
443
|
};
|
464
|
-
showOverflowTooltip: import("./props").IOverflowTooltipProp;
|
465
444
|
columnPick: "disabled" | "single" | "multi";
|
466
445
|
stripe: boolean;
|
467
446
|
rowHeight: import("./props").RowHeightFunctionNumber;
|
@@ -470,7 +449,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
470
449
|
paginationHeight: number;
|
471
450
|
remotePagination: boolean;
|
472
451
|
emptyText: string;
|
473
|
-
settings: import("./props").ISettingPropType;
|
474
452
|
rowClass: any;
|
475
453
|
rowStyle: any;
|
476
454
|
cellStyle: any;
|
package/lib/table/table.less
CHANGED
@@ -14,7 +14,6 @@
|
|
14
14
|
position: relative;
|
15
15
|
height: auto;
|
16
16
|
overflow: hidden;
|
17
|
-
// border-bottom: 1px solid @table-border-color;
|
18
17
|
|
19
18
|
&.has-scroll-y {
|
20
19
|
.@{bk-prefix}-table-head {
|
@@ -219,7 +218,7 @@
|
|
219
218
|
|
220
219
|
th {
|
221
220
|
font-weight: 400;
|
222
|
-
|
221
|
+
background-color: var(--background-color);
|
223
222
|
.cell {
|
224
223
|
display: flex;
|
225
224
|
align-items: center;
|
@@ -230,6 +229,7 @@
|
|
230
229
|
&.active,
|
231
230
|
&:hover {
|
232
231
|
background: @table-row-active-bg-color;
|
232
|
+
cursor: pointer;
|
233
233
|
}
|
234
234
|
|
235
235
|
&.column_fixed {
|
@@ -388,7 +388,7 @@
|
|
388
388
|
top: 0;
|
389
389
|
right: 0;
|
390
390
|
bottom: var(--footer-height);
|
391
|
-
max-height:
|
391
|
+
max-height: var(--fix-max-height);
|
392
392
|
left: 0;
|
393
393
|
height: var(--fix-height);
|
394
394
|
pointer-events: none;
|
@@ -1309,6 +1309,7 @@
|
|
1309
1309
|
.bk-table .bk-table-head table thead th,
|
1310
1310
|
.bk-table .bk-table-body table thead th {
|
1311
1311
|
font-weight: 400;
|
1312
|
+
background-color: var(--background-color);
|
1312
1313
|
}
|
1313
1314
|
.bk-table .bk-table-head table thead th .cell,
|
1314
1315
|
.bk-table .bk-table-body table thead th .cell {
|
@@ -1322,6 +1323,7 @@
|
|
1322
1323
|
.bk-table .bk-table-head table thead th:hover,
|
1323
1324
|
.bk-table .bk-table-body table thead th:hover {
|
1324
1325
|
background: #f0f1f5;
|
1326
|
+
cursor: pointer;
|
1325
1327
|
}
|
1326
1328
|
.bk-table .bk-table-head table thead th.column_fixed,
|
1327
1329
|
.bk-table .bk-table-body table thead th.column_fixed {
|
@@ -1433,7 +1435,7 @@
|
|
1433
1435
|
top: 0;
|
1434
1436
|
right: 0;
|
1435
1437
|
bottom: var(--footer-height);
|
1436
|
-
max-height:
|
1438
|
+
max-height: var(--fix-max-height);
|
1437
1439
|
left: 0;
|
1438
1440
|
height: var(--fix-height);
|
1439
1441
|
pointer-events: none;
|
@@ -20,16 +20,7 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
20
20
|
} & {
|
21
21
|
default: string;
|
22
22
|
};
|
23
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp
|
24
|
-
default: boolean | (() => {
|
25
|
-
content: string | Function;
|
26
|
-
disabled?: boolean;
|
27
|
-
watchCellResize?: boolean;
|
28
|
-
mode?: "auto" | "static";
|
29
|
-
popoverOption?: any;
|
30
|
-
resizerWay?: import("./props").ResizerWay;
|
31
|
-
});
|
32
|
-
};
|
23
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
33
24
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
34
25
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
35
26
|
default: boolean;
|
@@ -39,12 +30,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
39
30
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
40
31
|
default: boolean | "right" | "left";
|
41
32
|
};
|
42
|
-
sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape
|
43
|
-
|
44
|
-
};
|
45
|
-
filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape> & {
|
46
|
-
default: string | boolean | (() => import("./props").IFilterShape);
|
47
|
-
};
|
33
|
+
sort: import("vue-types").VueTypeDef<import("./props").ISortPropShape>;
|
34
|
+
filter: import("vue-types").VueTypeDef<import("./props").IFilterPropShape>;
|
48
35
|
colspan: import("vue-types").VueTypeDef<import("./props").SpanFunctionString> & {
|
49
36
|
default: (({ column, colIndex, row, rowIndex, }: {
|
50
37
|
column: any;
|
@@ -33,6 +33,7 @@ export declare const useClass: (props: TablePropTypes, targetColumns: ITableColu
|
|
33
33
|
'--scroll-left': string;
|
34
34
|
}>;
|
35
35
|
fixHeight: import("vue").Ref<number>;
|
36
|
+
maxFixHeight: import("vue").Ref<number>;
|
36
37
|
resetTableHeight: (rootEl: HTMLElement) => void;
|
37
38
|
updateBorderClass: (root: HTMLElement) => void;
|
38
39
|
getColumnsWidthOffsetWidth: () => number;
|
@@ -3,17 +3,16 @@ declare const BkTableColumn: {
|
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
5
|
$props: {
|
6
|
-
sort?: import("../../table/src/props").ISortPropShape;
|
7
|
-
filter?: import("../../table/src/props").IFilterPropShape;
|
8
6
|
fixed?: boolean | "right" | "left";
|
9
7
|
minWidth?: string | number;
|
10
8
|
index?: number;
|
11
9
|
columnKey?: string;
|
12
|
-
showOverflowTooltip?: import("../../table/src/props").IOverflowTooltipProp;
|
13
10
|
resizable?: boolean;
|
14
11
|
colspan?: import("../../table/src/props").SpanFunctionString;
|
15
12
|
rowspan?: import("../../table/src/props").SpanFunctionString;
|
16
13
|
readonly render?: import("../../table/src/props").RenderFunctionString;
|
14
|
+
readonly sort?: import("../../table/src/props").ISortPropShape;
|
15
|
+
readonly filter?: import("../../table/src/props").IFilterPropShape;
|
17
16
|
readonly type?: "none" | "selection" | "index" | "expand";
|
18
17
|
class?: unknown;
|
19
18
|
readonly label?: import("../../table/src/props").LabelFunctionString;
|
@@ -63,6 +62,7 @@ declare const BkTableColumn: {
|
|
63
62
|
}>) => void)[];
|
64
63
|
readonly className?: import("../../table/src/props").RowClassFunctionString;
|
65
64
|
readonly align?: "" | "right" | "left" | "center";
|
65
|
+
readonly showOverflowTooltip?: import("../../table/src/props").IOverflowTooltipProp;
|
66
66
|
readonly field?: import("../../table/src/props").LabelFunctionString;
|
67
67
|
readonly prop?: import("../../table/src/props").LabelFunctionString;
|
68
68
|
};
|
@@ -92,16 +92,7 @@ declare const BkTableColumn: {
|
|
92
92
|
} & {
|
93
93
|
default: string;
|
94
94
|
};
|
95
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp
|
96
|
-
default: boolean | (() => {
|
97
|
-
content: string | Function;
|
98
|
-
disabled?: boolean;
|
99
|
-
watchCellResize?: boolean;
|
100
|
-
mode?: "auto" | "static";
|
101
|
-
popoverOption?: any;
|
102
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
103
|
-
});
|
104
|
-
};
|
95
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
105
96
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
106
97
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
107
98
|
default: boolean;
|
@@ -111,12 +102,8 @@ declare const BkTableColumn: {
|
|
111
102
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
112
103
|
default: boolean | "right" | "left";
|
113
104
|
};
|
114
|
-
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape
|
115
|
-
|
116
|
-
};
|
117
|
-
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
|
118
|
-
default: string | boolean | (() => import("../../table/src/props").IFilterShape);
|
119
|
-
};
|
105
|
+
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
106
|
+
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
120
107
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
121
108
|
default: (({ column, colIndex, row, rowIndex, }: {
|
122
109
|
column: any;
|
@@ -148,32 +135,10 @@ declare const BkTableColumn: {
|
|
148
135
|
};
|
149
136
|
column: {
|
150
137
|
field: import("../../table/src/props").LabelFunctionString;
|
151
|
-
sort?: string | boolean | {
|
152
|
-
sortFn?: Function;
|
153
|
-
sortScope?: import("../../table/src/props").SortScope;
|
154
|
-
value?: import("../../table/src/const").SORT_OPTION;
|
155
|
-
};
|
156
|
-
filter?: string | boolean | {
|
157
|
-
list: any[];
|
158
|
-
filterFn?: Function;
|
159
|
-
match?: import("../../table/src/props").FullEnum;
|
160
|
-
checked?: any[];
|
161
|
-
filterScope?: import("../../table/src/props").SortScope;
|
162
|
-
btnSave?: string | boolean;
|
163
|
-
btnReset?: string | boolean;
|
164
|
-
};
|
165
138
|
fixed?: boolean | "right" | "left";
|
166
139
|
minWidth?: string | number;
|
167
140
|
index?: number;
|
168
141
|
columnKey?: string;
|
169
|
-
showOverflowTooltip?: boolean | {
|
170
|
-
content: string | Function;
|
171
|
-
disabled?: boolean;
|
172
|
-
watchCellResize?: boolean;
|
173
|
-
mode?: "auto" | "static";
|
174
|
-
popoverOption?: any;
|
175
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
176
|
-
};
|
177
142
|
resizable?: boolean;
|
178
143
|
colspan?: (({ column, colIndex, row, rowIndex, }: {
|
179
144
|
column: any;
|
@@ -208,11 +173,33 @@ declare const BkTableColumn: {
|
|
208
173
|
};
|
209
174
|
};
|
210
175
|
render?: import("../../table/src/props").RenderFunctionString;
|
176
|
+
sort?: string | boolean | {
|
177
|
+
sortFn?: Function;
|
178
|
+
sortScope?: import("../../table/src/props").SortScope;
|
179
|
+
value?: import("../../table/src/const").SORT_OPTION;
|
180
|
+
};
|
181
|
+
filter?: string | boolean | {
|
182
|
+
list: any[];
|
183
|
+
filterFn?: Function;
|
184
|
+
match?: import("../../table/src/props").FullEnum;
|
185
|
+
checked?: any[];
|
186
|
+
filterScope?: import("../../table/src/props").SortScope;
|
187
|
+
btnSave?: string | boolean;
|
188
|
+
btnReset?: string | boolean;
|
189
|
+
};
|
211
190
|
type?: "none" | "selection" | "index" | "expand";
|
212
191
|
label?: import("../../table/src/props").LabelFunctionString;
|
213
192
|
width?: string | number;
|
214
193
|
className?: import("../../table/src/props").RowClassFunctionString;
|
215
194
|
align?: "" | "right" | "left" | "center";
|
195
|
+
showOverflowTooltip?: boolean | {
|
196
|
+
content: string | Function;
|
197
|
+
disabled?: boolean;
|
198
|
+
watchCellResize?: boolean;
|
199
|
+
mode?: "auto" | "static";
|
200
|
+
popoverOption?: any;
|
201
|
+
resizerWay?: import("../../table/src/props").ResizerWay;
|
202
|
+
};
|
216
203
|
prop?: import("../../table/src/props").LabelFunctionString;
|
217
204
|
};
|
218
205
|
}, unknown, {}, {
|
@@ -220,13 +207,10 @@ declare const BkTableColumn: {
|
|
220
207
|
updateColumnDefineByParent(): void;
|
221
208
|
updateColumnDefineByIndex(unmounted?: boolean): void;
|
222
209
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
223
|
-
sort: import("../../table/src/props").ISortPropShape;
|
224
|
-
filter: import("../../table/src/props").IFilterPropShape;
|
225
210
|
fixed: boolean | "right" | "left";
|
226
211
|
minWidth: string | number;
|
227
212
|
index: number;
|
228
213
|
columnKey: string;
|
229
|
-
showOverflowTooltip: import("../../table/src/props").IOverflowTooltipProp;
|
230
214
|
resizable: boolean;
|
231
215
|
colspan: import("../../table/src/props").SpanFunctionString;
|
232
216
|
rowspan: import("../../table/src/props").SpanFunctionString;
|
@@ -263,16 +247,7 @@ declare const BkTableColumn: {
|
|
263
247
|
} & {
|
264
248
|
default: string;
|
265
249
|
};
|
266
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp
|
267
|
-
default: boolean | (() => {
|
268
|
-
content: string | Function;
|
269
|
-
disabled?: boolean;
|
270
|
-
watchCellResize?: boolean;
|
271
|
-
mode?: "auto" | "static";
|
272
|
-
popoverOption?: any;
|
273
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
274
|
-
});
|
275
|
-
};
|
250
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
276
251
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
277
252
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
278
253
|
default: boolean;
|
@@ -282,12 +257,8 @@ declare const BkTableColumn: {
|
|
282
257
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
283
258
|
default: boolean | "right" | "left";
|
284
259
|
};
|
285
|
-
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape
|
286
|
-
|
287
|
-
};
|
288
|
-
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
|
289
|
-
default: string | boolean | (() => import("../../table/src/props").IFilterShape);
|
290
|
-
};
|
260
|
+
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
261
|
+
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
291
262
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
292
263
|
default: (({ column, colIndex, row, rowIndex, }: {
|
293
264
|
column: any;
|
@@ -319,32 +290,10 @@ declare const BkTableColumn: {
|
|
319
290
|
};
|
320
291
|
column: {
|
321
292
|
field: import("../../table/src/props").LabelFunctionString;
|
322
|
-
sort?: string | boolean | {
|
323
|
-
sortFn?: Function;
|
324
|
-
sortScope?: import("../../table/src/props").SortScope;
|
325
|
-
value?: import("../../table/src/const").SORT_OPTION;
|
326
|
-
};
|
327
|
-
filter?: string | boolean | {
|
328
|
-
list: any[];
|
329
|
-
filterFn?: Function;
|
330
|
-
match?: import("../../table/src/props").FullEnum;
|
331
|
-
checked?: any[];
|
332
|
-
filterScope?: import("../../table/src/props").SortScope;
|
333
|
-
btnSave?: string | boolean;
|
334
|
-
btnReset?: string | boolean;
|
335
|
-
};
|
336
293
|
fixed?: boolean | "right" | "left";
|
337
294
|
minWidth?: string | number;
|
338
295
|
index?: number;
|
339
296
|
columnKey?: string;
|
340
|
-
showOverflowTooltip?: boolean | {
|
341
|
-
content: string | Function;
|
342
|
-
disabled?: boolean;
|
343
|
-
watchCellResize?: boolean;
|
344
|
-
mode?: "auto" | "static";
|
345
|
-
popoverOption?: any;
|
346
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
347
|
-
};
|
348
297
|
resizable?: boolean;
|
349
298
|
colspan?: (({ column, colIndex, row, rowIndex, }: {
|
350
299
|
column: any;
|
@@ -379,11 +328,33 @@ declare const BkTableColumn: {
|
|
379
328
|
};
|
380
329
|
};
|
381
330
|
render?: import("../../table/src/props").RenderFunctionString;
|
331
|
+
sort?: string | boolean | {
|
332
|
+
sortFn?: Function;
|
333
|
+
sortScope?: import("../../table/src/props").SortScope;
|
334
|
+
value?: import("../../table/src/const").SORT_OPTION;
|
335
|
+
};
|
336
|
+
filter?: string | boolean | {
|
337
|
+
list: any[];
|
338
|
+
filterFn?: Function;
|
339
|
+
match?: import("../../table/src/props").FullEnum;
|
340
|
+
checked?: any[];
|
341
|
+
filterScope?: import("../../table/src/props").SortScope;
|
342
|
+
btnSave?: string | boolean;
|
343
|
+
btnReset?: string | boolean;
|
344
|
+
};
|
382
345
|
type?: "none" | "selection" | "index" | "expand";
|
383
346
|
label?: import("../../table/src/props").LabelFunctionString;
|
384
347
|
width?: string | number;
|
385
348
|
className?: import("../../table/src/props").RowClassFunctionString;
|
386
349
|
align?: "" | "right" | "left" | "center";
|
350
|
+
showOverflowTooltip?: boolean | {
|
351
|
+
content: string | Function;
|
352
|
+
disabled?: boolean;
|
353
|
+
watchCellResize?: boolean;
|
354
|
+
mode?: "auto" | "static";
|
355
|
+
popoverOption?: any;
|
356
|
+
resizerWay?: import("../../table/src/props").ResizerWay;
|
357
|
+
};
|
387
358
|
prop?: import("../../table/src/props").LabelFunctionString;
|
388
359
|
};
|
389
360
|
}> & {} & {
|
@@ -407,16 +378,7 @@ declare const BkTableColumn: {
|
|
407
378
|
} & {
|
408
379
|
default: string;
|
409
380
|
};
|
410
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp
|
411
|
-
default: boolean | (() => {
|
412
|
-
content: string | Function;
|
413
|
-
disabled?: boolean;
|
414
|
-
watchCellResize?: boolean;
|
415
|
-
mode?: "auto" | "static";
|
416
|
-
popoverOption?: any;
|
417
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
418
|
-
});
|
419
|
-
};
|
381
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
420
382
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
421
383
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
422
384
|
default: boolean;
|
@@ -426,12 +388,8 @@ declare const BkTableColumn: {
|
|
426
388
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
427
389
|
default: boolean | "right" | "left";
|
428
390
|
};
|
429
|
-
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape
|
430
|
-
|
431
|
-
};
|
432
|
-
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape> & {
|
433
|
-
default: string | boolean | (() => import("../../table/src/props").IFilterShape);
|
434
|
-
};
|
391
|
+
sort: import("vue-types").VueTypeDef<import("../../table/src/props").ISortPropShape>;
|
392
|
+
filter: import("vue-types").VueTypeDef<import("../../table/src/props").IFilterPropShape>;
|
435
393
|
colspan: import("vue-types").VueTypeDef<import("../../table/src/props").SpanFunctionString> & {
|
436
394
|
default: (({ column, colIndex, row, rowIndex, }: {
|
437
395
|
column: any;
|
@@ -463,32 +421,10 @@ declare const BkTableColumn: {
|
|
463
421
|
};
|
464
422
|
column: {
|
465
423
|
field: import("../../table/src/props").LabelFunctionString;
|
466
|
-
sort?: string | boolean | {
|
467
|
-
sortFn?: Function;
|
468
|
-
sortScope?: import("../../table/src/props").SortScope;
|
469
|
-
value?: import("../../table/src/const").SORT_OPTION;
|
470
|
-
};
|
471
|
-
filter?: string | boolean | {
|
472
|
-
list: any[];
|
473
|
-
filterFn?: Function;
|
474
|
-
match?: import("../../table/src/props").FullEnum;
|
475
|
-
checked?: any[];
|
476
|
-
filterScope?: import("../../table/src/props").SortScope;
|
477
|
-
btnSave?: string | boolean;
|
478
|
-
btnReset?: string | boolean;
|
479
|
-
};
|
480
424
|
fixed?: boolean | "right" | "left";
|
481
425
|
minWidth?: string | number;
|
482
426
|
index?: number;
|
483
427
|
columnKey?: string;
|
484
|
-
showOverflowTooltip?: boolean | {
|
485
|
-
content: string | Function;
|
486
|
-
disabled?: boolean;
|
487
|
-
watchCellResize?: boolean;
|
488
|
-
mode?: "auto" | "static";
|
489
|
-
popoverOption?: any;
|
490
|
-
resizerWay?: import("../../table/src/props").ResizerWay;
|
491
|
-
};
|
492
428
|
resizable?: boolean;
|
493
429
|
colspan?: (({ column, colIndex, row, rowIndex, }: {
|
494
430
|
column: any;
|
@@ -523,11 +459,33 @@ declare const BkTableColumn: {
|
|
523
459
|
};
|
524
460
|
};
|
525
461
|
render?: import("../../table/src/props").RenderFunctionString;
|
462
|
+
sort?: string | boolean | {
|
463
|
+
sortFn?: Function;
|
464
|
+
sortScope?: import("../../table/src/props").SortScope;
|
465
|
+
value?: import("../../table/src/const").SORT_OPTION;
|
466
|
+
};
|
467
|
+
filter?: string | boolean | {
|
468
|
+
list: any[];
|
469
|
+
filterFn?: Function;
|
470
|
+
match?: import("../../table/src/props").FullEnum;
|
471
|
+
checked?: any[];
|
472
|
+
filterScope?: import("../../table/src/props").SortScope;
|
473
|
+
btnSave?: string | boolean;
|
474
|
+
btnReset?: string | boolean;
|
475
|
+
};
|
526
476
|
type?: "none" | "selection" | "index" | "expand";
|
527
477
|
label?: import("../../table/src/props").LabelFunctionString;
|
528
478
|
width?: string | number;
|
529
479
|
className?: import("../../table/src/props").RowClassFunctionString;
|
530
480
|
align?: "" | "right" | "left" | "center";
|
481
|
+
showOverflowTooltip?: boolean | {
|
482
|
+
content: string | Function;
|
483
|
+
disabled?: boolean;
|
484
|
+
watchCellResize?: boolean;
|
485
|
+
mode?: "auto" | "static";
|
486
|
+
popoverOption?: any;
|
487
|
+
resizerWay?: import("../../table/src/props").ResizerWay;
|
488
|
+
};
|
531
489
|
prop?: import("../../table/src/props").LabelFunctionString;
|
532
490
|
};
|
533
491
|
}, unknown, {}, {
|
@@ -535,13 +493,10 @@ declare const BkTableColumn: {
|
|
535
493
|
updateColumnDefineByParent(): void;
|
536
494
|
updateColumnDefineByIndex(unmounted?: boolean): void;
|
537
495
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
538
|
-
sort: import("../../table/src/props").ISortPropShape;
|
539
|
-
filter: import("../../table/src/props").IFilterPropShape;
|
540
496
|
fixed: boolean | "right" | "left";
|
541
497
|
minWidth: string | number;
|
542
498
|
index: number;
|
543
499
|
columnKey: string;
|
544
|
-
showOverflowTooltip: import("../../table/src/props").IOverflowTooltipProp;
|
545
500
|
resizable: boolean;
|
546
501
|
colspan: import("../../table/src/props").SpanFunctionString;
|
547
502
|
rowspan: import("../../table/src/props").SpanFunctionString;
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o,t)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=t}},n={};function p(e){var o=n[e];if(void 0!==o)return o.exports;var t=n[e]={exports:{}};return r[e](t,t.exports,p),t.exports}p.d=(e,o)=>{for(var t in o)p.o(o,t)&&!p.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},p.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{p.r(i),p.d(i,{default:()=>B});var e,o,t,r=p(4212),n=p(748);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,o,t){return(o=function(e){var o=function(e,o){if("object"!==u(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===u(o)?o:String(o)}(o))in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(t||(t={}));var s,l,y=[t.AUTO,t.HIGHLIGHT];o.NONE,o.ROW,o.COL,o.OUTER,o.HORIZONTAL,function(e){e.DEF1="def1",e.DEF2="def2"}(s||(s={})),f(e={},s.DEF1,"#FAFBFD"),f(e,s.DEF2,"#F0F1F5"),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(l||(l={})),l.ASC,l.DESC,l.NULL,l.CUSTOM;var T,a,d,c,b=p(210);!function(e){e.CURRENT="current",e.ALL="all"}(T||(T={})),function(e){e.STATIC="static",e.AUTO="auto"}(a||(a={})),(0,b.toType)("showOverflowTooltipMode",{default:a.AUTO}),function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(d||(d={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(c||(c={}));var P,m,O,v=(0,b.toType)("columnType",{default:d.NONE}),h=(0,b.toType)("columnType",{default:c.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(P||(P={})),(0,b.toType)("full",{default:P.FULL}),function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(m||(m={})),(0,b.toType)("columnSize",{default:m.SMALL}),function(e){e.LEFT="left",e.RIGHT="right"}(O||(O={}));var g,S,C=(0,b.string)(),E=(0,b.toType)("IOverflowTooltipPropType",{default:!1,type:[Boolean,Object]}),j=(0,b.toType)("ISortPropShape",{default:!1,type:[Boolean,String,Object]}),L=(0,b.toType)("IFilterPropShape",{default:!1,type:[Boolean,Object]});!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(g||(g={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(S||(S={}));var I=(0,b.toType)("IColumnType",{default:{width:"100%",label:""},type:[Object]}),N=((0,b.toType)("ITableSettingPropType",{default:!1,type:[Boolean,Object]}),(0,b.toType)("LabelFunctionStringType",{})),D=(0,b.toType)("RenderFunctionStringType",{}),F=(0,b.toType)("SpanFunctionStringType",{}),x=(0,b.toType)("RowClassFunctionStringType",{}),A=(0,b.toType)("RowHeightFunctionNumberType",{}),w=((0,b.toType)("FunctionNumberType",{}),function(e){return(0,b.toType)("StringNumberType",{}).def(e)}),U=((0,b.toType)("IColumnPropType",{default:{label:void 0,minWidth:80},type:[Object]}),r.PropTypes.arrayOf(r.PropTypes.any).def([]),r.PropTypes.arrayOf(I).def([]),r.PropTypes.oneOfType([r.PropTypes.number.def(-1),r.PropTypes.arrayOf(r.PropTypes.number.def(-1))]),(0,b.toType)("columnPick",{}).def(g.DISABLED),w("auto"),r.PropTypes.bool.def(!1),w(84),w("auto"),A.def(42),r.PropTypes.number.def(42),r.PropTypes.bool.def(!0),(0,b.toType)("ITheadType",{}).def({color:s.DEF1,height:42,isShow:!0}),r.PropTypes.bool.def(!1),r.PropTypes.oneOfType([r.PropTypes.arrayOf((0,b.toType)("boderType",{})),r.PropTypes.string]).def([o.ROW]),r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.object.def({})]).def(!1),r.PropTypes.number.def(60),r.PropTypes.bool.def(!1),r.PropTypes.string,r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.bool]).def(void 0),r.PropTypes.bool.def(!1),r.PropTypes.string.def(""),r.PropTypes.func.def(void 0),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func]).def("__$table_row_index"),r.PropTypes.bool.def(!1),r.PropTypes.oneOf(y).def(t.HIGHLIGHT),r.PropTypes.shape({}).def({}),r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return!0})),r.PropTypes.bool.def(!0)]).def(!0),(0,b.toType)("ResizerWay",{default:S.DEBOUNCE}),r.PropTypes.bool.def(!0),r.PropTypes.style().def({}),{label:N,field:N,render:D,width:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),minWidth:w(80),columnKey:r.PropTypes.string.def(""),showOverflowTooltip:E,type:v,resizable:r.PropTypes.bool.def(!0),fixed:r.PropTypes.oneOfType([r.PropTypes.bool,C]).def(!1),sort:j,filter:L,colspan:F.def(1),rowspan:F.def(1),align:h,className:x,prop:N,index:r.PropTypes.number.def(void 0)});const R=(0,n.defineComponent)({name:"TableColumn",props:U,setup:function(e){return{initColumns:(0,n.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,n.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,n.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}))}},unmounted:function(){this.updateColumnDefine(!0)},mounted:function(){this.updateColumnDefine()},methods:{updateColumnDefine:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];void 0===this.$props.index||"number"!=typeof this.$props.index?this.updateColumnDefineByParent():this.updateColumnDefineByIndex(e)},updateColumnDefineByParent:function(){var e=this;"function"==typeof this.bkTableCache.queueStack&&this.bkTableCache.queueStack("Bk_COlumn_Update_Define",(function(){var o=e._.parent.vnode.children.default()||[],t=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var r,p,i;if(Array.isArray(o))e(o);else{var u=!0;if("TableColumn"===(null===(r=o.type)||void 0===r?void 0:r.name)){u=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(p=o.children)||void 0===p?void 0:p.default});t.push((0,n.unref)(f))}(null===(i=o.children)||void 0===i?void 0:i.length)&&u&&e(o.children)}}))}(o),e.initColumns(t)}))},updateColumnDefineByIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=Object.assign(Object.assign({},this.$props),{field:this.$props.prop||this.$props.field,render:this.$slots.default});this.initColumns((0,n.unref)(o),e)}},render:function(){var e,o;return(0,n.createVNode)(n.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),B=(0,r.withInstall)(R)})(),i})()));
|