so://phie

verbal

A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal

blob: c37a4f5916ec61442b83e8bc6a92300fb6d11b4d (418 bytes)[doc][blame][raw]

1import {state} from '../main.js';

2

3export default {

4 props: ['id', 'tab'],

5 data() {

6 return {

7 state

8 };

9 },

10 watch: {

11 tab: function(value) {

12 this.$emit(value === this.id ? 'show' : 'hide');

13 }

14 },

15 template: `

16 <div v-if="state.tab === id" class="flex flex-col gap-6 sm:gap-12 min-w-full">

17 <slot></slot>

18 </div>

19 `

20}