From 5ca9c561e834d849710ca779aab97823cf39b143 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 21 六月 2022 17:25:34 +0800
Subject: [PATCH] 2022-06-21

---
 src/mob/colorsketch/index.jsx |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mob/colorsketch/index.jsx b/src/mob/colorsketch/index.jsx
index c7ea1a8..d0190fc 100644
--- a/src/mob/colorsketch/index.jsx
+++ b/src/mob/colorsketch/index.jsx
@@ -61,9 +61,10 @@
 
   handleChange = (color) => {
     let _color = `rgba(${ color.rgb.r }, ${ color.rgb.g }, ${ color.rgb.b }, ${ color.rgb.a })`
+    let _hex = color.hex === 'transparent' ? '#ffffff' : color.hex
 
     this.setState({ color: _color }, () => {
-      this.props.onChange && this.props.onChange(_color)
+      this.props.onChange && this.props.onChange(_color, _hex)
     })
   }
 

--
Gitblit v1.8.0