residential address: show residential address or info in PersonRenderBox + add ThirdPartyText

This commit is contained in:
nobohan
2022-02-17 18:05:34 +01:00
parent baf9b6e1ae
commit 6e1b95aa60
5 changed files with 84 additions and 14 deletions

View File

@@ -0,0 +1,29 @@
<template>
<span v-if="isCut">{{ cutText }}</span>
<span v-else class="thirdparty-text">
<span class="firstname">{{ thirdparty.text }}</span>
</span>
</template>
<script>
export default {
name: "ThirdPartyText",
props: {
thirdparty: {
required: true,
},
isCut: {
type: Boolean,
required: false,
default: false
},
},
computed: {
cutText: function() {
let more = (this.thirdparty.text.length > 15) ?'…' : '';
return this.thirdparty.text.slice(0,15) + more;
}
}
}
</script>