[hub] Register components, init Item Page

- commonly used components are pre-registered
- add DetailHeaderItem component
- begin ItemPage
This commit is contained in:
Prateeksha Singh
2018-08-27 10:12:45 +05:30
parent ea82fb9f80
commit d0a952bcda
17 changed files with 235 additions and 248 deletions

View File

@@ -0,0 +1,20 @@
<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>