Skip to content

Commit b12adc8

Browse files
authored
Merge pull request #154 from mxyio/patch-2
Update custom-directive.md
2 parents bab59c7 + ad4f0a3 commit b12adc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/custom-directive.md

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

@@ -167,4 +167,4 @@ Vue.directive('demo', function (el, binding) {
167167

168168
> 原文:http://vuejs.org/guide/custom-directive.html
169169
170-
***
170+
***

0 commit comments

Comments
 (0)