table新增 tips 提示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出路由
|
||||
*
|
||||
|
Reference in New Issue
Block a user