<el-input v-model.number="val" type="tel" min="0" max="102400" @input="val = String(val).replace(/[^\d]/g,'')"
/>
The v-model of the input is changed to v-model.number, the type is changed to tel, and the input event uses the replace() method of the string to replace the non-number content with nothing, and then the input can only input positive integers.