added a favorites section to home, added kind property to horizontal scroller
This commit is contained in:
parent
3c17e15b08
commit
7e7119d592
3 changed files with 26 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<script type="text/x-template" id="mediaitem-scroller-horizontal">
|
||||
<template>
|
||||
<div class="cd-hmedia-scroller">
|
||||
<mediaitem-square :item="item"
|
||||
<div class="cd-hmedia-scroller" :class="kind">
|
||||
<mediaitem-square :kind="kind" :item="item"
|
||||
v-for="item in items"></mediaitem-square>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -10,7 +10,17 @@
|
|||
<script>
|
||||
Vue.component('mediaitem-scroller-horizontal', {
|
||||
template: '#mediaitem-scroller-horizontal',
|
||||
props: ['items'],
|
||||
props: {
|
||||
'items': {
|
||||
type: Array,
|
||||
required: true
|
||||
},
|
||||
'kind': {
|
||||
type: String,
|
||||
required: false,
|
||||
defualt: ""
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
app: this.$root,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue