From 6a71f41a19c64be014dc4d8ba765fc633b720995 Mon Sep 17 00:00:00 2001 From: zh <972939975@qq.com> Date: Wed, 16 Jul 2025 16:03:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Obj/Element/yj-color-picker.js | 4 ++-- static/3rdparty/ewPlugins.min.js | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Obj/Element/yj-color-picker.js b/src/Obj/Element/yj-color-picker.js index ae451e3..e2ae605 100644 --- a/src/Obj/Element/yj-color-picker.js +++ b/src/Obj/Element/yj-color-picker.js @@ -114,7 +114,7 @@ class YJColorPicker { if ((e.target.dataset.min) && value < Number(e.target.dataset.min)) { value = Number(e.target.dataset.min) } - pickAlphaInput.value = value + pickAlphaInput.value = Number(value.toFixed(2)) } }) if (_this.pickAlphaInputValue || _this.pickAlphaInputValue === 0 || _this.pickAlphaInputValue === '0') { @@ -268,7 +268,7 @@ class YJColorPicker { function clickDefineColor(color) { if (pickAlphaInput) { let c = Cesium.Color.fromCssColorString(color) - pickAlphaInput.value = c.alpha * 100 + pickAlphaInput.value = Number((c.alpha * 100).toFixed(2)) } } diff --git a/static/3rdparty/ewPlugins.min.js b/static/3rdparty/ewPlugins.min.js index 6500d89..fa21b25 100644 --- a/static/3rdparty/ewPlugins.min.js +++ b/static/3rdparty/ewPlugins.min.js @@ -796,7 +796,9 @@ clear: (0, n.isFunction)(e.clear) ? e.clear : null, startMainCallback: (0, - n.isFunction)(e.startMainCallback) ? e.startMainCallback : null + n.isFunction)(e.startMainCallback) ? e.startMainCallback : null, + clickDefineColor: (0, + n.isFunction)(e.clickDefineColor) ? e.clickDefineColor : null }, o.length) for (var i = 0; i < o.length; ) @@ -1019,7 +1021,9 @@ r.hsba = t, p(r), h(r), - g(r, i, a) + g(r, i, a), + r.config.clickDefineColor && r.config.clickDefineColor((0, + n.getCss)(e.target, "background-color")) }, !1), e.addEventListener("blur", function(e) { (0,