feat:设备使用记录
This commit is contained in:
@@ -125,13 +125,13 @@ const changeNums = (item, index) => {
|
||||
}
|
||||
|
||||
// 检查小数位数限制
|
||||
let decimal = props.numKeyboardParam?.decimal ?? -1
|
||||
const parts = nums.value.split('.')
|
||||
if (parts.length === 2 && decimal !== -1) {
|
||||
if (parts[1].length >= decimal) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
// let decimal = props.numKeyboardParam?.decimal ?? -1
|
||||
// const parts = nums.value.split('.')
|
||||
// if (parts.length === 2 && decimal !== -1) {
|
||||
// if (parts[1].length >= decimal) {
|
||||
// return false
|
||||
// }
|
||||
// }
|
||||
|
||||
nums.value += inputChar
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user