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({