jd-opensource / jd-opensource/taro-ui

Noticebar随着state更新不断抖动

Open
#713 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
页面只引用了基础库的swiper和noticebar组件,

**复现步骤**
1,swiper切换item,noticebar会有抖动效果

```js
// swiper 代码
public changeSwiperIndex = (e) => {
this.setState({
current: e.detail.current,
});
}








```

```
// noticebar代码
认真提供技术服务,提供各领域专业的解决方案,打通线上线下营销场景
```

**期望行为**
不再出现抖动
**报错信息**
出现抖动效果

**系统信息**
- Taro 版本 [e.g. v.1.3.10]
- Taro UI 版本 [e.g. v.2.2.1]
- 报错平台 [weapp]

**补充信息**
把onChange方法去掉好了

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.