<script setup>
defineProps({
  power: {
    type: Number,
    default: 0,
  },
});
</script>

<template>
  <view class="container">
    <image src="../static/b-power.png" mode="widthFix" />
    <view>电量{{ power }}%</view>
  </view>
</template>

<style scoped>
.container {
  display: flex;
  align-items: center;
  color: #b9b9b9;
  font-size: 13px;
}
.container > image {
  width: 22px;
  margin-right: 5px;
}
</style>
