feat: 用户资料表单
This commit is contained in:
parent
a9ae7fcbf0
commit
ecbecc6521
@ -11,12 +11,16 @@
|
|||||||
</a-avatar>
|
</a-avatar>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12">
|
<a-col :span="22">
|
||||||
<a-space direction="vertical" size="large">
|
<a-space direction="vertical" size="large">
|
||||||
<a-descriptions :data="data" title="用户资料" :align="{ label: 'right' }" />
|
<a-descriptions :data="data" :column="3" title="用户资料" :align="{ label: 'right' }" />
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<a-divider />
|
||||||
|
<a-row>
|
||||||
|
<a-col> </a-col>
|
||||||
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -25,14 +29,30 @@ import myImage from "@/assets/img/my-image.jpg";
|
|||||||
import { getCurrentInstance } from "vue";
|
import { getCurrentInstance } from "vue";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const data = ref([
|
const data = ref([
|
||||||
|
{
|
||||||
|
label: "用户ID:",
|
||||||
|
value: "1000001"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "用户名:",
|
label: "用户名:",
|
||||||
value: "admin"
|
value: "admin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "昵称:",
|
label: "用户昵称:",
|
||||||
value: "兔子先森"
|
value: "兔子先森"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "角色:",
|
||||||
|
value: "系统管理员"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "权限:",
|
||||||
|
value: "全部"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "实名认证:",
|
||||||
|
value: "已认证"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "邮箱:",
|
label: "邮箱:",
|
||||||
value: "2547096351@qq.com"
|
value: "2547096351@qq.com"
|
||||||
@ -42,13 +62,13 @@ const data = ref([
|
|||||||
value: "15888888888"
|
value: "15888888888"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "地址:",
|
label: "注册时间:",
|
||||||
value: "浙江杭州"
|
value: "2024-06-20"
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const toast = () => {
|
const toast = () => {
|
||||||
proxy.$message.info("This is an info message");
|
proxy.$message.info("修改头像");
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user