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