Translation of this issue: What problem does this feature solve ###? Now, the project requirement needs data in the tree component to search the corresponding data based on the field, and its implementation is actually very simple. But it has to re encapsulate a new component. It is recommended to put it directly into the Tree component as an optional attribute configuration. What does the proposed API look ### like? Add a filter field in props to pass the regular expression or function to filter out the required data
1条答案
按热度按时间gmxoilav1#
Translation of this issue:
What problem does this feature solve ###?
Now, the project requirement needs data in the tree component to search the corresponding data based on the field, and its implementation is actually very simple. But it has to re encapsulate a new component. It is recommended to put it directly into the Tree component as an optional attribute configuration.
What does the proposed API look ### like?
Add a filter field in props to pass the regular expression or function to filter out the required data