How to get both label and value from < CheckboxGroup v value model = "" > in iview?

< CheckboxGroup VMI model = "model1" >
.

checkbox is different from tree, there is only one label value. The value obtained by model1 after two-way binding is only the value displayed by checkbox. If you want to get value, you can only bind label = [1] data 1, and then label.split ("]") in the background, but the front end display is too unfriendly and beautiful. Ask the master how to join this value?

Feb.28,2021

can be written as follows:
< CheckboxGroup VMI model = "thisCourse" @ on-change= "select ()" >

  :
  <Checkbox v-for="(item,key) in courses" :key="key" :label="item.value" >
         <span>{{item.label}}</span>
  </Checkbox>

< / CheckboxGroup >


checkbox can only bind data of type String | Number | Boolean . If you want to bind an object, it is recommended to register a method to find it according to the currently selected value. The pseudo code for reference is:
< CheckboxGroup VMub model = "model1" @ on-change= "findData" >
every time a change in checkbox is triggered, the fingdData method will be executed, and then go inside to find the value you want

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e7b48c-842.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e7b48c-842.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?