From 802c7e49c36e0aee42baa1965d2227a9fa8ab61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Renato=20de=20Le=C3=A3o?= Date: Wed, 28 Dec 2022 09:56:45 +0000 Subject: [PATCH] docs: slots scope being exposed as "params" instead of "props" * docs(migration): slots scope being exposed as "params" instead of "props * docs(guide): note about slot scope when not wrapped in template tag https://github.com/vuejs/test-utils/blob/39d86ad5abe71bac8d76c5b82f11f30225cf8673/src/utils/compileSlots.ts#L10 The only example provided used an explicit #default="params", but it doesn't mention that if you don't explicitly wrap it, the slot scope becomes also available as params. In VTU1, they were exposed as props, so i think it's better to be explicit about it. --- docs/guide/advanced/slots.md | 19 ++++++++++++++++--- docs/migration/index.md | 14 ++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/docs/guide/advanced/slots.md b/docs/guide/advanced/slots.md index a766a8953..baec29d1e 100644 --- a/docs/guide/advanced/slots.md +++ b/docs/guide/advanced/slots.md @@ -139,7 +139,7 @@ test('layout full page layout', () => { ## Scoped Slots -[Scoped slots](https://v3.vuejs.org/guide/component-slots.html#scoped-slots) and bindings are also supported. +[Scoped slots](https://v3.vuejs.org/guide/component-slots.html#scoped-slots) and bindings are also supported. ```js const ComponentWithSlots = { @@ -158,8 +158,8 @@ const ComponentWithSlots = { test('scoped slots', () => { const wrapper = mount(ComponentWithSlots, { slots: { - scoped: `