赞
踩
解决因为滚动条隐藏导致的窗口抖动问题:
(添加 :lock-scroll="false" 属性)(无效的话把冒号去掉试试)
- <el-dialog class=""
- v-model=""
- title=""
- :lock-scroll="false"
- width="800px"
- height="400px"
- top="10vh"
- >
解决双滚动条问题:(无效的话去掉deep)
- /* 解决双滚动条 */
- :deep(.el-dialog) {
- display: flex !important;
- flex-direction: column !important;
- margin: 0 !important;
- position: absolute !important;
- top: 50% !important;
- left: 50% !important;
- transform: translate(-50%, -50%) !important;
- overflow-y: auto !important;
- overflow-x: auto !important;
- max-height: 90vh !important;
- }
参考:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。