Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
222 views
in Technique[技术] by (71.8m points)

element-ui表单组件名称为npm时出现问题

问题描述:
npm 在element-ui表单组件中是不是保留的关键字,当el-input 双向绑定的名称为npm时,出现问题:
1、input框无法 输入内容,使用 @input="change($event)" change方法中使用this.$forceUpdate(),才能输入;
2、基于第一个问题的处理,输入值后,自定义校验方法中value始值是空值,在自定义校验方法中输出表单数据,npm的值是存在的;
image.png
image.png

将npm更换为其他名称,则可以正常输入和校验;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...