增加 colorpicker 的 cancel 回调

pull/1108/head
贤心 2022-08-04 02:58:29 +08:00
parent a10722721a
commit 01e7390e7a
1 changed files with 2 additions and 0 deletions

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