From ef69476a4c86d5a1cec2601342d3c40c87cf9cb0 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Thu, 13 May 2021 08:46:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=8D=E5=88=B6=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 8222ded..f6c0c3c 100644 --- a/extend/catcher/library/table/ComponentsTrait.php +++ b/extend/catcher/library/table/ComponentsTrait.php @@ -97,6 +97,18 @@ trait ComponentsTrait return $this->component('url', $field ? : $this->attributes['prop']); } + /** + * 复制组件 + * + * @time 2021年05月12日 + * @param null $field + * @return ComponentsTrait|HeaderItem + */ + public function withCopyComponent($field = null) + { + return $this->component('copy', $field ? : $this->attributes['prop']); + } + /** * download 组件 *