table新增 tips 提示

This commit is contained in:
JaguarJack
2021-05-12 08:10:56 +08:00
parent 2f5c62666a
commit af569406cb

View File

@@ -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;
}
/**
* 导出路由
*