Переглянути джерело

fix 表格字段排序bug

joker9657 3 роки тому
батько
коміт
eef3779ecc
1 змінених файлів з 2 додано та 2 видалено
  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';
             }
         }