You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I use v-model:[key]="title" in tsx锛宨t is not work. Is there a problem with my writing?
thanks!
// test.tsximport{defineComponent,ref}from"vue";importMyCompfrom"./my-comp";exportdefaultdefineComponent({setup(){consttitle=ref('this is title')constkey='title'return()=><>
test comp (tsx)
<MyCompv-model:title={title.value}></MyComp><MyCompv-model={[title.value,'title']}></MyComp><h4style="color: red">this is not working </h4><MyCompv-model={[title.value,key]}></MyComp></>}})
// test.tsximport{defineComponent,ref}from"vue";importMyCompfrom"./my-comp";exportdefaultdefineComponent({setup(){consttitle=ref('this is title')constkey='title'return()=><>testcomp(tsx)<MyCompv-model={[title.value,"title"]}></MyComp><MyCompv-model={[title.value,'title']}></MyComp><h4style="color: red">thisisnotworking</h4><MyCompv-model={[title.value,key]}></MyComp></>}})
this will not work because v-model must be compiled <MyComp v-model={[title.value, key]}></MyComp>
馃悰 Bug description
when I use
v-model:[key]="title"
in tsx锛宨t is not work. Is there a problem with my writing?thanks!
馃彏 Desired result
馃殤 Other information
The text was updated successfully, but these errors were encountered: