mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
Table: replace sorting arrow icons with borders to avoid overlap
This commit is contained in:
parent
e64ba965d6
commit
66dd670a53
@ -119,9 +119,9 @@ export default {
|
|||||||
{
|
{
|
||||||
column.sortable
|
column.sortable
|
||||||
? <span class="caret-wrapper" on-click={ ($event) => this.handleSortClick($event, column) }>
|
? <span class="caret-wrapper" on-click={ ($event) => this.handleSortClick($event, column) }>
|
||||||
<i class="sort-caret ascending el-icon-caret-top" on-click={ ($event) => this.handleSortClick($event, column, 'ascending') }>
|
<i class="sort-caret ascending" on-click={ ($event) => this.handleSortClick($event, column, 'ascending') }>
|
||||||
</i>
|
</i>
|
||||||
<i class="sort-caret descending el-icon-caret-bottom" on-click={ ($event) => this.handleSortClick($event, column, 'descending') }>
|
<i class="sort-caret descending" on-click={ ($event) => this.handleSortClick($event, column, 'descending') }>
|
||||||
</i>
|
</i>
|
||||||
</span>
|
</span>
|
||||||
: ''
|
: ''
|
||||||
|
@ -438,27 +438,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sort-caret {
|
.sort-caret {
|
||||||
color: $--color-text-placeholder;
|
width: 0;
|
||||||
width: 14px;
|
height: 0;
|
||||||
overflow: hidden;
|
border: solid 5px transparent;
|
||||||
font-size: 15px;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
&.ascending {
|
&.ascending {
|
||||||
|
border-bottom-color: $--color-text-placeholder;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.descending {
|
&.descending {
|
||||||
|
border-top-color: $--color-text-placeholder;
|
||||||
bottom: 7px;
|
bottom: 7px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascending .sort-caret.ascending {
|
.ascending .sort-caret.ascending {
|
||||||
color: $--color-primary;
|
border-bottom-color: $--color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.descending .sort-caret.descending {
|
.descending .sort-caret.descending {
|
||||||
color: $--color-primary;
|
border-top-color: $--color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden-columns {
|
.hidden-columns {
|
||||||
|
Loading…
Reference in New Issue
Block a user