We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题原因为 processTableData在protable使用的data传值的情况下取值为props.data,但是这种方式是不允许props.data=xxx方式改变,所以会造成拖拽后eltable的渲染重新回到未拖拽前。
目前我的解决办法是
The text was updated successfully, but these errors were encountered:
目前我的解决办法有的小问题 因为先赋值为空数组再赋值为排序后的数组,这样computed会检测到2次变化,eltable会进行两次渲染。
Sorry, something went wrong.
我想换个思路,对dargSort事件的返回值新增一个参数,返回其当前排序的数据集合,protable中新增一个processTableData的副本,在sortable的onEnd事件中改变的也是这个副本,这样就不会造成eltable的重复渲染了。我可以对这个提交一个pr吗
可以的
No branches or pull requests
问题原因为
processTableData在protable使用的data传值的情况下取值为props.data,但是这种方式是不允许props.data=xxx方式改变,所以会造成拖拽后eltable的渲染重新回到未拖拽前。
目前我的解决办法是
The text was updated successfully, but these errors were encountered: