fix(ImagePreview): scale event index is undefined (#7971)

This commit is contained in:
neverland
2021-01-23 15:46:30 +08:00
committed by GitHub
parent fcb5c223ba
commit 95e45ab88a
+1 -1
View File
@@ -97,7 +97,7 @@ export default {
state.scale = range(scale, +props.minZoom, +props.maxZoom);
emit('scale', {
scale: state.scale,
index: state.active,
index: props.active,
});
};