uni-notice-bar报错
![z***@163.com](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/000/09/82/81_avatar_mid.jpg?v=1620367540)
z***@163.com
- 发布:2019-05-05 15:19
- 更新:2020-09-02 16:54
- 阅读:3799
![6***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/7905f094e1e1a54be3b3a5ec1af768be.png)
组件144行增加:
// #ifdef MP-WEIXIN
this.createSelectorQuery().select(`#${this.elId}`).boundingClientRect().exec((ret) => {
this.animation = `notice ${ret[0].width / this.speed}s linear infinite both`;
});
// #endif
![1***@qq.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/81374b474f6cc22abba77fc225f0584a.png)
同样是遇到这个问题,但是我不知道怎么复现
<uni-notice-bar speed="50" :show-icon="true" :scrollable="true" :single="true" text="123" />
1***@qq.com
父容器不能加display:flex,加了的话文字就消失了
2023-03-14 16:01