bkui-vue 2.0.1-beta.15.table.3 → 2.0.1-beta.15.table.4

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.
@@ -15,7 +15,6 @@
15
15
  width: 100%;
16
16
  height: 100%;
17
17
  overflow: hidden;
18
- border-collapse: separate;
19
18
  border-spacing: 0;
20
19
 
21
20
  &-flex {
@@ -37,7 +36,6 @@
37
36
  .@{bk-prefix}-table-body {
38
37
  position: relative;
39
38
  overflow: hidden;
40
- // border-bottom: 1px solid @table-border-color;
41
39
 
42
40
  .prepend-row {
43
41
  transform: translateX(var(--prepend-left));
@@ -100,7 +98,8 @@
100
98
 
101
99
  table {
102
100
  width: 100%;
103
- border-collapse: collapse;
101
+ border-collapse: separate;
102
+
104
103
  transform: translateZ(0);
105
104
  table-layout: fixed;
106
105
  align-self: flex-start;
@@ -228,18 +227,6 @@
228
227
  }
229
228
  }
230
229
 
231
- &.column_fixed {
232
- &::after {
233
- position: absolute;
234
- content: '';
235
- right: -2px;
236
- top: 0;
237
- bottom: 0;
238
- width: 2px;
239
- background-color: @table-head-bg-color;
240
- }
241
- }
242
-
243
230
  .cell {
244
231
  display: flex;
245
232
  align-items: center;
@@ -251,12 +238,6 @@
251
238
  &:hover {
252
239
  cursor: pointer;
253
240
  background: @table-row-active-bg-color;
254
-
255
- &.column_fixed {
256
- &::after {
257
- background-color: @table-row-hover-bg-color;
258
- }
259
- }
260
241
  }
261
242
 
262
243
  &.column_fixed {
@@ -290,18 +271,6 @@
290
271
  cursor: move;
291
272
  }
292
273
  }
293
-
294
- &.column_fixed {
295
- &::after {
296
- position: absolute;
297
- content: '';
298
- right: -2px;
299
- top: 0;
300
- bottom: 0;
301
- width: 2px;
302
- background-color: @table-bg-color;
303
- }
304
- }
305
274
  }
306
275
 
307
276
  &:hover {
@@ -311,12 +280,6 @@
311
280
  background: @table-row-hover-bg-color;
312
281
  border-right-color: @table-row-hover-bg-color;
313
282
  }
314
-
315
- &.column_fixed {
316
- &::after {
317
- background-color: @table-row-hover-bg-color;
318
- }
319
- }
320
283
  }
321
284
  }
322
285
  }
@@ -434,13 +397,8 @@
434
397
 
435
398
  &.bordered-col {
436
399
  th {
437
- border-right: 1px solid @table-border-color;
400
+ border-right: 1px solid var(--background-color);
438
401
 
439
- &.column_fixed {
440
- &::after {
441
- border-left: solid 1px @table-border-color;
442
- }
443
- }
444
402
  &:last-child {
445
403
  border-right: none;
446
404
  }
@@ -451,12 +409,6 @@
451
409
  tr {
452
410
  td {
453
411
  border-right-color: @table-border-color;
454
-
455
- &.column_fixed {
456
- &::after {
457
- border-left: solid 1px @table-border-color;
458
- }
459
- }
460
412
  }
461
413
  }
462
414
  }
@@ -1595,7 +1595,6 @@
1595
1595
  width: 100%;
1596
1596
  height: 100%;
1597
1597
  overflow: hidden;
1598
- border-collapse: separate;
1599
1598
  border-spacing: 0;
1600
1599
  }
1601
1600
  .bk-table-flex {
@@ -1658,7 +1657,7 @@
1658
1657
  .bk-table .bk-table-head table,
1659
1658
  .bk-table .bk-table-body table {
1660
1659
  width: 100%;
1661
- border-collapse: collapse;
1660
+ border-collapse: separate;
1662
1661
  transform: translateZ(0);
1663
1662
  table-layout: fixed;
1664
1663
  align-self: flex-start;
@@ -1805,16 +1804,6 @@
1805
1804
  content: '';
1806
1805
  transform: translateX(50%);
1807
1806
  }
1808
- .bk-table .bk-table-head table thead th.column_fixed::after,
1809
- .bk-table .bk-table-body table thead th.column_fixed::after {
1810
- position: absolute;
1811
- content: '';
1812
- right: -2px;
1813
- top: 0;
1814
- bottom: 0;
1815
- width: 2px;
1816
- background-color: var(--table-head-bg-color);
1817
- }
1818
1807
  .bk-table .bk-table-head table thead th .cell,
1819
1808
  .bk-table .bk-table-body table thead th .cell {
1820
1809
  display: flex;
@@ -1829,12 +1818,6 @@
1829
1818
  cursor: pointer;
1830
1819
  background: var(--table-row-active-bg-color);
1831
1820
  }
1832
- .bk-table .bk-table-head table thead th.active.column_fixed::after,
1833
- .bk-table .bk-table-body table thead th.active.column_fixed::after,
1834
- .bk-table .bk-table-head table thead th:hover.column_fixed::after,
1835
- .bk-table .bk-table-body table thead th:hover.column_fixed::after {
1836
- background-color: var(--table-row-hover-bg-color);
1837
- }
1838
1821
  .bk-table .bk-table-head table thead th.column_fixed,
1839
1822
  .bk-table .bk-table-body table thead th.column_fixed {
1840
1823
  transform: translateX(var(--scroll-left));
@@ -1863,25 +1846,11 @@
1863
1846
  text-align: center;
1864
1847
  cursor: move;
1865
1848
  }
1866
- .bk-table .bk-table-head table tbody tr td.column_fixed::after,
1867
- .bk-table .bk-table-body table tbody tr td.column_fixed::after {
1868
- position: absolute;
1869
- content: '';
1870
- right: -2px;
1871
- top: 0;
1872
- bottom: 0;
1873
- width: 2px;
1874
- background-color: var(--table-bg-color);
1875
- }
1876
1849
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1877
1850
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
1878
1851
  background: var(--table-row-hover-bg-color);
1879
1852
  border-right-color: var(--table-row-hover-bg-color);
1880
1853
  }
