Skip to content

Commit 706a6d1

Browse files
authoredAug 5, 2019
Update state.js
update: "注释文本错误"
1 parent e1bc033 commit 706a6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎vue-src/core/instance/state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function initProps (vm: Component, propsOptions: Object) {
9797
}
9898
defineReactive(props, key, value, () => {
9999
/*
100-
由于父组件重新渲染的时候会充血prop的值,所以应该直接使用prop来作为一个data或者计算属性的依赖
100+
由于父组件重新渲染的时候会重写prop的值,所以应该直接使用prop来作为一个data或者计算属性的依赖
101101
https://cn.vuejs.org/v2/guide/components.html#字面量语法-vs-动态语法
102102
*/
103103
if (vm.$parent && !observerState.isSettingProps) {

0 commit comments

Comments
 (0)
Please sign in to comment.