<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, ' '); // 多个空格保留一个空格
})
},
}