浏览代码

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

kele 2 年之前
父节点
当前提交
09c72942c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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' : '',