diff --git a/src/modules/colorpicker.js b/src/modules/colorpicker.js index 1ca616d5..adc50be7 100644 --- a/src/modules/colorpicker.js +++ b/src/modules/colorpicker.js @@ -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(); });