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

[Bug] mp-slideview 显示按钮的动画时长 duration 计算错误 #247

Closed
wiky opened this issue Jun 14, 2024 · 1 comment
Closed

[Bug] mp-slideview 显示按钮的动画时长 duration 计算错误 #247

wiky opened this issue Jun 14, 2024 · 1 comment

Comments

@wiky
Copy link

wiky commented Jun 14, 2024

showButtons(ins, ownerInstance, st.duration)

上面应该是 showButtons(ins, ownerInstance, st.duration),应该是showButtons(ins, ownerInstance, st.duration / 1000)

showButtons中使用的参数 withDuration 的单位是 s,st.duration 的单位是 ms。

下面是正确传参的地方,这里的duration是st.duration/1000计算所得,所以调用正确。

showButtons(ins, ownerInstance, duration)

@wiky wiky changed the title duration 计算错误 [Bug] mp-slideview 显示按钮的动画时长 duration 计算错误 Jun 15, 2024
@TLovers
Copy link

TLovers commented Jul 1, 2024

这个组件计算宽度的时候还有一个问题,就是当父组件开启root-portal时,右侧滑块区域宽度直接计算为0了

@Tidyzq Tidyzq closed this as completed in 6de0191 Oct 17, 2024
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

2 participants