Skip to content

SchemaField.Array 组件在渲染过程中,可以拿到索引的位置吗? #1248

Answered by janryWang
AganStr asked this question in Q&A [2.x]
Discussion options

You must be logged in to vote

写一个自定义组件,在自定义组件内使用ArrayItems.useIndex这个hook就能拿到索引了

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AganStr
Comment options

@janryWang
Comment options

Answer selected by janryWang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants