From 3202a608a2a23d54594a598d07731873dacca6c7 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Sun, 9 May 2021 17:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=93=BE=E6=8E=A5=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/library/table/ComponentsTrait.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/extend/catcher/library/table/ComponentsTrait.php b/extend/catcher/library/table/ComponentsTrait.php index 7600543..8222ded 100644 --- a/extend/catcher/library/table/ComponentsTrait.php +++ b/extend/catcher/library/table/ComponentsTrait.php @@ -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 组件 *