2021-07-06 07:32:37 +00:00
|
|
|
<template>
|
|
|
|
<div class="option-item--user">
|
2021-10-13 13:05:13 +00:00
|
|
|
<thumbnail :src="thumbnail" size="28px" :username="name" />
|
|
|
|
<div class="option__user-data">
|
|
|
|
<h5 class="option__title">
|
|
|
|
{{ name }}
|
|
|
|
<span v-if="identifier" class="user-identifier">
|
2021-10-14 14:48:43 +00:00
|
|
|
(ID: {{ identifier }})
|
2021-10-13 13:05:13 +00:00
|
|
|
</span>
|
|
|
|
</h5>
|
|
|
|
<p class="option__body">
|
|
|
|
<span v-if="email" class="email-icon-wrap">
|
2021-12-01 05:03:18 +00:00
|
|
|
<fluent-icon class="merge-contact--icon" icon="mail" size="12" />
|
|
|
|
{{ email }}
|
2021-10-13 13:05:13 +00:00
|
|
|
</span>
|
|
|
|
<span v-if="phoneNumber" class="phone-icon-wrap">
|
2021-12-01 05:03:18 +00:00
|
|
|
<fluent-icon class="merge-contact--icon" icon="call" size="12" />
|
2021-10-13 13:05:13 +00:00
|
|
|
{{ phoneNumber }}
|
|
|
|
</span>
|
|
|
|
<span v-if="!phoneNumber && !email">{{ '---' }}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2021-07-06 07:32:37 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import Thumbnail from '../../../components/widgets/Thumbnail';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Thumbnail,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
name: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
thumbnail: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
2021-10-13 13:05:13 +00:00
|
|
|
email: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
phoneNumber: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
identifier: {
|
2021-10-13 13:28:30 +00:00
|
|
|
type: [String, Number],
|
|
|
|
required: true,
|
2021-10-13 13:05:13 +00:00
|
|
|
},
|
2021-07-06 07:32:37 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.option-item--user {
|
|
|
|
display: flex;
|
2021-10-13 13:05:13 +00:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.user-identifier {
|
|
|
|
font-size: var(--font-size-mini);
|
|
|
|
margin-left: var(--space-micro);
|
|
|
|
color: var(--s-700);
|
|
|
|
}
|
|
|
|
.option__user-data {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-left: var(--space-small);
|
|
|
|
}
|
|
|
|
.option__body,
|
|
|
|
.option__title {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
line-height: 1.2;
|
|
|
|
font-size: var(--font-size-small);
|
|
|
|
}
|
|
|
|
.option__body .icon {
|
|
|
|
position: relative;
|
|
|
|
top: 1px;
|
|
|
|
margin-right: var(--space-micro);
|
|
|
|
}
|
|
|
|
.option__title {
|
|
|
|
font-weight: var(--font-weight-medium);
|
|
|
|
margin-bottom: var(--space-micro);
|
|
|
|
}
|
|
|
|
.option__body {
|
|
|
|
font-size: var(--font-size-mini);
|
|
|
|
color: var(--s-700);
|
|
|
|
}
|
|
|
|
|
|
|
|
.email-icon-wrap {
|
|
|
|
margin-right: var(--space-normal);
|
|
|
|
}
|
|
|
|
|
|
|
|
.option__user-data .option__body {
|
|
|
|
> .phone-icon-wrap,
|
|
|
|
> .email-icon-wrap {
|
|
|
|
width: auto;
|
|
|
|
}
|
2021-07-06 07:32:37 +00:00
|
|
|
}
|
2021-12-01 05:03:18 +00:00
|
|
|
|
|
|
|
.merge-contact--icon {
|
|
|
|
margin-bottom: var(--space-minus-micro);
|
|
|
|
margin-right: var(--space-micro);
|
|
|
|
}
|
2021-07-06 07:32:37 +00:00
|
|
|
</style>
|