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