新增 preview 组件 & table 的excel 操作设置默认值

This commit is contained in:
JaguarJack
2021-05-04 01:25:40 +08:00
parent c221f0fe4a
commit 174e9e39c0
2 changed files with 22 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ class Table
* @param string $usedModel
* @return $this
*/
public function withUsedModelAndExcel(string $usedModel, array $excel): Table
public function withUsedModelAndExcel(string $usedModel, array $excel = []): Table
{
foreach ($excel as $e) {
$this->excel[] = $e->render();