feat(ImagePreview): enable close-on-popstate by default (#6875)

This commit is contained in:
neverland
2020-07-25 15:01:40 +08:00
committed by GitHub
parent e15abf4f0f
commit 41d4f9c160
7 changed files with 25 additions and 24 deletions
+5 -5
View File
@@ -6,23 +6,23 @@ let instance;
const defaultConfig = {
loop: true,
images: [],
value: true,
minZoom: 1 / 3,
images: [],
maxZoom: 3,
className: '',
minZoom: 1 / 3,
onClose: null,
onChange: null,
className: '',
showIndex: true,
closeable: false,
closeIcon: 'clear',
asyncClose: false,
getContainer: 'body',
startPosition: 0,
swipeDuration: 500,
showIndicators: false,
closeOnPopstate: false,
closeOnPopstate: true,
closeIconPosition: 'top-right',
getContainer: 'body',
};
const initInstance = () => {