Skip to content
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

N-tree 指定children-field的同时启用filter, node并没有被递归 #1477

Closed
duyuntaoGG opened this issue Oct 29, 2021 · 0 comments · Fixed by #1479
Closed

N-tree 指定children-field的同时启用filter, node并没有被递归 #1477

duyuntaoGG opened this issue Oct 29, 2021 · 0 comments · Fixed by #1479
Labels
bug Something isn't working

Comments

@duyuntaoGG
Copy link

TuSimple/naive-ui version (版本)

2.20.0

Vue version (Vue 版本)

3.2.20

Browser and its version (浏览器及其版本)

谷歌 95.0.4638.54(正式版本) (64 位)

System and its version (系统及其版本)

window 10

Node version (Node 版本)

14.17.5

Reappearance link (重现链接)

https://codesandbox.io/s/jolly-star-z8zp3?file=/src/Demo.vue

Reappearance steps (重现步骤)

input中输入字符串,控制台发现node只输出最外层

Expected results (期望的结果)

指定children-field的同时启用filter,node被递归解析。

Actual results (实际的结果)

指定children-field的同时启用filter,node没有被递归,控制台发现node只输出最外层,如果去掉children-field,并且数据中的有children,则可以递归成功

Remarks (补充说明)

猜测是因为filter中递归的子集的key是“children”,没有被children-field替换

@github-actions github-actions bot added the untriaged need to sort label Oct 29, 2021
@XieZongChen XieZongChen added bug Something isn't working and removed untriaged need to sort labels Oct 29, 2021
@XieZongChen XieZongChen self-assigned this Oct 29, 2021
@XieZongChen XieZongChen removed their assignment Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants