Skip to content

Commit

Permalink
Merge pull request #1878 from joker9657/2.0
Browse files Browse the repository at this point in the history
fix 表格字段排序icon 相反
  • Loading branch information
jqhph authored Sep 7, 2022
2 parents 4b4dabf + eef3779 commit eb8ed63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Grid/Column/Sorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ protected function getSortName()
public function render()
{
$type = 'desc';
$icon = 'up';
$icon = 'down';
$active = '';

if ($this->isSorted()) {
$type = $this->sort['type'] == 'desc' ? 'asc' : 'desc';
$active = 'active';

if ($this->sort['type'] === 'asc') {
$icon = 'down';
$icon = 'up';
}
}

Expand Down

0 comments on commit eb8ed63

Please sign in to comment.