首页 > 其他分享 >jsx中渲染报错 Invalid handler for event "input": got undefined

jsx中渲染报错 Invalid handler for event "input": got undefined

时间:2023-02-10 11:25:12浏览次数:57  
标签:undefined dom Invalid handler let 报错

原代码

 let dom =
      <el-dialog title="详细信息" visible={ this.dialogshow } cancel:false width="600px">
        <el-form model={ this.ruleForm } rules={this.rules} ref="ruleForm" label-width="100px" class="demo-ruleForm">
          <el-form-item label="医院名称" prop="ErpHospitalName">
            <el-input vModel={this.ruleForm.ErpHospitalName}></el-input>

改良后

let dom =
      <el-dialog title="详细信息" visible={ this.bddialogshow } cancel:false width="600px">
        <el-form props={{ model: this.ruleForm }} rules={this.rules} ref="ruleForm" label-width="100px" class="demo-ruleForm">

报错消失

标签:undefined,dom,Invalid,handler,let,报错
From: https://www.cnblogs.com/zxyUsed/p/17108300.html

相关文章