This commit is contained in:
Theluyuan 2022-12-12 10:41:09 +08:00
parent f3c181ba88
commit 61c20fc6b6
4 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,7 @@ const _sfc_main = defineComponent({
const input = ref(); const input = ref();
watch(() => props.modelValue, () => { watch(() => props.modelValue, () => {
console.log(input); console.log(input);
if (!input.value.hasFocus() && props.qfw) { if (!(input.value == document.activeElement) && props.qfw) {
currentValue.value = formatMoney(props.modelValue.toString()); currentValue.value = formatMoney(props.modelValue.toString());
return; return;
} }

View File

@ -11226,7 +11226,7 @@ const _sfc_main$1v = defineComponent({
const input = ref(); const input = ref();
watch(() => props.modelValue, () => { watch(() => props.modelValue, () => {
console.log(input); console.log(input);
if (!input.value.hasFocus() && props.qfw) { if (!(input.value == document.activeElement) && props.qfw) {
currentValue.value = formatMoney(props.modelValue.toString()); currentValue.value = formatMoney(props.modelValue.toString());
return; return;
} }

View File

@ -101,7 +101,7 @@ watch(
() => props.modelValue, () => props.modelValue,
() => { () => {
console.log(input) console.log(input)
if(!input.value.hasFocus() && props.qfw){ if(!(input.value == document.activeElement) && props.qfw){
currentValue.value = formatMoney(props.modelValue.toString()); currentValue.value = formatMoney(props.modelValue.toString());
return return
} }

File diff suppressed because one or more lines are too long