Browse Source

fix(vc-image): remove repeat listener (#6945)

pull/6953/head
Konv Suu 1 year ago committed by GitHub
parent
commit
3c5fb84542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/vc-image/src/Image.tsx

3
components/vc-image/src/Image.tsx

@ -97,9 +97,6 @@ const ImageInternal = defineComponent({
onChange: onPreviewVisibleChange, onChange: onPreviewVisibleChange,
}); });
watch(isShowPreview, (val, preVal) => {
onPreviewVisibleChange(val, preVal);
});
const status = ref<ImageStatus>(isCustomPlaceholder.value ? 'loading' : 'normal'); const status = ref<ImageStatus>(isCustomPlaceholder.value ? 'loading' : 'normal');
watch( watch(
() => props.src, () => props.src,

Loading…
Cancel
Save