新增链接组件
This commit is contained in:
parent
ed0521dc92
commit
3202a608a2
@ -85,6 +85,18 @@ trait ComponentsTrait
|
||||
return $this->component('preview', $field ? : $this->attributes['prop']);
|
||||
}
|
||||
|
||||
/**
|
||||
* 链接跳转
|
||||
*
|
||||
* @time 2021年05月09日
|
||||
* @param null $field
|
||||
* @return ComponentsTrait|HeaderItem
|
||||
*/
|
||||
public function withUrlComponent($field = null)
|
||||
{
|
||||
return $this->component('url', $field ? : $this->attributes['prop']);
|
||||
}
|
||||
|
||||
/**
|
||||
* download 组件
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user