关于uview中u--input的一个问题?

<view class="wCss" style="display: flex;justify-content: space-between;align-items: center;">    
                    <u--input
                      placeholder="请设置充值金额"
                      v-model="AmountVal"
                      @change="change"
                      @focus="getfocusx"
                      @clear='clearHandle'
                      type='digit'
                      @input="onInput"
                      border="bottom"
                      :customStyle="{fontWeight:'bold',backgroundColor:'#fff'}"
                      clearable 
                      fontSize='22'
                    ></u--input>
                   <view  @click="clearHandle" class="kongx">清空</view>
                </view>

其中清除的代码如下:

clearHandle(){
                console.log("清除")
                this.AmountVal=''
            },

问题是进入页面第一个输入内容点"清除"可以正常清除,第二次正常点“清除”就不能正常清除了,有遇到过的没?

还有我输入数字时@change="change"竟然不触发

阅读 371
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进