feat(Uploader): add close-preview event (#4376)

This commit is contained in:
neverland
2019-09-05 16:08:45 +08:00
committed by GitHub
parent 205258389e
commit b9c1dca67c
4 changed files with 24 additions and 2 deletions

View File

@@ -189,7 +189,10 @@ export default createComponent({
ImagePreview({
images: imageFiles,
closeOnPopstate: true,
startPosition: imageFiles.indexOf(item.content || item.url)
startPosition: imageFiles.indexOf(item.content || item.url),
onClose: () => {
this.$emit('close-preview');
}
});
},