diff --git a/extend/catcher/library/table/Table.php b/extend/catcher/library/table/Table.php index cb05184..3c80d2d 100644 --- a/extend/catcher/library/table/Table.php +++ b/extend/catcher/library/table/Table.php @@ -146,6 +146,12 @@ class Table */ protected $bind = false; + /** + * @var string + */ + protected $tips = null; + + /** * Table constructor. * @param string $ref @@ -372,6 +378,24 @@ class Table return $this; } + /** + * 表格提示 + * + * @time 2021年05月12日 + * @param string $content + * @param string $type + * @return $this + */ + public function withTips(string $content, string $type = 'success'): Table + { + $this->tips = [ + 'content' => $content, + 'type' => $type + ]; + + return $this; + } + /** * 导出路由 *