Răsfoiți Sursa

fix: 标题栏组件图片高度自适应

kele 2 ani în urmă
părinte
comite
09c72942c9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      sheep/components/s-title-block/s-title-block.vue

+ 1 - 1
sheep/components/s-title-block/s-title-block.vue

@@ -60,7 +60,7 @@
 
   // 组件样式
   const elStyles = {
-    background: `url(${sheep.$url.cdn(props.data.src)}) no-repeat top center / 100% 100%`,
+    background: `url(${sheep.$url.cdn(props.data.src)}) no-repeat top center / 100% auto`,
     height: props.styles.height + 'px',
     fontStyle: props.data.title.other.includes('italic') ? 'italic' : 'normal',
     fontWeight: props.data.title.other.includes('bold') ? 'bold' : '',