checkbox的写法.
作者:互联网
<el-form-item prop="checkList" label="复选框" > <el-checkbox-group v-model="moduleForm.checkList"> <el-checkbox v-for="item in checkListOption" :label="item.value" :key="item.value" >{{item.label}}</el-checkbox> </el-checkbox-group> </el-form-item>
moduleForm = { checkList: [] } checkListOption = [{ value: '001-3', label: '门诊部' }, { value: '001-4', label: '住院部' }, { value: '001-5', label: '后勤部' }]
标签:moduleForm,checkbox,checkList,value,label,001,写法 来源: https://www.cnblogs.com/LFxanla/p/11105733.html