Skip to content

Commit d925dcf

Browse files
committed
Update options.md
1 parent f737344 commit d925dcf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/en/api/options.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Please use [Puppeteer](https://github.com/karma-runner/karma-chrome-launcher#hea
7373

7474
- type: `{ [name: string]: string }`
7575

76-
Provide an object of scoped slots contents to the component. The key corresponds to the slot name. The value can be a template string.
76+
Provide an object of scoped slots contents to the component. The key corresponds to the slot name. The value can be a template string.
77+
7778
There is two limitations.
7879

7980
* This supports [email protected]+.
@@ -85,10 +86,10 @@ Example:
8586
```js
8687
const wrapper = shallow(Component, {
8788
scopedSlots: {
88-
bar: '<p slot-scope="props">{{props.index}},{{props.text}}</p>'
89+
foo: '<p slot-scope="props">{{props.index}},{{props.text}}</p>'
8990
}
9091
})
91-
expect(wrapper.html()).toBe('<div><p>0,text1</p><p>1,text2</p><p>2,text3</p></div>')
92+
expect(wrapper.find('#fooWrapper').html()).toBe('<div id="fooWrapper"><p>0,text1</p><p>1,text2</p><p>2,text3</p></div>')
9293
```
9394

9495
### `stubs`

0 commit comments

Comments
 (0)