We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://codesandbox.io/p/live/0902ff40-f37a-4317-aaeb-d586a11b106b
4.8.7
设置offset的初始值后再手动修改值不起作用,需要resize后才能生效
const offset = ref({ x: -1, y: -1 }) onMounted(() => { offset.value.y = 600 })
No response
The text was updated successfully, but these errors were encountered:
源码147行的 watch([windowWidth, windowHeight, () => props.gap, () => props.offset], updateState);没有深度监听,deep:true。修改值没有触发监听。当前版本下,我只能在修改位置后再修改一次gap的值来触发该监听来达到目的
Sorry, something went wrong.
感谢反馈,会在下个版本修复
Successfully merging a pull request may close this issue.
重现链接
https://codesandbox.io/p/live/0902ff40-f37a-4317-aaeb-d586a11b106b
Vant 版本
4.8.7
描述一下你遇到的问题。
设置offset的初始值后再手动修改值不起作用,需要resize后才能生效
重现步骤
const offset = ref({ x: -1, y: -1 })
onMounted(() => {
offset.value.y = 600
})
设备/浏览器
No response
The text was updated successfully, but these errors were encountered: