Files
PhotonVision/photon-client/src/views/SettingsView.vue

88 lines
1.7 KiB
Vue
Raw Normal View History

2019-09-20 20:56:24 +03:00
<template>
<div>
<v-row>
<v-col
class="colsClass"
cols="6"
>
<v-tabs
v-model="selectedTab"
background-color="#232c37"
dark
fixed-tabs
height="50"
slider-color="#ffd843"
>
<v-tab to="">
General
</v-tab>
<v-tab to="">
Cameras
</v-tab>
</v-tabs>
<div style="padding-left:30px">
<component
:is="selectedComponent"
@update="$emit('save')"
/>
</div>
</v-col>
<v-col
v-show="selectedTab === 1"
class="colsClass"
>
<div class="videoClass">
<cvImage
:address="$store.getters.streamAddress"
:scale="75"
/>
</div>
</v-col>
</v-row>
</div>
2019-09-20 20:56:24 +03:00
</template>
<script>
import General from './SettingsViews/General'
import Cameras from './SettingsViews/Cameras'
import cvImage from '../components/common/cv-image'
2019-10-02 23:37:35 +03:00
2019-09-20 20:56:24 +03:00
export default {
2019-09-22 00:14:12 +03:00
name: 'SettingsTab',
2019-10-29 23:58:06 +02:00
components: {
cvImage,
2019-09-28 21:42:04 +03:00
General,
2019-10-02 23:37:35 +03:00
Cameras,
2019-09-28 21:42:04 +03:00
},
2019-09-20 20:56:24 +03:00
data() {
return {
2019-10-29 23:58:06 +02:00
selectedTab: 0,
2020-03-19 14:02:49 +02:00
tabList: [General, Cameras]
2019-09-28 21:42:04 +03:00
}
},
2019-10-29 23:58:06 +02:00
computed: {
selectedComponent: {
get() {
return this.tabList[this.selectedTab];
2019-09-28 21:42:04 +03:00
}
2019-10-02 22:07:04 +03:00
},
2019-09-20 20:56:24 +03:00
}
}
</script>
<style scoped>
2019-10-29 23:58:06 +02:00
.videoClass {
2019-10-02 23:37:35 +03:00
text-align: center;
}
2019-10-29 23:58:06 +02:00
.videoClass img {
padding-top: 10px;
2019-10-02 23:37:35 +03:00
height: auto !important;
vertical-align: middle;
}
2019-10-29 23:58:06 +02:00
.colsClass {
2019-09-28 21:42:04 +03:00
padding: 0 !important;
}
2019-09-20 20:56:24 +03:00
</style>