Problems related to iview ui checkbox

write an example with the example on the official website, the code is as follows

<Checkbox-group v-molde="roles" @on-change="whenSelectRolesItem" size="large">
               <Checkbox label="1"></Checkbox>
               <Checkbox label="2"></Checkbox>
               <Checkbox label="3"></Checkbox>            
</Checkbox-group>

the official website of the on-change event is described as follows: "triggered when the state of the option changes, and returns the selected array." Changes by modifying external data will not trigger "

"

but when I do it myself, what I actually get is the checkbox value per click, not the value of all the selected checkbox
label

checkbox

v-modelroles roles: ["1"], label1""

could you tell me how to solve this?

May.28,2021
The two problems of

are for the same reason. If the word is misspelled, it should be v-model instead of v-molde


.

try this
Link description

<checkbox-group v-model="fruit" @on-change="change">
    <checkbox label=""></checkbox>
    <checkbox label=""></checkbox>
    <checkbox label=""></checkbox>
</checkbox-group>

methods:{
        change(vals){
      alert(vals);
      }
    }
Menu