<input class="uni-input" type="number" v-model="form.number" placeholder="这是一个数字输入框" @input="verifyInput($event)" />
//验证数量 const verifyInput = (e: any) => { // console.log(e.detail.value, test.value) // if (e.detail.value == "111") { // test.value = 0 // } form.value.number = (+form.value.number > +form.value.stock) ? +form.value.stock : +form.value.number; }
橘子侠
vue3用this.$nextTick也无效吧? 我刚刚是用css属性pointer-events代替了
2022-08-13 14:18
橘子侠
pointer-events:${cy_change?'none':'auto'}
2022-08-13 14:18
8***@qq.com
nextTick具体咋用的呢 我也遇到了这个问题 无语了
2022-10-28 14:39