Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

elementUI table 组件实现行拖拽

elementUI 中的table组件行拖拽,如何实现,主要是连带后面的操作实现,使用过 Sortable 但是没有实现
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
主要是连带后面的操作实现

意思是现在配合sortable已经实现了拖拽,只是拖拽之后按钮失效?

有个办法.拖拽结束后,你获取新的排序,然后同步修改list数据排序,让el-table重新渲染.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...