1881
- .bk-table .bk-table-head table tbody tr:hover.hover-highlight td.column_fixed::after,
1882
- .bk-table .bk-table-body table tbody tr:hover.hover-highlight td.column_fixed::after {
1883
- background-color: var(--table-row-hover-bg-color);
1884
- }
1885
1854
  .bk-table .bk-table-head table tbody tr.--drag-start td,
1886
1855
  .bk-table .bk-table-body table tbody tr.--drag-start td {
1887
1856
  background: #fff !important;
@@ -1961,10 +1930,7 @@
1961
1930
  border-bottom: 1px solid var(--table-border-color);
1962
1931
  }
1963
1932
  .bk-table.bordered-col th {
1964
- border-right: 1px solid var(--table-border-color);
1965
- }
1966
- .bk-table.bordered-col th.column_fixed::after {
1967
- border-left: solid 1px var(--table-border-color);
1933
+ border-right: 1px solid var(--background-color);
1968
1934
  }
1969
1935
  .bk-table.bordered-col th:last-child {
1970
1936
  border-right: none;
@@ -1972,9 +1938,6 @@
1972
1938
  .bk-table.bordered-col .bk-table-body tbody tr td {
1973
1939
  border-right-color: var(--table-border-color);
1974
1940
  }
1975
- .bk-table.bordered-col .bk-table-body tbody tr td.column_fixed::after {
1976
- border-left: solid 1px var(--table-border-color);
1977
- }
1978
1941
  .bk-table th,
1979
1942
  .bk-table td {
1980
1943
  border-right: 1px solid var(--table-bg-color);
@@ -150,3 +150,10 @@ export declare const resolveColumnFilterProp: (col: Column) => {
150
150
  checked: any[];
151
151
  };
152
152
  export declare const getRawData: (data: any) => any;
153
+ /**
154
+ * 转换 px | % 为实际数值
155
+ * @param val
156
+ * @param parentVal
157
+ * @returns
158
+ */
159
+ export declare const getNumberOrPercentValue: (val: string | number, parentVal?: number) => number;
@@ -72,6 +72,7 @@ declare const BkTableColumn: {
72
72
  showOverflowTooltip?: boolean | {
73
73
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
74
74
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
75
+ allowHtml?: boolean;
75
76
  watchCellResize?: boolean;
76
77
  mode?: "auto" | "static";
77
78
  popoverOption?: any;
@@ -208,6 +209,7 @@ declare const BkTableColumn: {
208
209
  showOverflowTooltip?: boolean | {
209
210
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
210
211
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
212
+ allowHtml?: boolean;
211
213
  watchCellResize?: boolean;
212
214
  mode?: "auto" | "static";
213
215
  popoverOption?: any;
@@ -302,6 +304,7 @@ declare const BkTableColumn: {
302
304
  showOverflowTooltip?: boolean | {
303
305
  content: string | ((col: import("../../bkui-vue").TableIColumn, row: any) => string);
304
306
  disabled?: boolean | ((col: import("../../bkui-vue").TableIColumn, row: any) => boolean);
307
+ allowHtml?: boolean;
305
308
  watchCellResize?: boolean;
306
309
  mode?: "auto" | "static";
307
310
  popoverOption?: any;
@@ -406,9 +406,9 @@ var tableProps = {
406
406
  stripe: shared_namespaceObject.PropTypes.bool.def(false),
407
407
  /**
408
408
  * 设置表格最小高度
409
- * 默认:300
409
+ * 默认:LINE_HEIGHT * 4
410
410
  */
411
- minHeight: StringNumberType(LINE_HEIGHT * 2),
411
+ minHeight: StringNumberType(LINE_HEIGHT * 4),
412
412
  /**
413
413
  * 设置表格最d大高度
414
414
  * 默认:auto,依赖外层高度
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.15.table.3",
3
+ "version": "2.0.1-beta.15.table.4",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",