【发布时间】:2019-12-07 21:19:06
【问题描述】:
我的子组件如下所示:
<div>
<label>Label</label>
<VTextField
:value="addOnLabel"
@input="$emit('update:addOnLabel', $event.target.value)"
solo
outline
reverse
type="text"
/>
</div>
props: {
addOnLabel: {},
},
我的父母长这样:
<MultiplierDropDown :addOnLabel.sync="addOnLabel"/>
问题:当我开始在输入字段中输入内容时,它会显示Error in v-on handler: "TypeError: Cannot read property 'value' of undefined"
【问题讨论】:
标签: javascript vue.js vuejs2 vue-component vuetify.js