Radio improvement, needs optimisation.
This commit is contained in:
parent
a79a96b946
commit
c0c12bc2ba
9 changed files with 100 additions and 15 deletions
|
@ -0,0 +1,23 @@
|
|||
<script type="text/x-template" id="cider-radio">
|
||||
<div class="content-inner">
|
||||
<h1 class="header-text">{{app.getLz('term.radio')}}</h1>
|
||||
<template v-for="item in data">
|
||||
<radio-child :item="item"></radio-child>
|
||||
</template>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Vue.component('cider-radio', {
|
||||
template: "#cider-radio",
|
||||
props: ["data"],
|
||||
data: function () {
|
||||
return {
|
||||
app: this.$root
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$root.getRadioStations()
|
||||
}
|
||||
})
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue