一、问题:
输入框或选择器和其他组件嵌套过深会导致文字输入不显示,选择选项不显示。
二、解决方法:
使用vm.$forceUpdate()使 Vue 实例重新渲染。
对input输入框绑定input/change事件,@input="$forceUpdate()" 或 @change="$forceUpdate()"
给选择器绑定change事件,@change="$forceUpdate()"
输入框或选择器和其他组件嵌套过深会导致文字输入不显示,选择选项不显示。
使用vm.$forceUpdate()使 Vue 实例重新渲染。
对input输入框绑定input/change事件,@input="$forceUpdate()" 或 @change="$forceUpdate()"
给选择器绑定change事件,@change="$forceUpdate()"