The element check box group changes the value to true, through vue, but the page is not checked.

dynamically generate el-checkbox-group to change the el-checkbox v-model value through vue, but the value is changed but the page el-checkbox is not checked

clipboard.png

clipboard.png

clipboard.png

related codes

<el-checkbox-group v-model="channel">
                            <li > <el-checkbox v-for="(item,index) in form.channel" :disabled="item.channelAs" :key="index"
                                :checked="item.channelModel" v-model="item.channelModel" :label="item.id" >{{item.channelModel}}</el-checkbox>
                            </li>
        </el-checkbox-group>



Apr.25,2021
Whether the

page is checked depends on whether the label in el-checkbox corresponds to the element value of v-model 's channel. If there is a specified value, it is selected, otherwise

is unchecked.
Menu