bkui-vue 0.0.2-beta.100 → 0.0.2-beta.101

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.
@@ -4074,8 +4074,7 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
4074
4074
  var fixedContainerStyle = (0,external_vue_namespaceObject.computed)(function () {
4075
4075
  return use_common_objectSpread({
4076
4076
  right: hasScrollYRef.value ? "".concat(SCROLLY_WIDTH, "px") : 0,
4077
- '--fix-height': "".concat(fixHeight.value, "px"),
4078
- '--fix-max-height': "".concat(maxFixHeight.value, "px")
4077
+ '--fix-height': "".concat(fixHeight.value, "px")
4079
4078
  }, footerStyle.value);
4080
4079
  });
4081
4080
  var scrollClass = (0,external_vue_namespaceObject.computed)(function () {
@@ -6092,6 +6091,9 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
6092
6091
  renderTableFooter = _useRender.renderTableFooter,
6093
6092
  renderTableHeadSchema = _useRender.renderTableHeadSchema;
6094
6093
  var updateOffsetRight = function updateOffsetRight() {
6094
+ if (!(root !== null && root !== void 0 && root.value)) {
6095
+ return;
6096
+ }
6095
6097
  var $tableContent = root.value.querySelector(".".concat(resolveClassName('table-body-content')));
6096
6098
  var $table = $tableContent.querySelector('table');
6097
6099
  if ($table) {
@@ -1160,7 +1160,7 @@
1160
1160
  transform: translateX(var(--prepend-left));
1161
1161
  }
1162
1162
  .bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
1163
- background-color: #FAFBFD;
1163
+ background-color: #fafbfd;
1164
1164
  }
1165
1165
  .bk-table .bk-table-body-content.bk-stripe table tbody tr td {
1166
1166
  border-bottom: none;
@@ -1202,19 +1202,19 @@
1202
1202
  }
1203
1203
  .bk-table .bk-table-head.__is-empty .bk-table-body-content,
1204
1204
  .bk-table .bk-table-body.__is-empty .bk-table-body-content {
1205
+ position: relative;
1205
1206
  display: flex;
1206
1207
  width: 100%;
1207
1208
  height: 100%;
1208
1209
  padding-bottom: 20px;
1209
- position: relative;
1210
1210
  }
1211
1211
  .bk-table .bk-table-head table,
1212
1212
  .bk-table .bk-table-body table {
1213
1213
  width: 100%;
1214
1214
  border-collapse: collapse;
1215
+ transform: translateZ(0);
1215
1216
  table-layout: fixed;
1216
1217
  align-self: flex-start;
1217
- transform: translateZ(0);
1218
1218
  }
1219
1219
  .bk-table .bk-table-head table th,
1220
1220
  .bk-table .bk-table-body table th,
@@ -1343,22 +1343,22 @@
1343
1343
  }
1344
1344
  .bk-table .bk-table-head table thead th,
1345
1345
  .bk-table .bk-table-body table thead th {
1346
+ position: relative;
1346
1347
  font-weight: 400;
1347
1348
  background-color: var(--background-color);
1348
- position: relative;
1349
1349
  }
1350
1350
  .bk-table .bk-table-head table thead th.col-resize-hover::after,
1351
1351
  .bk-table .bk-table-body table thead th.col-resize-hover::after {
1352
- content: '';
1353
1352
  position: absolute;
1354
- right: 0;
1355
1353
  top: 0;
1354
+ right: 0;
1356
1355
  bottom: 0;
1357
- width: 6px;
1358
- transform: translateX(50%);
1359
- background-color: #3785FF;
1360
1356
  z-index: 1;
1357
+ width: 6px;
1361
1358
  pointer-events: none;
1359
+ background-color: #3785ff;
1360
+ content: '';
1361
+ transform: translateX(50%);
1362
1362
  }
1363
1363
  .bk-table .bk-table-head table thead th .cell,
1364
1364
  .bk-table .bk-table-body table thead th .cell {
@@ -1371,8 +1371,8 @@
1371
1371
  .bk-table .bk-table-body table thead th.active,
1372
1372
  .bk-table .bk-table-head table thead th:hover,
1373
1373
  .bk-table .bk-table-body table thead th:hover {
1374
- background: var(--table-row-active-bg-color);
1375
1374
  cursor: pointer;
1375
+ background: var(--table-row-active-bg-color);
1376
1376
  }
1377
1377
  .bk-table .bk-table-head table thead th.column_fixed,
1378
1378
  .bk-table .bk-table-body table thead th.column_fixed {
@@ -1405,18 +1405,18 @@
1405
1405
  }
1406
1406
  .bk-table .bk-table-head {
1407
1407
  position: relative;
1408
- transform: translateX(var(--scroll-head-left));
1409
1408
  z-index: 2;
1409
+ transform: translateX(var(--scroll-head-left));
1410
1410
  }
1411
1411
  .bk-table .bk-table-head .col-resize-drag {
1412
1412
  position: absolute;
1413
- right: 0;
1414
1413
  top: 0;
1414
+ right: 0;
1415
1415
  bottom: 0;
1416
+ z-index: 1;
1416
1417
  width: 6px;
1418
+ background-color: #3785ff;
1417
1419
  transform: translateX(-50%);
1418
- background-color: #3785FF;
1419
- z-index: 1;
1420
1420
  }
1421
1421
  .bk-table .bk-table-head .table-head-settings {
1422
1422
  position: absolute;
@@ -1442,9 +1442,9 @@
1442
1442
  height: 1rem;
1443
1443
  }
1444
1444
  .bk-table .bk-table-footer {
1445
- height: var(--footer-height);
1446
- width: 100%;
1447
1445
  display: flex;
1446
+ width: 100%;
1447
+ height: var(--footer-height);
1448
1448
  align-items: center;
1449
1449
  }
1450
1450
  .bk-table .bk-table-footer.is-hidden {
@@ -1495,9 +1495,7 @@
1495
1495
  top: 0;
1496
1496
  right: 0;
1497
1497
  bottom: var(--footer-height);
1498
- max-height: var(--fix-max-height);
1499
1498
  left: 0;
1500
- height: var(--fix-height);
1501
1499
  pointer-events: none;
1502
1500
  }
1503
1501
  .bk-table .bk-table-fixed .column_fixed {
@@ -1537,5 +1535,5 @@
1537
1535
  margin-left: auto;
1538
1536
  }
1539
1537
  .bk-table .stripe-row {
1540
- background: #FAFBFD;
1538
+ background: #fafbfd;
1541
1539
  }
@@ -58,7 +58,7 @@
58
58
  tr {
59
59
  &:nth-child(even) {
60
60
  td {
61
- background-color: #FAFBFD;
61
+ background-color: #fafbfd;
62
62
  }
63
63
  }
64
64
 
@@ -108,11 +108,11 @@
108
108
  align-items: center;
109
109
 
110
110
  .@{bk-prefix}-table-body-content {
111
+ position: relative;
111
112
  display: flex;
112
113
  width: 100%;
113
114
  height: 100%;
114
115
  padding-bottom: 20px;
115
- position: relative;
116
116
  }
117
117
 
118
118
  }
@@ -120,9 +120,9 @@
120
120
  table {
121
121
  width: 100%;
122
122
  border-collapse: collapse;
123
+ transform: translateZ(0);
123
124
  table-layout: fixed;
124
125
  align-self: flex-start;
125
- transform: translateZ(0);
126
126
 
127
127
  th,
128
128
  td {
@@ -229,24 +229,25 @@
229
229
  background-color: @table-head-bg-color;
230
230
 
231
231
  th {
232
+ position: relative;
232
233
  font-weight: 400;
233
234
  background-color: var(--background-color);
234
- position: relative;
235
235
 
236
236
  &.col-resize-hover {
237
237
  &::after {
238
- content: '';
239
238
  position: absolute;
240
- right: 0;
241
239
  top: 0;
240
+ right: 0;
242
241
  bottom: 0;
243
- width: 6px;
244
- transform: translateX(50%);
245
- background-color: #3785FF;
246
242
  z-index: 1;
243
+ width: 6px;
247
244
  pointer-events: none;
245
+ background-color: #3785ff;
246
+ content: '';
247
+ transform: translateX(50%);
248
248
  }
249
249
  }
250
+
250
251
  .cell {
251
252
  display: flex;
252
253
  align-items: center;
@@ -256,8 +257,8 @@
256
257
 
257
258
  &.active,
258
259
  &:hover {
259
- background: @table-row-active-bg-color;
260
260
  cursor: pointer;
261
+ background: @table-row-active-bg-color;
261
262
  }
262
263
 
263
264
  &.column_fixed {
@@ -305,18 +306,18 @@
305
306
 
306
307
  .@{bk-prefix}-table-head {
307
308
  position: relative;
308
- transform: translateX(var(--scroll-head-left));
309
309
  z-index: 2;
310
+ transform: translateX(var(--scroll-head-left));
310
311
 
311
312
  .col-resize-drag {
312
313
  position: absolute;
313
- right: 0;
314
314
  top: 0;
315
+ right: 0;
315
316
  bottom: 0;
317
+ z-index: 1;
316
318
  width: 6px;
319
+ background-color: #3785ff;
317
320
  transform: translateX(-50%);
318
- background-color: #3785FF;
319
- z-index: 1;
320
321
  }
321
322
 
322
323
  .table-head-settings {
@@ -348,9 +349,9 @@
348
349
  }
349
350
 
350
351
  .@{bk-prefix}-table-footer {
351
- height: var(--footer-height);
352
- width: 100%;
353
352
  display: flex;
353
+ width: 100%;
354
+ height: var(--footer-height);
354
355
  align-items: center;
355
356
 
356
357
  &.is-hidden {
@@ -428,9 +429,8 @@
428
429
  top: 0;
429
430
  right: 0;
430
431
  bottom: var(--footer-height);
431
- max-height: var(--fix-max-height);
432
432
  left: 0;
433
- height: var(--fix-height);
433
+ // height: var(--fix-height);
434
434
  pointer-events: none;
435
435
 
436
436
  .column_fixed {
@@ -487,6 +487,6 @@
487
487
  }
488
488
 
489
489
  .stripe-row {
490
- background: #FAFBFD;
490
+ background: #fafbfd;
491
491
  }
492
492
  }
@@ -1526,7 +1526,7 @@
1526
1526
  transform: translateX(var(--prepend-left));
1527
1527
  }
1528
1528
  .bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
1529
- background-color: #FAFBFD;
1529
+ background-color: #fafbfd;
1530
1530
  }
1531
1531
  .bk-table .bk-table-body-content.bk-stripe table tbody tr td {
1532
1532
  border-bottom: none;
@@ -1568,19 +1568,19 @@
1568
1568
  }
1569
1569
  .bk-table .bk-table-head.__is-empty .bk-table-body-content,
1570
1570
  .bk-table .bk-table-body.__is-empty .bk-table-body-content {
1571
+ position: relative;
1571
1572
  display: flex;
1572
1573
  width: 100%;
1573
1574
  height: 100%;
1574
1575
  padding-bottom: 20px;
1575
- position: relative;
1576
1576
  }
1577
1577
  .bk-table .bk-table-head table,
1578
1578
  .bk-table .bk-table-body table {
1579
1579
  width: 100%;
1580
1580
  border-collapse: collapse;
1581
+ transform: translateZ(0);
1581
1582
  table-layout: fixed;
1582
1583
  align-self: flex-start;
1583
- transform: translateZ(0);
1584
1584
  }
1585
1585
  .bk-table .bk-table-head table th,
1586
1586
  .bk-table .bk-table-body table th,
@@ -1709,22 +1709,22 @@
1709
1709
  }
1710
1710
  .bk-table .bk-table-head table thead th,
1711
1711
  .bk-table .bk-table-body table thead th {
1712
+ position: relative;
1712
1713
  font-weight: 400;
1713
1714
  background-color: var(--background-color);
1714
- position: relative;
1715
1715
  }
1716
1716
  .bk-table .bk-table-head table thead th.col-resize-hover::after,
1717
1717
  .bk-table .bk-table-body table thead th.col-resize-hover::after {
1718
- content: '';
1719
1718
  position: absolute;
1720
- right: 0;
1721
1719
  top: 0;
1720
+ right: 0;
1722
1721
  bottom: 0;
1723
- width: 6px;
1724
- transform: translateX(50%);
1725
- background-color: #3785FF;
1726
1722
  z-index: 1;
1723
+ width: 6px;
1727
1724
  pointer-events: none;
1725
+ background-color: #3785ff;
1726
+ content: '';
1727
+ transform: translateX(50%);
1728
1728
  }
1729
1729
  .bk-table .bk-table-head table thead th .cell,
1730
1730
  .bk-table .bk-table-body table thead th .cell {
@@ -1737,8 +1737,8 @@
1737
1737
  .bk-table .bk-table-body table thead th.active,
1738
1738
  .bk-table .bk-table-head table thead th:hover,
1739
1739
  .bk-table .bk-table-body table thead th:hover {
1740
- background: var(--table-row-active-bg-color);
1741
1740
  cursor: pointer;
1741
+ background: var(--table-row-active-bg-color);
1742
1742
  }
1743
1743
  .bk-table .bk-table-head table thead th.column_fixed,
1744
1744
  .bk-table .bk-table-body table thead th.column_fixed {
@@ -1771,18 +1771,18 @@
1771
1771
  }
1772
1772
  .bk-table .bk-table-head {
1773
1773
  position: relative;
1774
- transform: translateX(var(--scroll-head-left));
1775
1774
  z-index: 2;
1775
+ transform: translateX(var(--scroll-head-left));
1776
1776
  }
1777
1777
  .bk-table .bk-table-head .col-resize-drag {
1778
1778
  position: absolute;
1779
- right: 0;
1780
1779
  top: 0;
1780
+ right: 0;
1781
1781
  bottom: 0;
1782
+ z-index: 1;
1782
1783
  width: 6px;
1784
+ background-color: #3785ff;
1783
1785
  transform: translateX(-50%);
1784
- background-color: #3785FF;
1785
- z-index: 1;
1786
1786
  }
1787
1787
  .bk-table .bk-table-head .table-head-settings {
1788
1788
  position: absolute;
@@ -1808,9 +1808,9 @@
1808
1808
  height: 1rem;
1809
1809
  }
1810
1810
  .bk-table .bk-table-footer {
1811
- height: var(--footer-height);
1812
- width: 100%;
1813
1811
  display: flex;
1812
+ width: 100%;
1813
+ height: var(--footer-height);
1814
1814
  align-items: center;
1815
1815
  }
1816
1816
  .bk-table .bk-table-footer.is-hidden {
@@ -1861,9 +1861,7 @@
1861
1861
  top: 0;
1862
1862
  right: 0;
1863
1863
  bottom: var(--footer-height);
1864
- max-height: var(--fix-max-height);
1865
1864
  left: 0;
1866
- height: var(--fix-height);
1867
1865
  pointer-events: none;
1868
1866
  }
1869
1867
  .bk-table .bk-table-fixed .column_fixed {
@@ -1903,5 +1901,5 @@
1903
1901
  margin-left: auto;
1904
1902
  }
1905
1903
  .bk-table .stripe-row {
1906
- background: #FAFBFD;
1904
+ background: #fafbfd;
1907
1905
  }
@@ -70,7 +70,6 @@ export declare const useClass: (props: TablePropTypes, targetColumns: ITableColu
70
70
  '--footer-height': string;
71
71
  right: string | number;
72
72
  '--fix-height': string;
73
- '--fix-max-height': string;
74
73
  }>;
75
74
  scrollClass: import("vue").ComputedRef<{
76
75
  scrollXName?: undefined;
package/lib/tree/index.js CHANGED
@@ -390,17 +390,15 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
390
390
  * IN THE SOFTWARE.
391
391
  */
392
392
 
393
- /* harmony default export */ const use_empty = (function (props, _ref) {
394
- var slots = _ref.slots;
393
+ /* harmony default export */ const use_empty = (function (props) {
395
394
  return {
396
395
  renderEmpty: function renderEmpty(type) {
397
- var _slots$default, _slots$default2;
398
396
  return (0,external_vue_namespaceObject.createVNode)(external_exception_namespaceObject["default"], {
399
397
  "scene": "part",
400
398
  "type": type
401
399
  }, {
402
400
  "default": function _default() {
403
- return [(_slots$default = (_slots$default2 = slots["default"]) === null || _slots$default2 === void 0 ? void 0 : _slots$default2.call(slots)) !== null && _slots$default !== void 0 ? _slots$default : props.emptyText];
401
+ return [props.emptyText];
404
402
  }
405
403
  });
406
404
  }
@@ -2468,7 +2466,7 @@ var use_tree_init_this = undefined;
2468
2466
  getData: getData,
2469
2467
  reset: reset
2470
2468
  });
2471
- var _useEmpty = use_empty(props, ctx),
2469
+ var _useEmpty = use_empty(props),
2472
2470
  renderEmpty = _useEmpty.renderEmpty;
2473
2471
  use_node_drag(props, ctx, root, flatData);
2474
2472
  var renderTreeContent = function renderTreeContent(scopedData) {
@@ -1,6 +1,4 @@
1
- declare const _default: (props: any, { slots }: {
2
- slots: any;
3
- }) => {
1
+ declare const _default: (props: any) => {
4
2
  renderEmpty: (type: '404' | '403' | '500' | 'building' | 'empty' | 'search-empty' | 'login') => JSX.Element;
5
3
  };
6
4
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.100",
3
+ "version": "0.0.2-beta.101",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",