只需要在标签中加入 v-dialogDrag <el-dialog v-dialogDrag title="窗口"></el-dialog> 这样就好啦,我之前搜过但是没找到,突然看到同事写的觉得很有意思,分享给大家.