added new component

This commit is contained in:
ori agranat
2019-03-20 22:35:02 +02:00
parent d4ca7e8698
commit 42de19ab33
4 changed files with 39 additions and 5 deletions

View File

@@ -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>

View 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>

View File

@@ -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}
]