<template> <el-descriptions class="margin-top" title="" :column="3" :size="size" border> <template slot="extra"> <el-button type="primary" size="small">操作</el-button> </template> <el-descriptions-item> <template slot="label"> <i class="el-icon-user"></i> 用户名 </template> {{ userMessage.username }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> <i class="el-icon-mobile-phone"></i> 手机号 </template> {{ userMessage.phone }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> <i class="el-icon-location-outline"></i> 居住地 </template> {{ userMessage.address }} </el-descriptions-item> <el-descriptions-item> <template slot="label"> <i class="el-icon-tickets"></i> 备注 </template> <el-tag size="small">{{ userMessage.remarks }}</el-tag> </el-descriptions-item> <el-descriptions-item> <template slot="label"> <i class="el-icon-office-building"></i> 联系地址 </template> {{ userMessage.connectAddress }} </el-descriptions-item> </el-descriptions> </template> <script> export default { props:['userMessage'] } </script> <style> </style>
标签:userMessage,展示,个人信息,element,UI,组件 From: https://www.cnblogs.com/wllovelmbforever/p/17825147.html