<a-table :columns="columns1" :pagination="false" :data-source="data1" rowKey='id' :customRow="customRow" bordered> <span slot="customTitle">Name</span> </a-table>
data1为获取到的数据 rowKey为key值(值唯一即可)
下面为拖拽方法
customRow (record,index) { return { // FIXME: draggable: true 先使用鼠标移入事件设置目标行的draggable属性 props: { // draggable: 'true' }, style: { cursor: 'pointer' }, on: { // 鼠标移入 mouseenter: (event) => { // 兼容IE var ev = event || window.event ev.target.draggable = true }, // 开始拖拽 dragstart: (event) => { // 兼容IE var ev = event || window.event // 阻止冒泡 ev.stopPropagation() // 得到源目标数据