[+] Create method to listen to image click
This commit is contained in:
@@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user