0
에서 V 모델을 선택 문에 대한 혼란 나는 다음과 같은 vuejs 코드를 가지고 : 내 changedInverter
에서 console.log(this.selectedInverter)
, 난 그냥 DISPLAY_NAME 아니라 전체 개체를 얻을 경우vuejs2
<select v-model='selectedInverter' class="custom-select" @change="changedInverter">
<option>Select an inverter</option>
<template v-for="inverter in localInverters">
<option>{{inverter.display_name}}</option>
</template>
</select>
. v-model에서 전체 객체를 어떻게 캡처 (또는 바인딩)합니까?