We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e1342 commit 0617887Copy full SHA for 0617887
docs/features/directives.md
@@ -131,32 +131,3 @@ export default () => {
131
)
132
}
133
```
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
148
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