瀏覽代碼

修正svgicon图标不居中问题

zhontai 2 年之前
父節點
當前提交
13ea23c769
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/svgIcon/index.vue

+ 1 - 1
src/components/svgIcon/index.vue

@@ -50,7 +50,7 @@ const setIconSvgStyle = computed(() => {
 })
 // 设置图片样式
 const setIconImgOutStyle = computed(() => {
-  return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`
+  return `width: ${props.size}px;height: ${props.size}px;line-height: ${props.size}px;display: inline-block;overflow: hidden;`
 })
 // 设置图片样式
 // https://gitee.com/lyt-top/vue-next-admin/issues/I59ND0