|
5 | 5 | .v2-table {
|
6 | 6 | position: relative;
|
7 | 7 | width: 100%;
|
| 8 | + height: 100%; |
8 | 9 | overflow: hidden;
|
9 | 10 | box-sizing: border-box;
|
10 | 11 | background-color: @background-color-white;
|
11 | 12 | font-size: @normal-font-size;
|
12 | 13 | font-weight: @font-weight-normal;
|
13 | 14 | color: @color-primary;
|
14 |
| - *, *::after, *::before { |
| 15 | + table, tbody, tr, td, th { |
15 | 16 | position: relative;
|
16 | 17 | box-sizing: border-box;
|
17 | 18 | margin: 0;
|
18 | 19 | padding: 0;
|
19 | 20 | }
|
20 |
| - .beautify-scroll__y-thumb, |
21 |
| - .beautify-scroll__x-thumb, |
22 |
| - .beautify-scroll__x-bar, |
23 |
| - .beautify-scroll__y-bar { |
24 |
| - position: absolute; |
25 |
| - } |
26 |
| - .v2-table-fixed { |
27 |
| - position: absolute; |
28 |
| - z-index: @z-index-min; |
29 |
| - top: 0; |
30 |
| - bottom: 0; |
31 |
| - overflow: hidden; |
32 |
| - &.v2-table__fixed-left { |
33 |
| - left: 0; |
34 |
| - } |
35 |
| - &.v2-table__fixed-right { |
36 |
| - right: 0; |
37 |
| - } |
38 |
| - } |
39 | 21 | }
|
40 | 22 |
|
41 | 23 | .v2-table__table-wrapper, .v2-table__table-container {
|
42 | 24 | width: 100%;
|
| 25 | + height: 100%; |
43 | 26 | overflow: hidden;
|
44 | 27 | }
|
45 | 28 |
|
46 |
| -.v2-table__header-wrapper, .v2-table__body-wrapper, .v2-table__footer-wrapper { |
47 |
| - width: 100%; |
48 |
| - overflow: hidden; |
| 29 | +.v2-table__header-wrapper { |
| 30 | + // overflow: hidden; |
| 31 | +} |
| 32 | + |
| 33 | +.v2-table__body-wrapper, .v2-table-fixed__body-wrapper { |
| 34 | + // height: 148px; |
49 | 35 | }
|
50 | 36 |
|
51 | 37 | .v2-table__col-group {
|
|
56 | 42 | }
|
57 | 43 |
|
58 | 44 | .v2-table__body, .v2-table__header, .v2-table__footer {
|
59 |
| - display: table; |
60 | 45 | table-layout: fixed;
|
61 |
| - width: 100%; |
62 | 46 | &.v2-table__border {
|
63 | 47 | .v2-table__cell {
|
64 | 48 | border-right: 1px solid @border-regular-color;
|
|
70 | 54 | &.v2-table__header-border {
|
71 | 55 | border-top: 1px solid @border-primary-color;
|
72 | 56 | }
|
73 |
| - &.v2-table__body-border { |
74 |
| - .v2-table__empty-data { |
75 |
| - border-right: 1px solid @border-primary-color; |
76 |
| - border-left: 1px solid @border-primary-color; |
77 |
| - } |
78 |
| - } |
79 | 57 | &.v2-table__footer-border {
|
80 | 58 |
|
81 | 59 | }
|
82 | 60 | }
|
83 | 61 |
|
84 |
| -.v2-table__table-thead { |
85 |
| - display: table-header-group; |
86 |
| -} |
87 |
| - |
88 |
| -.v2-table__header-row { |
89 |
| - display: table-row; |
| 62 | +.v2-table__header th { |
| 63 | + height: 40px; |
90 | 64 | }
|
91 | 65 |
|
92 |
| -.v2-table__table-tbody { |
93 |
| - display: table-row-group; |
| 66 | +.v2-table__footer td, .v2-table__body td { |
| 67 | + height: 44px; |
| 68 | + .cell { |
| 69 | + color: @color-primary; |
| 70 | + white-space: normal; |
| 71 | + word-wrap: break-word; |
| 72 | + word-break: break-all; |
| 73 | + line-height: 1.5; |
| 74 | + } |
94 | 75 | }
|
95 | 76 |
|
96 | 77 | .v2-table__cell {
|
97 | 78 | border-bottom: 1px solid @border-regular-color;
|
98 | 79 | cursor: default;
|
99 |
| - font-size: 14px; |
100 |
| - padding: 10px 5px; |
| 80 | + font-size: @normal-font-size; |
101 | 81 | user-select: none;
|
102 | 82 | vertical-align: middle;
|
103 |
| - display: table-cell; |
104 | 83 | overflow: hidden;
|
105 | 84 | text-align: center;
|
106 | 85 | &.v2-table__column-cell {
|
107 |
| - color: @color-thead; |
| 86 | + // color: @color-thead; |
| 87 | + color: @color-regular2; |
108 | 88 | white-space: nowrap;
|
109 | 89 | overflow: hidden;
|
110 | 90 | text-overflow: ellipsis;
|
| 91 | + font-weight: 400; |
111 | 92 | background-color: @background-color-white;
|
112 | 93 | &.sortable {
|
113 | 94 | cursor: pointer;
|
|
119 | 100 | border-bottom: 5px solid @background-color-light
|
120 | 101 | }
|
121 | 102 | }
|
122 |
| - &.v2-table__row-cell { |
123 |
| - color: @color-primary; |
124 |
| - // white-space: normal; |
125 |
| - // word-wrap: break-word; |
126 |
| - // word-break: break-all; |
127 |
| - /** 简化列的固定,后续提供类似 rowHeight/colHeight 等属性来设置行高 **/ |
128 |
| - white-space: nowrap; |
129 |
| - text-overflow: ellipsis; |
130 |
| - } |
131 | 103 | &.v2-table__footer-cell {
|
132 | 104 | background-color: @background-color-hover;
|
133 | 105 | }
|
134 | 106 | &.text-left {
|
135 |
| - text-align: left |
| 107 | + text-align: left; |
136 | 108 | }
|
137 | 109 | &.text-right {
|
138 |
| - text-align: right |
| 110 | + text-align: right; |
139 | 111 | }
|
140 | 112 | }
|
141 | 113 |
|
|
171 | 143 | background-color: @background-color-white;
|
172 | 144 | transition: @all-transition;
|
173 | 145 | font-size: 0;
|
174 |
| - display: table-row; |
175 | 146 | &.row-hover {
|
176 | 147 | background-color: @background-color-hover;
|
177 | 148 | }
|
|
182 | 153 |
|
183 | 154 | .v2-table__empty-data {
|
184 | 155 | position: relative;
|
185 |
| - min-height: 175px; |
| 156 | + height: 144px; |
186 | 157 | box-sizing: border-box;
|
187 | 158 | font-size: @normal-font-size;
|
188 | 159 | color: @color-thead;
|
189 | 160 | text-align: center;
|
190 |
| - border-bottom: 1px solid @border-primary-color; |
| 161 | + &.v2-table__empty-border { |
| 162 | + border-right: 1px solid @border-primary-color; |
| 163 | + border-left: 1px solid @border-primary-color; |
| 164 | + border-bottom: 1px solid @border-primary-color; |
| 165 | + } |
191 | 166 | .v2-table__empty-default {
|
192 | 167 | position: absolute;
|
193 | 168 | left: 50%;
|
|
227 | 202 | top: 0;
|
228 | 203 | height: 100%;
|
229 | 204 | width: 100%;
|
230 |
| - z-index: @z-index-min; |
| 205 | + z-index: @z-index-normal; |
231 | 206 | // background-color: transparent;
|
232 | 207 | background: rgba(255,255,255,0.7);
|
233 | 208 | .v2-table__loading-spinner {
|
|
0 commit comments