This commit is contained in:
2022-12-12 09:29:59 +08:00
parent 8e4f8dd45f
commit 5a0d86e2e9
4 changed files with 4 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ const onBlur = (event: Event) => {
}
if(props.qfw){
try{
let reg = /\d{1,3}(?=(\d{3})+$)/g;
let reg = /\B(?=(\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, '$&,');