add:新增excel的导入导出组件

This commit is contained in:
JaguarJack
2021-04-24 20:30:28 +08:00
parent f67a4f33d5
commit 48c41f7948
4 changed files with 170 additions and 2 deletions

View File

@@ -30,9 +30,9 @@ trait ComponentsTrait
* @param null $updateFields
* @return HeaderItem
*/
public function withSwitchComponent($updateFields = null): HeaderItem
public function withSwitchComponent(array $options = [], $updateFields = null): HeaderItem
{
return $this->component('switch_', $updateFields ? : $this->attributes['prop']);
return $this->component('switch_', $updateFields ? : $this->attributes['prop'], $options);
}
/**