Browse Source

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

kele 2 years ago
parent
commit
09c72942c9
1 changed files with 1 additions and 1 deletions
  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 = {
   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',
     height: props.styles.height + 'px',
     fontStyle: props.data.title.other.includes('italic') ? 'italic' : 'normal',
     fontStyle: props.data.title.other.includes('italic') ? 'italic' : 'normal',
     fontWeight: props.data.title.other.includes('bold') ? 'bold' : '',
     fontWeight: props.data.title.other.includes('bold') ? 'bold' : '',