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

对象字面量只能指定已知属性,并且“dx”不在类型“Pos”中。 #299

Open
Larmian opened this issue Jan 10, 2024 · 1 comment

Comments

@Larmian
Copy link

Larmian commented Jan 10, 2024

image

@Larmian
Copy link
Author

Larmian commented Jan 10, 2024

我用因为 scroll.value!.scrollBy({ x: event.deltaY, y: 0 }) 这样的方式没起到滚动效果
参考了下源码,发现里面是需要这样用的吧 scroll.value!.scrollBy({ dx: event.deltaY, dy: 0 })
但是编译的时候 typescript 又不给过

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

1 participant