Skip to content

Commit

Permalink
Merge v2.1.7 from branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Dec 28, 2019
2 parents 30e6145 + 8dd30e4 commit 5b2a113
Show file tree
Hide file tree
Showing 8 changed files with 291 additions and 209 deletions.
2 changes: 1 addition & 1 deletion dist/portal-vue.common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/portal-vue.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/portal-vue.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.1.6
* Version: 2.1.7
*
* LICENCE: MIT
*
Expand Down
2 changes: 1 addition & 1 deletion dist/portal-vue.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions docs/guide/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ The `to` prop of `<portal>` and the `name` prop of `<portal-target>` can be chan

## "Slim" - removing the wrapper

Vue components always need a single root element. Since `<portal-target>` can't know in advance weither or not it will receive content with more than one root element, it will render a wrapper element around the content to provide a single root node.
Vue components always need a single root element. Since `<portal-target>` can't know in advance whether or not it will receive content with more than one root element, it will render a wrapper element around the content to provide a single root node.

However, if you know that you will send content with a single root element only, you can use the `slim` prop to tell `<portal-target>` to render that element only and do without the wrapper element.

This can be useful if `<portal-target>`s wrapper element is creating problem for your styling.
This can be useful if `<portal-target>`s wrapper element is creating problems for your styling.

<!-- prettier-ignore -->
```html
Expand All @@ -44,7 +44,7 @@ This can be useful if `<portal-target>`s wrapper element is creating problem for
<portal-target name="destination" slim />
```

The `slim` property also works on `<portal>` components when the are `disabled` (see [here](../api/portal.md#slim)).
The `slim` property also works on `<portal>` components when they are `disabled` (see [here](../api/portal.md#slim)).

## Scoped Slots <Badge text="1.3.0+" />

Expand Down Expand Up @@ -88,7 +88,7 @@ You can pass transitions to a `<portal>` without problems. It will behave just t
However, if you use a `<portal-target>` for multiple `<portal>`s, you likely want to define the transition on the target end instead. This is also supported.

::: warning
This API underwent a significant change in the 2.0.0 release. Below, examples for both old and new snytax are given. Keep an eye on the version badges next to them.
This API underwent a significant change in the 2.0.0 release. Below, examples for both old and new syntax are given. Keep an eye on the version badges next to them.
:::

#### New Syntax <Badge text="2.0.0+" />
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ Setting a Transition for the `<PortalTarget>` now requires a locally or globally

More info:

- [Guide](../api/portal-target.md#transistion)
- [API Docs](./advanced.md#transitions)
- [Guide](./advanced.md#transitions)
- [API Docs](../api/portal-target.md#transistion)

### PortalTarget `@change` event

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "portal-vue",
"version": "2.1.6",
"version": "2.1.7",
"license": "MIT",
"repository": "https://github.com/LinusBorg/portal-vue",
"author": {
Expand Down
Loading

0 comments on commit 5b2a113

Please sign in to comment.