Moved control tab content into components
This commit is contained in:
parent
0014d61f89
commit
cd82f00af3
3 changed files with 55 additions and 42 deletions
31
src/components/tabContent.vue
Normal file
31
src/components/tabContent.vue
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<template>
|
||||
|
||||
<div
|
||||
v-if="!(this.requireConnection && !this.$store.getters.ready)"
|
||||
v-bind:hidden="currentTab!=id"
|
||||
class="uk-width-expand"
|
||||
>
|
||||
<slot></slot>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'tabContent',
|
||||
|
||||
props: {
|
||||
id: String,
|
||||
currentTab: String,
|
||||
requireConnection: Boolean,
|
||||
},
|
||||
|
||||
methods: {},
|
||||
computed: {}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
</style>
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
export default {
|
||||
name: 'tabIcon',
|
||||
|
||||
props: {
|
||||
id: String,
|
||||
currentTab: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue