Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ffc42a

Browse files
Justineochrisvfritz
authored andcommitted
Add description about scope in API doc (vuejs#1264)
1 parent b73f126 commit 0ffc42a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /