This commit is contained in:
Theluyuan 2022-12-12 09:12:17 +08:00
parent 254ef38f6a
commit 7a6502200c
4 changed files with 4 additions and 4 deletions

View File

@ -142,6 +142,7 @@ const _sfc_main = defineComponent({
if (props.type === "number") { if (props.type === "number") {
onNumberBlur(event); onNumberBlur(event);
} }
currentValue.value = new String(props.modelValue).toLocaleString();
emit("blur", event); emit("blur", event);
}; };
const onNumberBlur = (event) => { const onNumberBlur = (event) => {
@ -157,7 +158,6 @@ const _sfc_main = defineComponent({
if (props.qfw) { if (props.qfw) {
value = value.replace(/,/g, ""); value = value.replace(/,/g, "");
} }
currentValue.value = new String(props.modelValue).toLocaleString();
emit("update:modelValue", value); emit("update:modelValue", value);
}; };
const onCompositionstart = () => { const onCompositionstart = () => {

View File

@ -11238,6 +11238,7 @@ const _sfc_main$1v = defineComponent({
if (props.type === "number") { if (props.type === "number") {
onNumberBlur(event); onNumberBlur(event);
} }
currentValue.value = new String(props.modelValue).toLocaleString();
emit("blur", event); emit("blur", event);
}; };
const onNumberBlur = (event) => { const onNumberBlur = (event) => {
@ -11253,7 +11254,6 @@ const _sfc_main$1v = defineComponent({
if (props.qfw) { if (props.qfw) {
value = value.replace(/,/g, ""); value = value.replace(/,/g, "");
} }
currentValue.value = new String(props.modelValue).toLocaleString();
emit("update:modelValue", value); emit("update:modelValue", value);
}; };
const onCompositionstart = () => { const onCompositionstart = () => {

View File

@ -116,6 +116,7 @@ const onBlur = (event: Event) => {
if (props.type === "number") { if (props.type === "number") {
onNumberBlur(event); onNumberBlur(event);
} }
currentValue.value = new String(props.modelValue).toLocaleString()
emit("blur", event); emit("blur", event);
}; };
@ -130,7 +131,6 @@ const onNumberBlur = (event: Event) => {
if(props.qfw){ if(props.qfw){
value = value.replace(/,/g,"") value = value.replace(/,/g,"")
} }
currentValue.value = new String(props.modelValue).toLocaleString()
emit("update:modelValue", value); emit("update:modelValue", value);
}; };

File diff suppressed because one or more lines are too long