# element-ui@2.x
# 组件缺陷
- el-input
- 未提供prop控制是否在blur里对值进行trim()
单个input: 在blur事件中 this.form.key = this.form.key.trim()
form中多个input: 可提供公共方法 @blur="handleBlur('key1', $event)"handleBlur(key, $event) { if (typeof(key) === 'string') { this.form[key] = this.form[key].trim() } }
1
2
3
4
5
- 未提供prop控制是否在blur里对值进行trim()
# todos
- el-dialog 宽度问题