File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -585,8 +585,10 @@ function compileDirectives (attrs, options) {
585
585
_ . deprecation . V_TRANSITION ( )
586
586
} else if ( dirName === 'attr' ) {
587
587
_ . deprecation . V_ATTR ( )
588
- } else if ( dirName === 'el' ) {
589
- _ . deprecation . V_EL ( )
588
+ } else if ( dirName === 'class' ) {
589
+ _ . deprecation . V_CLASS ( )
590
+ } else if ( dirName === 'style' ) {
591
+ _ . deprecation . V_STYLE ( )
590
592
}
591
593
592
594
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ if (process.env.NODE_ENV !== 'production') {
5
5
_ . warn ( '{DEPRECATION} ' + msg )
6
6
}
7
7
8
- var newBindingSyntaxLink = ' See https://github.com/yyx990803/vue/issues/1173 for details.'
8
+ var newBindingSyntaxLink = ' See https://github.com/yyx990803/vue/issues/1325 for details.'
9
9
10
10
_ . deprecation = {
11
11
@@ -59,13 +59,6 @@ if (process.env.NODE_ENV !== 'production') {
59
59
)
60
60
} ,
61
61
62
- V_EL : function ( ) {
63
- warn (
64
- 'v-el will no longer be a directive in 1.0.0. Use the "$$.id" special syntax instead. ' +
65
- 'See https://github.com/yyx990803/vue/issues/1292 for details.'
66
- )
67
- } ,
68
-
69
62
DIR_ARGS : function ( exp ) {
70
63
warn (
71
64
exp + ': Directive arguments will be moved into the attribute name in 1.0.0 - ' +
@@ -102,6 +95,20 @@ if (process.env.NODE_ENV !== 'production') {
102
95
)
103
96
} ,
104
97
98
+ V_CLASS : function ( ) {
99
+ warn (
100
+ 'v-class will be deprecated in 1.0.0. Use v-bind:class or just :class instead.' +
101
+ newBindingSyntaxLink
102
+ )
103
+ } ,
104
+
105
+ V_STYLE : function ( ) {
106
+ warn (
107
+ 'v-style will be deprecated in 1.0.0. Use v-bind:style or just :style instead.' +
108
+ newBindingSyntaxLink
109
+ )
110
+ } ,
111
+
105
112
ATTR_INTERPOLATION : function ( name , value ) {
106
113
warn (
107
114
'Mustache interpolations inside attributes: ' + name + '="' + value + '". ' +
You can’t perform that action at this time.
0 commit comments