|
@@ -169,11 +169,12 @@ trait BaseRule
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * @param array|ColComponentInterface $col
|
|
|
|
|
|
|
+ * @param array|int|ColComponentInterface $col
|
|
|
* @return $this
|
|
* @return $this
|
|
|
*/
|
|
*/
|
|
|
public function col($col)
|
|
public function col($col)
|
|
|
{
|
|
{
|
|
|
|
|
+ if(is_integer($col)) $col = ['span'=>$col];
|
|
|
$this->col = $col;
|
|
$this->col = $col;
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|