源码
对非字符串值
nativeInputValue() {
return this.value === null || this.value === undefined ? '' : String(this.value);
},
常见问题
clearable 会动态改变宽度
原因是宽度不固定,可以设置一个固定宽度。
:deep.el-input.el-input--default.el-input--suffix {
// 固定宽度
width: 200px !important;
}
阅读更多内容,可以查看: