qfw
This commit is contained in:
@@ -115,8 +115,10 @@ const onBlur = (event: Event) => {
|
||||
}
|
||||
if(props.qfw){
|
||||
try{
|
||||
console.log("添加,", new Number(props.modelValue).toLocaleString())
|
||||
currentValue.value = new Number(props.modelValue).toLocaleString()
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
// new String(props.modelValue).replace(reg, '$&,');
|
||||
console.log("添加,", new String(props.modelValue).replace(reg, '$&,'))
|
||||
currentValue.value = new String(props.modelValue).replace(reg, '$&,');
|
||||
}catch{
|
||||
currentValue.value = "输入错误"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user