问题:
解决方法:
在el-dialog标签里添加 :modal-append-to-body='false'
<el-dialog
title="提示"
:visible.sync="feedbackDialogVisible"
:modal-append-to-body='false'
width="30%"
center>
<span>需要注意的是内容是默认不居中的</span>
<span slot="footer" class="dialog-footer">
<el-button @click="feedbackDialogVisible = false">取 消</el-button>
<el-button type="primary" @click="feedbackDialogVisible = false">确 定</el-button>
</span>
</el-dialog>
网友评论