<el-dialog :visible.sync="infoDialog"
:close-on-click-modal="false"
:close-on-press-escape="false"
top="2vh"
width="720px"
class="infoDialog-box">
<div slot="title"
class="dialogTitle">
弹窗自定title
</div>
<div ref="infoDialogContent"
class="infoDialog-content">
</div>
</el-dialog>
methods:
this.$nextTick(() => {
this.$refs.infoDialogContent.scrollTop = 0
})
vue element 弹框打开滚条回到顶部
最新推荐文章于 2023-11-07 14:50:13 发布