Is the vue input component written correctly, as if it took a detour?

after writing several form pages, I found that encapsulating input seems to save code. Then I found some examples and wrote one myself, but something didn"t seem right. Please take a look at it for me

input component:
< template >

<li>
    <h5>{{ title }}</h5>
    <input :type="type" @input="$emit("update",keys,$event.target.value)" :value="value" name="" :id="id" :placeholder="placeholder" />
</li>    

< / template >

< script >
export default {

name: "LiInput",
props: ["title","type","id","placeholder","keys","value"]

}
< / script >

parent component call:
< LiInput id= "age" placeholder= "Please enter the age" type= "number" title= "age" keys= "age": value= "age" @ update= "update" / >

data: of the parent component {

age: 18

}
parent component"s update method:
update: function (key,value) {

this.$data[key] = value;
console.log(this.$data[key])

}

the problem is that, in this way, I need to manually change the value of age. What should I do if I can modify age if I don"t need update?

Sep.09,2021

https://www.jianshu.com/p/6b0.
uses .sync

parent component < LiInput: value.sync= "age" / >

Sub-component < input: value= "value" @ input= "$emit ('update:value',$event.target.value)" / >

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ebad4b-485c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ebad4b-485c5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?