以下為el-input的代碼。在被賦值后,輸入框組件出現無法輸入的問題。
<el-input v-model="ruleForm.processReview" class="oms-input" type="textarea" placeholder="請輸入處理意見" />
解決方式:增加@input觸發事件,即@input="change($event)"。
<el-input v-model="ruleForm.processReview" class="oms-input" type="textarea" placeholder="請輸入處理意見" @input="change($event)" />
觸發change函數,強制刷新組件。
change(e){ this.$forceUpdate() }
即可解決問題。