diff --git a/examples/colorpicker.html b/examples/colorpicker.html
index dcf840f7..2243ca83 100644
--- a/examples/colorpicker.html
+++ b/examples/colorpicker.html
@@ -60,13 +60,14 @@ body{padding:20px;}
//,predefine: true //开启预定义颜色
//,colors: ['#F00','#0F0','#00F','rgb(255, 69, 0)','rgba(255, 69, 0, 0.5)']
,change: function(color){
- document.body.style.backgroundColor = color;
+ this.done(color);
}
,done: function(color){
layui.$('#LAY-test1').val(color);
document.body.style.backgroundColor = color;
}
,cancel: function(color){
+ this.done(color);
console.log('cancel', color);
}
,close: function(color){