button 新增路由跳转
This commit is contained in:
parent
4580815fca
commit
6c22fed48d
@ -33,4 +33,18 @@ class Button extends Component
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支持路由跳转
|
||||
*
|
||||
* @time 2021年04月28日
|
||||
* @param string $route
|
||||
* @return $this
|
||||
*/
|
||||
public function to(string $route): Button
|
||||
{
|
||||
$this->attributes['route'] = $route;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user