靶子放大方式修改
This commit is contained in:
@@ -158,7 +158,11 @@ onMounted(async () => {
|
|||||||
<movable-area
|
<movable-area
|
||||||
class="move-area"
|
class="move-area"
|
||||||
:style="{
|
:style="{
|
||||||
transform: scale > 1 ? `scale(${scale}) translateY(16.7%)` : '',
|
width: scale * 100 + 'vw',
|
||||||
|
height: scale * 100 + 'vw',
|
||||||
|
transform: `translate(${(100 - scale * 100) / 2}vw,${
|
||||||
|
(100 - scale * 100) / 2
|
||||||
|
}vw) translateY(${scale > 1 ? 16.7 : 0}%)`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<image :src="src" mode="widthFix" />
|
<image :src="src" mode="widthFix" />
|
||||||
@@ -187,20 +191,11 @@ onMounted(async () => {
|
|||||||
direction="all"
|
direction="all"
|
||||||
:animation="false"
|
:animation="false"
|
||||||
:out-of-bounds="true"
|
:out-of-bounds="true"
|
||||||
:x="arrow ? (rect.width * arrow.x) / scale : 0"
|
:x="arrow ? rect.width * arrow.x : 0"
|
||||||
:y="arrow ? (rect.width * arrow.y) / scale : 0"
|
:y="arrow ? rect.width * arrow.y : 0"
|
||||||
>
|
>
|
||||||
<view
|
<view class="point"> </view>
|
||||||
class="point"
|
<view v-if="arrow" class="edit-buttons" @touchstart.stop>
|
||||||
:style="{ transform: scale > 1 ? `scale(${1 / scale})` : '' }"
|
|
||||||
>
|
|
||||||
</view>
|
|
||||||
<view
|
|
||||||
v-if="arrow"
|
|
||||||
class="edit-buttons"
|
|
||||||
@touchstart.stop
|
|
||||||
:style="{ transform: scale > 1 ? `scale(${1 / scale})` : '' }"
|
|
||||||
>
|
|
||||||
<view class="edit-btn-text">
|
<view class="edit-btn-text">
|
||||||
<text>{{ arrow.ring === 0 ? "M" : arrow.ring }}</text>
|
<text>{{ arrow.ring === 0 ? "M" : arrow.ring }}</text>
|
||||||
<text
|
<text
|
||||||
@@ -238,17 +233,17 @@ onMounted(async () => {
|
|||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
.container::-webkit-scrollbar {
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
.move-area {
|
.move-area {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
.move-area::-webkit-scrollbar {
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.move-area > image {
|
.move-area > image {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
|||||||
Reference in New Issue
Block a user