forked from ElemeFE/mint-ui
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdemos.vue
67 lines (59 loc) · 1.17 KB
/
demos.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<section class="page-demo">
<div v-for="group in navs">
<div class="page-title" v-text="group.title"></div>
<mt-cell
v-for="item in group.list"
v-link="{ path: item.path }"
is-link>
<div slot="title">
<i class="indexicon icon-{{ item.icon }}"></i>
<span>{{ item.name }}</span>
</div>
</mt-cell>
</div>
</section>
</template>
<style>
.page-demo {
padding-bottom: 50px;
.indexicon {
font-size: 22px;
color: #26a2ff;
display: inline-block;
width: 30px;
vertical-align: middle;
&.icon-swipe {
font-size: 26px;
}
&.icon-checklist {
font-size: 18px;
}
}
}
@component-namespace page {
@component title {
font-size: 20px;
margin: 20px auto;
text-align: center;
display: block;
line-height: 1;
}
@component part {
margin-bottom: 15px;
}
}
</style>
<script type="text/babel">
import { navs } from './route';
export default {
data() {
return {
navs: []
};
},
compiled() {
this.navs = navs;
}
};
</script>