原代码
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