<u-input
:placeholder="'请输入金额'"
border="none"
v-model="value"
@change="fastSearchInput()"
></u-input>
methods: {
fastSearchInput(e) {
// this.$nextTick必要
this.$nextTick(() => {
value = e.replace(/\s\s+/g, ' '); // 多个空格保留一个空格
})
},
}
uview的input输入框修改输入值后输入框中的值不更新的问题
最新推荐文章于 2025-05-07 11:55:14 发布