Skip to content

[bug]重复更新CountDown组件的ent-time属性值后,在源码中看到由于旧的定时器没有被清空,导致组件更新冲突。 #1119

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

Closed
wangrongding opened this issue Mar 22, 2022 · 1 comment
Assignees

Comments

@wangrongding
Copy link
Contributor

问题描述

countDown 组件更新 ent-time 属性的值后,旧的定时器没有被清空,导致组件更新冲突。

最小可复现仓库

codesandbox:
https://codesandbox.io/s/zpfbfn?file=/src/App.vue

预期的行为和实际行为

预期行为:
重复更新 ent-time 后,组件可以正常更新倒计时的值。

实际行为:
重复更新 ent-time 后,组件更新倒计时冲突 。

复现步骤,具体代码

点击链接中的按钮,即可看到问题。
codesandbox:
https://codesandbox.io/s/zpfbfn?file=/src/App.vue

相关环境信息

  • 操作系统:windows10
  • Node 版本:v16.13.0
  • NutUI 版本: @nutui/[email protected]
  • Vue 版本:3.2.21
  • 引用方式: NPM
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