From 7fcbd5aa3be7b19699e9077fdb76f1b6304d9c92 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Sun, 26 Nov 2017 21:40:57 +0800 Subject: [PATCH] fix: add v-bind:key in all v-for --- examples/async-data/pages/posts/index.vue | 2 +- examples/custom-routes/pages/index.vue | 2 +- examples/middleware/components/Visits.vue | 2 +- examples/middleware/pages/_slug.vue | 4 +++- examples/nested-routes/pages/index.vue | 2 +- examples/routes-transitions/pages/users.vue | 2 +- examples/typescript/pages/index.vue | 2 +- examples/vue-apollo/pages/index.vue | 2 +- examples/vuex-store-modules/pages/todos.vue | 2 +- examples/vuex-store-modules/pages/website.vue | 4 ++-- examples/with-cookies/pages/index.vue | 2 +- examples/with-firebase/pages/index.vue | 2 +- examples/with-sockets/pages/index.vue | 4 +++- 13 files changed, 18 insertions(+), 14 deletions(-) diff --git a/examples/async-data/pages/posts/index.vue b/examples/async-data/pages/posts/index.vue index 6a7014d4ed..1015972fa8 100644 --- a/examples/async-data/pages/posts/index.vue +++ b/examples/async-data/pages/posts/index.vue @@ -3,7 +3,7 @@

Blog

diff --git a/examples/custom-routes/pages/index.vue b/examples/custom-routes/pages/index.vue index 7febff502d..889363ca7c 100644 --- a/examples/custom-routes/pages/index.vue +++ b/examples/custom-routes/pages/index.vue @@ -2,7 +2,7 @@

Users

    -
  • +
  • {{ user.name }}
diff --git a/examples/middleware/components/Visits.vue b/examples/middleware/components/Visits.vue index 6316ad9c5e..2600db2ba0 100644 --- a/examples/middleware/components/Visits.vue +++ b/examples/middleware/components/Visits.vue @@ -1,6 +1,6 @@ diff --git a/examples/middleware/pages/_slug.vue b/examples/middleware/pages/_slug.vue index 30d4649eac..7542d78473 100644 --- a/examples/middleware/pages/_slug.vue +++ b/examples/middleware/pages/_slug.vue @@ -4,7 +4,9 @@
{{ userAgent }}
  • Home
  • -
  • {{ slug }}
  • +
  • + {{ slug }} +
diff --git a/examples/nested-routes/pages/index.vue b/examples/nested-routes/pages/index.vue index 82d8bd3643..5a98a4417b 100644 --- a/examples/nested-routes/pages/index.vue +++ b/examples/nested-routes/pages/index.vue @@ -3,7 +3,7 @@

Players

    -
  • +
  • {{ user.name }}
diff --git a/examples/routes-transitions/pages/users.vue b/examples/routes-transitions/pages/users.vue index a02582e753..29cade784e 100644 --- a/examples/routes-transitions/pages/users.vue +++ b/examples/routes-transitions/pages/users.vue @@ -6,7 +6,7 @@ Next > Next >
    -
  • +
  • {{ user.first_name }} {{ user.last_name }}
  • diff --git a/examples/typescript/pages/index.vue b/examples/typescript/pages/index.vue index bb135477b7..567e415ebc 100644 --- a/examples/typescript/pages/index.vue +++ b/examples/typescript/pages/index.vue @@ -6,7 +6,7 @@ {{selected}}
-
+
diff --git a/examples/vue-apollo/pages/index.vue b/examples/vue-apollo/pages/index.vue index 5aa6f9a5cd..6c6e440d36 100644 --- a/examples/vue-apollo/pages/index.vue +++ b/examples/vue-apollo/pages/index.vue @@ -2,7 +2,7 @@

Cars

    -
  • +
  • {{ car.year }} {{ car.make }} {{ car.model }} diff --git a/examples/vuex-store-modules/pages/todos.vue b/examples/vuex-store-modules/pages/todos.vue index 3c21b92a22..8a693afb95 100644 --- a/examples/vuex-store-modules/pages/todos.vue +++ b/examples/vuex-store-modules/pages/todos.vue @@ -2,7 +2,7 @@

    Todos

      -
    • +
    • {{ todo.text }}
    • diff --git a/examples/vuex-store-modules/pages/website.vue b/examples/vuex-store-modules/pages/website.vue index e0fa75320c..3a8b7d6bd5 100644 --- a/examples/vuex-store-modules/pages/website.vue +++ b/examples/vuex-store-modules/pages/website.vue @@ -2,13 +2,13 @@

      Articles

        -
      • +
      • {{article}}

      Comments (nested under articles)

        -
      • +
      • {{comment}}
      diff --git a/examples/with-cookies/pages/index.vue b/examples/with-cookies/pages/index.vue index 7709bec946..429dbc9051 100755 --- a/examples/with-cookies/pages/index.vue +++ b/examples/with-cookies/pages/index.vue @@ -8,7 +8,7 @@ - + {{ key }} {{ value }} diff --git a/examples/with-firebase/pages/index.vue b/examples/with-firebase/pages/index.vue index 3ad24b3797..7168ef1231 100644 --- a/examples/with-firebase/pages/index.vue +++ b/examples/with-firebase/pages/index.vue @@ -10,7 +10,7 @@ - + avatar diff --git a/examples/with-sockets/pages/index.vue b/examples/with-sockets/pages/index.vue index 7184116d06..7e96f5e16b 100644 --- a/examples/with-sockets/pages/index.vue +++ b/examples/with-sockets/pages/index.vue @@ -4,7 +4,9 @@
      • -
      • {{ message.date.split('T')[1].slice(0, -2) }}: {{ message.text }}
      • +
      • + {{ message.date.split('T')[1].slice(0, -2) }}: {{ message.text }} +