bkui-vue 1.0.3-beta.62.dialog.1 → 1.0.3-beta.63
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 +69 -69
- package/dist/index.esm.js +17802 -18626
- package/dist/index.umd.js +69 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/index.js +4 -4
- package/lib/components.d.ts +0 -1
- package/lib/components.js +0 -1
- package/lib/dialog/dialog.css +77 -139
- package/lib/dialog/dialog.d.ts +121 -41
- package/lib/dialog/dialog.less +65 -10
- package/lib/dialog/dialog.variable.css +77 -139
- package/lib/dialog/index.d.ts +272 -105
- package/lib/dialog/index.js +100 -91
- package/lib/dialog/props.d.ts +48 -8
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -312
- package/lib/info-box/info-box.css +7 -63
- package/lib/info-box/info-box.d.ts +16 -17
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +7 -63
- package/lib/modal/index.d.ts +325 -45
- package/lib/modal/index.js +666 -187
- package/lib/modal/modal.css +31 -131
- package/lib/modal/modal.d.ts +126 -16
- package/lib/modal/modal.less +28 -84
- package/lib/modal/modal.variable.css +31 -131
- package/lib/modal/props.mixin.d.ts +53 -2
- package/lib/radio/index.js +5 -5
- package/lib/select/index.d.ts +33 -0
- package/lib/select/index.js +4 -2
- package/lib/select/select.css +19 -5
- package/lib/select/select.d.ts +11 -0
- package/lib/select/select.less +26 -6
- package/lib/select/select.variable.css +19 -5
- package/lib/select/selectTagInput.d.ts +7 -0
- 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 +36 -49
- package/lib/sideslider/sideslider.css +42 -4
- package/lib/sideslider/sideslider.d.ts +105 -14
- package/lib/sideslider/sideslider.less +58 -13
- package/lib/sideslider/sideslider.variable.css +42 -4
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.d.ts +0 -23
- package/lib/table/index.js +43 -176
- 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 +0 -8
- package/lib/table/table.css +42 -97
- package/lib/table/table.d.ts +0 -11
- package/lib/table/table.less +58 -43
- package/lib/table/table.variable.css +42 -97
- package/lib/table/use-attributes.d.ts +0 -1
- package/lib/table/use-render.d.ts +1 -1
- 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 -75
- package/lib/tree/tree.d.ts +0 -11
- package/lib/tree/tree.variable.css +2 -75
- package/lib/virtual-render/index.d.ts +0 -4
- package/lib/virtual-render/index.js +52 -253
- package/lib/virtual-render/props.d.ts +0 -7
- 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 -75
- package/lib/virtual-render/virtual-render.d.ts +0 -2
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +2 -75
- 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 -14
- package/lib/scrollbar/index.js +0 -18737
- 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 -236
- 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 -74
- package/lib/scrollbar/scrollbar.less +0 -93
- package/lib/scrollbar/scrollbar.variable.css +0 -203
- package/lib/table/plugins/use-shift-key.d.ts +0 -11
- package/lib/virtual-render/use-scrollbar.d.ts +0 -23
@@ -144,84 +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
|
-
}
|
155
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
156
|
-
z-index: 1;
|
157
|
-
position: absolute;
|
158
|
-
right: 0;
|
159
|
-
bottom: 0;
|
160
|
-
pointer-events: none;
|
161
|
-
overflow: hidden;
|
162
|
-
}
|
163
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
164
|
-
background-color: #F0F1F5;
|
165
|
-
cursor: pointer;
|
166
|
-
}
|
167
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
168
|
-
background-color: #979BA5;
|
169
|
-
}
|
170
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
171
|
-
top: 0;
|
172
|
-
width: 8px;
|
173
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
174
|
-
}
|
175
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
176
|
-
left: 0;
|
177
|
-
height: 8px;
|
178
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
179
|
-
}
|
180
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
181
|
-
right: auto;
|
182
|
-
left: 0;
|
183
|
-
top: 0;
|
184
|
-
bottom: 0;
|
185
|
-
min-height: 0;
|
186
|
-
min-width: 8px;
|
187
|
-
width: auto;
|
188
|
-
}
|
189
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
190
|
-
pointer-events: none;
|
191
|
-
-webkit-touch-callout: none;
|
192
|
-
-webkit-user-select: none;
|
193
|
-
-khtml-user-select: none;
|
194
|
-
-moz-user-select: none;
|
195
|
-
-ms-user-select: none;
|
196
|
-
user-select: none;
|
197
|
-
}
|
198
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
199
|
-
position: absolute;
|
200
|
-
left: 0;
|
201
|
-
right: 0;
|
202
|
-
min-height: 8px;
|
203
|
-
}
|
204
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
205
|
-
position: absolute;
|
206
|
-
content: '';
|
207
|
-
background: #DCDEE5;
|
208
|
-
border-radius: 6px;
|
209
|
-
left: 1px;
|
210
|
-
right: 1px;
|
211
|
-
top: 1px;
|
212
|
-
bottom: 1px;
|
213
|
-
opacity: 0;
|
214
|
-
transition: opacity 0.2s 0.9s linear;
|
215
|
-
}
|
216
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
217
|
-
opacity: 0.9;
|
218
|
-
transition-delay: 0s;
|
219
|
-
transition-duration: 0s;
|
220
|
-
}
|
221
147
|
.bk-virtual-render {
|
222
148
|
position: relative;
|
223
149
|
}
|
224
|
-
.bk-virtual-render .bk-virtual-content
|
150
|
+
.bk-virtual-render .bk-virtual-content,
|
151
|
+
.bk-virtual-render.bk-virtual-content {
|
225
152
|
position: absolute;
|
226
153
|
top: 0;
|
227
154
|
bottom: 0;
|
@@ -1199,9 +1126,9 @@
|
|
1199
1126
|
}
|
1200
1127
|
.bk-table {
|
1201
1128
|
position: relative;
|
1202
|
-
width: 100%;
|
1203
1129
|
height: auto;
|
1204
1130
|
overflow: hidden;
|
1131
|
+
width: 100%;
|
1205
1132
|
}
|
1206
1133
|
.bk-table-flex {
|
1207
1134
|
display: flex;
|
@@ -1217,9 +1144,19 @@
|
|
1217
1144
|
}
|
1218
1145
|
.bk-table .bk-table-body {
|
1219
1146
|
position: relative;
|
1220
|
-
overflow:
|
1147
|
+
overflow: auto;
|
1148
|
+
scrollbar-gutter: stable;
|
1221
1149
|
border-bottom: 1px solid #dcdee5;
|
1222
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
|
+
}
|
1223
1160
|
.bk-table .bk-table-body .prepend-row {
|
1224
1161
|
transform: translateX(var(--prepend-left));
|
1225
1162
|
}
|
@@ -1246,6 +1183,17 @@
|
|
1246
1183
|
background: white;
|
1247
1184
|
transform: translateZ(0);
|
1248
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
|
+
}
|
1249
1197
|
.bk-table .bk-table-head.__is-empty,
|
1250
1198
|
.bk-table .bk-table-body.__is-empty {
|
1251
1199
|
display: flex;
|
@@ -1298,8 +1246,8 @@
|
|
1298
1246
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1299
1247
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1300
1248
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1301
|
-
height: 100%;
|
1302
1249
|
font-size: 14px;
|
1250
|
+
height: 100%;
|
1303
1251
|
}
|
1304
1252
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1305
1253
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1424,7 +1372,7 @@
|
|
1424
1372
|
.bk-table .bk-table-body table thead th .cell {
|
1425
1373
|
display: flex;
|
1426
1374
|
align-items: center;
|
1427
|
-
height: calc(var(--row-height) -
|
1375
|
+
height: calc(var(--row-height) - 1px);
|
1428
1376
|
color: #313238;
|
1429
1377
|
}
|
1430
1378
|
.bk-table .bk-table-head table thead th.active,
|
@@ -1441,27 +1389,28 @@
|
|
1441
1389
|
.bk-table .bk-table-head table tbody tr td,
|
1442
1390
|
.bk-table .bk-table-body table tbody tr td {
|
1443
1391
|
background-color: #fff;
|
1444
|
-
border-top: 1px solid transparent;
|
1445
|
-
border-bottom: 1px solid transparent;
|
1446
|
-
border-right: 1px solid transparent;
|
1447
|
-
box-sizing: border-box;
|
1448
1392
|
}
|
1449
1393
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1450
1394
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1451
1395
|
padding-bottom: 30px;
|
1452
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
|
+
}
|
1453
1401
|
.bk-table .bk-table-head table tbody tr td .cell,
|
1454
1402
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1455
1403
|
display: block;
|
1456
1404
|
width: 100%;
|
1457
|
-
|
1405
|
+
height: 100%;
|
1406
|
+
line-height: calc(var(--row-height) - 1px);
|
1458
1407
|
box-sizing: border-box;
|
1459
1408
|
align-items: center;
|
1460
1409
|
}
|
1461
1410
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1462
1411
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1463
|
-
text-align: center;
|
1464
1412
|
cursor: move;
|
1413
|
+
text-align: center;
|
1465
1414
|
}
|
1466
1415
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1467
1416
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1474,6 +1423,7 @@
|
|
1474
1423
|
.bk-table .bk-table-head {
|
1475
1424
|
position: relative;
|
1476
1425
|
z-index: 2;
|
1426
|
+
scrollbar-gutter: stable;
|
1477
1427
|
overflow: hidden;
|
1478
1428
|
background-color: var(--background-color);
|
1479
1429
|
}
|
@@ -1516,7 +1466,6 @@
|
|
1516
1466
|
width: 100%;
|
1517
1467
|
height: var(--footer-height);
|
1518
1468
|
align-items: center;
|
1519
|
-
padding: 0 16px 0 22px;
|
1520
1469
|
}
|
1521
1470
|
.bk-table .bk-table-footer.is-hidden {
|
1522
1471
|
display: none;
|
@@ -1524,10 +1473,10 @@
|
|
1524
1473
|
.bk-table.bordered-row .bk-table-head {
|
1525
1474
|
border-bottom: 1px solid #dcdee5;
|
1526
1475
|
}
|
1527
|
-
.bk-table.bordered-row
|
1528
|
-
border-bottom
|
1476
|
+
.bk-table.bordered-row td {
|
1477
|
+
border-bottom: 1px solid #dcdee5;
|
1529
1478
|
}
|
1530
|
-
.bk-table.bordered-row
|
1479
|
+
.bk-table.bordered-row tr:last-child td {
|
1531
1480
|
border-bottom: none;
|
1532
1481
|
}
|
1533
1482
|
.bk-table.bordered-outer {
|
@@ -1548,18 +1497,14 @@
|
|
1548
1497
|
.bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
|
1549
1498
|
border-bottom: 1px solid #dcdee5;
|
1550
1499
|
}
|
1551
|
-
.bk-table.bordered-col th
|
1500
|
+
.bk-table.bordered-col th,
|
1501
|
+
.bk-table.bordered-col td {
|
1552
1502
|
border-right: 1px solid #dcdee5;
|
1553
1503
|
}
|
1554
|
-
.bk-table.bordered-col th:last-child
|
1504
|
+
.bk-table.bordered-col th:last-child,
|
1505
|
+
.bk-table.bordered-col td:last-child {
|
1555
1506
|
border-right: none;
|
1556
1507
|
}
|
1557
|
-
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1558
|
-
border-right-color: #dcdee5;
|
1559
|
-
}
|
1560
|
-
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1561
|
-
border-right-color: transparent;
|
1562
|
-
}
|
1563
1508
|
.bk-table th,
|
1564
1509
|
.bk-table td {
|
1565
1510
|
border-right: 1px solid transparent;
|
@@ -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;
|
@@ -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;
|
@@ -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; }
|
@@ -1234,9 +1230,7 @@ var use_node_action_this = undefined;
|
|
1234
1230
|
if (value) {
|
1235
1231
|
setNodeAttr(item, NODE_ATTRIBUTES.IS_INDETERMINATE, false);
|
1236
1232
|
}
|
1237
|
-
|
1238
|
-
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
1239
|
-
}
|
1233
|
+
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
1240
1234
|
updateParentChecked(item, value);
|
1241
1235
|
ctx.emit(EVENTS.NODE_CHECKED, flatData.data.filter(function (t) {
|
1242
1236
|
return isNodeChecked(t);
|
@@ -2192,7 +2186,7 @@ var use_tree_init_this = undefined;
|
|
2192
2186
|
}
|
2193
2187
|
}
|
2194
2188
|
flatten(treeData !== null && treeData !== void 0 ? treeData : data);
|
2195
|
-
if (props.showCheckbox !== false
|
2189
|
+
if (props.showCheckbox !== false) {
|
2196
2190
|
checkedList === null || checkedList === void 0 || checkedList.forEach(function (value) {
|
2197
2191
|
loopUpdateNodeAttr(value, NODE_ATTRIBUTES.IS_CHECKED, true, loopUpdateCheckedEvent);
|
2198
2192
|
});
|
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,84 +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
|
-
}
|
26
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
27
|
-
z-index: 1;
|
28
|
-
position: absolute;
|
29
|
-
right: 0;
|
30
|
-
bottom: 0;
|
31
|
-
pointer-events: none;
|
32
|
-
overflow: hidden;
|
33
|
-
}
|
34
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
35
|
-
background-color: #F0F1F5;
|
36
|
-
cursor: pointer;
|
37
|
-
}
|
38
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
39
|
-
background-color: #979BA5;
|
40
|
-
}
|
41
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
42
|
-
top: 0;
|
43
|
-
width: 8px;
|
44
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
45
|
-
}
|
46
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
47
|
-
left: 0;
|
48
|
-
height: 8px;
|
49
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
50
|
-
}
|
51
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
52
|
-
right: auto;
|
53
|
-
left: 0;
|
54
|
-
top: 0;
|
55
|
-
bottom: 0;
|
56
|
-
min-height: 0;
|
57
|
-
min-width: 8px;
|
58
|
-
width: auto;
|
59
|
-
}
|
60
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
61
|
-
pointer-events: none;
|
62
|
-
-webkit-touch-callout: none;
|
63
|
-
-webkit-user-select: none;
|
64
|
-
-khtml-user-select: none;
|
65
|
-
-moz-user-select: none;
|
66
|
-
-ms-user-select: none;
|
67
|
-
user-select: none;
|
68
|
-
}
|
69
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
70
|
-
position: absolute;
|
71
|
-
left: 0;
|
72
|
-
right: 0;
|
73
|
-
min-height: 8px;
|
74
|
-
}
|
75
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
76
|
-
position: absolute;
|
77
|
-
content: '';
|
78
|
-
background: #DCDEE5;
|
79
|
-
border-radius: 6px;
|
80
|
-
left: 1px;
|
81
|
-
right: 1px;
|
82
|
-
top: 1px;
|
83
|
-
bottom: 1px;
|
84
|
-
opacity: 0;
|
85
|
-
transition: opacity 0.2s 0.9s linear;
|
86
|
-
}
|
87
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
88
|
-
opacity: 0.9;
|
89
|
-
transition-delay: 0s;
|
90
|
-
transition-duration: 0s;
|
91
|
-
}
|
92
18
|
.bk-virtual-render {
|
93
19
|
position: relative;
|
94
20
|
}
|
95
|
-
.bk-virtual-render .bk-virtual-content
|
21
|
+
.bk-virtual-render .bk-virtual-content,
|
22
|
+
.bk-virtual-render.bk-virtual-content {
|
96
23
|
position: absolute;
|
97
24
|
top: 0;
|
98
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;
|
@@ -144,84 +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
|
-
}
|
155
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
156
|
-
z-index: 1;
|
157
|
-
position: absolute;
|
158
|
-
right: 0;
|
159
|
-
bottom: 0;
|
160
|
-
pointer-events: none;
|
161
|
-
overflow: hidden;
|
162
|
-
}
|
163
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
164
|
-
background-color: #F0F1F5;
|
165
|
-
cursor: pointer;
|
166
|
-
}
|
167
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
168
|
-
background-color: #979BA5;
|
169
|
-
}
|
170
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
171
|
-
top: 0;
|
172
|
-
width: 8px;
|
173
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
174
|
-
}
|
175
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
176
|
-
left: 0;
|
177
|
-
height: 8px;
|
178
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
179
|
-
}
|
180
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
181
|
-
right: auto;
|
182
|
-
left: 0;
|
183
|
-
top: 0;
|
184
|
-
bottom: 0;
|
185
|
-
min-height: 0;
|
186
|
-
min-width: 8px;
|
187
|
-
width: auto;
|
188
|
-
}
|
189
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
190
|
-
pointer-events: none;
|
191
|
-
-webkit-touch-callout: none;
|
192
|
-
-webkit-user-select: none;
|
193
|
-
-khtml-user-select: none;
|
194
|
-
-moz-user-select: none;
|
195
|
-
-ms-user-select: none;
|
196
|
-
user-select: none;
|
197
|
-
}
|
198
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
199
|
-
position: absolute;
|
200
|
-
left: 0;
|
201
|
-
right: 0;
|
202
|
-
min-height: 8px;
|
203
|
-
}
|
204
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
205
|
-
position: absolute;
|
206
|
-
content: '';
|
207
|
-
background: #DCDEE5;
|
208
|
-
border-radius: 6px;
|
209
|
-
left: 1px;
|
210
|
-
right: 1px;
|
211
|
-
top: 1px;
|
212
|
-
bottom: 1px;
|
213
|
-
opacity: 0;
|
214
|
-
transition: opacity 0.2s 0.9s linear;
|
215
|
-
}
|
216
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
217
|
-
opacity: 0.9;
|
218
|
-
transition-delay: 0s;
|
219
|
-
transition-duration: 0s;
|
220
|
-
}
|
221
147
|
.bk-virtual-render {
|
222
148
|
position: relative;
|
223
149
|
}
|
224
|
-
.bk-virtual-render .bk-virtual-content
|
150
|
+
.bk-virtual-render .bk-virtual-content,
|
151
|
+
.bk-virtual-render.bk-virtual-content {
|
225
152
|
position: absolute;
|
226
153
|
top: 0;
|
227
154
|
bottom: 0;
|
@@ -124,7 +124,6 @@ declare const BkVirtualRender: {
|
|
124
124
|
} & {
|
125
125
|
default: boolean;
|
126
126
|
};
|
127
|
-
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
128
127
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
129
128
|
default: boolean;
|
130
129
|
} & {
|
@@ -262,7 +261,6 @@ declare const BkVirtualRender: {
|
|
262
261
|
} & {
|
263
262
|
default: boolean;
|
264
263
|
};
|
265
|
-
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
266
264
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
267
265
|
default: boolean;
|
268
266
|
} & {
|
@@ -442,7 +440,6 @@ declare const BkVirtualRender: {
|
|
442
440
|
} & {
|
443
441
|
default: boolean;
|
444
442
|
};
|
445
|
-
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
446
443
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
447
444
|
default: boolean;
|
448
445
|
} & {
|
@@ -616,7 +613,6 @@ declare const BkVirtualRender: {
|
|
616
613
|
} & {
|
617
614
|
default: boolean;
|
618
615
|
};
|
619
|
-
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
620
616
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
621
617
|
default: boolean;
|
622
618
|
} & {
|