From b8aa917c998c0799dcf4f42a9f9c53cb9e9b1f89 Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Sat, 26 Aug 2023 14:10:21 +0800 Subject: [PATCH] Update FormHelper.php --- src/helper/FormHelper.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index 3ed48fe..d73e163 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -1106,7 +1106,7 @@ public function upload($name = 'avatar', $options = [], $value = '') ]; $data_value = $this->getOptionsAttr($name,$cops); $croper_container = << + EOF; @@ -1183,9 +1183,8 @@ public function upload($name = 'avatar', $options = [], $value = '') if ((isset($options['select']) && $options['select']) || !isset($options['select'])) { $select_options = $options; $select_options['filter'] = $options['select'] ?? 'upload-select'; //可选upload-choose - $css .= 'width:53%!important;'; $select_container = <<getOptionsAttr($name,$select_options)} class="layui-btn layui-btn-danger {$options['select']}">{$this->__('Choose')} + EOF; } @@ -1194,7 +1193,6 @@ public function upload($name = 'avatar', $options = [], $value = '')
{$label} @@ -1202,7 +1200,7 @@ public function upload($name = 'avatar', $options = [], $value = '')
getNameValueAttr($name,$value,$options)} lay-verify="{$verify}" type="text" class="layui-input layui-input-upload attach {$this->getClass($options)}" /> {$croper_container} - + {$select_container}
{$li}