Skip to content

Commit fdd1b32

Browse files
committed
docs: update mount/shallow options
1 parent 6c60abb commit fdd1b32

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

docs/en/api/mount.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
- `{Object} slots`
1010
- `{Array<Componet|Object>|Component|String} default`
1111
- `{Array<Componet|Object>|Component|String} named`
12-
- `{Object} globals`
13-
- `{Object} instance`
14-
- `{Object} stub`
15-
16-
- **Arguments:**
12+
- `{Object} intercept`
13+
- `{Object|Array<string>} stubs`
14+
- `{boolean} clone`
15+
- `{Object} children`
16+
- `{Vue} localVue`
1717

1818
- **Returns:** `{Wrapper}`
1919

@@ -27,6 +27,8 @@
2727

2828
`options.context` (`Object`): Passes context to functional component. Can only be used with functional components
2929

30+
`options.children` (`Array<string|Component|Function>`): Passes children to be rendered by functional components
31+
3032
`options.localVue` (`Object`): vue class to use in `mount`. See [createLocalVue](/api/createLocalVue.md)
3133

3234
`options.slots` (`Object`): Render component with slots.
@@ -35,9 +37,9 @@
3537

3638
`options.slots.name` (`Array[Component]|Component`): Named slots. i.e. slots.name will match a <slot name="name" />, can be a Vue component or array of Vue components
3739

38-
`options.globals` (`Object`): Add globals to Vue instance.
40+
`options.intercept` (`Object`): Add globals to Vue instance.
3941

40-
`options.stub` (`Object|Array<string>`): Stubs components matching the name. Takes object or array of strings
42+
`options.stubs` (`Object|Array<string>`): Stubs components matching the name. Takes object or array of strings
4143

4244
- **Usage:**
4345

docs/en/api/shallow.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
- `{Object} options`
77
- `{boolean} attachToDocument`
88
- `{Object} context`
9-
- `{Object} slots`
10-
- `{Array<Componet|Object>|Component|String} default`
11-
- `{Array<Componet|Object>|Component|String} named`
12-
- `{Object} globals`
13-
- `{Object} instance`
14-
- `{Object} stub`
15-
16-
- **Arguments:**
9+
- `{Object} slots`
10+
- `{Array<Componet|Object>|Component|String} default`
11+
- `{Array<Componet|Object>|Component|String} named`
12+
- `{Object} intercept`
13+
- `{Object|Array<string>} stubs`
14+
- `{boolean} clone`
15+
- `{Object} children`
16+
- `{Vue} localVue`
1717

1818
- **Returns:** `{Wrapper}`
1919

@@ -27,6 +27,8 @@
2727

2828
`options.context` (`Object`): Passes context to functional component. Can only be used with functional components
2929

30+
`options.children` (`Array<string|Component|Function>`): Passes children to be rendered by functional components
31+
3032
`options.localVue` (`Object`): vue class to use in `mount`. See [createLocalVue](/api/createLocalVue.md)
3133

3234
`options.slots` (`Object`): Render component with slots.
@@ -35,9 +37,9 @@
3537

3638
`options.slots.name` (`Array[Component]|Component`): Named slots. i.e. slots.name will match a <slot name="name" />, can be a Vue component or array of Vue components
3739

38-
`options.globals` (`Object`): Add globals to Vue instance.
40+
`options.intercept` (`Object`): Add globals to Vue instance.
3941

40-
`options.stub` (`Object|Array<string>`): Stubs components matching the name. Takes object or array of strings
42+
`options.stubs` (`Object|Array<string>`): Stubs components matching the name. Takes object or array of strings
4143

4244
- **Usage:**
4345

0 commit comments

Comments
 (0)