Skip to content

Commit

Permalink
Create FormHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored Jul 19, 2022
1 parent fdb36f3 commit c7d653b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ public static function color($name = '', $options = [], $value = '')
$str = '<div class="layui-form-item">
<label class="layui-form-label ' . self::labelRequire($options) . '">' . lang($label) . '</label>
<div class="layui-input-block">
<input ' . self::addstyle($options) . ' class="' . self::addClass($options) . '" type="hidden" name="' . $name . '" value="' . $value . '"' . self::filter($options) . self::readonlyOrdisabled($options) . '/>
<div ' . self::addextend($options) . ' id="' . $id . '" lay-filter="colorPicker"></div>
<input ' . self::addstyle($options) . ' class="layui-input layui-input-inline' . self::addClass($options) . '" type="text" name="' . $name . '" value="' . $value . '"' . self::filter($options) . self::readonlyOrdisabled($options) . '/>
<div ' . self::addextend($options) . ' id="' . $id . '" lay-filter="colorPicker" data-name="' . $name . '"></div>
</div>
</div>';
return $str;
Expand Down

0 comments on commit c7d653b

Please sign in to comment.