How to use js in vue to realize the automatic completion of .00 decimals in input input box? If the user enters 100 and leaves without the decimal cursor, it will automatically complete. 00, find the solution!

< input type= "text" value= "> < / input >

Mar.10,2021

write a component such as
xxx-input
show
calculation properties
computed: {
showText () {
}
}
after leaving focus
current value


        <Input
             v-model="doorSpot.openDoorTime"
             placeholder=""
             style="width: 120px;"
             @input="changeInput()"
        ></Input> 
      changeInput(){

        if(this.doorSpot.openDoorTime == '0'){
          this.doorSpot.openDoorTime = this.doorSpot.openDoorTime + '.';
        } else if (this.doorSpot.openDoorTime[0] === '.'){
          this.doorSpot.openDoorTime = '0.'
        }
      },
Menu