qfw
This commit is contained in:
parent
254ef38f6a
commit
7a6502200c
@ -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 = () => {
|
||||||
|
@ -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 = () => {
|
||||||
|
@ -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
Loading…
Reference in New Issue
Block a user