brotherton-erpnext/erpnext/public/js/hub/components/DetailHeaderItem.vue
Prateeksha Singh d0a952bcda [hub] Register components, init Item Page
- commonly used components are pre-registered
- add DetailHeaderItem component
- begin ItemPage
2018-08-27 10:12:45 +05:30

21 lines
327 B
Vue

<template>
<p class="text-muted" v-html="header_item"></p>
</template>
<script>
const spacer = '<span aria-hidden="true"> · </span>';
export default {
name: 'header-item',
props: ['value'],
data() {
return {
header_item: Array.isArray(this.value)
? this.value.join(spacer)
: this.value
}
},
}
</script>