Browse Source

更新 colorpicker 回调示例

pull/1108/head
贤心 2 years ago
parent
commit
d31792d362
  1. 3
      examples/colorpicker.html

3
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){

Loading…
Cancel
Save