Browse Source

fix: a flash of pictures when previewing was turned off (#5955)

pull/5966/head
24min 2 years ago committed by GitHub
parent
commit
31800cb99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/vc-image/src/PreviewGroup.tsx

2
components/vc-image/src/PreviewGroup.tsx

@ -150,7 +150,7 @@ const Group = defineComponent({
);
watchEffect(
() => {
if (!isShowPreview.value && isControlled.value) {
if (isShowPreview.value && isControlled.value) {
setCurrent(currentControlledKey.value);
}
},

Loading…
Cancel
Save