From faad7b887ed3eb9b4dc5976b22160e2a06bedb71 Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Thu, 29 Sep 2022 14:52:37 +0800 Subject: [PATCH] Update FormHelper.php --- src/helper/FormHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index 0ff5d52..a6375e3 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -925,12 +925,13 @@ class="layui-btn" lay-filter="cropper" id="' .$id .'">' . lang('Choose') . ''; } + $options['upload'] = $options['upload'] ?? 'upload'; $str = '
' .$this->label($label,$options) . '
addextend($options) . ' ' . $this->addstyle($options) . ' value="' . $value . '" style="' . $css . ' ;width:65% " type="text" name="' . $name . '" class="layui-input attach ' . $this->addClass($options) . '"' . $this->verify($options) . '/> ' . $croper_container . ' - + ' . $select_container . '
' . $li . '