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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ export default {
state.scale = range(scale, +props.minZoom, +props.maxZoom); state.scale = range(scale, +props.minZoom, +props.maxZoom);
emit('scale', { emit('scale', {
scale: state.scale, scale: state.scale,
index: state.active, index: props.active,
}); });
}; };