From a10722721a1e407adafcf175b53a4065e171b686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 4 Aug 2022 02:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20colorpicker=20=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/colorpicker.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/colorpicker.html b/examples/colorpicker.html index 22a36e0e..dcf840f7 100644 --- a/examples/colorpicker.html +++ b/examples/colorpicker.html @@ -66,6 +66,12 @@ body{padding:20px;} layui.$('#LAY-test1').val(color); document.body.style.backgroundColor = color; } + ,cancel: function(color){ + console.log('cancel', color); + } + ,close: function(color){ + console.log('close', color); + } }); colorpicker.render({