<input class="input" :min="0" :maxlength="5" :max="99999"
v-model="count" type="text" placeholder="请输入要修改的数字"
@input="changeCount(count)"/>
const count = ref(0)
const changeCount = (e: any) => {
let reg = e.replace(/[^\d]/g, '') //只输入数字
if (reg.length > 1 && reg.charAt(0) == 0) {
reg = reg.slice(1) //第一个字符不是0
}
count.value = reg
}