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.'
        }
      },
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-1b382d6-2c11f.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-1b382d6-2c11f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?