TopBackNav.vue 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="page_item top_header">
  3. <div class="top_left">
  4. <slot name="back">
  5. <el-button class="button_default_background" @click="router.go(-1)">
  6. <el-icon class="img"><ArrowLeftBold /></el-icon>
  7. 返回
  8. </el-button>
  9. </slot>
  10. </div>
  11. <div class="top_right">
  12. <slot name="topRight"></slot>
  13. </div>
  14. </div>
  15. </template>
  16. <script lang="ts" setup>
  17. import { useRouter } from 'vue-router';
  18. const router = useRouter()
  19. </script>
  20. <style lang="scss" scoped>
  21. .top_header{
  22. display: flex;
  23. align-items: flex-start;
  24. justify-content: flex-start;
  25. gap:20px;
  26. .top_left{
  27. display: flex;
  28. align-items: center;
  29. gap:40px;
  30. :deep(.button_default_background){
  31. padding:8px 10px;
  32. >span{
  33. gap:4px;
  34. }
  35. }
  36. }
  37. }
  38. </style>