This commit is contained in:
yanran200730
2022-06-17 17:56:36 +08:00
parent 6d613abef2
commit f5f15af45f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<div
class="watermark"
v-if="currIndex > -1 && currWatermarkConfig.length"
:style="{left: x + 'px', top: y + 'px', transform: 'scale(' + watermarkScale + ')' }"
:style="{left: x + 'px', top: y + 'px', transform: 'scale(' + watermarkScale + ')', transformOrigin: 'left' }"
@touchstart="onTouchstart"
@touchmove="onTouchmove">
<component ref="WatermarkItem" :is="'Watermark' + (currIndex + 1)" :config="currWatermarkConfig"></component>
@@ -141,7 +141,7 @@
data () {
return {
img: '',
currIndex: -1,
currIndex: 0,
isHide: true,
height: '100%',
waterSrc: '',