forked from rc/aircox
continue migration: make website working
This commit is contained in:
28
assets/vue/deck.vue
Normal file
28
assets/vue/deck.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div>
|
||||
<a-tabs class="tabs" @select="value = $event.value;">
|
||||
<template v-slot:default><slot name="tabs" :value="value"/></template>
|
||||
</a-tabs>
|
||||
|
||||
<slot :value="value"></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
import Tabs from './tabs.vue';
|
||||
|
||||
export default {
|
||||
props: ['default'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
value: this.default,
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
'a-tabs': Tabs,
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user