You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/api/index.md
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2224,11 +2224,11 @@ type: api
2224
2224
2225
2225
-**Expects:** JavaScript expression that is valid in a function argument position (supportsdestructuringin [supportedenvironments](../guide/components-slots.html#Slot-Props-Destructuring)). Optional - only needed if expecting props to be passed to the slot.
2226
2226
2227
-
- **Argument:** `slot name (optional)`
2227
+
- **Argument:** slot name (optional, defaults to `default`)
2228
2228
2229
2229
- **Limited to:**
2230
2230
- `<template>`
2231
-
- components (when denoting default slot with props)
2231
+
- [components](../guide/components-slots.html#Abbreviated-Syntax-for-Lone-Default-Slots) (for a lone default slot with props)
2232
2232
2233
2233
- **Usage:**
2234
2234
@@ -2237,22 +2237,20 @@ type: api
2237
2237
- **Example:**
2238
2238
2239
2239
```html
2240
-
<!-- named slots -->
2240
+
<!-- Named slots -->
2241
2241
<base-layout>
2242
2242
<template v-slot:header>
2243
2243
Header content
2244
2244
</template>
2245
2245
2246
-
<template v-slot:default>
2247
-
Default slot content
2248
-
</template>
2246
+
Default slot content
2249
2247
2250
2248
<template v-slot:footer>
2251
2249
Footer content
2252
2250
</template>
2253
2251
</base-layout>
2254
2252
2255
-
<!-- named slot that receive props -->
2253
+
<!-- Named slot that receives props -->
2256
2254
<infinite-scroll>
2257
2255
<template v-slot:item="slotProps">
2258
2256
<div class="item">
@@ -2261,7 +2259,7 @@ type: api
2261
2259
</template>
2262
2260
</infinite-scroll>
2263
2261
2264
-
<!--default slot that receive props, with props destructuring -->
2262
+
<!--Default slot that receive props, with destructuring -->
0 commit comments