From 31c7d047909dd859545dd18cc98a9ee855d1f737 Mon Sep 17 00:00:00 2001 From: Aurelius333 <22969541+Aurelius333@users.noreply.github.com> Date: Wed, 16 Sep 2020 02:17:05 -0400 Subject: [PATCH] Migration guide section on key attribute changes (#481) * feat: add migration guide section about "key" attribute changes Fix #379 * undo formatting changes in config.js --- src/.vuepress/config.js | 1 + src/guide/migration/introduction.md | 1 + src/guide/migration/key-attribute.md | 91 ++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 src/guide/migration/key-attribute.md diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index aff8c46424..06d47555dc 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -123,6 +123,7 @@ const sidebar = { 'migration/global-api', 'migration/global-api-treeshaking', 'migration/inline-template-attribute', + 'migration/key-attribute', 'migration/keycode-modifiers', 'migration/render-function-api', 'migration/slots-unification', diff --git a/src/guide/migration/introduction.md b/src/guide/migration/introduction.md index f2b50b9e43..022434b218 100644 --- a/src/guide/migration/introduction.md +++ b/src/guide/migration/introduction.md @@ -42,6 +42,7 @@ The following consists a list of breaking changes from 2.x: - [Custom directive API changed to align with component lifecycle](/guide/migration/custom-directives.html) - [Some transition classes got a rename](/guide/migration/transition.md) - [Component watch option](/api/options-data.html#watch) and [instance method `$watch`](/api/instance-methods.html#watch) no longer supports dot-delimited string paths, use a computed function as the parameter instead +- [Changes in `key` attribute usage with `v-if` and `