diff --git a/docs/en/api/mount.md b/docs/en/api/mount.md index f7339c258..bb5d3c3d0 100644 --- a/docs/en/api/mount.md +++ b/docs/en/api/mount.md @@ -1,4 +1,4 @@ -# `mount(component {, options}])` +# `mount(component [, options])` - **Arguments:** diff --git a/docs/en/api/shallow.md b/docs/en/api/shallow.md index f7ffc6d7c..7272d697b 100644 --- a/docs/en/api/shallow.md +++ b/docs/en/api/shallow.md @@ -1,4 +1,4 @@ -# `shallow(component {, options}])` +# `shallow(component [, options])` - **Arguments:** diff --git a/docs/ja/README.md b/docs/ja/README.md index f0dd9ade5..6fc456240 100644 --- a/docs/ja/README.md +++ b/docs/ja/README.md @@ -21,6 +21,7 @@ * [マウンティングオプション](api/options.md) - [context](api/options.md#context) - [slots](api/options.md#slots) + - [scopedSlots](api/options.md#scopedslots) - [stubs](api/options.md#stubs) - [mocks](api/options.md#mocks) - [localVue](api/options.md#localvue) @@ -51,7 +52,7 @@ * [setProps](api/wrapper/setProps.md) * [text](api/wrapper/text.md) * [trigger](api/wrapper/trigger.md) - * [visible](api/wrapper/visible.md) + * [isVisible](api/wrapper/isVisible.md) * [WrapperArray](api/wrapper-array/README.md) * [at](api/wrapper-array/at.md) * [contains](api/wrapper-array/contains.md) @@ -65,7 +66,7 @@ * [setMethods](api/wrapper-array/setMethods.md) * [setProps](api/wrapper-array/setProps.md) * [trigger](api/wrapper-array/trigger.md) - * [visible](api/wrapper-array/visible.md) + * [isVisible](api/wrapper-array/isVisible.md) * [コンポーネント](api/components/README.md) * [TransitionStub](api/components/TransitionStub.md) * [TransitionGroupStub](api/components/TransitionGroupStub.md) diff --git a/docs/ja/SUMMARY.md b/docs/ja/SUMMARY.md index 4e236d376..2e33c7da8 100644 --- a/docs/ja/SUMMARY.md +++ b/docs/ja/SUMMARY.md @@ -19,6 +19,7 @@ * [マウンティングオプション](api/options.md) - [context](api/options.md#context) - [slots](api/options.md#slots) + - [scopedSlots](api/options.md#scopedslots) - [stubs](api/options.md#stubs) - [mocks](api/options.md#mocks) - [localVue](api/options.md#localvue) diff --git a/docs/ja/api/README.md b/docs/ja/api/README.md index 493ab1bcf..77cae4a51 100644 --- a/docs/ja/api/README.md +++ b/docs/ja/api/README.md @@ -7,6 +7,7 @@ * [マウンティングオプション](./options.md) - [context](./options.md#context) - [slots](./options.md#slots) + - [scopedSlots](./options.md#scopedslots) - [stubs](./options.md#stubs) - [mocks](./options.md#mocks) - [localVue](./options.md#localvue) @@ -37,7 +38,7 @@ * [setProps](./wrapper/setProps.md) * [text](./wrapper/text.md) * [trigger](./wrapper/trigger.md) - * [visible](./wrapper/visible.md) + * [isVisible](./wrapper/isVisible.md) * [WrapperArray](./wrapper-array/README.md) * [at](./wrapper-array/at.md) * [contains](./wrapper-array/contains.md) @@ -51,7 +52,7 @@ * [setMethods](./wrapper-array/setMethods.md) * [setProps](./wrapper-array/setProps.md) * [trigger](./wrapper-array/trigger.md) - * [visible](./wrapper-array/visible.md) + * [isVisible](./wrapper-array/isVisible.md) * [コンポーネント](./components/README.md) * [TransitionStub](./components/TransitionStub.md) * [TransitionGroupStub](./components/TransitionGroupStub.md) diff --git a/docs/ja/api/mount.md b/docs/ja/api/mount.md index ea8575825..61d6fa017 100644 --- a/docs/ja/api/mount.md +++ b/docs/ja/api/mount.md @@ -1,4 +1,4 @@ -# mount(component {, options}]) +# mount(component [, options]) - **引数:** diff --git a/docs/ja/api/options.md b/docs/ja/api/options.md index 04233a2db..79d229931 100644 --- a/docs/ja/api/options.md +++ b/docs/ja/api/options.md @@ -6,6 +6,7 @@ - [`context`](#context) - [`slots`](#slots) +- [`scopedSlots`](#scopedslots) - [`stubs`](#stubs) - [`mocks`](#mocks) - [`localVue`](#localvue) @@ -59,13 +60,39 @@ expect(wrapper.find('div')).toBe(true) テキストを値として `slots` に渡すことはできますが、1つ制限事項があります。 PhantomJS をサポートしません。 -[Puppeteer](https://github.com/karma-runner/karma-chrome-launcher#headless-chromium-with-puppeteer)を使用してください。 +代わりに [Puppeteer](https://github.com/karma-runner/karma-chrome-launcher#headless-chromium-with-puppeteer) を使用してください。 + +### `scopedSlots` + +- 型: `{ [name: string]: string }` + +コンポーネントにスコープ付きスロットのコンテンツのオブジェクトを渡します。key はスロット名に対応します。値はテンプレート文字列を指定します。 + +3つ制限事項があります。 + +* vue@2.5+ のみをサポートします。 + +* `