瀏覽代碼

增加Grid禁止显示边框功能

jqh 5 年之前
父節點
當前提交
b0d2b4af0c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/Grid.php

+ 4 - 2
src/Grid.php

@@ -523,11 +523,13 @@ class Grid
     }
 
     /**
+     * @param bool $value
+     *
      * @return $this
      */
-    public function withBorder()
+    public function withBorder(bool $value = true)
     {
-        $this->options['show_bordered'] = true;
+        $this->options['show_bordered'] = $value;
 
         return $this;
     }