Revert "Revert "Radio improvement, needs optimisation.""
This reverts commit baf234085e
.
This commit is contained in:
parent
a9fc51e1de
commit
b6cd18be12
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