优化
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<div
|
<div
|
||||||
class="watermark"
|
class="watermark"
|
||||||
v-if="currIndex > -1 && currWatermarkConfig.length"
|
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"
|
@touchstart="onTouchstart"
|
||||||
@touchmove="onTouchmove">
|
@touchmove="onTouchmove">
|
||||||
<component ref="WatermarkItem" :is="'Watermark' + (currIndex + 1)" :config="currWatermarkConfig"></component>
|
<component ref="WatermarkItem" :is="'Watermark' + (currIndex + 1)" :config="currWatermarkConfig"></component>
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
img: '',
|
img: '',
|
||||||
currIndex: -1,
|
currIndex: 0,
|
||||||
isHide: true,
|
isHide: true,
|
||||||
height: '100%',
|
height: '100%',
|
||||||
waterSrc: '',
|
waterSrc: '',
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
if (v.length) {
|
if (v.length) {
|
||||||
const title = v.filter(v => v.type === '17')[0]
|
const title = v.filter(v => v.type === '17')[0]
|
||||||
const hoster = v.filter(v => v.type === '26')[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 address = v.filter(v => v.type === '29')[0]
|
||||||
const remark = v.filter(v => v.type === '31')[0]
|
const remark = v.filter(v => v.type === '31')[0]
|
||||||
const theme = v.filter(v => v.type === '30')[0]
|
const theme = v.filter(v => v.type === '30')[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user