From 4c32ed5493c6bb366564d1be75cbb93b9b31fb55 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 24 Dec 2019 22:41:26 -0500 Subject: [PATCH] [+] Create method to listen to image click --- src/App.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.ts b/src/App.ts index d44f927..68934bd 100644 --- a/src/App.ts +++ b/src/App.ts @@ -162,4 +162,12 @@ export default class App extends Vue } }) } + + onImageClick(index: number) + { + if (!this.loaded) return; + + // @ts-ignore + this.$refs.ps.show(this.swipeItems, {index: index}); + } }