nonebot2/docs/.vuepress/components/Store.vue

71 lines
1.2 KiB
Vue
Raw Normal View History

2021-03-05 16:27:43 +08:00
<template>
<div class="store">
<v-app>
<v-main>
<v-card>
<v-toolbar dense flat>
<v-tabs v-model="tab" centered>
<v-tab v-for="(name, index) in tabs" :key="index">{{
name
}}</v-tab>
</v-tabs>
</v-toolbar>
2021-04-05 13:32:36 +08:00
<v-tabs-items class="sub-item pt-1" v-model="tab">
2021-03-05 16:27:43 +08:00
<v-tab-item>
<Adapter></Adapter>
</v-tab-item>
<v-tab-item>
<Plugin></Plugin>
</v-tab-item>
<v-tab-item>
<Bot></Bot>
</v-tab-item>
</v-tabs-items>
</v-card>
</v-main>
</v-app>
</div>
</template>
<script>
2021-04-05 13:44:19 +08:00
import Adapter from './Adapter.vue'
import Plugin from './Plugin.vue'
import Bot from './Bot.vue'
2021-03-05 16:27:43 +08:00
export default {
2021-04-05 13:44:19 +08:00
name: 'Store',
2021-03-05 16:27:43 +08:00
components: {
Adapter,
Plugin,
2021-04-05 13:44:19 +08:00
Bot,
2021-03-05 16:27:43 +08:00
},
data() {
return {
tab: 1,
tabs: {
2021-04-05 13:44:19 +08:00
0: '协议',
1: '插件',
2: '机器人',
},
}
2021-03-05 16:27:43 +08:00
},
computed: {},
2021-04-05 13:44:19 +08:00
methods: {},
}
2021-03-05 16:27:43 +08:00
</script>
<style>
.v-application--wrap {
min-height: 0 !important;
}
</style>
<style scoped>
.store {
margin: 0 -20px;
}
.sub-item {
padding: 0 10px;
}
</style>