Переглянути джерело

按钮有背景图片的情况下不需要背景色

liuwei 4 роки тому
батько
коміт
88b760c1e4
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/renderer/components/Button.vue

+ 1 - 1
src/renderer/components/Button.vue

@@ -12,10 +12,10 @@
                     zIndex:item.ZIndex,
                     display:item.IsVisibility ? 'block' : 'none',
                     fontSize:item.FontSize*bigScale + 'px',
-                    backgroundColor:`#${item.BrackgroupStr.slice(3)}`,
                     backgroundImage:item.BackIcon ? 'url('+require(`../../../static/Data/${item.BackIcon}`)+')' : null,
                     backgroundSize:'100% 100%',
                     backgroundRepeat:'no-repeat',
+                    backgroundColor:item.BackIcon ? null : `#${item.BrackgroupStr.slice(3)}`,
                     color:`#${item.ForegroundStr.slice(3)}`,
                     textAlign:'center',
                     lineHeight:item.Height*bigScale + 'px',