Skip to content

Commit 7999559

Browse files
committed
add: comment components
1 parent 48cbcb9 commit 7999559

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<template>
2+
<div>
3+
<blockquote class="layui-elem-quote">
4+
苏州公交实时查询信息(仅供参考)
5+
</blockquote>
6+
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
7+
<legend>苏州公交实时查询信息(仅供参考)</legend>
8+
</fieldset>
9+
</div>
10+
</template>
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<template>
2+
<div class="nav">
3+
<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
4+
<el-row :gutter="1">
5+
<el-col :xs="6" :sm="6" :md="4" :lg="4" :xl="4">
6+
<div class="grid-content">
7+
<el-menu-item index="1">
8+
<router-link :to="{name: 'index'}">公交-首页</router-link>
9+
</el-menu-item>
10+
</div>
11+
</el-col>
12+
<el-col :xs="6" :sm="6" :md="4" :lg="4" :xl="4">
13+
<div class="grid-content">
14+
<el-menu-item index="3">
15+
<router-link :to="{name: 'out'}" class="login">中文排版</router-link>
16+
</el-menu-item>
17+
</div>
18+
</el-col>
19+
<el-col :xs="6" :sm="6" :md="4" :lg="4" :xl="4">
20+
<div class="grid-content">
21+
<el-menu-item index="4">
22+
<router-link :to="{name: 'excel'}" class="login">在线表格 Excel</router-link>
23+
</el-menu-item>
24+
</div>
25+
</el-col>
26+
<el-col :xs="6" :sm="6" :md="4" :lg="4" :xl="4">
27+
<div class="grid-content">
28+
<el-menu-item index="4">
29+
<router-link :to="{name: 'upload'}" class="login">图片转文字</router-link>
30+
</el-menu-item>
31+
</div>
32+
</el-col>
33+
<el-col :xs="6" :sm="6" :md="4" :lg="4" :xl="4">
34+
<div class="grid-content">
35+
<el-submenu index="2">
36+
<template slot="title">其它工具</template>
37+
<el-menu-item index="2-2">
38+
<router-link :to="{name: 'md'}" class="login">Markdown</router-link>
39+
</el-menu-item>
40+
<el-menu-item index="2-2">
41+
<router-link :to="{name: 'echarts'}">图表</router-link>
42+
</el-menu-item>
43+
</el-submenu>
44+
</div>
45+
</el-col>
46+
<!--<el-col :xs="6" :sm="6" :md="0" :lg="0" :xl="0"/>-->
47+
</el-row>
48+
</el-menu>
49+
</div>
50+
</template>
51+
52+
<script>
53+
export default {
54+
name: 'NavBar',
55+
data() {
56+
return {
57+
activeIndex: ''
58+
}
59+
}
60+
}
61+
</script>
62+
63+
<style scoped>
64+
.nav {
65+
padding-left: 0;
66+
margin-bottom: 20px;
67+
list-style: none
68+
}
69+
.nav:after, .nav:before {
70+
display:table;
71+
content:" "
72+
}
73+
.nav:after {
74+
clear:both
75+
}
76+
.el-row {
77+
/*margin-bottom: 20px;*/
78+
height: 50px;
79+
}
80+
81+
.el-col {
82+
border-radius: 4px;
83+
}
84+
85+
.grid-content {
86+
border-radius: 4px;
87+
min-height: 50px;
88+
}
89+
90+
.grid-content a{
91+
display: block;
92+
}
93+
ul > li > a{
94+
display: block;
95+
}
96+
</style>

0 commit comments

Comments
 (0)