vue element 彈框開啟滾條回到頂部
阿新 • • 發佈:2020-12-30
技術標籤:vue
<el-dialog:visible.sync="infoDialog" :close-on-click-modal="false" :close-on-press-escape="false" top="2vh" width="720px" class="infoDialog-box"> <divslot="title" class="dialogTitle"> 彈窗自定title </div> <divref="infoDialogContent" class="infoDialog-content"> </div> methods: this.$nextTick(()=>{ this.$refs.infoDialogContent.scrollTop=0 })