qfw
This commit is contained in:
parent
8e4f8dd45f
commit
5a0d86e2e9
@ -141,7 +141,7 @@ const _sfc_main = defineComponent({
|
||||
}
|
||||
if (props.qfw) {
|
||||
try {
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
let reg = /\B(?=(\d{3})+$)/g;
|
||||
console.log("\u6DFB\u52A0\uFF0C", new String(props.modelValue).replace(reg, "$&,"));
|
||||
currentValue.value = new String(props.modelValue).replace(reg, "$&,");
|
||||
} catch {
|
||||
|
@ -11237,7 +11237,7 @@ const _sfc_main$1v = defineComponent({
|
||||
}
|
||||
if (props.qfw) {
|
||||
try {
|
||||
let reg = /\d{1,3}(?=(\d{3})+$)/g;
|
||||
let reg = /\B(?=(\d{3})+$)/g;
|
||||
console.log("\u6DFB\u52A0\uFF0C", new String(props.modelValue).replace(reg, "$&,"));
|
||||
currentValue.value = new String(props.modelValue).replace(reg, "$&,");
|
||||
} catch {
|
||||
|
@ -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, '$&,');
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user