优化
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user