Skip to content

Commit d93ebbd

Browse files
authored
Merge pull request #230 from Byss1/2.0-cn
Update custom-directive.md
2 parents 5400937 + 1058326 commit d93ebbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ directives: {
8282
- **expression**: 绑定值的字符串形式。 例如 `v-my-directive="1 + 1"` , expression 的值是 `"1 + 1"`
8383
- **arg**: 传给指令的参数。例如 `v-my-directive:foo`, arg 的值是 `"foo"`
8484
- **modifiers**: 一个包含修饰符的对象。 例如: `v-my-directive.foo.bar`, 修饰符对象 modifiers 的值是 `{ foo: true, bar: true }`
85-
- **vnode**: Vue 编译生成的虚拟节点,查阅 [VNode API](/api/#VNode-Interface) 了解更多详情。
85+
- **vnode**: Vue 编译生成的虚拟节点,查阅 [VNode API](/api/#VNode接口) 了解更多详情。
8686
- **oldVnode**: 上一个虚拟节点,仅在 `update``componentUpdated` 钩子中可用。
8787

8888
<p class="tip">除了 `el` 之外,其它参数都应该是只读的,尽量不要修改他们。如果需要在钩子之间共享数据,建议通过元素的 [dataset](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset) 来进行。</p>

0 commit comments

Comments
 (0)