变更
This commit is contained in:
@@ -95,7 +95,9 @@ const _sfc_main = defineComponent({
|
||||
const props = __props;
|
||||
const slots = useSlots();
|
||||
const type = ref(props.type);
|
||||
const currentValue = ref(String(props.modelValue == null ? "" : props.modelValue));
|
||||
const currentValue = ref(
|
||||
String(props.modelValue == null ? "" : props.modelValue)
|
||||
);
|
||||
const hasContent = computed(() => {
|
||||
var _a;
|
||||
return ((_a = props.modelValue) == null ? void 0 : _a.length) > 0;
|
||||
@@ -128,18 +130,26 @@ const _sfc_main = defineComponent({
|
||||
return isNaN(parseInt(z)) ? 0 : z;
|
||||
}
|
||||
};
|
||||
watch(() => props.type, () => {
|
||||
type.value = props.type;
|
||||
});
|
||||
const input = ref();
|
||||
watch(() => props.modelValue, () => {
|
||||
console.log(input);
|
||||
if (!(input.value == document.activeElement) && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
watch(
|
||||
() => props.type,
|
||||
() => {
|
||||
type.value = props.type;
|
||||
}
|
||||
currentValue.value = String(props.modelValue == null ? "" : props.modelValue);
|
||||
});
|
||||
);
|
||||
const input = ref();
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
console.log(input);
|
||||
if (!(input.value == document.activeElement) && props.qfw) {
|
||||
currentValue.value = formatMoney(props.modelValue.toString());
|
||||
return;
|
||||
}
|
||||
currentValue.value = String(
|
||||
props.modelValue == null ? "" : props.modelValue
|
||||
);
|
||||
}
|
||||
);
|
||||
const onInput = function(event) {
|
||||
const inputElement = event.target;
|
||||
let value = inputElement.value;
|
||||
|
||||
Reference in New Issue
Block a user