feat(marketplace): navigation link to seller profile from item page

This commit is contained in:
karthikeyan5
2019-01-30 17:40:40 +05:30
parent fdefbdb23b
commit 88baf53cc1
2 changed files with 14 additions and 6 deletions

View File

@@ -1,5 +1,12 @@
<template>
<p class="text-muted" v-html="header_item"></p>
<p class="text-muted" v-if="!Array.isArray(this.header_items)" v-html="header_items"></p>
<p class="text-muted" v-else>
<span v-for="(header_item , index) in header_items" :key="index">
<span v-if="index" v-html="spacer"></span>
<span v-if="typeof(header_item) == 'string'" v-html="header_item"></span>
<a v-else-if="typeof(header_item) == 'object'" @click="header_item.on_click(header_item.value)" v-html="header_item.value"></a>
</span>
</p>
</template>
<script>
@@ -11,9 +18,8 @@ export default {
props: ['value'],
data() {
return {
header_item: Array.isArray(this.value)
? this.value.join(spacer)
: this.value
header_items: this.value,
spacer: spacer
}
},
}