增加 colorpicker 的 cancel 回调
This commit is contained in:
parent
a10722721a
commit
01e7390e7a
@ -704,6 +704,8 @@ layui.define(['jquery', 'lay'], function(exports){
|
||||
}
|
||||
elemColorBoxSpan[0].style.background = that.color || '';
|
||||
|
||||
// 取消选择的回调
|
||||
typeof options.cancel === 'function' && options.cancel(that.color);
|
||||
that.removePicker();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user