We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b1577 commit 060aba1Copy full SHA for 060aba1
src/guide/components/props.md
@@ -166,7 +166,7 @@ watch(foo, /* ... */)
166
167
这并不会按预期工作,因为它等价于 `watch(props.foo, ...)`——我们给 `watch` 传递的是一个值而不是响应式数据源。实际上,Vue 的编译器会捕捉这种情况并发出警告。
168
169
-与使用 `watch(() => props.foo, ...)`来侦听普通 prop 类似,我们也可以通过将其包装在 getter 中来侦听解构的 prop:
+与使用 `watch(() => props.foo, ...)` 来侦听普通 prop 类似,我们也可以通过将其包装在 getter 中来侦听解构的 prop:
170
171
```js
172
watch(() => foo, /* ... */)
0 commit comments