[Vuejs]-Vue panzoom container

0👍

It works good for me:

<template>
      <div ref="panzoomElement">
         <slot />
      </div>
</template>

mounted() {
        this.$nextTick(() => {
            this.panzoom = Panzoom(this.$refs.panzoomElement, {
                maxScale: 5,
            });
        });
    },

Leave a comment