| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <div class="page_item top_header">
- <div class="top_left">
- <slot name="back">
- <el-button class="button_default_background" @click="router.go(-1)">
- <el-icon class="img"><ArrowLeftBold /></el-icon>
- 返回
- </el-button>
- </slot>
- </div>
- <div class="top_right">
- <slot name="topRight"></slot>
- </div>
- </div>
- </template>
- <script lang="ts" setup>
- import { useRouter } from 'vue-router';
- const router = useRouter()
- </script>
- <style lang="scss" scoped>
- .top_header{
- display: flex;
- align-items: flex-start;
- justify-content: flex-start;
- gap:20px;
- .top_left{
- display: flex;
- align-items: center;
- gap:40px;
- :deep(.button_default_background){
- padding:8px 10px;
- >span{
- gap:4px;
- }
- }
- }
- }
- </style>
|