我试图只选中一个复选框,但是当我选中它时,其余的也会被选中。为什么会这样?有任何关于此的文档吗?
<md-layout v-for="Location in Locations" :key="Location.id">
<md-checkbox v-model="checkbox" class="md-warn">{{ Location.city }}</md-checkbox>
</md-layout>
data () {
return {
checkbox: false,
Locations: [{
id: 1,
city: '1'
}, {
id: 2,
city: '2'
}, {
id: 3,
city: '3'
}, {
id: 4,
city: '4'
}, {
id: 5,
city: '5'
}, {
id: 6,
city: '6'
}]