update Table selection style, close #3159
This commit is contained in:
parent
b63b02ddb8
commit
fc3e16cf01
4 changed files with 44 additions and 250 deletions
|
@ -55,7 +55,8 @@
|
|||
{
|
||||
[`${this.prefixCls}-hidden`]: !this.fixed && this.column.fixed && (this.column.fixed === 'left' || this.column.fixed === 'right'),
|
||||
[`${this.prefixCls}-cell-ellipsis`]: this.column.ellipsis || false,
|
||||
[`${this.prefixCls}-cell-with-expand`]: this.renderType === 'expand'
|
||||
[`${this.prefixCls}-cell-with-expand`]: this.renderType === 'expand',
|
||||
[`${this.prefixCls}-cell-with-selection`]: this.renderType === 'selection'
|
||||
}
|
||||
];
|
||||
},
|
||||
|
|
|
@ -128,7 +128,8 @@
|
|||
return [
|
||||
`${this.prefixCls}-cell`,
|
||||
{
|
||||
[`${this.prefixCls}-hidden`]: !this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right')
|
||||
[`${this.prefixCls}-hidden`]: !this.fixed && column.fixed && (column.fixed === 'left' || column.fixed === 'right'),
|
||||
[`${this.prefixCls}-cell-with-selection`]: column.type === 'selection'
|
||||
}
|
||||
];
|
||||
},
|
||||
|
|
|
@ -179,6 +179,13 @@
|
|||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
// #3159
|
||||
&-with-selection{
|
||||
.@{checkbox-prefix-cls}-wrapper{
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-hidden{
|
||||
visibility: hidden;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue