vue開發(fā)之多級全選多選checkbox
怎么用vue寫一個能全選多選框
效果如下圖所示:
前端代碼:
<template>
<div >
<div class="all">
<input type="checkbox" id="all" v-model="checked" @change="doChange($event,'0')" >
<label for="all">全選</label>
</div>
<div v-for="(vo,key1) in checkboxObj" :key="key1">
...