Use pinch-zoom-element for pinch zoom functionality
This commit is contained in:
parent
544db06294
commit
a36673a6a8
8 changed files with 94 additions and 16 deletions
6
src/components/pinch_zoom/pinch_zoom.js
Normal file
6
src/components/pinch_zoom/pinch_zoom.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import PinchZoom from '@kazvmoe-infra/pinch-zoom-element'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
}
|
||||
}
|
11
src/components/pinch_zoom/pinch_zoom.vue
Normal file
11
src/components/pinch_zoom/pinch_zoom.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<pinch-zoom
|
||||
class="pinch-zoom-parent"
|
||||
v-bind="$attrs"
|
||||
v-on="$listeners"
|
||||
>
|
||||
<slot />
|
||||
</pinch-zoom>
|
||||
</template>
|
||||
|
||||
<script src="./pinch_zoom.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue