fix: 颜色选择器 添加透明度的选择 以及topo图 背景默认透明

This commit is contained in:
zhangyu
2021-11-19 14:25:27 +08:00
parent 6a00be20f0
commit 415d6fadf6
4 changed files with 20 additions and 5 deletions

View File

@@ -1709,7 +1709,7 @@ export default {
return ''
}
;
if (color.length <= 7) {
if (color.indexOf('#') === 0) {
return color
}
const rgb = color.split(',')