Skip to content

Commit 791bcd7

Browse files
committed
修复content组件
1 parent db39b71 commit 791bcd7

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/Layout/Content.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ public function body($content)
2828
}
2929

3030

31-
public function row($content, $gutter = 0)
31+
public function row($content)
3232
{
3333

3434
if ($content instanceof Closure) {
3535
$row = new Row();
36-
$row->gutter($gutter);
3736
call_user_func($content, $row);
3837
$this->addRow($row);
3938
} else {
40-
$row = new Row();
41-
$row->gutter($gutter);
39+
$row = new Row($content);
4240
$this->addRow($row);
4341
}
4442
return $this;

src/Layout/Row.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class Row extends Component
1818
protected $gutter = 0;
1919

2020

21-
22-
23-
2421
public function __construct($content = '')
2522
{
2623
if (!empty($content)) {
@@ -37,16 +34,6 @@ public function column($width, $content)
3734
}
3835

3936

40-
public function class($class)
41-
{
42-
if (is_string($class)) {
43-
$class = [$class];
44-
}
45-
$this->class = $class;
46-
return $this;
47-
}
48-
49-
5037
/**
5138
* @param Column $column
5239
*/
@@ -65,9 +52,4 @@ public function gutter($gutter)
6552
$this->gutter = $gutter;
6653
return $this;
6754
}
68-
69-
70-
71-
72-
7355
}

0 commit comments

Comments
 (0)