<template>
...
<td><input type="text" :value="`${item.id}`" :readonly="readonly"></td>
<td><button @click="attr_toggle">Toggle</button></td>
</template>
<script>
...
data(){
return{
readonly: true
}
},
methods:{
attr_toggle(){
this.readonly = !this.readonly;
}
},
</script>