From 171c37ec866c51a49b3a370bfa106ce68240facd Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Sun, 2 Jul 2023 10:49:48 +0800 Subject: [PATCH] Update FormHelper.php --- src/helper/FormHelper.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index 7f31b78..6071f40 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -210,7 +210,7 @@ public function input(string $name = '', string $type = 'text',array $options = $disorread = $this->readonlyOrdisabled($options); if ($type == 'hidden') { return <<getDataPropAttr($name,$value,$options)} autocomplete="off" class="layui-input { $this->getClass($options)} {$disorread}/>; + getDataPropAttr($name,$value,$options)} autocomplete="off" class="layui-input { $this->getClass($options)} {$disorread}/> EOF; } $str = << ; +
  • EOF; break; case 'image': @@ -1070,7 +1070,7 @@ public function upload($name = 'avatar', $options = [], $value = '') break; case 'office': $li .= << ; +
  • EOF; break; default: @@ -1103,7 +1103,7 @@ public function upload($name = 'avatar', $options = [], $value = '') $options['select'] = $options['select'] ?? 'upload-select'; //可选upload-choose $css .= 'width:53%!important;'; $select_container = <<{$this->__('Choose')}; + EOF; } $label = $this->label($name,$options) ; @@ -1244,7 +1244,6 @@ protected function tips($options = []) $tips = << {$this->__($options['tips'])} EOF; - ; } return $tips; }