vue項目用的iview框架,input復選框默認被綁到一起,點擊時一起選中和取消,需要單個
<Row?v-if="showFlag?==?false"?style="position:?absolute;width:?100%;top:40px;left:?0;">
????????????<Scroll?:height="scrollHeight"??>
????????????????<Card?class="zuo-fei-list-item"?v-for="(item,index)?in?baseInfoListArr"?:key="index"?>
?????????????????????<label?for="lab">
????????????????????????<Row?class="margin-top-1rem">
????????????????????????????<Col??class="text-align-left"?span="9">原票證號碼:</Col>
????????????????????????????<Col?class="text-align-left"?span="15">{{item.dzsphm}}</Col>
????????????????????????</Row>
????????????????????????<Row?class="margin-top-1rem">
????????????????????????????<Col?class="text-align-right">
????????????????????????????????<!--?<label?for="lab"></label>?-->
????????????????????????????????<input?name="checkbox"?type="checkbox"?class="tui-checkbox"?id="lab"?v-model="check"?:value="index"?@click="ipt()">
????????????????????????????????<!--?<Checkbox?v-model="check"></Checkbox>?-->
????????????????????????????</Col>
????????????????????????</Row>
????????????????????</label>
????????????????</Card>
????????????</Scroll>
????????</Row>
注:baseinfolistarr是從后臺獲取的數據填充的,
2019-11-15
你是想做一個什么交互呢? 遇到了什么問題呢?
2019-11-15
不是很明白你的意思,你這里input和checkbox雙向綁定到同一個數據上。