输入框

This commit is contained in:
zh
2025-08-12 11:50:19 +08:00
parent 0007343353
commit a888969c5d
6 changed files with 86 additions and 18 deletions

View File

@ -35,7 +35,8 @@ class eventBinding {
else {
Event.push((e) => {
let value = e.target.value
if (e.target.type == 'number') {
let str = e.target.value + ''
if (e.target.type == 'number' && !(str.charAt(str.length - 1) == '0' && e.target.value.toString().includes('.'))) {
value = Number(value)
}
that[m.value] = value