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

n-spin进度环被js堵塞 #2506

Closed
dostufffancy opened this issue Feb 24, 2022 · 7 comments
Closed

n-spin进度环被js堵塞 #2506

dostufffancy opened this issue Feb 24, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@dostufffancy
Copy link

dostufffancy commented Feb 24, 2022

TuSimple/naive-ui version (版本)

2.25.5

Vue version (Vue 版本)

3.2.31

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

Chrome 98.0.4758.102

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

windows 10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/currying-hooks-ef7g87?file=/src/App.vue

Reappearance steps (重现步骤)

点击alert按钮,模拟堵塞状态

Expected results (期望的结果)

执行alert时,n-spin仍然旋转

Actual results (实际的结果)

执行alert时,n-spin停止旋转

Remarks (补充说明)

关于codesandbox重现链接,如果报错。多刷新几次

@github-actions github-actions bot added the untriaged need to sort label Feb 24, 2022
@07akioni
Copy link
Collaborator

没办法,js 会阻塞 ui 渲染

@dostufffancy
Copy link
Author

dostufffancy commented Feb 24, 2022

没办法,js 会阻塞 ui 渲染

你肯定没看重现链接,我在里面写了两个进度环,@material/circular-progress的进度环就没有这个问题

@07akioni 07akioni reopened this Feb 25, 2022
@07akioni 07akioni added bug Something isn't working and removed untriaged need to sort labels Feb 25, 2022
@07akioni
Copy link
Collaborator

这个事情比较奇怪,只能学习一下人家的写法了

@07akioni
Copy link
Collaborator

07akioni commented Mar 5, 2022

closed in #2543

@Flipped199
Copy link

单放个spin cpu占用好高啊

@suica
Copy link
Contributor

suica commented Jul 17, 2023

单放个spin cpu占用好高啊

确实,进入spin文档页面,chrome的CPU占用会增加5%左右。

@webceoboy
Copy link

version:2.40 alert就转的慢,alert取消就恢复正常速度,估计跟n-spin里面的js watch有关

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants