qfw
This commit is contained in:
@@ -116,8 +116,16 @@ const onBlur = (event: Event) => {
|
||||
if (props.type === "number") {
|
||||
onNumberBlur(event);
|
||||
}
|
||||
console.log("添加,", new String(props.modelValue).toLocaleString())
|
||||
currentValue.value = new String(props.modelValue).toLocaleString()
|
||||
if(props.qfw){
|
||||
try{
|
||||
console.log("添加,", new Number(props.modelValue).toLocaleString())
|
||||
currentValue.value = new Number(props.modelValue).toLocaleString()
|
||||
}catch{
|
||||
currentValue.value = "输入错误"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
emit("blur", event);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user