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
stdf (STDF 组件)
No response
BottomSheet, Calendar, Popup, Slider, Tabs, Toast 这些组件中使用了 window 对象 SSR时,服务端没有 window 对象,导致空引用异常
目前,在使用这些组件时,不得不加上 {#if browser}。
建议您使用 css calc,尽量规避使用 window 对象。或者在 onMount 钩子中提取诸如 window.innerHeight 的值。
The text was updated successfully, but these errors were encountered:
目前 STDF 还不支持服务端渲染,后续整体考虑新增。
Sorry, something went wrong.
No branches or pull requests
模块
stdf (STDF 组件)
版本
No response
描述缺陷
BottomSheet, Calendar, Popup, Slider, Tabs, Toast 这些组件中使用了 window 对象
SSR时,服务端没有 window 对象,导致空引用异常
复现
目前,在使用这些组件时,不得不加上 {#if browser}。
你的想法
建议您使用 css calc,尽量规避使用 window 对象。或者在 onMount 钩子中提取诸如 window.innerHeight 的值。
The text was updated successfully, but these errors were encountered: