一、功能 表格的任意行都可以拖拽位置;默认不能拖拽表格,点击拖拽按钮可以拖拽。 二、代码 npm 下载 sortablejs 页面按钮: 页面el-table js引入 sortablejs data() {} 里面的相关数据 method: {} disabledRow()