增加 colorpicker 的 cancel 回调

This commit is contained in:
贤心 2022-08-04 02:58:29 +08:00
parent a10722721a
commit 01e7390e7a

View File

@ -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();
});