-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(useFullscreen): support page fullscreen #1893
Conversation
这个能力不错,建议单独开一个 Hooks useBrowserFullscreen,每个 Hooks 代码简单一些,感觉会更好一些。 |
然后 z-index 最好支持用户传入。 |
这个也没加多少代码,集成到这个hooks里面也可以吧。 |
嗯这个可以加上 |
大佬,我想了一下,这个既然是全屏了,那应该就要呈现层级是最高的,所以这个z-index应该不需要自己配置吧,所以我个人的看法是将z-index设置的更大一点,比如9999,不知道我这么想可以不? |
然后单独开一个hooks,也没有必要吧,因为加入的代码量也不算很多,也不影响维护吧,所以就融合进useFullscreen就可以了。 |
@crazylxr 我对原 PR 做了些优化,可以 review 了 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
暂无
💡 Background and solution
增加可以允许只设置浏览器全屏的配置。
📝 Changelog
☑️ Self Check before Merge