8000 remove navbar and router, alter to tabs · supercoderhawk/emr-processor@91006d7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91006d7

Browse files
remove navbar and router, alter to tabs
1 parent 2779afb commit 91006d7

File tree

3 files changed

+20
-40
lines changed

3 files changed

+20
-40
lines changed

app/src/renderer/App.vue

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
<template>
22
<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>
1411
</div>
1512
</template>
1613

1714
<script>
1815
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'
2019
2120
export default {
2221
store,
2322
components: {
24-
navbar
23+
entity,
24+
relation,
25+
tabs,
26+
tab
2527
}
2628
}
2729
</script>
@@ -34,7 +36,9 @@
3436
}
3537
3638
html,
37-
body { height: 100%; }
39+
body {
40+
height: 100%;
41+
}
3842
3943
body {
4044

app/src/renderer/main.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
11
import Vue from 'vue'
22
import Electron from 'vue-electron'
33
import Resource from 'vue-resource'
4-
import Router from 'vue-router'
54

65
import App from './App'
7-
import routes from './routes'
86

97
Vue.use(Electron)
108
Vue.use(Resource)
11-
Vue.use(Router)
129
Vue.config.debug = true
1310

14-
const router = new Router({
15-
scrollBehavior: () => ({ y: 0 }),
16-
routes
17-
})
18-
1911
/* eslint-disable no-new */
2012
new Vue({
21-
router,
13+
el: '#app',
2214
...App
23-
}).$mount('#app')
15+
})

app/src/renderer/routes.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0