修改自定义颜色插件
This commit is contained in:
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user