zoukankan      html  css  js  c++  java
  • vux x-input 清除按钮不起作用

    vux x-input 清除按钮不起作用,解决办法:

    找到node_modues—vux—src–components—x-input --index.vue 组件,修改以下三处

       focus () {
          // 优化添加
          setTimeout(() => {
          this.$refs.input.focus()
          }, 0) 
        },
     
     onBlur ($event) {
          this.setTouched()
          this.validate()
          // 优化添加
          setTimeout(() => {
            this.isFocus = false
          }, 0)
          this.$emit('on-blur', this.currentValue, $event)
        },
      onKeyUp (e) {
          if (e.key === 'Enter') {
            e.target.blur()
            this.isFocus = true  //优化添加
            this.$emit('on-enter', this.currentValue, e)
          }
  • 相关阅读:
    2016 年末 QBXT 入学测试
    Codevs 3409 搬礼物
    寻找子串位置
    Balanced Lineup
    统计难题
    爱在心中
    传话
    火柴排队
    新斯诺克
    排序
  • 原文地址:https://www.cnblogs.com/xienb/p/12695914.html
Copyright © 2011-2022 走看看