Browse Source

improve transition deprecation warning

Evan You 10 years ago
parent
commit
b862cae0c8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/deprecations.js

+ 5 - 1
src/deprecations.js

@@ -83,7 +83,11 @@ if (process.env.NODE_ENV !== 'production') {
     V_TRANSITION: function () {
     V_TRANSITION: function () {
       warn(
       warn(
         'v-transition will no longer be a directive in 1.0.0; It will become a ' +
         'v-transition will no longer be a directive in 1.0.0; It will become a ' +
-        'special attribute without the prefix. Use "transition" instead.' +
+        'special attribute without the prefix. Use "transition" instead. Also, ' +
+        'it will no longer attach the .v-transition class, but instead leave ' +
+        'the transition attribute on the element. If you were using the ' +
+        '".name-transition" CSS selector before, you should now use the ' +
+        '"[transition="name"]" selector instead.' +
         newBindingSyntaxLink
         newBindingSyntaxLink
       )
       )
     },
     },