Account.vue
946 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>
<template>
<div class="right">
<div class="biti">
账号管理
</div>
<div class="container">
<van-tabs v-model:active="active">
<van-tab title="基本信息" class="box">基本信息</van-tab>
<van-tab title="我的头像" class="box">我的头像</van-tab>
<van-tab title="密码管理" class="box">密码管理</van-tab>
</van-tabs>
</div>
</div>
</template>
<style lang="scss">
.right{
background-color: #e5e5e5;
height: 100%;
width: 100%;
margin-top: 50px;
.biti{
font-weight: 800;
font-size: 30px;
margin:30px 0px 20px 40px;
}
.container{
display: flex;
flex-direction: row;
margin: 40px;
width: 50%;
.box{
width: 500px;
}
.van-tab{
background-color: #e5e5e5;
}
.van-tabs__wrap {
width: 60%;
}
}
}
</style>