question: add input rules to the
input box, such as
e.detail.value = e.detail.value.replace(/\.{2,}/g, ".")
e.detail.value = e.detail.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")
but the effect of using replace is not good, because it is judged after the user input, whether it can be realized that when the user inputs, if the input is wrong, the user will not be allowed to enter, and there will not be the feeling of flickering before