add parent in thirdpartyrenderbox.vue

This commit is contained in:
Julien Fastré 2021-10-12 17:50:32 +02:00
parent b84d0100e0
commit 01ff88074b
2 changed files with 16 additions and 2 deletions

View File

@ -13,7 +13,7 @@
</div> </div>
<div class="tpartyparent" v-if="hasParent"> <div class="tpartyparent" v-if="hasParent">
<span class="name"> <span class="name">
{{ item.result.parent.text }} > {{ item.result.parent.text }}
</span> </span>
</div> </div>
</div> </div>

View File

@ -28,11 +28,18 @@
</div> </div>
<div v-if="hasParent">
<span class="name tparty-parent">
> {{ thirdparty.parent.text }}
</span>
</div>
<p v-if="this.options.addInfo === true" class="moreinfo"> <p v-if="this.options.addInfo === true" class="moreinfo">
</p> </p>
</div> </div>
</div> </div>
<div class="item-col"> <div class="item-col">
<div class="float-button bottom"> <div class="float-button bottom">
<div class="box"> <div class="box">
@ -87,11 +94,14 @@ export default {
props: ['thirdparty', 'options'], props: ['thirdparty', 'options'],
computed: { computed: {
isMultiline: function() { isMultiline: function() {
if(this.options.isMultiline){ if (this.options.isMultiline){
return this.options.isMultiline return this.options.isMultiline
} else { } else {
return false return false
} }
},
hasParent() {
return !(this.$props.thirdparty.parent === null || this.$props.thirdparty.parent === undefined);
} }
} }
} }
@ -102,6 +112,10 @@ export default {
&:before{ &:before{
content: " " content: " "
} }
&.tparty-parent {
font-weight: bold;
font-variant: all-small-caps;
}
} }
</style> </style>