elementUI复选框change事件选择不写方法处理方式
不用写方法,如此判断即可
<el-form-item prop="executType"> <el-checkbox-group v-model="fileApprForm.executType"> <el-checkbox @change="leaderVisible=!leaderVisible" label="呈送领导"></el-checkbox> <el-checkbox @change="executerVisible=!executerVisible" label="发送给执行人"></el-checkbox> </el-checkbox-group> </el-form-item>
export default { data() { return { leaderVisible: false, executerVisible: false, }, } },