Non-numeric characters cannot be entered in the weex project input box

the function that non-numeric characters cannot be entered in the input box of the weex project cannot be implemented

the code is as follows:

<template>
 <input class="login-phone" type="number" placeholder="" maxlength="11" :value="phone" @input="inputPhone" ref="aaaa">
</template>
<script>
created () {
    storage.getItem("phone", e => {
      if (e.result === "success") {
        this.phone = e.data
      }
    })
  },
methods: {
    inputPhone (event) {
      // event.target= event.value.replace(/\D/g, "") // 
      // this.phone = event.value.replace(/\D/g, "") // 
      /** this.$refs.aaaa.setTextFormatter({
        formatRule: "/(\d)(\D)/g",
        formatReplace: "$1",
        recoverRule: "/\D/g",
        recoverReplace: ""
      }) */ // 
      this.phone = event.value
    }
}
</script>
Mar.25,2021

there is no good way to control it, we can only control it through js

.
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-1b32eb1-40e94.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-1b32eb1-40e94.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?