WakuwakuP / element-ui-el-table-draggable

Make 'el-table' of 'element UI' sortable.
https://www.npmjs.com/package/element-ui-el-table-draggable
MIT License
111 stars 19 forks source link

How to get event when user drags row of el-table? #5

Closed react-hunter closed 5 years ago

react-hunter commented 5 years ago

I could implement sortable on el-table by using this library. But, I can't get any event when user drags row of el-table. Can you explain about the events of this library?

WakuwakuP commented 5 years ago

Thanks for using. It is not reactive because it uses this.$children. I can add function.

<el-table-draggable @drop="func()">
therRed commented 5 years ago

did you added this event? I got the same problem

therRed commented 5 years ago

I see, your file's code --event name is "dorp" not "drop" ,hhhhh You may have misspelled the word. thanks for your share

WakuwakuP commented 5 years ago

Thank you. Corrected the misspell the word. You can use "drop" by updating to 1.2.1