add reason to listennow first row

This commit is contained in:
vapormusic 2022-03-26 08:53:05 +07:00
parent 786e2b3038
commit 70e13ce6f4
5 changed files with 35 additions and 17 deletions

View file

@ -2,9 +2,9 @@
<div class="cd-hmedia-scroller hmedia-scroller-card">
<vue-horizontal>
<template>
<mediaitem-square kind="card" :item="item" size="300"
<mediaitem-square kind="card" :item="item" size="300" :reasonShown="withReason"
v-for="item in items"></mediaitem-square>
</template>
</template>
</vue-horizontal>
</div>
</script>
@ -12,7 +12,10 @@
<script>
Vue.component('mediaitem-scroller-horizontal-sp', {
template: '#mediaitem-scroller-horizontal-sp',
props: ['items'],
props: {
'items': { type: Array , required: false },
'withReason': { type: Boolean, required: false, default: false },
},
data: function () {
return {
app: this.$root,