index.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div class="container">
  3. <Breadcrumb :items="['个人中心', '用户设置']" />
  4. <a-row style="margin-bottom: 16px">
  5. <a-col :span="24">
  6. <UserPanel :user="user" />
  7. </a-col>
  8. </a-row>
  9. <a-row class="wrapper">
  10. <a-col :span="24">
  11. <a-tabs default-active-key="1" type="rounded">
  12. <a-tab-pane key="1" title="基础信息">
  13. <BasicInformation />
  14. </a-tab-pane>
  15. <a-tab-pane key="2" title="安全设置">
  16. <SecuritySettings />
  17. </a-tab-pane>
  18. <a-tab-pane key="3" title="第三方账号">
  19. <SocialBindings />
  20. </a-tab-pane>
  21. </a-tabs>
  22. </a-col>
  23. </a-row>
  24. </div>
  25. </template>
  26. <script setup>
  27. import UserPanel from './components/user-panel.vue'
  28. import BasicInformation from './components/basic-information.vue'
  29. import SecuritySettings from './components/security-settings.vue'
  30. import SocialBindings from './components/social-bindings.vue'
  31. </script>
  32. <style scoped lang="less">
  33. .container {
  34. padding: 0 20px 20px 20px;
  35. }
  36. .wrapper {
  37. padding: 20px 0 0 20px;
  38. min-height: 580px;
  39. background-color: var(--color-bg-2);
  40. border-radius: 4px;
  41. }
  42. :deep(.section-title) {
  43. margin-top: 0;
  44. margin-bottom: 16px;
  45. font-size: 14px;
  46. }
  47. </style>