mirror of https://github.com/vuejs/vue.git
chore: fix v2 links in comments (#12653) [ci skip]
This commit is contained in:
parent
65a333fcb4
commit
8d3fce029f
|
@ -55,7 +55,7 @@ var app = new Vue({
|
|||
},
|
||||
|
||||
// computed properties
|
||||
// https://vuejs.org/guide/computed.html
|
||||
// https://v2.vuejs.org/v2/guide/computed.html
|
||||
computed: {
|
||||
filteredTodos: function () {
|
||||
return filters[this.visibility](this.todos)
|
||||
|
@ -129,7 +129,7 @@ var app = new Vue({
|
|||
|
||||
// a custom directive to wait for the DOM to be updated
|
||||
// before focusing on the input field.
|
||||
// https://vuejs.org/guide/custom-directive.html
|
||||
// https://v2.vuejs.org/v2/guide/custom-directive.html
|
||||
directives: {
|
||||
'todo-focus': function (el, binding) {
|
||||
if (binding.value) {
|
||||
|
|
|
@ -5157,7 +5157,7 @@ function genFor (
|
|||
state.warn(
|
||||
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
|
||||
"v-for should have explicit keys. " +
|
||||
"See https://vuejs.org/guide/list.html#key for more info.",
|
||||
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
|
||||
el.rawAttrsMap['v-for'],
|
||||
true /* tip */
|
||||
);
|
||||
|
|
|
@ -4444,7 +4444,7 @@
|
|||
state.warn(
|
||||
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
|
||||
"v-for should have explicit keys. " +
|
||||
"See https://vuejs.org/guide/list.html#key for more info.",
|
||||
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
|
||||
el.rawAttrsMap['v-for'],
|
||||
true /* tip */
|
||||
);
|
||||
|
|
|
@ -3489,7 +3489,7 @@ function genFor (
|
|||
state.warn(
|
||||
"<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
|
||||
"v-for should have explicit keys. " +
|
||||
"See https://vuejs.org/guide/list.html#key for more info.",
|
||||
"See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.",
|
||||
el.rawAttrsMap['v-for'],
|
||||
true /* tip */
|
||||
);
|
||||
|
|
|
@ -2010,7 +2010,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|||
'referenced during render. Make sure that this property is reactive, ' +
|
||||
'either in the data option, or for class-based components, by ' +
|
||||
'initializing the property. ' +
|
||||
'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
|
||||
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
|
||||
target
|
||||
);
|
||||
};
|
||||
|
@ -2020,7 +2020,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|||
"Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
|
||||
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
|
||||
'prevent conflicts with Vue internals. ' +
|
||||
'See: https://vuejs.org/v2/api/#data',
|
||||
'See: https://v2.vuejs.org/v2/api/#data',
|
||||
target
|
||||
);
|
||||
};
|
||||
|
@ -4900,7 +4900,7 @@ function initData (vm) {
|
|||
data = {};
|
||||
process.env.NODE_ENV !== 'production' && warn(
|
||||
'data functions should return an object:\n' +
|
||||
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
|
||||
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
|
||||
vm
|
||||
);
|
||||
}
|
||||
|
|
|
@ -204,7 +204,7 @@ export function genFor (
|
|||
state.warn(
|
||||
`<${el.tag} v-for="${alias} in ${exp}">: component lists rendered with ` +
|
||||
`v-for should have explicit keys. ` +
|
||||
`See https://vuejs.org/guide/list.html#key for more info.`,
|
||||
`See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.`,
|
||||
el.rawAttrsMap['v-for'],
|
||||
true /* tip */
|
||||
)
|
||||
|
|
|
@ -19,7 +19,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|||
'referenced during render. Make sure that this property is reactive, ' +
|
||||
'either in the data option, or for class-based components, by ' +
|
||||
'initializing the property. ' +
|
||||
'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
|
||||
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
|
||||
target
|
||||
)
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|||
`Property "${key}" must be accessed with "$data.${key}" because ` +
|
||||
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
|
||||
'prevent conflicts with Vue internals. ' +
|
||||
'See: https://vuejs.org/v2/api/#data',
|
||||
'See: https://v2.vuejs.org/v2/api/#data',
|
||||
target
|
||||
)
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ function initData (vm: Component) {
|
|||
data = {}
|
||||
process.env.NODE_ENV !== 'production' && warn(
|
||||
'data functions should return an object:\n' +
|
||||
'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
|
||||
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
|
||||
vm
|
||||
)
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ if (inBrowser) {
|
|||
console[console.info ? 'info' : 'log'](
|
||||
`You are running Vue in development mode.\n` +
|
||||
`Make sure to turn on production mode when deploying for production.\n` +
|
||||
`See more tips at https://vuejs.org/guide/deployment.html`
|
||||
`See more tips at https://v2.vuejs.org/v2/guide/deployment.html`
|
||||
)
|
||||
}
|
||||
}, 0)
|
||||
|
|
Loading…
Reference in New Issue