Skip to content

Commit 0617887

Browse files
committed
docs: remove v-slot with dynamic argument
1 parent d4e1342 commit 0617887

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

docs/features/directives.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -131,32 +131,3 @@ export default () => {
131131
)
132132
}
133133
```
134-
135-
## `v-slot`
136-
137-
```tsx twoslash
138-
export const Comp = () => {
139-
defineSlots<{
140-
default: (scope: { foo: string }) => any
141-
title: (scope: { bar: number }) => any
142-
}>()
143-
return <div />
144-
}
145-
146-
const slots = defineSlots<{
147-
default: (scope: { foo: string }) => any
148-
title: (scope: { bar: number }) => any
149-
}>()
150-
151-
// ---cut-start---
152-
// prettier-ignore
153-
// ---cut-end---
154-
export default () => (
155-
<Comp>
156-
<template v-for={(Slot, name) in slots} v-slot:$name$={scope}>
157-
// ^?
158-
<Slot v-if={Slot} {...scope} />
159-
</template>
160-
</Comp>
161-
)
162-
```

0 commit comments

Comments
 (0)