<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"竟然不触发