收藏
回答

自定义组件中 cover-image和cover-view 真机不显示

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 客户端 7.0.4 2.7.0

- 当前 Bug 的表现(可附上截图)

开发者工具:


真机:



- 预期表现


- 复现路径

最外层fixed定位的cover-view 中间圆绝对定位 其余的flex布局  图片cover-image不显示

- 提供一个最简复现 Demo


  • <ccover-viewover-viewclass="tabbar-index--tabbar"style="height:75px">

    1. <cover-viewclass="tabbar-index--tabbar__items">

      1. <cover-viewclass="tabbar-index--tabbar__item tabbar-index--tabbar__item--1"data-e-tap-a-a="home"data-e-tap-so="this">

          1. <cover-imagesrc="cloud://dcmp-taro-1a6047.609c-dcmp-taro-1a6047/tabbar/home.svg"></cover-image>

      2. </cover-view>

    2. <cover-viewclass="tabbar-index--tabbar__item tabbar-index--tabbar__item--2"data-e-tap-a-a="mine"data-e-tap-so="this">

        1. <cover-imagesrc="cloud://dcmp-taro-1a6047.609c-dcmp-taro-1a6047/tabbar/mine.svg"></cover-image>

    3. </cover-view>

  • </cover-view>

    1. <cover-viewclass="tabbar-index--tabbar__circle"data-e-tap-a-a="circle"data-e-tap-so="this">

        1. <cover-imagesrc="cloud://dcmp-taro-1a6047.609c-dcmp-taro-1a6047/tabbar/loc.svg"></cover-image>

    2. </cover-view>

  • </cover-view>


回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2019-05-15

    cover-view是原生组件,原生组件不支持svg格式

    2019-05-15
    有用
    回复 1
    • 2019-05-15

      明白了  是本身缺陷吗 还是以后会支持

      2019-05-15
      回复
登录 后发表内容