<a-input-number
ref="sxInput"
size="middle"
style="width: 200px"
v-model:value="inputValue"
@focus="onFocus"
/>
export default {
setup() {
const sxInput = ref()
onMounted(() => {
nextTick(() => {
sxInput.value.focus()
})
})
const onFocus = e => {
e.target.select()
}
}
}