This commit is contained in:
kron
2025-08-06 14:58:53 +08:00
parent 8c63ec487a
commit bba172ba58

View File

@@ -151,16 +151,17 @@ onMounted(async () => {
<view class="point"> </view>
<!-- 编辑按钮组只在编辑状态下显示 -->
<view class="edit-buttons" @click.stop>
<text
>{{ arrow.ring === 0 ? "未上靶" : arrow.ring
}}<text
<view class="edit-btn-text">
<text>{{ arrow.ring === 0 ? "未上靶" : arrow.ring }}</text>
<text
v-if="arrow.ring > 0"
:style="{
fontSize: '20px',
marginLeft: arrow.ring > 0 ? '5px' : 0,
}"
>{{ arrow.ring > 0 ? "环" : "" }}</text
></text
>
></text
>
</view>
<view class="edit-btn confirm-btn" @click.stop="confirmAdd(index)">
<image src="../static/arrow-edit-save.png" mode="widthFix" />
</view>
@@ -220,9 +221,8 @@ onMounted(async () => {
.edit-buttons {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
top: calc(50% - 44px);
left: calc(50% - 44px);
background: #18ff6899;
width: 88px;
height: 88px;
@@ -230,18 +230,20 @@ onMounted(async () => {
align-items: flex-end;
}
.edit-buttons > text {
.edit-btn-text {
width: 100%;
display: block;
display: flex;
justify-content: center;
}
.edit-btn-text > text {
line-height: 50px;
text-align: center;
font-size: 24px;
font-weight: bold;
color: #fff;
}
.edit-btn {
transform: translateX(-50%) translateY(-50%);
width: 24px;
height: 24px;
display: flex;
@@ -256,17 +258,17 @@ onMounted(async () => {
}
.confirm-btn {
left: 50%;
bottom: -24px;
left: calc(50% - 12px);
bottom: -12px;
}
.delete-btn {
left: 50%;
top: 0;
left: calc(50% - 12px);
top: -12px;
}
.drag-btn {
right: -24px;
bottom: -24px;
right: -12px;
bottom: -12px;
}
</style>