qfw
This commit is contained in:
parent
23f2e2ff67
commit
077ae6f534
@ -127,7 +127,12 @@ const _sfc_main = defineComponent({
|
||||
watch(() => props.type, () => {
|
||||
type.value = props.type;
|
||||
});
|
||||
const input = ref();
|
||||
watch(() => props.modelValue, () => {
|
||||
if (!input.value.hasFocus() && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
}
|
||||
currentValue.value = String(props.modelValue == null ? "" : props.modelValue);
|
||||
});
|
||||
const onInput = function(event) {
|
||||
|
@ -11223,7 +11223,12 @@ const _sfc_main$1v = defineComponent({
|
||||
watch(() => props.type, () => {
|
||||
type4.value = props.type;
|
||||
});
|
||||
const input = ref();
|
||||
watch(() => props.modelValue, () => {
|
||||
if (!input.value.hasFocus() && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
}
|
||||
currentValue.value = String(props.modelValue == null ? "" : props.modelValue);
|
||||
});
|
||||
const onInput = function(event) {
|
||||
|
@ -95,10 +95,15 @@ watch(
|
||||
type.value = props.type;
|
||||
}
|
||||
);
|
||||
const input:any = ref<Element>()
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
if(!input.value.hasFocus() && props.qfw){
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return
|
||||
}
|
||||
currentValue.value = String(
|
||||
props.modelValue == null ? "" : props.modelValue
|
||||
);
|
||||
|
100
umd/index.js
100
umd/index.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user