新增链接组件

This commit is contained in:
JaguarJack 2021-05-09 17:09:53 +08:00
parent ed0521dc92
commit 3202a608a2

View File

@ -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 组件
*