update:优化基础组件

This commit is contained in:
JaguarJack
2021-04-20 08:45:08 +08:00
parent be91cfbc4f
commit ceb5a396d8
7 changed files with 60 additions and 7 deletions

View File

@@ -139,14 +139,15 @@ class Editor extends FormComponent
* 上传配置
*
* @time 2021年04月11日
* @param int $size
* @return $this
*/
public function uploadConf(): Editor
public function uploadConf(int $size = 10): Editor
{
$this->props([
'uploadConf' => array_merge([
'url' => Form::uploadImageUrl(),
'size' => 0.1,
'size' => $size,
], Form::authorization())
]);