From 791bcd72976f381e9e48842c57d5bedb5eb77c45 Mon Sep 17 00:00:00 2001 From: zhangwei <296404875@qq.com> Date: Mon, 30 Mar 2020 13:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcontent=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Layout/Content.php | 6 ++---- src/Layout/Row.php | 18 ------------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/src/Layout/Content.php b/src/Layout/Content.php index c1ecde0..c63f35c 100644 --- a/src/Layout/Content.php +++ b/src/Layout/Content.php @@ -28,17 +28,15 @@ public function body($content) } - public function row($content, $gutter = 0) + public function row($content) { if ($content instanceof Closure) { $row = new Row(); - $row->gutter($gutter); call_user_func($content, $row); $this->addRow($row); } else { - $row = new Row(); - $row->gutter($gutter); + $row = new Row($content); $this->addRow($row); } return $this; diff --git a/src/Layout/Row.php b/src/Layout/Row.php index bb03fa4..76b083b 100644 --- a/src/Layout/Row.php +++ b/src/Layout/Row.php @@ -18,9 +18,6 @@ class Row extends Component protected $gutter = 0; - - - public function __construct($content = '') { if (!empty($content)) { @@ -37,16 +34,6 @@ public function column($width, $content) } - public function class($class) - { - if (is_string($class)) { - $class = [$class]; - } - $this->class = $class; - return $this; - } - - /** * @param Column $column */ @@ -65,9 +52,4 @@ public function gutter($gutter) $this->gutter = $gutter; return $this; } - - - - - }