From 01e7390e7aa3b59f7a2f3be18ec0e1127425ecf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 4 Aug 2022 02:58:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20colorpicker=20=E7=9A=84=20?= =?UTF-8?q?cancel=20=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/colorpicker.js | 2 ++ 1 file changed, 2 insertions(+) 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(); });