bkui-vue 0.0.1-beta.435 → 0.0.1-beta.437
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 +34 -34
- package/dist/index.esm.js +91 -47
- package/dist/index.umd.js +31 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.css +2 -2
- package/lib/cascader/cascader.less +2 -2
- package/lib/cascader/cascader.variable.css +2 -2
- package/lib/tab/index.d.ts +11 -4
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +37 -33
- package/lib/tab/tab-nav.d.ts +1 -1
- package/lib/tab/tab-panel.d.ts +7 -0
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/components/table-column.d.ts +6 -0
- package/lib/table/index.d.ts +32 -11
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/props.d.ts +15 -1
- package/lib/table/render.d.ts +18 -9
- package/lib/table/table.css +37 -4
- package/lib/table/table.d.ts +7 -3
- package/lib/table/table.less +41 -5
- package/lib/table/table.variable.css +37 -4
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +14 -0
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
package/lib/table/table.css
CHANGED
@@ -1017,6 +1017,17 @@
|
|
1017
1017
|
.bk-table .bk-table-body {
|
1018
1018
|
background: white;
|
1019
1019
|
}
|
1020
|
+
.bk-table .bk-table-head::-webkit-scrollbar,
|
1021
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
1022
|
+
width: 4px;
|
1023
|
+
height: 4px;
|
1024
|
+
}
|
1025
|
+
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1026
|
+
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1027
|
+
background: #ddd;
|
1028
|
+
border-radius: 20px;
|
1029
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1030
|
+
}
|
1020
1031
|
.bk-table .bk-table-head.__is-empty,
|
1021
1032
|
.bk-table .bk-table-body.__is-empty {
|
1022
1033
|
display: flex;
|
@@ -1056,11 +1067,10 @@
|
|
1056
1067
|
.bk-table .bk-table-body table th .cell,
|
1057
1068
|
.bk-table .bk-table-head table td .cell,
|
1058
1069
|
.bk-table .bk-table-body table td .cell {
|
1059
|
-
padding: 0
|
1070
|
+
padding: 0 16px;
|
1060
1071
|
overflow: hidden;
|
1061
1072
|
font-size: 12px;
|
1062
1073
|
color: #63656E;
|
1063
|
-
text-align: left;
|
1064
1074
|
text-overflow: ellipsis;
|
1065
1075
|
white-space: nowrap;
|
1066
1076
|
}
|
@@ -1099,7 +1109,7 @@
|
|
1099
1109
|
.bk-table .bk-table-head table td .expand-btn-action,
|
1100
1110
|
.bk-table .bk-table-body table td .expand-btn-action {
|
1101
1111
|
display: flex;
|
1102
|
-
padding: 0
|
1112
|
+
padding: 0 16px;
|
1103
1113
|
color: #c4c6cc;
|
1104
1114
|
cursor: pointer;
|
1105
1115
|
}
|
@@ -1129,6 +1139,30 @@
|
|
1129
1139
|
.bk-table .bk-table-body table td.row_expend .expand-cell-ctx {
|
1130
1140
|
min-height: 30px;
|
1131
1141
|
}
|
1142
|
+
.bk-table .bk-table-head table .left,
|
1143
|
+
.bk-table .bk-table-body table .left {
|
1144
|
+
text-align: left;
|
1145
|
+
}
|
1146
|
+
.bk-table .bk-table-head table .left .cell,
|
1147
|
+
.bk-table .bk-table-body table .left .cell {
|
1148
|
+
justify-content: start;
|
1149
|
+
}
|
1150
|
+
.bk-table .bk-table-head table .center,
|
1151
|
+
.bk-table .bk-table-body table .center {
|
1152
|
+
text-align: center;
|
1153
|
+
}
|
1154
|
+
.bk-table .bk-table-head table .center .cell,
|
1155
|
+
.bk-table .bk-table-body table .center .cell {
|
1156
|
+
justify-content: center;
|
1157
|
+
}
|
1158
|
+
.bk-table .bk-table-head table .right,
|
1159
|
+
.bk-table .bk-table-body table .right {
|
1160
|
+
text-align: right;
|
1161
|
+
}
|
1162
|
+
.bk-table .bk-table-head table .right .cell,
|
1163
|
+
.bk-table .bk-table-body table .right .cell {
|
1164
|
+
justify-content: end;
|
1165
|
+
}
|
1132
1166
|
.bk-table .bk-table-head table thead th,
|
1133
1167
|
.bk-table .bk-table-body table thead th {
|
1134
1168
|
font-weight: 400;
|
@@ -1182,7 +1216,6 @@
|
|
1182
1216
|
right: 1px;
|
1183
1217
|
bottom: 0;
|
1184
1218
|
z-index: 2;
|
1185
|
-
display: block;
|
1186
1219
|
display: flex;
|
1187
1220
|
width: calc(var(--row-height));
|
1188
1221
|
font-size: 14px;
|
package/lib/table/table.d.ts
CHANGED
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
47
|
[key: string]: any;
|
48
48
|
});
|
49
49
|
};
|
50
|
-
|
50
|
+
paginationHeight: import("vue-types").VueTypeValidableDef<number> & {
|
51
51
|
default: number;
|
52
52
|
} & {
|
53
53
|
default: number;
|
@@ -137,6 +137,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
137
137
|
} & {
|
138
138
|
default: boolean;
|
139
139
|
};
|
140
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
141
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
140
142
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
141
143
|
columnPick: (..._args: any[]) => boolean;
|
142
144
|
columnFilter: (..._args: any[]) => boolean;
|
@@ -203,7 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
203
205
|
[key: string]: any;
|
204
206
|
});
|
205
207
|
};
|
206
|
-
|
208
|
+
paginationHeight: import("vue-types").VueTypeValidableDef<number> & {
|
207
209
|
default: number;
|
208
210
|
} & {
|
209
211
|
default: number;
|
@@ -293,6 +295,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
293
295
|
} & {
|
294
296
|
default: boolean;
|
295
297
|
};
|
298
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
299
|
+
headerAlign: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
296
300
|
}>> & {
|
297
301
|
onSelect?: (...args: any[]) => any;
|
298
302
|
onColumnPick?: (...args: any[]) => any;
|
@@ -331,7 +335,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
331
335
|
rowHeight: any;
|
332
336
|
showHead: boolean;
|
333
337
|
virtualEnabled: boolean;
|
334
|
-
|
338
|
+
paginationHeight: number;
|
335
339
|
remotePagination: boolean;
|
336
340
|
emptyText: string;
|
337
341
|
settings: boolean | {
|
package/lib/table/table.less
CHANGED
@@ -56,6 +56,17 @@
|
|
56
56
|
.@{bk-prefix}-table-body {
|
57
57
|
background: @table-bg-color;
|
58
58
|
|
59
|
+
&::-webkit-scrollbar {
|
60
|
+
width: 4px;
|
61
|
+
height: 4px;
|
62
|
+
}
|
63
|
+
|
64
|
+
&::-webkit-scrollbar-thumb {
|
65
|
+
background: #ddd;
|
66
|
+
border-radius: 20px;
|
67
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
68
|
+
}
|
69
|
+
|
59
70
|
&.__is-empty {
|
60
71
|
display: flex;
|
61
72
|
height: 100%;
|
@@ -90,11 +101,10 @@
|
|
90
101
|
}
|
91
102
|
|
92
103
|
.cell {
|
93
|
-
padding: 0
|
104
|
+
padding: 0 16px;
|
94
105
|
overflow: hidden;
|
95
106
|
font-size: 12px;
|
96
107
|
color: @table-body-font-color;
|
97
|
-
text-align: left;
|
98
108
|
text-overflow: ellipsis;
|
99
109
|
white-space: nowrap;
|
100
110
|
|
@@ -121,9 +131,10 @@
|
|
121
131
|
}
|
122
132
|
}
|
123
133
|
|
134
|
+
|
124
135
|
.expand-btn-action {
|
125
136
|
display: flex;
|
126
|
-
padding: 0
|
137
|
+
padding: 0 16px;
|
127
138
|
color: #c4c6cc;
|
128
139
|
cursor: pointer;
|
129
140
|
}
|
@@ -149,6 +160,30 @@
|
|
149
160
|
}
|
150
161
|
}
|
151
162
|
|
163
|
+
.left {
|
164
|
+
text-align: left;
|
165
|
+
|
166
|
+
.cell {
|
167
|
+
justify-content: start;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
.center {
|
172
|
+
text-align: center;
|
173
|
+
|
174
|
+
.cell {
|
175
|
+
justify-content: center;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
.right {
|
180
|
+
text-align: right;
|
181
|
+
|
182
|
+
.cell {
|
183
|
+
justify-content: end;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
152
187
|
thead {
|
153
188
|
th {
|
154
189
|
font-weight: 400;
|
@@ -217,7 +252,6 @@
|
|
217
252
|
right: 1px;
|
218
253
|
bottom: 0;
|
219
254
|
z-index: 2;
|
220
|
-
display: block;
|
221
255
|
display: flex;
|
222
256
|
width: calc(var(--row-height));
|
223
257
|
font-size: 14px;
|
@@ -268,6 +302,7 @@
|
|
268
302
|
border-top: 1px solid @table-border-color;
|
269
303
|
border-right: 1px solid @table-border-color;
|
270
304
|
border-left: 1px solid @table-border-color;
|
305
|
+
|
271
306
|
.@{bk-prefix}-table-footer {
|
272
307
|
border-bottom: 1px solid @table-border-color;
|
273
308
|
}
|
@@ -276,12 +311,13 @@
|
|
276
311
|
|
277
312
|
&.bordered-horizontal {
|
278
313
|
border-top: 1px solid @table-border-color;
|
314
|
+
|
279
315
|
.@{bk-prefix}-table-footer {
|
280
316
|
border-bottom: 1px solid @table-border-color;
|
281
317
|
}
|
282
318
|
}
|
283
319
|
|
284
|
-
&.bordered-outer
|
320
|
+
&.bordered-outer,
|
285
321
|
&.bordered-horizontal {
|
286
322
|
.__is-empty {
|
287
323
|
.@{bk-prefix}-table-body-content {
|
@@ -1139,6 +1139,17 @@
|
|
1139
1139
|
.bk-table .bk-table-body {
|
1140
1140
|
background: white;
|
1141
1141
|
}
|
1142
|
+
.bk-table .bk-table-head::-webkit-scrollbar,
|
1143
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
1144
|
+
width: 4px;
|
1145
|
+
height: 4px;
|
1146
|
+
}
|
1147
|
+
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1148
|
+
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1149
|
+
background: #ddd;
|
1150
|
+
border-radius: 20px;
|
1151
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1152
|
+
}
|
1142
1153
|
.bk-table .bk-table-head.__is-empty,
|
1143
1154
|
.bk-table .bk-table-body.__is-empty {
|
1144
1155
|
display: flex;
|
@@ -1178,11 +1189,10 @@
|
|
1178
1189
|
.bk-table .bk-table-body table th .cell,
|
1179
1190
|
.bk-table .bk-table-head table td .cell,
|
1180
1191
|
.bk-table .bk-table-body table td .cell {
|
1181
|
-
padding: 0
|
1192
|
+
padding: 0 16px;
|
1182
1193
|
overflow: hidden;
|
1183
1194
|
font-size: 12px;
|
1184
1195
|
color: #63656E;
|
1185
|
-
text-align: left;
|
1186
1196
|
text-overflow: ellipsis;
|
1187
1197
|
white-space: nowrap;
|
1188
1198
|
}
|
@@ -1221,7 +1231,7 @@
|
|
1221
1231
|
.bk-table .bk-table-head table td .expand-btn-action,
|
1222
1232
|
.bk-table .bk-table-body table td .expand-btn-action {
|
1223
1233
|
display: flex;
|
1224
|
-
padding: 0
|
1234
|
+
padding: 0 16px;
|
1225
1235
|
color: #c4c6cc;
|
1226
1236
|
cursor: pointer;
|
1227
1237
|
}
|
@@ -1251,6 +1261,30 @@
|
|
1251
1261
|
.bk-table .bk-table-body table td.row_expend .expand-cell-ctx {
|
1252
1262
|
min-height: 30px;
|
1253
1263
|
}
|
1264
|
+
.bk-table .bk-table-head table .left,
|
1265
|
+
.bk-table .bk-table-body table .left {
|
1266
|
+
text-align: left;
|
1267
|
+
}
|
1268
|
+
.bk-table .bk-table-head table .left .cell,
|
1269
|
+
.bk-table .bk-table-body table .left .cell {
|
1270
|
+
justify-content: start;
|
1271
|
+
}
|
1272
|
+
.bk-table .bk-table-head table .center,
|
1273
|
+
.bk-table .bk-table-body table .center {
|
1274
|
+
text-align: center;
|
1275
|
+
}
|
1276
|
+
.bk-table .bk-table-head table .center .cell,
|
1277
|
+
.bk-table .bk-table-body table .center .cell {
|
1278
|
+
justify-content: center;
|
1279
|
+
}
|
1280
|
+
.bk-table .bk-table-head table .right,
|
1281
|
+
.bk-table .bk-table-body table .right {
|
1282
|
+
text-align: right;
|
1283
|
+
}
|
1284
|
+
.bk-table .bk-table-head table .right .cell,
|
1285
|
+
.bk-table .bk-table-body table .right .cell {
|
1286
|
+
justify-content: end;
|
1287
|
+
}
|
1254
1288
|
.bk-table .bk-table-head table thead th,
|
1255
1289
|
.bk-table .bk-table-body table thead th {
|
1256
1290
|
font-weight: 400;
|
@@ -1304,7 +1338,6 @@
|
|
1304
1338
|
right: 1px;
|
1305
1339
|
bottom: 0;
|
1306
1340
|
z-index: 2;
|
1307
|
-
display: block;
|
1308
1341
|
display: flex;
|
1309
1342
|
width: calc(var(--row-height));
|
1310
1343
|
font-size: 14px;
|
@@ -15,10 +15,10 @@ export declare const useClass: (props: TablePropTypes, targetColumns: Column[],
|
|
15
15
|
};
|
16
16
|
footerClass: import("vue").ComputedRef<string>;
|
17
17
|
wrapperStyle: import("vue").ComputedRef<{
|
18
|
-
height: string;
|
19
18
|
minHeight: string | number;
|
20
19
|
width: string;
|
21
20
|
maxWidth: string;
|
21
|
+
height: string;
|
22
22
|
}>;
|
23
23
|
contentStyle: {
|
24
24
|
display: string;
|
@@ -83,6 +83,8 @@ declare const BkTableColumn: {
|
|
83
83
|
};
|
84
84
|
colspan: import("vue-types").VueTypeDef<any>;
|
85
85
|
rowspan: import("vue-types").VueTypeDef<any>;
|
86
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
87
|
+
className: import("vue-types").VueTypeDef<any>;
|
86
88
|
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "sort" | "filter" | "minWidth" | "index" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
87
89
|
$attrs: {
|
88
90
|
[x: string]: unknown;
|
@@ -158,6 +160,8 @@ declare const BkTableColumn: {
|
|
158
160
|
};
|
159
161
|
colspan: import("vue-types").VueTypeDef<any>;
|
160
162
|
rowspan: import("vue-types").VueTypeDef<any>;
|
163
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
164
|
+
className: import("vue-types").VueTypeDef<any>;
|
161
165
|
}>>, {
|
162
166
|
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
163
167
|
bkTableCache: {
|
@@ -204,6 +208,8 @@ declare const BkTableColumn: {
|
|
204
208
|
valueOf: () => number;
|
205
209
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
206
210
|
};
|
211
|
+
className: string | Function;
|
212
|
+
align: string;
|
207
213
|
prop?: string | Function;
|
208
214
|
index?: number;
|
209
215
|
};
|
@@ -312,6 +318,8 @@ declare const BkTableColumn: {
|
|
312
318
|
};
|
313
319
|
colspan: import("vue-types").VueTypeDef<any>;
|
314
320
|
rowspan: import("vue-types").VueTypeDef<any>;
|
321
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
322
|
+
className: import("vue-types").VueTypeDef<any>;
|
315
323
|
}>> & import("vue").ShallowUnwrapRef<{
|
316
324
|
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
317
325
|
bkTableCache: {
|
@@ -358,6 +366,8 @@ declare const BkTableColumn: {
|
|
358
366
|
valueOf: () => number;
|
359
367
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
360
368
|
};
|
369
|
+
className: string | Function;
|
370
|
+
align: string;
|
361
371
|
prop?: string | Function;
|
362
372
|
index?: number;
|
363
373
|
};
|
@@ -430,6 +440,8 @@ declare const BkTableColumn: {
|
|
430
440
|
};
|
431
441
|
colspan: import("vue-types").VueTypeDef<any>;
|
432
442
|
rowspan: import("vue-types").VueTypeDef<any>;
|
443
|
+
align: import("vue-types").VueTypeDef<"" | "left" | "center" | "right">;
|
444
|
+
className: import("vue-types").VueTypeDef<any>;
|
433
445
|
}>>, {
|
434
446
|
initColumns: (_col: import("../../table/src/components/table-column").ITableColumn | import("../../table/src/components/table-column").ITableColumn[], _rm?: boolean) => void;
|
435
447
|
bkTableCache: {
|
@@ -476,6 +488,8 @@ declare const BkTableColumn: {
|
|
476
488
|
valueOf: () => number;
|
477
489
|
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
478
490
|
};
|
491
|
+
className: string | Function;
|
492
|
+
align: string;
|
479
493
|
prop?: string | Function;
|
480
494
|
index?: number;
|
481
495
|
};
|
@@ -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 p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return(()=>{s.r(t),s.d(t,{default:()=>
|
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 p="object"==typeof exports?o(require("../shared"),require("vue"),require("vue-types")):o(e["../shared"],e.vue,e["vue-types"]);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o,p)=>(()=>{"use strict";var r={4212:o=>{o.exports=e},748:e=>{e.exports=o},210:e=>{e.exports=p}},n={};function s(e){var o=n[e];if(void 0!==o)return o.exports;var p=n[e]={exports:{}};return r[e](p,p.exports,s),p.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return(()=>{s.r(t),s.d(t,{default:()=>D});var e,o,p,r,n=s(4212),T=s(748);function f(e,o,p){return o in e?Object.defineProperty(e,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):e[o]=p,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer",e.HORIZONTAL="horizontal"}(p||(p={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(r||(r={}));var i,y,l=[r.AUTO,r.HIGHLIGHT];p.NONE,p.ROW,p.COL,p.OUTER,p.HORIZONTAL,function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(i||(i={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.ROW_MOUSE_ENTER="rowMouseEnter",e.ROW_MOUSE_LEAVE="rowMouseLeave",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange",e.CELL_CLICK="cellClick",e.CELL_DBL_CLICK="cellDblclick",e.NATIVE_CLICK="click",e.NATIVE_DBL_CLICK="dblclick"}(y||(y={}));var u,d=function(){return!0};f(e={},y.COLUMN_PICK,d),f(e,y.COLUMN_FILTER,d),f(e,y.COLUMN_SORT,d),f(e,y.COLUMN_FILTER_SAVE,d),f(e,y.ROW_CLICK,d),f(e,y.ROW_DBL_CLICK,d),f(e,y.ROW_EXPAND_CLICK,d),f(e,y.ROW_SELECT,d),f(e,y.ROW_SELECT_ALL,d),f(e,y.ROW_SELECT_CHANGE,d),f(e,y.PAGE_LIMIT_CHANGE,d),f(e,y.PAGE_VALUE_CHANGE,d),f(e,y.SETTING_CHANGE,d),f(e,y.SCROLL_BOTTOM,d),f(e,y.CELL_CLICK,d),f(e,y.CELL_DBL_CLICK,d),f(o={},y.NATIVE_CLICK,d),f(o,y.NATIVE_DBL_CLICK,d),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(u||(u={})),u.ASC,u.DESC,u.NULL,u.CUSTOM;var a,P,c=s(210);!function(e){e.CURRENT="current",e.ALL="all"}(a||(a={})),function(e){e.STATIC="static",e.AUTO="auto"}(P||(P={}));var O,C,L=(0,c.toType)("showOverflowTooltipMode",{default:P.AUTO});!function(e){e.SELECTION="selection",e.INDEX="index",e.EXPAND="expand",e.NONE="none"}(O||(O={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.NONE=""}(C||(C={}));var b,E=(0,c.toType)("columnType",{default:O.NONE}),_=(0,c.toType)("columnType",{default:C.NONE});!function(e){e.FULL="full",e.FUZZY="fuzzy"}(b||(b={}));var h,m=(0,c.toType)("full",{default:b.FULL});!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(h||(h={}));var g,v=(0,c.toType)("columnSize",{default:h.SMALL});!function(e){e.LEFT="left",e.RIGHT="right"}(g||(g={}));var N,I,R=(0,c.string)(),S=(0,c.toType)("sortScope",{}).def(a.CURRENT);!function(e){e.MULTI="multi",e.SINGLE="single",e.DISABLED="disabled"}(N||(N={})),function(e){e.DEBOUNCE="debounce",e.THROTTLE="throttle"}(I||(I={}));var A={label:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),field:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),render:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),width:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]),minWidth:n.PropTypes.oneOfType([n.PropTypes.number.def(void 0),n.PropTypes.string.def("auto")]).def(30),columnKey:n.PropTypes.string.def(""),showOverflowTooltip:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(void 0),type:E,resizable:n.PropTypes.bool.def(!0),fixed:n.PropTypes.oneOfType([n.PropTypes.bool,R]).def(!1),sort:n.PropTypes.oneOfType([n.PropTypes.shape({sortFn:n.PropTypes.func.def(void 0),sortScope:S,value:n.PropTypes.string.def(u.NULL)}),n.PropTypes.bool,n.PropTypes.string]).def(!1),filter:n.PropTypes.oneOfType([n.PropTypes.shape({list:n.PropTypes.arrayOf(n.PropTypes.any).def([]),filterFn:n.PropTypes.func.def(void 0),match:m,filterScope:S,btnSave:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("确定"),btnReset:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]).def("重置")}),n.PropTypes.bool,n.PropTypes.string]).def(!1),colspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),rowspan:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return 1})),n.PropTypes.number.def(1)]),align:_,className:n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func])};n.PropTypes.arrayOf(n.PropTypes.any).def([]),n.PropTypes.arrayOf(n.PropTypes.shape(A).loose).def([]),n.PropTypes.oneOfType([n.PropTypes.number.def(-1),n.PropTypes.arrayOf(n.PropTypes.number.def(-1))]),(0,c.toType)("columnPick",{}).def(N.DISABLED),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def(84),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.string]).def("auto"),n.PropTypes.oneOfType([n.PropTypes.number,n.PropTypes.func]).def(42),n.PropTypes.number.def(42),n.PropTypes.bool.def(!0),n.PropTypes.shape({height:n.PropTypes.number.def(42),isShow:n.PropTypes.bool.def(!0),cellFn:n.PropTypes.func.def(void 0)}),n.PropTypes.bool.def(!1),n.PropTypes.oneOfType([n.PropTypes.arrayOf((0,c.toType)("boderType",{})),n.PropTypes.string]).def([p.ROW]),n.PropTypes.oneOfType([n.PropTypes.bool.def(!1),n.PropTypes.object.def({})]).def(!1),n.PropTypes.number.def(60),n.PropTypes.bool.def(!1),n.PropTypes.string,n.PropTypes.oneOfType([n.PropTypes.shape({fields:n.PropTypes.arrayOf(n.PropTypes.shape({label:n.PropTypes.string,field:n.PropTypes.string,disabled:n.PropTypes.bool})),checked:n.PropTypes.arrayOf(n.PropTypes.string),limit:n.PropTypes.number.def(0),size:v,sizeList:n.PropTypes.shape([]),showLineHeight:n.PropTypes.bool.def(!0)}),n.PropTypes.bool]).def(!1),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.object,n.PropTypes.func]).def({}),n.PropTypes.oneOfType([n.PropTypes.object,n.PropTypes.bool]).def(void 0),n.PropTypes.bool.def(!1),n.PropTypes.string.def(""),n.PropTypes.func.def(void 0),n.PropTypes.oneOfType([n.PropTypes.string,n.PropTypes.func]).def("__$table_row_index"),n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.shape({content:n.PropTypes.string.def(""),disabled:n.PropTypes.bool.def(!1),watchCellResize:n.PropTypes.bool.def(!0),mode:L})]).def(!1),n.PropTypes.bool.def(!1),n.PropTypes.oneOf(l).def(r.HIGHLIGHT),n.PropTypes.shape({}).def({}),n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return!0})),n.PropTypes.bool.def(!0)]).def(!0),(0,c.toType)("ResizerWay",{default:I.DEBOUNCE}),n.PropTypes.bool.def(!0);const U=(0,T.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},A),{prop:n.PropTypes.oneOfType([n.PropTypes.func.def((function(){return""})),n.PropTypes.string.def("")]),index:n.PropTypes.number.def(void 0)}),setup:function(e){return{initColumns:(0,T.inject)("InitColumns",(function(e){}),!1),bkTableCache:(0,T.inject)("BKTableCahce",{queueStack:function(e,o){return null==o?void 0:o()}}),column:(0,T.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()||[],p=[];!function e(o){Array.isArray(o)&&o.forEach((function(o){var r,n,s,t=!0;if("TableColumn"===(null===(r=o.type)||void 0===r?void 0:r.name)){t=Object.hasOwnProperty.call(o.props||{},"key");var f=Object.assign(Object.assign({},o.props),{field:o.props.prop||o.props.field,render:null===(n=o.children)||void 0===n?void 0:n.default});p.push((0,T.unref)(f))}(null===(s=o.children)||void 0===s?void 0:s.length)&&t&&e(o.children)}))}(o),e.initColumns(p)}))},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,T.unref)(o),e)}},render:function(){var e,o;return(0,T.createVNode)(T.Fragment,null,[null===(o=(e=this.$slots).default)||void 0===o?void 0:o.call(e,{row:{}})])}}),D=(0,n.withInstall)(U)})(),t})()));
|