How to prevent input boxes from entering spaces in weex

<input class="searchInput"  :returnKeyType=""search"" @return="rSearch" v-model="goodsName" :placeholder="cateName" @blur="inputBlur" />

how to disable input from entering spaces

Jan.26,2022

solved, thank you

<input  @change="checkNo(goodsName)" class="searchInput" :returnKeyType="'search'" @return="rSearch" v-model="goodsName" :placeholder="cateName" @focus="getFocus" @blur="inputBlur" @input="getValue"  />
 // 
            checkNo(e) {
                let reg = /^\S+$/;
                if (e) {
                    if(new RegExp(reg).test(e) == false) {
                        this.goodsName = this.goodsName.trim()
                    }
                }
            }
Menu