<Input
v-model.trim="fastSearch"
type="text"
placeholder="查询"
@input="fastSearchInput"
/>
methods: {
fastSearchInput(e) {
// this.$nextTick必要
this.$nextTick(() => {
this.fastSearch = e.replace(/\s\s+/g, ' '); // 多个空格保留一个空格
})
},
}
iview的input输入框修改输入值后输入框中的值不更新的问题
最新推荐文章于 2023-11-22 14:58:46 发布