<Select @on-change="setOption"
:label-in-value="true"
style="width: 150px"
placeholder=""
v-model="model12"
filterable>
<Option v-for="item in cityList" :value="item.value">{{ item.label }}</Option>
</Select>
cityList: [
{
id:"11",
value: "beijing",
label: ""
},
{
id:"31",
value: "shanghai",
label: ""
},
{
id:"13",
value: "hebei",
label: ""
},
],
setOption(v){
console.log(v);
},
is such a simple code, why only console.log label and value.
how can I get ID?