naive-ui
naive-ui copied to clipboard
Datatable Filter element in children
TuSimple/naive-ui version (版本)
2.31.0
Vue version (Vue 版本)
3.2.37
Browser and its version (浏览器及其版本)
Firefox(102.0)
System and its version (系统及其版本)
Windows10
Node version (Node 版本)
Reappearance link (重现链接)
https://codesandbox.io/s/mystifying-monad-0u29kk?file=/src/Demo.vue
Reappearance steps (重现步骤)
In the datatable, filter by percent and it doesnt work
Expected results (期望的结果)
Filter data
Actual results (实际的结果)
Return empty array
Remarks (补充说明)
I'm curious what you guys think about the correct behavior here.
- All parents, i.e., the direct parent, the grandparent, etc., should be kept no matter whether their values satisfy the filter or not
- Like the above one, but only the direct parent should be kept
- Only the satisfied child should be kept
When i have create the ticket, i imagine the solution 3
I'm curious what you guys think about the correct behavior here.
- All parents, i.e., the direct parent, the grandparent, etc., should be kept no matter whether their values satisfy the filter or not
- Like the above one, but only the direct parent should be kept
- Only the satisfied child should be kept
I think we should provide different modes. Keep current behavior & filter children in mode 3. This would not be easy to implement.
This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem