bkui-vue 1.0.3-beta.67.dialog.4 → 1.0.3-beta.68
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 +70 -70
- package/dist/index.esm.js +17481 -18320
- package/dist/index.umd.js +70 -70
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/components.d.ts +0 -1
- package/lib/components.js +0 -1
- package/lib/dialog/dialog.css +84 -135
- package/lib/dialog/dialog.d.ts +133 -32
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +84 -135
- package/lib/dialog/index.d.ts +314 -84
- package/lib/dialog/index.js +221 -206
- package/lib/dialog/props.d.ts +48 -8
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -328
- package/lib/info-box/info-box.css +7 -63
- package/lib/info-box/info-box.d.ts +16 -18
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +7 -63
- package/lib/input/index.js +1 -2
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +350 -16
- package/lib/modal/index.js +703 -214
- package/lib/modal/modal.css +32 -131
- package/lib/modal/modal.d.ts +134 -6
- package/lib/modal/modal.less +29 -84
- package/lib/modal/modal.variable.css +32 -131
- package/lib/modal/props.mixin.d.ts +53 -2
- package/lib/overflow-title/index.js +52 -46
- package/lib/pop-confirm/index.js +8 -5
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +48 -1
- package/lib/shared/mask.d.ts +11 -0
- package/lib/sideslider/index.d.ts +222 -31
- package/lib/sideslider/index.js +40 -64
- package/lib/sideslider/sideslider.css +86 -17
- package/lib/sideslider/sideslider.d.ts +105 -14
- package/lib/sideslider/sideslider.less +107 -27
- package/lib/sideslider/sideslider.variable.css +86 -17
- package/lib/slider/index.d.ts +0 -19
- package/lib/slider/index.js +5 -45
- package/lib/slider/slider.css +0 -14
- package/lib/slider/slider.d.ts +0 -9
- package/lib/slider/slider.less +0 -15
- package/lib/slider/slider.variable.css +0 -14
- package/lib/table/components/table-cell.d.ts +2 -3
- package/lib/table/components/table-column.d.ts +2 -2
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.d.ts +2 -25
- package/lib/table/index.js +85 -237
- package/lib/table/plugins/head-filter.css +4 -8
- package/lib/table/plugins/head-filter.less +3 -6
- package/lib/table/plugins/head-filter.variable.css +4 -8
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-pagination.d.ts +1 -3
- package/lib/table/props.d.ts +3 -11
- package/lib/table/table.css +46 -106
- package/lib/table/table.d.ts +0 -11
- package/lib/table/table.less +58 -43
- package/lib/table/table.variable.css +46 -106
- package/lib/table/use-attributes.d.ts +1 -2
- package/lib/table/use-column.d.ts +6 -6
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.d.ts +6 -6
- package/lib/table-column/index.js +2 -6
- package/lib/tree/index.d.ts +0 -23
- package/lib/tree/index.js +3 -9
- package/lib/tree/props.d.ts +0 -8
- package/lib/tree/tree.css +2 -76
- package/lib/tree/tree.d.ts +0 -11
- package/lib/tree/tree.variable.css +2 -76
- package/lib/virtual-render/index.d.ts +0 -27
- package/lib/virtual-render/index.js +76 -285
- package/lib/virtual-render/props.d.ts +0 -16
- package/lib/virtual-render/use-fix-top.d.ts +7 -2
- package/lib/virtual-render/v-virtual-render.d.ts +1 -2
- package/lib/virtual-render/virtual-render.css +2 -76
- package/lib/virtual-render/virtual-render.d.ts +0 -13
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +2 -76
- package/package.json +1 -1
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/index.d.ts +0 -15
- package/lib/scrollbar/index.js +0 -18756
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -240
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/scrollbar/scrollbar.variable.css +0 -204
- package/lib/table/plugins/use-shift-key.d.ts +0 -11
- package/lib/virtual-render/use-scrollbar.d.ts +0 -24
@@ -144,85 +144,11 @@
|
|
144
144
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
145
145
|
border-radius: 4px;
|
146
146
|
}
|
147
|
-
.bk-scrollbar-wrapper {
|
148
|
-
position: relative;
|
149
|
-
overflow: hidden;
|
150
|
-
}
|
151
|
-
.bk-scrollbar-wrapper .bk-scrollbar-content-el {
|
152
|
-
display: inline-flex;
|
153
|
-
flex-direction: column;
|
154
|
-
width: 100%;
|
155
|
-
}
|
156
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
157
|
-
z-index: 1;
|
158
|
-
position: absolute;
|
159
|
-
right: 0;
|
160
|
-
bottom: 0;
|
161
|
-
pointer-events: none;
|
162
|
-
overflow: hidden;
|
163
|
-
}
|
164
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
165
|
-
background-color: #F0F1F5;
|
166
|
-
cursor: pointer;
|
167
|
-
}
|
168
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
169
|
-
background-color: #979BA5;
|
170
|
-
}
|
171
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
172
|
-
top: 0;
|
173
|
-
width: 8px;
|
174
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
175
|
-
}
|
176
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
177
|
-
left: 0;
|
178
|
-
height: 8px;
|
179
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
180
|
-
}
|
181
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
182
|
-
right: auto;
|
183
|
-
left: 0;
|
184
|
-
top: 0;
|
185
|
-
bottom: 0;
|
186
|
-
min-height: 0;
|
187
|
-
min-width: 8px;
|
188
|
-
width: auto;
|
189
|
-
}
|
190
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
191
|
-
pointer-events: none;
|
192
|
-
-webkit-touch-callout: none;
|
193
|
-
-webkit-user-select: none;
|
194
|
-
-khtml-user-select: none;
|
195
|
-
-moz-user-select: none;
|
196
|
-
-ms-user-select: none;
|
197
|
-
user-select: none;
|
198
|
-
}
|
199
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
200
|
-
position: absolute;
|
201
|
-
left: 0;
|
202
|
-
right: 0;
|
203
|
-
min-height: 8px;
|
204
|
-
}
|
205
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
206
|
-
position: absolute;
|
207
|
-
content: '';
|
208
|
-
background: #DCDEE5;
|
209
|
-
border-radius: 6px;
|
210
|
-
left: 1px;
|
211
|
-
right: 1px;
|
212
|
-
top: 1px;
|
213
|
-
bottom: 1px;
|
214
|
-
opacity: 0;
|
215
|
-
transition: opacity 0.2s 0.9s linear;
|
216
|
-
}
|
217
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
218
|
-
opacity: 0.9;
|
219
|
-
transition-delay: 0s;
|
220
|
-
transition-duration: 0s;
|
221
|
-
}
|
222
147
|
.bk-virtual-render {
|
223
148
|
position: relative;
|
224
149
|
}
|
225
|
-
.bk-virtual-render .bk-virtual-content
|
150
|
+
.bk-virtual-render .bk-virtual-content,
|
151
|
+
.bk-virtual-render.bk-virtual-content {
|
226
152
|
position: absolute;
|
227
153
|
top: 0;
|
228
154
|
bottom: 0;
|
@@ -994,6 +920,10 @@
|
|
994
920
|
max-width: 300px;
|
995
921
|
min-width: 200px;
|
996
922
|
}
|
923
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
924
|
+
max-height: 200px;
|
925
|
+
min-height: 40px;
|
926
|
+
}
|
997
927
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
998
928
|
width: 100%;
|
999
929
|
height: 32px;
|
@@ -1006,19 +936,11 @@
|
|
1006
936
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
1007
937
|
background: #f0f1f5;
|
1008
938
|
}
|
1009
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
1010
|
-
text-overflow: ellipsis;
|
1011
|
-
white-space: nowrap;
|
1012
|
-
overflow: hidden;
|
1013
|
-
width: 100%;
|
1014
|
-
}
|
1015
939
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
1016
940
|
background: #f0f1f5;
|
1017
941
|
}
|
1018
942
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
1019
943
|
white-space: nowrap;
|
1020
|
-
text-overflow: ellipsis;
|
1021
|
-
overflow: hidden;
|
1022
944
|
}
|
1023
945
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
1024
946
|
margin-left: 0;
|
@@ -1204,9 +1126,9 @@
|
|
1204
1126
|
}
|
1205
1127
|
.bk-table {
|
1206
1128
|
position: relative;
|
1207
|
-
width: 100%;
|
1208
1129
|
height: auto;
|
1209
1130
|
overflow: hidden;
|
1131
|
+
width: 100%;
|
1210
1132
|
}
|
1211
1133
|
.bk-table-flex {
|
1212
1134
|
display: flex;
|
@@ -1222,9 +1144,19 @@
|
|
1222
1144
|
}
|
1223
1145
|
.bk-table .bk-table-body {
|
1224
1146
|
position: relative;
|
1225
|
-
overflow:
|
1147
|
+
overflow: auto;
|
1148
|
+
scrollbar-gutter: stable;
|
1226
1149
|
border-bottom: 1px solid #dcdee5;
|
1227
1150
|
}
|
1151
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
1152
|
+
width: 5px;
|
1153
|
+
height: 6px;
|
1154
|
+
}
|
1155
|
+
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1156
|
+
background: #dcdee5;
|
1157
|
+
border-radius: 10px;
|
1158
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1159
|
+
}
|
1228
1160
|
.bk-table .bk-table-body .prepend-row {
|
1229
1161
|
transform: translateX(var(--prepend-left));
|
1230
1162
|
}
|
@@ -1251,6 +1183,17 @@
|
|
1251
1183
|
background: white;
|
1252
1184
|
transform: translateZ(0);
|
1253
1185
|
}
|
1186
|
+
.bk-table .bk-table-head::-webkit-scrollbar,
|
1187
|
+
.bk-table .bk-table-body::-webkit-scrollbar {
|
1188
|
+
width: 5px;
|
1189
|
+
height: 5px;
|
1190
|
+
}
|
1191
|
+
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1192
|
+
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1193
|
+
background: #ddd;
|
1194
|
+
border-radius: 20px;
|
1195
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1196
|
+
}
|
1254
1197
|
.bk-table .bk-table-head.__is-empty,
|
1255
1198
|
.bk-table .bk-table-body.__is-empty {
|
1256
1199
|
display: flex;
|
@@ -1303,8 +1246,8 @@
|
|
1303
1246
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1304
1247
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1305
1248
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1306
|
-
height: 100%;
|
1307
1249
|
font-size: 14px;
|
1250
|
+
height: 100%;
|
1308
1251
|
}
|
1309
1252
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1310
1253
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1429,7 +1372,7 @@
|
|
1429
1372
|
.bk-table .bk-table-body table thead th .cell {
|
1430
1373
|
display: flex;
|
1431
1374
|
align-items: center;
|
1432
|
-
height: calc(var(--row-height) -
|
1375
|
+
height: calc(var(--row-height) - 1px);
|
1433
1376
|
color: #313238;
|
1434
1377
|
}
|
1435
1378
|
.bk-table .bk-table-head table thead th.active,
|
@@ -1446,27 +1389,28 @@
|
|
1446
1389
|
.bk-table .bk-table-head table tbody tr td,
|
1447
1390
|
.bk-table .bk-table-body table tbody tr td {
|
1448
1391
|
background-color: #fff;
|
1449
|
-
border-top: 1px solid transparent;
|
1450
|
-
border-bottom: 1px solid transparent;
|
1451
|
-
border-right: 1px solid transparent;
|
1452
|
-
box-sizing: border-box;
|
1453
1392
|
}
|
1454
1393
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1455
1394
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1456
1395
|
padding-bottom: 30px;
|
1457
1396
|
}
|
1397
|
+
.bk-table .bk-table-head table tbody tr td.is-last,
|
1398
|
+
.bk-table .bk-table-body table tbody tr td.is-last {
|
1399
|
+
border-bottom: none;
|
1400
|
+
}
|
1458
1401
|
.bk-table .bk-table-head table tbody tr td .cell,
|
1459
1402
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1460
1403
|
display: block;
|
1461
1404
|
width: 100%;
|
1462
|
-
|
1405
|
+
height: 100%;
|
1406
|
+
line-height: calc(var(--row-height) - 1px);
|
1463
1407
|
box-sizing: border-box;
|
1464
1408
|
align-items: center;
|
1465
1409
|
}
|
1466
1410
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1467
1411
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1468
|
-
text-align: center;
|
1469
1412
|
cursor: move;
|
1413
|
+
text-align: center;
|
1470
1414
|
}
|
1471
1415
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1472
1416
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1479,6 +1423,7 @@
|
|
1479
1423
|
.bk-table .bk-table-head {
|
1480
1424
|
position: relative;
|
1481
1425
|
z-index: 2;
|
1426
|
+
scrollbar-gutter: stable;
|
1482
1427
|
overflow: hidden;
|
1483
1428
|
background-color: var(--background-color);
|
1484
1429
|
}
|
@@ -1521,7 +1466,6 @@
|
|
1521
1466
|
width: 100%;
|
1522
1467
|
height: var(--footer-height);
|
1523
1468
|
align-items: center;
|
1524
|
-
padding: 0 16px 0 22px;
|
1525
1469
|
}
|
1526
1470
|
.bk-table .bk-table-footer.is-hidden {
|
1527
1471
|
display: none;
|
@@ -1529,10 +1473,10 @@
|
|
1529
1473
|
.bk-table.bordered-row .bk-table-head {
|
1530
1474
|
border-bottom: 1px solid #dcdee5;
|
1531
1475
|
}
|
1532
|
-
.bk-table.bordered-row
|
1533
|
-
border-bottom
|
1476
|
+
.bk-table.bordered-row td {
|
1477
|
+
border-bottom: 1px solid #dcdee5;
|
1534
1478
|
}
|
1535
|
-
.bk-table.bordered-row
|
1479
|
+
.bk-table.bordered-row tr:last-child td {
|
1536
1480
|
border-bottom: none;
|
1537
1481
|
}
|
1538
1482
|
.bk-table.bordered-outer {
|
@@ -1553,18 +1497,14 @@
|
|
1553
1497
|
.bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
|
1554
1498
|
border-bottom: 1px solid #dcdee5;
|
1555
1499
|
}
|
1556
|
-
.bk-table.bordered-col th
|
1500
|
+
.bk-table.bordered-col th,
|
1501
|
+
.bk-table.bordered-col td {
|
1557
1502
|
border-right: 1px solid #dcdee5;
|
1558
1503
|
}
|
1559
|
-
.bk-table.bordered-col th:last-child
|
1504
|
+
.bk-table.bordered-col th:last-child,
|
1505
|
+
.bk-table.bordered-col td:last-child {
|
1560
1506
|
border-right: none;
|
1561
1507
|
}
|
1562
|
-
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1563
|
-
border-right-color: #dcdee5;
|
1564
|
-
}
|
1565
|
-
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1566
|
-
border-right-color: transparent;
|
1567
|
-
}
|
1568
1508
|
.bk-table th,
|
1569
1509
|
.bk-table td {
|
1570
1510
|
border-right: 1px solid transparent;
|
@@ -21,7 +21,7 @@ export type ITableFormatData = {
|
|
21
21
|
declare const tableSchemaResponse: (props: TablePropTypes) => {
|
22
22
|
formatColumns: (columns: Column[]) => void;
|
23
23
|
formatDataSchema: (data: any[]) => void;
|
24
|
-
setRowSelection: (row: any, isSelected: boolean
|
24
|
+
setRowSelection: (row: any, isSelected: boolean) => void;
|
25
25
|
setRowExpand: (row: any, isExpand: boolean) => void;
|
26
26
|
setRowIndex: (row: any, index: number) => void;
|
27
27
|
setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
|
@@ -56,7 +56,6 @@ declare const tableSchemaResponse: (props: TablePropTypes) => {
|
|
56
56
|
localPagination: import("vue").Ref<any>;
|
57
57
|
formatData: ITableFormatData;
|
58
58
|
setIndexData: () => Promise<void>;
|
59
|
-
getFilterFnList: () => any[];
|
60
59
|
};
|
61
60
|
export type ITableResponse = ReturnType<typeof tableSchemaResponse>;
|
62
61
|
export default tableSchemaResponse;
|
@@ -17,8 +17,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
17
17
|
minWidth?: string | number;
|
18
18
|
columnKey?: string;
|
19
19
|
showOverflowTooltip?: boolean | {
|
20
|
-
content: string |
|
21
|
-
disabled?:
|
20
|
+
content: string | Function;
|
21
|
+
disabled?: (col: Column, row: any) => boolean;
|
22
22
|
watchCellResize?: boolean;
|
23
23
|
mode?: "auto" | "static";
|
24
24
|
popoverOption?: any;
|
@@ -105,8 +105,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
105
105
|
minWidth?: string | number;
|
106
106
|
columnKey?: string;
|
107
107
|
showOverflowTooltip?: boolean | {
|
108
|
-
content: string |
|
109
|
-
disabled?:
|
108
|
+
content: string | Function;
|
109
|
+
disabled?: (col: Column, row: any) => boolean;
|
110
110
|
watchCellResize?: boolean;
|
111
111
|
mode?: "auto" | "static";
|
112
112
|
popoverOption?: any;
|
@@ -193,8 +193,8 @@ declare const _default: (props: TablePropTypes, targetColumns: ITableColumn[]) =
|
|
193
193
|
minWidth?: string | number;
|
194
194
|
columnKey?: string;
|
195
195
|
showOverflowTooltip?: boolean | {
|
196
|
-
content: string |
|
197
|
-
disabled?:
|
196
|
+
content: string | Function;
|
197
|
+
disabled?: (col: Column, row: any) => boolean;
|
198
198
|
watchCellResize?: boolean;
|
199
199
|
mode?: "auto" | "static";
|
200
200
|
popoverOption?: any;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from './props';
|
3
3
|
import { ITableResponse } from './use-attributes';
|
4
|
-
declare const _default: (props: TablePropTypes, context: SetupContext<any>, tableResp: ITableResponse, head: any, root: any, resetTableHeight: any) => {
|
4
|
+
declare const _default: (props: TablePropTypes, context: SetupContext<any>, tableResp: ITableResponse, styleRef: any, head: any, root: any, resetTableHeight: any) => {
|
5
5
|
renderTableHeadSchema: () => (string | JSX.Element)[];
|
6
6
|
renderTableBodySchema: (rows: any[]) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
7
7
|
[key: string]: any;
|
@@ -130,8 +130,8 @@ declare const BkTableColumn: {
|
|
130
130
|
className?: import("../table/props").RowClassFunctionString;
|
131
131
|
align?: "" | "right" | "left" | "center";
|
132
132
|
showOverflowTooltip?: boolean | {
|
133
|
-
content: string |
|
134
|
-
disabled?:
|
133
|
+
content: string | Function;
|
134
|
+
disabled?: (col: import("../../bkui-vue").TableIColumn, row: any) => boolean;
|
135
135
|
watchCellResize?: boolean;
|
136
136
|
mode?: "auto" | "static";
|
137
137
|
popoverOption?: any;
|
@@ -420,8 +420,8 @@ declare const BkTableColumn: {
|
|
420
420
|
className?: import("../table/props").RowClassFunctionString;
|
421
421
|
align?: "" | "right" | "left" | "center";
|
422
422
|
showOverflowTooltip?: boolean | {
|
423
|
-
content: string |
|
424
|
-
disabled?:
|
423
|
+
content: string | Function;
|
424
|
+
disabled?: (col: import("../../bkui-vue").TableIColumn, row: any) => boolean;
|
425
425
|
watchCellResize?: boolean;
|
426
426
|
mode?: "auto" | "static";
|
427
427
|
popoverOption?: any;
|
@@ -647,8 +647,8 @@ declare const BkTableColumn: {
|
|
647
647
|
className?: import("../table/props").RowClassFunctionString;
|
648
648
|
align?: "" | "right" | "left" | "center";
|
649
649
|
showOverflowTooltip?: boolean | {
|
650
|
-
content: string |
|
651
|
-
disabled?:
|
650
|
+
content: string | Function;
|
651
|
+
disabled?: (col: import("../../bkui-vue").TableIColumn, row: any) => boolean;
|
652
652
|
watchCellResize?: boolean;
|
653
653
|
mode?: "auto" | "static";
|
654
654
|
popoverOption?: any;
|
@@ -256,7 +256,7 @@ var COLUMN_ATTRIBUTE = {
|
|
256
256
|
/**
|
257
257
|
* Y 轴滚动条宽度
|
258
258
|
*/
|
259
|
-
var SCROLLY_WIDTH =
|
259
|
+
var SCROLLY_WIDTH = 6;
|
260
260
|
/**
|
261
261
|
* 默认行高
|
262
262
|
*/
|
@@ -684,11 +684,7 @@ var tableProps = {
|
|
684
684
|
/**
|
685
685
|
* 是否支持行拖拽排序
|
686
686
|
*/
|
687
|
-
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
688
|
-
/**
|
689
|
-
* 是否支持shift键多行选择
|
690
|
-
*/
|
691
|
-
shiftMultiChecked: shared_namespaceObject.PropTypes.bool.def(false)
|
687
|
+
rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
|
692
688
|
};
|
693
689
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
694
690
|
|
package/lib/tree/index.d.ts
CHANGED
@@ -115,11 +115,6 @@ declare const BkTree: {
|
|
115
115
|
} & {
|
116
116
|
default: boolean;
|
117
117
|
};
|
118
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
119
|
-
default: boolean;
|
120
|
-
} & {
|
121
|
-
default: boolean;
|
122
|
-
};
|
123
118
|
}>> & {
|
124
119
|
onNodeClick?: (...args: any[]) => any;
|
125
120
|
onNodeCollapse?: (...args: any[]) => any;
|
@@ -254,11 +249,6 @@ declare const BkTree: {
|
|
254
249
|
} & {
|
255
250
|
default: boolean;
|
256
251
|
};
|
257
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
258
|
-
default: boolean;
|
259
|
-
} & {
|
260
|
-
default: boolean;
|
261
|
-
};
|
262
252
|
}>> & {
|
263
253
|
onNodeClick?: (...args: any[]) => any;
|
264
254
|
onNodeCollapse?: (...args: any[]) => any;
|
@@ -295,7 +285,6 @@ declare const BkTree: {
|
|
295
285
|
expandAll: boolean;
|
296
286
|
nodeContentAction: any;
|
297
287
|
keepSlotData: boolean;
|
298
|
-
checkStrictly: boolean;
|
299
288
|
}, true, {}, {}, {
|
300
289
|
P: {};
|
301
290
|
B: {};
|
@@ -419,11 +408,6 @@ declare const BkTree: {
|
|
419
408
|
} & {
|
420
409
|
default: boolean;
|
421
410
|
};
|
422
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
423
|
-
default: boolean;
|
424
|
-
} & {
|
425
|
-
default: boolean;
|
426
|
-
};
|
427
411
|
}>> & {
|
428
412
|
onNodeClick?: (...args: any[]) => any;
|
429
413
|
onNodeCollapse?: (...args: any[]) => any;
|
@@ -460,7 +444,6 @@ declare const BkTree: {
|
|
460
444
|
expandAll: boolean;
|
461
445
|
nodeContentAction: any;
|
462
446
|
keepSlotData: boolean;
|
463
|
-
checkStrictly: boolean;
|
464
447
|
}>;
|
465
448
|
__isFragment?: never;
|
466
449
|
__isTeleport?: never;
|
@@ -581,11 +564,6 @@ declare const BkTree: {
|
|
581
564
|
} & {
|
582
565
|
default: boolean;
|
583
566
|
};
|
584
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
585
|
-
default: boolean;
|
586
|
-
} & {
|
587
|
-
default: boolean;
|
588
|
-
};
|
589
567
|
}>> & {
|
590
568
|
onNodeClick?: (...args: any[]) => any;
|
591
569
|
onNodeCollapse?: (...args: any[]) => any;
|
@@ -631,6 +609,5 @@ declare const BkTree: {
|
|
631
609
|
expandAll: boolean;
|
632
610
|
nodeContentAction: any;
|
633
611
|
keepSlotData: boolean;
|
634
|
-
checkStrictly: boolean;
|
635
612
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
636
613
|
export default BkTree;
|
package/lib/tree/index.js
CHANGED
@@ -364,11 +364,7 @@ var treeProps = {
|
|
364
364
|
* 如果设置为false,则作用域插槽参数格式为: { ...node, ...attributes }
|
365
365
|
* attributes 为节点内置属性,包含节点是否展开,是否选中,是否有子节点等等
|
366
366
|
*/
|
367
|
-
keepSlotData: shared_namespaceObject.PropTypes.bool.def(false)
|
368
|
-
/**
|
369
|
-
* 在显示复选框的情况下,是否严格的遵循父子互相关联的做法
|
370
|
-
*/
|
371
|
-
checkStrictly: shared_namespaceObject.PropTypes.bool.def(true)
|
367
|
+
keepSlotData: shared_namespaceObject.PropTypes.bool.def(false)
|
372
368
|
};
|
373
369
|
;// CONCATENATED MODULE: external "../exception"
|
374
370
|
var exception_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
@@ -1235,9 +1231,7 @@ var use_node_action_this = undefined;
|
|
1235
1231
|
if (value) {
|
1236
1232
|
setNodeAttr(item, NODE_ATTRIBUTES.IS_INDETERMINATE, false);
|
1237
1233
|
}
|
1238
|
-
|
1239
|
-
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
1240
|
-
}
|
1234
|
+
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
1241
1235
|
updateParentChecked(item, value);
|
1242
1236
|
ctx.emit(EVENTS.NODE_CHECKED, flatData.data.filter(function (t) {
|
1243
1237
|
return isNodeChecked(t);
|
@@ -2193,7 +2187,7 @@ var use_tree_init_this = undefined;
|
|
2193
2187
|
}
|
2194
2188
|
}
|
2195
2189
|
flatten(treeData !== null && treeData !== void 0 ? treeData : data);
|
2196
|
-
if (props.showCheckbox !== false
|
2190
|
+
if (props.showCheckbox !== false) {
|
2197
2191
|
checkedList === null || checkedList === void 0 || checkedList.forEach(function (value) {
|
2198
2192
|
loopUpdateNodeAttr(value, NODE_ATTRIBUTES.IS_CHECKED, true, loopUpdateCheckedEvent);
|
2199
2193
|
});
|
package/lib/tree/props.d.ts
CHANGED
@@ -214,14 +214,6 @@ export declare const treeProps: {
|
|
214
214
|
} & {
|
215
215
|
default: boolean;
|
216
216
|
};
|
217
|
-
/**
|
218
|
-
* 在显示复选框的情况下,是否严格的遵循父子互相关联的做法
|
219
|
-
*/
|
220
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
221
|
-
default: boolean;
|
222
|
-
} & {
|
223
|
-
default: boolean;
|
224
|
-
};
|
225
217
|
};
|
226
218
|
type AsyncOption = {
|
227
219
|
callback: (item: any, cb: any) => Promise<any>;
|
package/lib/tree/tree.css
CHANGED
@@ -15,85 +15,11 @@
|
|
15
15
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
16
16
|
border-radius: 4px;
|
17
17
|
}
|
18
|
-
.bk-scrollbar-wrapper {
|
19
|
-
position: relative;
|
20
|
-
overflow: hidden;
|
21
|
-
}
|
22
|
-
.bk-scrollbar-wrapper .bk-scrollbar-content-el {
|
23
|
-
display: inline-flex;
|
24
|
-
flex-direction: column;
|
25
|
-
width: 100%;
|
26
|
-
}
|
27
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
28
|
-
z-index: 1;
|
29
|
-
position: absolute;
|
30
|
-
right: 0;
|
31
|
-
bottom: 0;
|
32
|
-
pointer-events: none;
|
33
|
-
overflow: hidden;
|
34
|
-
}
|
35
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
36
|
-
background-color: #F0F1F5;
|
37
|
-
cursor: pointer;
|
38
|
-
}
|
39
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
40
|
-
background-color: #979BA5;
|
41
|
-
}
|
42
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
43
|
-
top: 0;
|
44
|
-
width: 8px;
|
45
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
46
|
-
}
|
47
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
48
|
-
left: 0;
|
49
|
-
height: 8px;
|
50
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
51
|
-
}
|
52
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
53
|
-
right: auto;
|
54
|
-
left: 0;
|
55
|
-
top: 0;
|
56
|
-
bottom: 0;
|
57
|
-
min-height: 0;
|
58
|
-
min-width: 8px;
|
59
|
-
width: auto;
|
60
|
-
}
|
61
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
62
|
-
pointer-events: none;
|
63
|
-
-webkit-touch-callout: none;
|
64
|
-
-webkit-user-select: none;
|
65
|
-
-khtml-user-select: none;
|
66
|
-
-moz-user-select: none;
|
67
|
-
-ms-user-select: none;
|
68
|
-
user-select: none;
|
69
|
-
}
|
70
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
71
|
-
position: absolute;
|
72
|
-
left: 0;
|
73
|
-
right: 0;
|
74
|
-
min-height: 8px;
|
75
|
-
}
|
76
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
77
|
-
position: absolute;
|
78
|
-
content: '';
|
79
|
-
background: #DCDEE5;
|
80
|
-
border-radius: 6px;
|
81
|
-
left: 1px;
|
82
|
-
right: 1px;
|
83
|
-
top: 1px;
|
84
|
-
bottom: 1px;
|
85
|
-
opacity: 0;
|
86
|
-
transition: opacity 0.2s 0.9s linear;
|
87
|
-
}
|
88
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
89
|
-
opacity: 0.9;
|
90
|
-
transition-delay: 0s;
|
91
|
-
transition-duration: 0s;
|
92
|
-
}
|
93
18
|
.bk-virtual-render {
|
94
19
|
position: relative;
|
95
20
|
}
|
96
|
-
.bk-virtual-render .bk-virtual-content
|
21
|
+
.bk-virtual-render .bk-virtual-content,
|
22
|
+
.bk-virtual-render.bk-virtual-content {
|
97
23
|
position: absolute;
|
98
24
|
top: 0;
|
99
25
|
bottom: 0;
|
package/lib/tree/tree.d.ts
CHANGED
@@ -120,11 +120,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
120
120
|
} & {
|
121
121
|
default: boolean;
|
122
122
|
};
|
123
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
124
|
-
default: boolean;
|
125
|
-
} & {
|
126
|
-
default: boolean;
|
127
|
-
};
|
128
123
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
129
124
|
nodeClick: (..._args: any[]) => boolean;
|
130
125
|
nodeCollapse: (..._args: any[]) => boolean;
|
@@ -250,11 +245,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
250
245
|
} & {
|
251
246
|
default: boolean;
|
252
247
|
};
|
253
|
-
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
254
|
-
default: boolean;
|
255
|
-
} & {
|
256
|
-
default: boolean;
|
257
|
-
};
|
258
248
|
}>> & {
|
259
249
|
onNodeClick?: (...args: any[]) => any;
|
260
250
|
onNodeCollapse?: (...args: any[]) => any;
|
@@ -291,6 +281,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
291
281
|
expandAll: boolean;
|
292
282
|
nodeContentAction: any;
|
293
283
|
keepSlotData: boolean;
|
294
|
-
checkStrictly: boolean;
|
295
284
|
}, {}>;
|
296
285
|
export default _default;
|