完善弓箭调试和相关组件
This commit is contained in:
49
src/components/BowTarget.vue
Normal file
49
src/components/BowTarget.vue
Normal file
@@ -0,0 +1,49 @@
|
||||
<script setup></script>
|
||||
|
||||
<template>
|
||||
<view class="container">
|
||||
<view class="header">
|
||||
<image src="../static/avatar.png" mode="widthFix" />
|
||||
<view>
|
||||
<image src="../static/b-power.png" mode="widthFix" />
|
||||
<view>电量50%</view>
|
||||
</view>
|
||||
</view>
|
||||
<image src="../static/bow-target.png" mode="widthFix" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
position: relative;
|
||||
width: calc(100% - 30px);
|
||||
padding: 50px 15px;
|
||||
}
|
||||
.container > image {
|
||||
width: 100%;
|
||||
}
|
||||
.header {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: calc(100% - 30px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 15px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.header > image {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
.header > view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #b9b9b9;
|
||||
}
|
||||
.header > view > image {
|
||||
width: 22px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user