以下为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()
}

即可解决问题。

相关文章:

  • 2023-03-18
  • 2021-07-28
  • 2022-12-23
  • 2021-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案