解決因為滾動條隱藏導(dǎo)致的窗口抖動問題:
(添加 :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;
}
參考:文章來源:http://www.zghlxwxcb.cn/news/detail-857641.html
http://t.csdnimg.cn/xavOG文章來源地址http://www.zghlxwxcb.cn/news/detail-857641.html
到了這里,關(guān)于Vue | Element UI Plus 完美解決el-dialog雙滾動條、頁面抖動問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!