Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

两组不同的数据,在input type=checkbox时 v-model自动关联。 #9720

Closed
toyouzi opened this issue Mar 16, 2019 · 1 comment
Closed

Comments

@toyouzi
Copy link

toyouzi commented Mar 16, 2019

当我点击item1或者item2的input时 v-model同时绑定了它们俩

<table>
 <tr v-for="item1 in list1" :key="item1.index">
   <td>{{item1.parentProductName}}</td>
   <td>{{item1.productName}}</td>
   <td><input type="checkbox" v-model="item1.status" :checked="item1.status" @click="item1.status = !item1.status"></td>
 </tr>
</table>
<table>
 <tr v-for="item2 in list2" :key="item2.index">
   <td>{{item2.parentProductName}}</td>
   <td>{{item2.productName}}</td>
   <td><input type="checkbox" v-model="item2.status" :checked="item2.status" @click="item2.status = !item2.status"></td>
 </tr>
</table>
@vue-bot
Copy link
Contributor

vue-bot commented Mar 16, 2019

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this as completed Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants