Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabs切换时,如果swiper也在同时切换,tabs就会卡顿1秒左右 #1984

Closed
vvliu opened this issue Dec 28, 2022 · 1 comment
Closed
Assignees
Milestone

Comments

@vvliu
Copy link

vvliu commented Dec 28, 2022

NutUI scenes(nutui 场景)

小程序(@nutui/nutui-taro)

NutUI-vue version(nutui-vue 版本)

3.3.1

Vue version(vue 版本)

3.2.45

Operating environment(运行环境)

dev:weapp

Citation method(引用方式)

npm

Node version(node 版本)

16.16.0

Browser and its version(浏览器及其版本)

Chrome 108.0.5359.72

System and its version(系统及其版本)

win 11

Taro environmental information(taro 环境信息)

Taro CLI 3.5.10 environment info:
System:
OS: Windows 10
Binaries:
Node: 16.16.0 - C:\Program Files\nodejs\node.EXE
npm: 8.17.0 - C:\Program Files\nodejs\npm.CMD

Steps to reproduce(重现步骤)

swiper 和 tabs同时切换就会卡顿,tabs点击有时1秒左右才切换过来

What is expected?(期望的结果是什么?)

不卡顿

What is actually happening?(实际的结果是什么?)

卡顿

@richard1015
Copy link
Contributor

richard1015 commented Feb 28, 2023

经排查,开启swiper 自动轮播后会造成 线程阻塞卡顿,暂时可以关闭自动轮播, 或者 tabs 设置 :animated-time="0" 关闭动画

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants