目前只发现a-modal
会失效,其余使用/deep/
生效,解决办法:最外层加个class--full-modal
,style
不使用scoped
<style lang="less">
.full-modal {
.ant-modal {
width: 100vw !important;
max-width: 100vw;
top: 0;
padding-bottom: 0;
overflow: hidden;
}
.ant-modal-body {
height: calc(100vh - 61px);
overflow: hidden;
}
}
</style>
参考链接
https://blog.csdn.net/weixin_42289080/article/details/114268204
https://blog.csdn.net/Yukinoshita_kino/article/details/121336664