AppHeader.vue 796 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div class="app_header">
  3. <el-icon v-if="showBack" class="left_back" @click="$router.go(-1)"><ArrowLeftBold /></el-icon>
  4. 智能教学评价系统
  5. </div>
  6. </template>
  7. <script setup lang="ts">
  8. const props = defineProps({
  9. showBack:{
  10. type:Boolean,
  11. default:true
  12. }
  13. })
  14. </script>
  15. <style lang="scss" scoped>
  16. .app_header{
  17. position: relative;
  18. flex-shrink: 0;
  19. display: flex;
  20. justify-content: center;
  21. align-items: center;
  22. width: 100%;
  23. height: calc(44 * var(--app-rpx));
  24. border-bottom:1px solid #F3F3F3;;
  25. background-color: white;
  26. font-weight: 600;
  27. font-size: calc(16 * var(--app-rpx));
  28. color: #333;
  29. .left_back{
  30. position: absolute;
  31. left: calc(20 * var(--app-rpx));
  32. }
  33. }
  34. </style>