forked from drone/command-center-dashboard

罗广辉
2025-03-27 946876e4c34cc49655928f3a1fc438a4e3d3207a
src/components/CommonTitle.vue
@@ -3,7 +3,7 @@
    <div class="left">
      {{ title }}
    </div>
    <div class="right">详情 ></div>
    <div class="right" v-if="show" @click="attrs.onDetails()">详情 ></div>
  </div>
</template>
<script setup>
@@ -13,6 +13,9 @@
    default: '机巢概况',
  },
});
l
const attrs = useAttrs();
const show = ref(attrs.onDetails);
</script>
<style scoped lang="scss">
.overview-title {
@@ -24,7 +27,6 @@
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  .left {
    position: absolute;
@@ -55,6 +57,7 @@
    text-transform: none;
    bottom: hToV(16);
    right: 11px;
    cursor: pointer;
  }
}
</style>