From b7050a19181e673191ca265670799e20320d73ab Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Tue, 20 Feb 2024 17:03:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=BD=E5=B1=89=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Traits/CustomActionTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Traits/CustomActionTrait.php b/app/Traits/CustomActionTrait.php index 20dd281..ce91dbb 100644 --- a/app/Traits/CustomActionTrait.php +++ b/app/Traits/CustomActionTrait.php @@ -26,7 +26,7 @@ trait CustomActionTrait case 'drawer': $form = $this->form(false)->api($this->getStorePath())->onEvent([]); - $drawer = Drawer::make()->title(__('admin.create'))->body($form); + $drawer = Drawer::make()->title(__('admin.create'))->body($form)->closeOnOutside(); if($width){ $drawer->width($width); }else{ @@ -68,7 +68,7 @@ trait CustomActionTrait ->redirect('') ->onEvent([]); - $drawer = Drawer::make()->title(__('admin.edit'))->body($form); + $drawer = Drawer::make()->title(__('admin.edit'))->body($form)->closeOnOutside(); if($width){ $drawer->width($width);