// 只能输入整数
// onkeyup="this.value= this.value.match(//d+(/./d{0,2})?/) ? this.value.match(//d+(/./d{0,2})?/)[0] : ''"
<a-input type="number" v-model:value="formGroup.value" placeholder="请输入值" autocomplete="off" step="1" min="0" allowClear onkeyup="this.value= this.value.match(//d+(/./d{0,2})?/) ? this.value.match(//d+(/./d{0,2})?/)[0] : ''"/>
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/245603.html