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