@@ -73,76 +73,54 @@ const getStyle = (
73
73
.ant-table-tbody {
74
74
> tr:nth-of-type(2n + 1) {
75
75
background: ${ genLinerGradient ( rowStyle . background ) } ;
76
- &,
77
- > td {
78
- // border-bottom:${ rowStyle . borderWidth } ${ rowStyle . borderStyle } ${ rowStyle . border } !important;
79
- // border-right:${ rowStyle . borderWidth } ${ rowStyle . borderStyle } ${ rowStyle . border } !important;
80
- }
81
76
}
82
77
83
78
> tr:nth-of-type(2n) {
84
79
background: ${ alternateBackground } ;
85
- &,
86
- > td {
87
- // border-bottom:${ rowStyle . borderWidth } ${ rowStyle . borderStyle } ${ rowStyle . border } !important;
88
- // border-right:${ rowStyle . borderWidth } ${ rowStyle . borderStyle } ${ rowStyle . border } !important;
89
- }
90
80
}
91
81
92
82
// selected row
93
83
> tr:nth-of-type(2n + 1).ant-table-row-selected {
94
84
background: ${ selectedRowBackground } , ${ rowStyle . background } !important;
95
- > td {
85
+ > td.ant-table-cell {
86
+ background: transparent !important;
96
87
}
97
88
98
89
// > td.ant-table-cell-row-hover,
99
90
&:hover {
100
91
background: ${ hoverRowBackground } , ${ selectedRowBackground } , ${ rowStyle . background } !important;
101
92
}
102
-
103
- > td {
104
- }
105
93
}
106
94
107
95
> tr:nth-of-type(2n).ant-table-row-selected {
108
96
background: ${ selectedRowBackground } , ${ alternateBackground } !important;
109
- > td {
97
+ > td.ant-table-cell {
98
+ background: transparent !important;
110
99
}
111
100
112
101
// > td.ant-table-cell-row-hover,
113
102
&:hover {
114
103
background: ${ hoverRowBackground } , ${ selectedRowBackground } , ${ alternateBackground } !important;
115
104
}
116
- > td {
117
- }
118
105
}
119
106
120
107
// hover row
121
- > tr:nth-of-type(2n + 1).row- hover {
108
+ > tr:nth-of-type(2n + 1): hover {
122
109
background: ${ hoverRowBackground } , ${ rowStyle . background } !important;
123
- }
124
- > tr:nth-of-type(2n).row-hover {
125
- background: ${ hoverRowBackground } , ${ alternateBackground } !important;
126
- }
127
- > tr:nth-of-type(2n + 1) > td.ant-table-cell-row-hover {
128
- &,
129
- > div:nth-of-type(2) {
130
- // background: ${ hoverRowBackground } , ${ rowStyle . background } !important;
110
+ > td.ant-table-cell-row-hover {
111
+ background: transparent;
131
112
}
132
113
}
133
-
134
- > tr:nth-of-type(2n) > td.ant-table-cell-row-hover {
135
- // background: ${ hoverRowBackground } , ${ alternateBackground } !important;
136
- &,
137
- > div:nth-of-type(2) {
114
+ > tr:nth-of-type(2n):hover {
115
+ background: ${ hoverRowBackground } , ${ alternateBackground } !important;
116
+ > td.ant-table-cell-row-hover {
117
+ background: transparent;
138
118
}
139
119
}
140
120
141
121
> tr.ant-table-expanded-row {
142
122
background: ${ background } ;
143
123
}
144
- > td {
145
- }
146
124
}
147
125
` ;
148
126
} ;
@@ -615,11 +593,8 @@ function TableCellView(props: {
615
593
rowHeight : rowHeight ,
616
594
}
617
595
let { background } = style ;
618
- if ( rowContext . selected ) {
619
- background = genLinerGradient ( handleToSelectedRow ( background ) ) + "," + background ;
620
- }
621
596
if ( rowContext . hover ) {
622
- background = genLinerGradient ( handleToHoverRow ( background ) ) + "," + background ;
597
+ background = 'transparent' ;
623
598
}
624
599
625
600
tdView = (
@@ -655,7 +630,6 @@ function TableRowView(props: any) {
655
630
< TableRowContext . Provider value = { { hover : hover , selected : selected } } >
656
631
< tr
657
632
{ ...props }
658
- className = { hover ? 'row-hover' : '' }
659
633
tabIndex = { - 1 }
660
634
onMouseEnter = { ( ) => setHover ( true ) }
661
635
onMouseLeave = { ( ) => setHover ( false ) }
@@ -999,6 +973,7 @@ export function TableCompView(props: {
999
973
< TableSummary
1000
974
tableSize = { size }
1001
975
istoolbarPositionBelow = { toolbar . position === "below" }
976
+ multiSelectEnabled = { compChildren . selection . children . mode . value === 'multiple' }
1002
977
expandableRows = { Boolean ( expansion . expandModalView ) }
1003
978
summaryRows = { parseInt ( summaryRows ) }
1004
979
columns = { columns }
0 commit comments