0👍
It works good for me:
<template>
<div ref="panzoomElement">
<slot />
</div>
</template>
mounted() {
this.$nextTick(() => {
this.panzoom = Panzoom(this.$refs.panzoomElement, {
maxScale: 5,
});
});
},
Source:stackexchange.com