From b0f045029301120fe5ce94d05833ff70c3adbab4 Mon Sep 17 00:00:00 2001 From: Thorsten Luenborg Date: Sat, 24 Oct 2020 18:47:10 +0200 Subject: [PATCH 1/8] feat(migration): transition-group document fragment default behaviour --- src/api/built-in-components.md | 4 +-- src/guide/migration/introduction.md | 1 + src/guide/migration/transition-group.md | 40 +++++++++++++++++++++++++ src/guide/migration/transition.md | 6 +++- src/guide/transitions-list.md | 2 +- 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 src/guide/migration/transition-group.md diff --git a/src/api/built-in-components.md b/src/api/built-in-components.md index ec03ce4f38..99c42ce64d 100644 --- a/src/api/built-in-components.md +++ b/src/api/built-in-components.md @@ -107,7 +107,7 @@ - **Props:** - - `tag` - `string`, defaults to `span`. + - `tag` - `string`, if not defined, renders without a root element. - `move-class` - overwrite CSS class applied during moving transition. - exposes the same props as `` except `mode`. @@ -117,7 +117,7 @@ - **Usage:** - `` serve as transition effects for **multiple** elements/components. The `` renders a real DOM element. By default it renders a ``, and you can configure what element it should render via the `tag` attribute. + `` provides transition effects for **multiple** elements/components. By default it doesn't render a wrapper DOM element, but one can be defined via the `tag` attribute. Note that every child in a `` must be [**uniquely keyed**](./special-attributes.html#key) for the animations to work properly. diff --git a/src/guide/migration/introduction.md b/src/guide/migration/introduction.md index 57f8c44e00..b510910234 100644 --- a/src/guide/migration/introduction.md +++ b/src/guide/migration/introduction.md @@ -101,6 +101,7 @@ The following consists a list of breaking changes from 2.x: - [The `data` option from mixins is now merged shallowly](/guide/migration/data-option.html#mixin-merge-behavior-change) - [Attributes coercion strategy changed](/guide/migration/attribute-coercion.html) - [Some transition classes got a rename](/guide/migration/transition.html) +- [`` now renders no wrapper element by default](/guide/migration/transition-group.html) - [When watching an array, the callback will only trigger when the array is replaced. If you need to trigger on mutation, the `deep` option must be specified.](/guide/migration/watch.html) - `