Skip to content

JSONTree组件 iOS和harmony上collectionLimit属性设置不生效 #163

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

Closed
Panlichen1996 opened this issue Oct 15, 2024 · 2 comments
Closed

Comments

@Panlichen1996
Copy link

iOS和harmony上collectionLimit属性设置不生效,JSONTree依旧展示实际的节点数,而非所设置的限制数量。

@Dean177
Copy link
Owner

Dean177 commented Nov 19, 2024

I only speak english so can't help with this.

@Dean177 Dean177 closed this as completed Nov 19, 2024
@Panlichen1996
Copy link
Author

I only speak english so can't help with this.

Thank you very much for replying to me,Dean!

I mean the collectionLimit of props that did not work on JsonTree

I wish only 5 children show as I set.
But collectionLimit didn't work, so I can see all children in my JSONTree.

You can see this issue in the picture below

image

This is my code.

const data6 = {
    users: Array.from({length: 100}, (_, i) => ({id: i, name: `User ${i}`})),
  };
.......
 <View>
        <JSONTree data={data6} collectionLimit={5} />
 </View>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants