[+] Create method to listen to image click

This commit is contained in:
Hykilpikonna
2019-12-24 22:41:26 -05:00
parent 972134c15d
commit 4c32ed5493
+8
View File
@@ -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});
}
}