The directive is overwritten by the varriable which has the same name as the directive when use composition API
Version
3.0.5
Reproduction link
https://github.com/Ryan2128/test
Steps to reproduce
Just run it.
What is expected?
Behavior as same as option API
What is actually happening?
After compile, the directive and the varriable both are properties of $setup
It has the same reason as https://github.com/vuejs/vue-next/issues/3270
Same workaround as https://github.com/vuejs/vue-next/issues/3270#issuecomment-782591109