nickmessing / babel-plugin-jsx-v-model

JSX Syntactic Sugar Plugin for v-model
MIT License
155 stars 12 forks source link

Compat with built-in v-model transforms #1

Closed yyx990803 closed 7 years ago

yyx990803 commented 7 years ago

Might want to add an actual mounted test suite to ensure consistent behavior with the built-in v-model - it's a bit more complicated than the current transforms. A few things come to mind:

One thing we need to do in addition to the event and domProps is adding a v-model runtime directive so code here can be leveraged.

nickmessing commented 7 years ago

@yyx990803, yeah, I've done it for now just as a POC, I'll check vue's code and will try to replicate same behaviour

nickmessing commented 7 years ago

@yyx990803, solved in 2.0.0

yyx990803 commented 7 years ago

👍 thanks for the great job!