-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
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
table组件会给传给dataSource的数组里的每一项增加indexForSort属性 #2501
Comments
👍 来个 PR 吧 ~ 发到 1.x-stable 分支。 |
1.9.1版本中依然存在此indexForSort的属性。 |
存在是对的,原来的问题是修改了数据源。 |
@benjycui 我原本通过record拿到一条数据,修改后直接提交就是了,现在得手动delete这个indexForSort属性。觉得别扭 |
afc163
added a commit
that referenced
this issue
Aug 23, 2016
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
本地环境
你做了什么?
创建了一个table:
你期待的结果是:
table组件不改变dataSource的值,即data不变。
实际上的结果:
data数组里的每一项多了一个indexForSort的属性。
看了一下table的代码,做了数组本身的拷贝,但直接修改了每一项,能不能用{ ...data[i], indexForSort: i }代替?
可重现的在线演示
The text was updated successfully, but these errors were encountered: