mirror of https://github.com/layui/layui
更新 colorpicker 组件示例
parent
a089d87c96
commit
a10722721a
|
@ -66,6 +66,12 @@ body{padding:20px;}
|
||||||
layui.$('#LAY-test1').val(color);
|
layui.$('#LAY-test1').val(color);
|
||||||
document.body.style.backgroundColor = color;
|
document.body.style.backgroundColor = color;
|
||||||
}
|
}
|
||||||
|
,cancel: function(color){
|
||||||
|
console.log('cancel', color);
|
||||||
|
}
|
||||||
|
,close: function(color){
|
||||||
|
console.log('close', color);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
colorpicker.render({
|
colorpicker.render({
|
||||||
|
|
Loading…
Reference in New Issue