How to get the corresponding id? from the mint-ui radio box

read an example of the official document:

clipboard.png

{{movieID}}
<mt-radio
    v-model="movieID"
    :options="list_movie">
</mt-radio>
-------
list_movie:["","",""]

question:
the data of the actual project is definitely not like this, and a json will be returned

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

if this is the data
how can I render it? How to get the corresponding id?


{{movie.id}}
<mt-radio
    v-model="movie"
    :options="list_movie">
</mt-radio>
-------
list_movie:[
    {
        id:1,
        name:""
    },
    {
        id:2,
        name:""
    }
]

clipboard.png
value represents the currently selected value
label represents the label displayed on the page

list_movie: [{value: 1, label: "wrestling daddy"}, {value: 2jinlabel: "I am not a medicine god"}]

< mt-radio v list_movie model = "value": options= "list_movie" > < / mt-radio >

actually, I don't know. Give it a try.

Menu