Subscribe on changes!

The directive is overwritten by the varriable which has the same name as the directive when use composition API

avatar
Feb 22nd 2021

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

image

avatar
Feb 22nd 2021
avatar
Feb 22nd 2021

Same workaround as #3270 (comment)

Yes, just change one of their name.

Thanks.