浏览代码

update widget table

jqh 5 年之前
父节点
当前提交
141d232c7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/小部件/Table.php

+ 1 - 1
src/小部件/Table.php

@@ -33,7 +33,7 @@ class Table extends Widget
      * @param mixed $rows
      * @param mixed $rows
      * @param array $style
      * @param array $style
      */
      */
-    public function __construct($headers = [], $rows = [], $style = [])
+    public function __construct($headers = [], $rows = false, $style = [])
     {
     {
         if ($headers && $rows === false) {
         if ($headers && $rows === false) {
             $rows = $headers;
             $rows = $headers;