[new feature] ImagePreview: add closeOnPopstate prop

This commit is contained in:
陈嘉涵
2019-05-24 20:13:50 +08:00
parent 30ddcb5daa
commit b572c76245
7 changed files with 53 additions and 2 deletions
+1
View File
@@ -94,6 +94,7 @@ export default {
const instance = ImagePreview({
images,
asyncClose: !!timer,
closeOnPopstate: true,
startPosition: typeof position === 'number' ? position : 0
});