Explorar o código

Merge pull request #1878 from joker9657/2.0

fix 表格字段排序icon 相反
Jiang Qinghua %!s(int64=3) %!d(string=hai) anos
pai
achega
eb8ed6390c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Grid/Column/Sorter.php

+ 2 - 2
src/Grid/Column/Sorter.php

@@ -72,7 +72,7 @@ class Sorter implements Renderable
     public function render()
     {
         $type = 'desc';
-        $icon = 'up';
+        $icon = 'down';
         $active = '';
 
         if ($this->isSorted()) {
@@ -80,7 +80,7 @@ class Sorter implements Renderable
             $active = 'active';
 
             if ($this->sort['type'] === 'asc') {
-                $icon = 'down';
+                $icon = 'up';
             }
         }