Skip to content

Commit ecc1ecd

Browse files
committed
add the missing "scope" in api.md
1 parent de0a793 commit ecc1ecd

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/v2/api/index.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,16 +2121,26 @@ type: api
21212121

21222122
### slot-scope
21232123

2124+
> New in 2.5.0+
2125+
21242126
- **Expects:** `function argument expression`
21252127

21262128
- **Usage:**
21272129

2128-
Use to denote an element or component as a scoped slot. The attribute's value should be a valid JavaScript expression that can appear in the argument position of a function signature. This means in supported environments you can also use ES2015 destructuring in the expression.
2130+
Used to denote an element or component as a scoped slot. The attribute's value should be a valid JavaScript expression that can appear in the argument position of a function signature. This means in supported environments you can also use ES2015 destructuring in the expression. Serves as a replacement for [`scope`](#scope-replaced) in 2.5.0+.
21292131

21302132
This attribute does not support dynamic binding.
21312133

21322134
- **See also:** [Scoped Slots](../guide/components.html#Scoped-Slots)
21332135

2136+
### scope <sup>replaced</sup>
2137+
2138+
Used to denote a `<template>` element as a scoped slot, which is replaced by [`slot-scope`](#slot-scope) in 2.5.0+.
2139+
2140+
- **Usage:**
2141+
2142+
Same as [`slot-scope`](#slot-scope) except that `scope` can only be used on `<template>` elements.
2143+
21342144
### is
21352145

21362146
- **Expects:** `string`

themes/vue/source/css/_api.styl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.content.api
2+
h2, h3
3+
> sup
4+
margin-left: .3em
5+
color: #b9465c

themes/vue/source/css/page.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "_common"
2+
@import "_api"
23
@import "_animations"
34
@import "_header"
45
@import "_demo"

0 commit comments

Comments
 (0)