Skip to content

如何获取列表渲染的插槽实例集合?How to get a v-for slot instances? #11457

Discussion options

You must be logged in to vote

playground

<script setup>
const slots = useSlots()
</script>
defineComponent((_, { slots }) => {
  // slots...
  return () => h('div')
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by inside5545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants