How to use the plug-in method of vue?

vue-photo-preview this plug-in
is that the following two methods do not know where to write in the component?

this.$preview.on("close",()=>{//close
    console.log("")
})

//--this.$preview.self :
this.$preview.on("imageLoadComplete",(e,item)=>{
    console.log(this.$preview.self)  //this.$preview.selfphotoswipe
})

I have introduced

into the entry file.
import preview from "vue-photo-preview"
import "vue-photo-preview/dist/skin.css"

var options = {
  fullscreenEl: false,
  tapToClose: true
}
Vue.use(preview, options)
Vue.prototype.$preview = preview
Jun.14,2022
Menu