-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
https://github.com/tinper-bee/bee-table/blob/master/src/lib/sort.js
toggleSortOrder = (order, column) => { let { data, oldData = [], flatColumns } = this.state; let { sort } = this.props; let seleObj; if (!oldData) { oldData = data.concat(); }
这个方法中oldData为空数组,在下方判断
if (!oldData)
不会进入,导入此次数据未备份,排序(三态)还原之后造成表格数据丢失。加入值空及空数组判断。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels