File tree Expand file tree Collapse file tree 3 files changed +20
-40
lines changed Expand file tree Collapse file tree 3 files changed +20
-40
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" #app" >
3
- <navbar placement =" top" type =" default" >
4
- <!-- Brand as slot -->
5
- <a slot =" brand" href =" /" title =" Home" class =" navbar-brand" >Usst IMIE</a >
6
-
7
- <li ><a href =" #" >实体标注</a ></li >
8
- <li ><a href =" #" >关系标注</a ></li >
9
- <li ><a href =" #/converter" >数据转换</a ></li >
10
-
11
- </navbar >
12
-
13
- <router-view ></router-view >
3
+ <tabs >
4
+ <tab header =" 实体标注" >
5
+ <entity ></entity >
6
+ </tab >
7
+ <tab header =" 关系标注" >
8
+ <relation ></relation >
9
+ </tab >
10
+ </tabs >
14
11
</div >
15
12
</template >
16
13
17
14
<script >
18
15
import store from ' ./store/index'
19
- import {navbar } from ' vue-strap'
16
+ import {tabs , tab } from ' vue-strap'
17
+ import entity from ' ./components/Entity'
18
+ import relation from ' ./components/Relation'
20
19
21
20
export default {
22
21
store,
23
22
components: {
24
- navbar
23
+ entity,
24
+ relation,
25
+ tabs,
26
+ tab
25
27
}
26
28
}
27
29
</script >
34
36
}
35
37
36
38
html ,
37
- body { height : 100% ; }
39
+ body {
40
+ height : 100% ;
41
+ }
38
42
39
43
body {
40
44
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue'
2
2
import Electron from 'vue-electron'
3
3
import Resource from 'vue-resource'
4
- import Router from 'vue-router'
5
4
6
5
import App from './App'
7
- import routes from './routes'
8
6
9
7
Vue . use ( Electron )
10
8
Vue . use ( Resource )
11
- Vue . use ( Router )
12
9
Vue . config . debug = true
13
10
14
- const router = new Router ( {
15
- scrollBehavior : ( ) => ( { y : 0 } ) ,
16
- routes
17
- } )
18
-
19
11
/* eslint-disable no-new */
20
12
new Vue ( {
21
- router ,
13
+ el : '#app' ,
22
14
...App
23
- } ) . $mount ( '#app' )
15
+ } )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments