File tree Expand file tree Collapse file tree 5 files changed +13
-1
lines changed
tests/unit/specs/__snapshots__ Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 133133 }
134134 }
135135
136+ // 展开行
136137 tr .ve-table-expand-tr {
137138 display : table-row ;
138139 }
139140
141+ // 滚动中效果
142+ tr .ve-table-body-row-scrolling {
143+ & > td {
144+ background-color : @ve-table-body-row-row-scrolling-background-color ;
145+ }
146+ }
147+
140148 // 斑马纹
141149 & .ve-table-stripe {
142150 tr .ve-table-body-tr :nth- child(2 n + 1 ) td {
161169 }
162170 }
163171 }
172+
164173 .ve-table-body-tr {
165174 .ve-table-body-td {
166175 // 固定左列、右列
Original file line number Diff line number Diff line change 2020@ve-table-body-row-stripe-background-color : @ve-primary-color ;
2121@ve-table-body-row-hover-background-color : @ve-primary-color ;
2222@ve-table-body-row-highlight-background-color : #000 ;
23+ @ve-table-body-row-row-scrolling-background-color : #141414 ;
2324@ve-table-header-background-color : #1d1d1d ;
2425@ve-table-head-text-color : @ve-dark-text-color ;
2526@ve-table-body-text-color : @ve-dark-text-color ;
Original file line number Diff line number Diff line change 1919@ve-table-body-row-stripe-background-color : #fafafa ;
2020@ve-table-body-row-hover-background-color : #f5f7fa ;
2121@ve-table-body-row-highlight-background-color : #e0f3ff ;
22+ @ve-table-body-row-row-scrolling-background-color : #fff ;
2223@ve-table-header-background-color : #fafafa ;
2324@ve-table-head-text-color : @ve-default-text-color ;
2425@ve-table-body-text-color : @ve-default-text-color ;
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export default {
1515
1616 result = {
1717 [ clsName ( "body-tr" ) ] : true ,
18+ [ clsName ( "body-row-scrolling" ) ] : true ,
1819 } ;
1920
2021 return result ;
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ exports[`veTable virtual scroll render same row height 1`] = `
103103`;
104104
105105exports[`veTable virtual scroll virtual scroll palceholder 1`] = `
106- <tr class = " ve-table-body-tr" >
106+ <tr class = " ve-table-body-tr ve-table-body-row-scrolling " >
107107 <td colspan = " 1" ></td >
108108</tr >
109109`;
You can’t perform that action at this time.
0 commit comments