Vux framework, how to get the id? selected by the check box

clipboard.png

the official document is as follows:

<checklist title="" :options="commonList" v-model="fruitID"></checklist>
{{fruitID}}

commonList:[ "China", "Japan", "America" ]

but the actual project data will not be like this. It will definitely carry id, as follows

commonList: 
[
    {
        id:1,
        name:""
    },
    {
        id:2,
        name:""
    }
],

in this way, I will pass the selected id to the background

The

document does not specify whether anyone has used this framework and how to get the corresponding id?.


export default {

data () {  
  return {  
    tag: '1',  
    commonList: 
        [
            {
                id:1,
                name:""
            },
            {
                id:2,
                name:""
            }
        ],
}  

},

< checklist title= "Please select": options= "tag = item.id" VMI model = "fruitID" VMI for = "item in commonList" > < / checklist >

The example in the

document is the same as yours
clipboard.png

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