@@ -111,23 +111,23 @@ A directive definition object can provide several hook functions (all optional):
111
111
const myDirective = {
112
112
// called before bound element's attributes
113
113
// or event listeners are applied
114
- created (el , binding , vnode , prevVnode ) {
114
+ created (el , binding , vnode ) {
115
115
// see below for details on arguments
116
116
},
117
117
// called right before the element is inserted into the DOM.
118
- beforeMount (el , binding , vnode , prevVnode ) {},
118
+ beforeMount (el , binding , vnode ) {},
119
119
// called when the bound element's parent component
120
120
// and all its children are mounted.
121
- mounted (el , binding , vnode , prevVnode ) {},
121
+ mounted (el , binding , vnode ) {},
122
122
// called before the parent component is updated
123
123
beforeUpdate (el , binding , vnode , prevVnode ) {},
124
124
// called after the parent component and
125
125
// all of its children have updated
126
126
updated (el , binding , vnode , prevVnode ) {},
127
127
// called before the parent component is unmounted
128
- beforeUnmount (el , binding , vnode , prevVnode ) {},
128
+ beforeUnmount (el , binding , vnode ) {},
129
129
// called when the parent component is unmounted
130
- unmounted (el , binding , vnode , prevVnode ) {}
130
+ unmounted (el , binding , vnode ) {}
131
131
}
132
132
```
133
133
0 commit comments