细节优化

This commit is contained in:
kron
2025-08-12 10:16:11 +08:00
parent 6e61f079e8
commit d29ee32f11
2 changed files with 20 additions and 17 deletions

View File

@@ -202,7 +202,6 @@ onMounted(async () => {
<view
v-if="arrow.x !== undefined && arrow.y !== undefined"
class="point"
:style="{ transform: `scale(${1 / scale})` }"
>
<text>{{ index + 1 }}</text>
</view>
@@ -216,8 +215,7 @@ onMounted(async () => {
:x="arrow ? (rect.width * arrow.x) / scale : 0"
:y="arrow ? (rect.width * arrow.y) / scale : 0"
>
<view class="point" :style="{ transform: `scale(${1 / scale})` }">
</view>
<view class="point"> </view>
<view
v-if="arrow"
class="edit-buttons"
@@ -225,18 +223,18 @@ onMounted(async () => {
:style="{ transform: `scale(${1 / scale})` }"
>
<view class="edit-btn-text">
<text v-if="arrow.ring === 0" :style="{ width: '100%' }"
<!-- <text v-if="arrow.ring === 0" :style="{ width: '100%' }"
>未上靶</text
>
<text v-if="arrow.ring !== 0">{{ arrow.ring }}</text>
<text
> -->
<text>{{ arrow.ring === 0 ? "M" : arrow.ring }}</text>
<!-- <text
v-if="arrow.ring > 0"
:style="{
fontSize: '16px',
marginLeft: '2px',
}"
></text
>
> -->
</view>
<view class="edit-btn confirm-btn" @touchstart.stop="confirmAdd">
<image src="../static/arrow-edit-save.png" mode="widthFix" />
@@ -325,7 +323,8 @@ onMounted(async () => {
.edit-btn-text {
width: 100%;
display: flex;
justify-content: center;
/* justify-content: center; */
margin-left: 10px;
}
.edit-btn-text > text {