mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-28 02:11:40 +00:00
added new component
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
<template>
|
||||
<h4>system</h4>
|
||||
<div id="SystemTab">
|
||||
<chInputNumber title="Enter Team Number"></chInputNumber>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import chInputNumber from './ch-inputNumber.vue'
|
||||
export default {
|
||||
name: '',
|
||||
name: 'SystemTab',
|
||||
data() {
|
||||
return {
|
||||
|
||||
value
|
||||
}
|
||||
},
|
||||
components:{
|
||||
chInputNumber
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
28
chameleon-client/src/components/ch-inputNumber.vue
Normal file
28
chameleon-client/src/components/ch-inputNumber.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div id="InputNumber">
|
||||
<row type="flex" justify="start" align="middle" :gutter="10" >
|
||||
<Col span="6">
|
||||
<h4>{{title}}</h4>
|
||||
</Col>
|
||||
<col span="4">
|
||||
<InputNumber :min="0" v-model="value" size="small"></InputNumber>
|
||||
</col>
|
||||
</row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ch-InputNumber',
|
||||
props:['title'],
|
||||
data() {
|
||||
return {
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="" scoped>
|
||||
|
||||
</style>
|
||||
@@ -1,13 +1,13 @@
|
||||
import VueRouter from "vue-router";
|
||||
import Input from "./components/InputTab.vue";
|
||||
import ThreeD from "./components/3DTab.vue";
|
||||
import Threshold from "./components/ThresholdTab.vue";
|
||||
import System from "./components/SystemTab.vue";
|
||||
import Camera from "./components/CameraTab.vue";
|
||||
|
||||
const routes = [
|
||||
{ path: '/', redirect: '/vision/input'},
|
||||
{ path: '/vision/input', component: Input, name:'input' },
|
||||
{ path: '/vision/3d', component: ThreeD ,name:'threshold'},
|
||||
{ path: '/vision/3d', component: Threshold ,name:'threshold'},
|
||||
{path:'/settings/system', component: System },
|
||||
{path:'/settings/camera', component: Camera}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user