Skip to content

Commit a77f9e2

Browse files
fix: mentioned arguments in all directive hooks
Close #1861
1 parent ee2815e commit a77f9e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/guide/reusability/custom-directives.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,19 @@ const myDirective = {
115115
// see below for details on arguments
116116
},
117117
// called right before the element is inserted into the DOM.
118-
beforeMount() {},
118+
beforeMount(el, binding, vnode, prevVnode) {},
119119
// called when the bound element's parent component
120120
// and all its children are mounted.
121-
mounted() {},
121+
mounted(el, binding, vnode, prevVnode) {},
122122
// called before the parent component is updated
123-
beforeUpdate() {},
123+
beforeUpdate(el, binding, vnode, prevVnode) {},
124124
// called after the parent component and
125125
// all of its children have updated
126-
updated() {},
126+
updated(el, binding, vnode, prevVnode) {},
127127
// called before the parent component is unmounted
128-
beforeUnmount() {},
128+
beforeUnmount(el, binding, vnode, prevVnode) {},
129129
// called when the parent component is unmounted
130-
unmounted() {}
130+
unmounted(el, binding, vnode, prevVnode) {}
131131
}
132132
```
133133

0 commit comments

Comments
 (0)