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
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)
if (!oldData)
不会进入,导入此次数据未备份,排序(三态)还原之后造成表格数据丢失。加入值空及空数组判断。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
不会进入,导入此次数据未备份,排序(三态)还原之后造成表格数据丢失。加入值空及空数组判断。
The text was updated successfully, but these errors were encountered: