2023-02-11 00:44:00 +08:00
|
|
|
<template>
|
|
|
|
<div class="flex">
|
2023-09-22 17:49:11 +08:00
|
|
|
<el-card class="user w-1/3" shadow="hover">
|
2023-02-11 00:44:00 +08:00
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<span>{{ t('profile.user.title') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<ProfileUser />
|
|
|
|
</el-card>
|
2023-09-22 17:49:11 +08:00
|
|
|
<el-card class="user ml-3 w-2/3" shadow="hover">
|
2023-02-11 00:44:00 +08:00
|
|
|
<template #header>
|
|
|
|
<div class="card-header">
|
|
|
|
<span>{{ t('profile.info.title') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<div>
|
|
|
|
<el-tabs v-model="activeName" tab-position="top" style="height: 400px" class="profile-tabs">
|
|
|
|
<el-tab-pane :label="t('profile.info.basicInfo')" name="basicInfo">
|
|
|
|
<BasicInfo />
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane :label="t('profile.info.resetPwd')" name="resetPwd">
|
|
|
|
<ResetPwd />
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane :label="t('profile.info.userSocial')" name="userSocial">
|
|
|
|
<UserSocial />
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</div>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script setup lang="ts" name="Profile">
|
|
|
|
import { BasicInfo, ProfileUser, ResetPwd, UserSocial } from './components/'
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
const activeName = ref('basicInfo')
|
|
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
.user {
|
|
|
|
max-height: 960px;
|
2023-06-21 19:26:14 +08:00
|
|
|
padding: 15px 20px 20px;
|
2023-02-11 00:44:00 +08:00
|
|
|
}
|
2023-06-21 19:26:14 +08:00
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
.card-header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2023-06-21 19:26:14 +08:00
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
:deep(.el-card .el-card__header, .el-card .el-card__body) {
|
|
|
|
padding: 15px !important;
|
|
|
|
}
|
2023-06-21 19:26:14 +08:00
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
.profile-tabs > .el-tabs__content {
|
|
|
|
padding: 32px;
|
|
|
|
font-weight: 600;
|
2023-08-04 21:33:00 +08:00
|
|
|
color: #6b778c;
|
2023-02-11 00:44:00 +08:00
|
|
|
}
|
2023-06-21 19:26:14 +08:00
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
.el-tabs--left .el-tabs__content {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
</style>
|