优化
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: '',
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
if (v.length) {
|
||||
const title = v.filter(v => v.type === '17')[0]
|
||||
const hoster = v.filter(v => v.type === '26')[0]
|
||||
const date = v.filter(v => v.type === '0')[0]
|
||||
const date = v.filter(v => v.type === '1')[0]
|
||||
const address = v.filter(v => v.type === '29')[0]
|
||||
const remark = v.filter(v => v.type === '31')[0]
|
||||
const theme = v.filter(v => v.type === '30')[0]
|
||||
|
||||
Reference in New Issue
Block a user