vuejs / babel-plugin-jsx

JSX for Vue 3
https://vue-jsx-explorer.netlify.app
MIT License
1.71k stars 141 forks source link

vModel 修饰符不能动态 #679

Closed luocong2016 closed 3 weeks ago

luocong2016 commented 11 months ago

🐛 Bug description

 v-model={[dataRef.value, 'value']}

📝 Steps to reproduce

v-model argumens 无法动态,如静态变量承接都会引起 update:XX 函数是 undefined

🏞 Desired result

const xx = 'value'
 v-model={[dataRef.value, xx]}

🚑 Other information

zhiyuanzmj commented 7 months ago

642

zhiyuanzmj commented 6 months ago

vue-macros already supports dynamic argument

image