Skip to content

NoticeBar通知栏 #4632

Closed
Closed
@StrangeSugar

Description

@StrangeSugar

重现链接

https://github.com/youzan/vant-weapp/blob/dev/dist/notice-bar/index.js

Vant 版本

微信小程序版

描述一下你遇到的问题。

1、delay属性 文档中写的单位是s,应该是ms 。源码里边儿也没转换,wx.createAnimation() delay属性是ms。
2、切换组件时会,出现闪烁,切无法从最前面开始播放。原因是animationData: this.resetAnimation .translateX(this.wrapWidth) .step() .export()中的translateX(this.wrapWidth),问题。将translateX(0)后不会出现切换时闪烁

重现步骤

1、delay属性 文档中写的单位是s,应该是ms 。源码里边儿也没转换,wx.createAnimation() delay属性是ms。
2、切换组件时会,出现闪烁,切无法从最前面开始播放。原因是animationData: this.resetAnimation .translateX(this.wrapWidth) .step() .export()中的translateX(this.wrapWidth),问题。将translateX(0)后不会出现切换时闪烁

设备/浏览器

微信开发者工具

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions