Browse Source

修复 Widgets\Table 构造方法第三个参数设置无效问题

jqh 4 years ago
parent
commit
a219c49985
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Widgets/Table.php

+ 2 - 2
src/Widgets/Table.php

@@ -41,11 +41,11 @@ class Table extends Widget
             $headers = [];
         }
 
+        $this->class('table default-table');
+
         $this->setHeaders($headers);
         $this->setRows($rows);
         $this->setStyle($style);
-
-        $this->class('table default-table');
     }
 
     /**