mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 08:33:12 +08:00
更新 colorpicker 组件示例
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user