Selaa lähdekoodia

Merge pull request #1878 from joker9657/2.0

fix 表格字段排序icon 相反
Jiang Qinghua 3 vuotta sitten
vanhempi
commit
eb8ed6390c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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';
             }
         }