<input type="number" placeholder="0" v-model.number="atack" v-on:keyup="updateValue" />
<input type="number" placeholder="0" v-model.number="atack_awa" v-on:keyup="updateValue" />
<input type="number" placeholder="0" v-model.number="def" v-on:keyup="updateValue" />
updateValue(event) {
let value = event.target.value
if (String(value).length > 3) {
value = value.slice(0, 3)
}
this.$forceUpdate()
},
<input type="number" placeholder="0" v-model.number="atack" v-on:keyup="updateValue" />
<input type="number" placeholder="0" v-model.number="atack_awa" v-on:keyup="updateValue" />
<input type="number" placeholder="0" v-model.number="def" v-on:keyup="updateValue" />
updateValue(event) {
let value = event.target.value
if (String(value).length > 3) {
value = value.slice(0, 3)
}
this.$forceUpdate()
},