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

遇到比较奇怪的报错,请问大佬们这个什么问题? #18

Open
Sherlockouo opened this issue Apr 24, 2022 · 8 comments
Open

Comments

@Sherlockouo
Copy link

image

@1977474741
Copy link
Owner

有用ui框架吗?

@Sherlockouo
Copy link
Author

有用ui框架吗?

用的elementUI

@LyonLv
Copy link

LyonLv commented Sep 15, 2022

相同的问题 ui ,框架 使用 vant

@yz5650
Copy link

yz5650 commented Oct 29, 2022

我也是报这个错误,有大佬解决了吗,本地怎么用怎么好使,上线后就不能用

@yz5650
Copy link

yz5650 commented Oct 29, 2022

求求作者帮忙回复一下

@1977474741
Copy link
Owner

求求作者帮忙回复一下
是因为有ui框架,内部ui组件需要解析并且二次渲染,所以首次渲染后拿不到实际的内部元素,你在更改数据之后延迟个20毫秒手动再渲染一次就可以了

@clevok
Copy link

clevok commented Dec 12, 2022

+1,现在很蛋疼,没办法,只能抓紧找其他的组件了

@clevok
Copy link

clevok commented Dec 12, 2022

解决了,把188行

            async calcXY(index = 0,cause = 'data',duration = isNaN(duration)?this.moveTransitionDuration : duration)

改成

            async calcXY(index = 0,cause = 'data', _duration){
                let duration = isNaN(_duration) ? this.moveTransitionDuration : _duration

就可以了

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

5 participants