center.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="flex flex-col sm:flex-row dark:bg-regal-dark w-full">
  3. <el-card shadow="never" class="w-full sm:w-[35rem] h-[32rem]">
  4. <template #header>
  5. <div class="card-header">
  6. <span>个人资料</span>
  7. </div>
  8. </template>
  9. <div class="flex flex-col w-full">
  10. <div class="w-full">
  11. <Profile />
  12. </div>
  13. </div>
  14. </el-card>
  15. <el-tabs v-model="activeName" class="pl-3 pr-3 bg-white dark:bg-regal-dark mt-2 sm:mt-0 w-full ml-0 sm:ml-2">
  16. <el-tab-pane label="登录日志" name="login_log">
  17. <LoginLog />
  18. </el-tab-pane>
  19. <el-tab-pane label="操作日志" name="operation_log">
  20. <OperateLog />
  21. </el-tab-pane>
  22. </el-tabs>
  23. </div>
  24. </template>
  25. <script lang="ts" setup>
  26. import {ref} from 'vue'
  27. import Profile from './components/profile.vue'
  28. import LoginLog from './components/loginLog.vue'
  29. import OperateLog from './components/operateLog.vue'
  30. const activeName = ref('login_log')
  31. </script>
  32. <style scoped>
  33. .el-tabs {
  34. --el-tabs-header-height: 62px !important;
  35. }
  36. .el-tabs .el-tabs__item {
  37. font-size: 18px !important;
  38. }
  39. </style>