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);
      }
    }
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-1e4d94f-6555d.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-1e4d94f-6555d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?