Merge pull request #656 from h3poteto/iss-644
closes #644 Show profile's metadata in account profile
This commit is contained in:
commit
b56a7fd52b
|
@ -67,6 +67,15 @@
|
|||
<div class="note" v-html="account.note" @click.capture.prevent="noteClick"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="metadata">
|
||||
<dl v-for="(data, index) in account.fields" :key="index">
|
||||
<dt>
|
||||
{{ data.name }}
|
||||
</dt>
|
||||
<dd v-html="data.value">
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<el-row class="basic-info">
|
||||
<el-col :span="8" :class="activeTab === 1 ? 'info info-active' : 'info'" @click="changeTab">
|
||||
<el-button type="text" class="tab" @click="changeTab(1)">
|
||||
|
@ -312,6 +321,35 @@ function findLink (target) {
|
|||
}
|
||||
}
|
||||
|
||||
.metadata {
|
||||
dl {
|
||||
display: flex;
|
||||
border-top: 1px solid var(--theme-border-color);
|
||||
margin: 0;
|
||||
|
||||
dt {
|
||||
background-color: var(--theme-selected-background-color);
|
||||
flex: 0 0 auto;
|
||||
width: 120px;
|
||||
text-align: center;
|
||||
padding: 16px 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
dd {
|
||||
flex: 1 1 auto;
|
||||
padding: 16px 4px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.basic-info {
|
||||
.info {
|
||||
border-top: solid 1px var(--theme-border-color);
|
||||
|
|
Loading…
Reference in New Issue