From 231cc7469a005fcb9bbde6d0699477c2160dbc5b Mon Sep 17 00:00:00 2001 From: funadmin <994927909@qq.com> Date: Tue, 19 Jul 2022 14:38:24 +0800 Subject: [PATCH] Update FormHelper.php --- src/helper/FormHelper.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helper/FormHelper.php b/src/helper/FormHelper.php index d3fde91..6afeb2f 100644 --- a/src/helper/FormHelper.php +++ b/src/helper/FormHelper.php @@ -543,13 +543,12 @@ public static function tags($name = '', $options = [], $value = '') public static function color($name = '', $options = [], $value = '') { - $id = $options['id'] ?? $name; - $label = $options['label'] ?? $name; + $id = $options['id'] ?? $name;$label = $options['label'] ?? $name;$format = $options['format'] ?? 'hex'; $str = '
-
+
'; return $str;