How vue calls this in custom instructions

<div class="bigAndSmallLeft" v-moveHorizontal="isRotate" :name="isRotate" >
        </div>

here is a custom directive vmurmoveHorizon, in which I want to be able to print out this.isRotate

however, it seems that vue 2.0 can not be used

then I tried to bind to the tag: name= "isRotate"

but when the isRotate changes from false to true, the printed isRotate in the instruction remains the same. If there is any solution, ask the boss for advice

.
Apr.18,2021
The third parameter in the

function is vnode. Its vnode.context is the current vm instance. You can visit it


to print bind.value directly in the hook function of the custom instruction

.
Menu