Radio improvement, needs optimisation.
This commit is contained in:
parent
a79a96b946
commit
c0c12bc2ba
9 changed files with 100 additions and 15 deletions
31
src/renderer/views/components/radio-child.ejs
Normal file
31
src/renderer/views/components/radio-child.ejs
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script type="text/x-template" id="radio-child">
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h3>{{ item.title }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<mediaitem-square :item="station" v-for="station in item.data"></mediaitem-square>
|
||||
|
||||
<!-- <mediaitem-scroller-horizontal-sp-->
|
||||
<!-- :withReason="index==0"-->
|
||||
<!-- :items="recom.relationships.contents.data.limit(10)"></mediaitem-scroller-horizontal-sp>-->
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
Vue.component('radio-child', {
|
||||
template: "#radio-child",
|
||||
props: ["item"],
|
||||
data: function () {
|
||||
return {
|
||||
isVisible: true,
|
||||
app: this.$root
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
visibilityChanged: function (isVisible, entry) {
|
||||
// this.isVisible = isVisible
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue