-
-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Modal 增加全屏功能 #12359
Comments
可以直接使用原生的 fullscreen API:https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API |
建议自行封装吧,暂时不会增加这样的功能。 如果内容比较多,也可以尝试 Drawer。 |
sign!!! |
实现了一个支持全屏的modal,可以做个参考,代码位置:https://github.com/Jkanon/webmagician-ui/blob/master/src/components/Modal/InlineModal.tsx |
如果是想占满整个网页,可以使用 css 重置的方式来实现: import styles from './index.less';
<Modal
className={styles.root}
visible={isModalVisible}
footer={null}>
Some contents...<br />
Some contents...<br />
Some contents...<br />
</Modal> index.less : .root {
top: 0;
margin: 0;
width: 100%;
max-width: 100%;
height: 100vh;
max-height: 100vh;
padding: 0;
font-size: 14px;
:global {
.acud-modal-content {
height: 100%;
border-radius: 0;
}
}
} |
antd vue 已弹出modal框不能widows窗口全屏吗 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
在做大数据产品,做数据预览,会在 modal 上显示table, 列多的情况下需要全屏显示,还有一些在弹框内做一些特征列可视化也会有全屏的需求
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: