# element-ui@2.x

# 组件缺陷

  • el-input
    1. 未提供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

# todos

  • el-dialog 宽度问题
上次更新: 2023/11/27 19:07:10