vue項(xiàng)目用的iview框架,input復(fù)選框默認(rèn)被綁到一起,點(diǎn)擊時(shí)一起選中和取消,需要單個(gè)
<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">原票證號(hào)碼:</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是從后臺(tái)獲取的數(shù)據(jù)填充的,
2019-11-15
你是想做一個(gè)什么交互呢? 遇到了什么問(wèn)題呢?
2019-11-15
不是很明白你的意思,你這里input和checkbox雙向綁定到同一個(gè)數(shù)據(jù)上。