Skip to content

Commit 7f27fd3

Browse files
JinjiangCharu-wmp
authored andcommitted
chore: fix v2 links in comments (vuejs#12653) [ci skip]
1 parent 9e88707 commit 7f27fd3

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

src/compiler/codegen/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,13 @@ export function genFor(
258258
) {
259259
state.warn(
260260
`<${el.tag} v-for="${alias} in ${exp}">: component lists rendered with ` +
261+
<<<<<<< HEAD:src/compiler/codegen/index.ts
261262
`v-for should have explicit keys. ` +
262263
`See https://v2.vuejs.org/v2/guide/list.html#key for more info.`,
264+
=======
265+
`v-for should have explicit keys. ` +
266+
`See https://v2.vuejs.org/v2/guide/list.html#Maintaining-State for more info.`,
267+
>>>>>>> chore: fix v2 links in comments (#12653) [ci skip]:src/compiler/codegen/index.js
263268
el.rawAttrsMap['v-for'],
264269
true /* tip */
265270
)

src/core/instance/proxy.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,33 @@ if (__DEV__) {
1616
const warnNonPresent = (target, key) => {
1717
warn(
1818
`Property or method "${key}" is not defined on the instance but ` +
19+
<<<<<<< HEAD:src/core/instance/proxy.ts
1920
'referenced during render. Make sure that this property is reactive, ' +
2021
'either in the data option, or for class-based components, by ' +
2122
'initializing the property. ' +
2223
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
24+
=======
25+
'referenced during render. Make sure that this property is reactive, ' +
26+
'either in the data option, or for class-based components, by ' +
27+
'initializing the property. ' +
28+
'See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties',
29+
>>>>>>> chore: fix v2 links in comments (#12653) [ci skip]:src/core/instance/proxy.js
2330
target
2431
)
2532
}
2633

2734
const warnReservedPrefix = (target, key) => {
2835
warn(
2936
`Property "${key}" must be accessed with "$data.${key}" because ` +
37+
<<<<<<< HEAD:src/core/instance/proxy.ts
3038
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
3139
'prevent conflicts with Vue internals. ' +
3240
'See: https://v2.vuejs.org/v2/api/#data',
41+
=======
42+
'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
43+
'prevent conflicts with Vue internals. ' +
44+
'See: https://v2.vuejs.org/v2/api/#data',
45+
>>>>>>> chore: fix v2 links in comments (#12653) [ci skip]:src/core/instance/proxy.js
3346
target
3447
)
3548
}

src/core/instance/state.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,20 @@ function initData(vm: Component) {
130130
data = vm._data = isFunction(data) ? getData(data, vm) : data || {}
131131
if (!isPlainObject(data)) {
132132
data = {}
133+
<<<<<<< HEAD:src/core/instance/state.ts
133134
__DEV__ &&
134135
warn(
135136
'data functions should return an object:\n' +
136137
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
137138
vm
138139
)
140+
=======
141+
process.env.NODE_ENV !== 'production' && warn(
142+
'data functions should return an object:\n' +
143+
'https://v2.vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
144+
vm
145+
)
146+
>>>>>>> chore: fix v2 links in comments (#12653) [ci skip]:src/core/instance/state.js
139147
}
140148
// proxy data on instance
141149
const keys = Object.keys(data)

src/platforms/web/runtime/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,13 @@ if (inBrowser) {
6565
// @ts-expect-error
6666
console[console.info ? 'info' : 'log'](
6767
`You are running Vue in development mode.\n` +
68+
<<<<<<< HEAD:src/platforms/web/runtime/index.ts
6869
`Make sure to turn on production mode when deploying for production.\n` +
6970
`See more tips at https://vuejs.org/guide/deployment.html`
71+
=======
72+
`Make sure to turn on production mode when deploying for production.\n` +
73+
`See more tips at https://v2.vuejs.org/v2/guide/deployment.html`
74+
>>>>>>> chore: fix v2 links in comments (#12653) [ci skip]:src/platforms/web/runtime/index.js
7075
)
7176
}
7277
}, 0)

0 commit comments

Comments
 (0)