element/examples/pages/component.vue

64 lines
1.3 KiB
Vue
Raw Normal View History

2016-08-23 17:39:58 +08:00
<style>
2016-08-23 19:15:15 +08:00
.page-component {
2016-08-25 15:54:45 +08:00
padding-bottom: 95px;
2016-08-23 19:15:15 +08:00
}
2016-08-31 11:25:02 +08:00
.page-component {
.content {
margin-left: -1px;
2016-08-23 19:15:15 +08:00
2016-08-31 11:25:02 +08:00
> {
h3 {
margin: 45px 0 15px;
}
table {
2016-09-18 22:01:26 +08:00
border-collapse: collapse;
2016-08-31 11:25:02 +08:00
width: 100%;
background-color: #fff;
color: #5e6d82;
font-size: 14px;
margin-bottom: 45px;
strong {
font-weight: normal;
}
th {
text-align: left;
2016-09-19 21:31:38 +08:00
border-top: 1px solid #eaeefb;
background-color: #EFF2F7;
2016-08-31 11:25:02 +08:00
}
td, th {
border-bottom: 1px solid #eaeefb;
padding: 10px 0;
}
2016-09-19 21:31:38 +08:00
th:first-child, td:first-child {
padding-left: 10px;
2016-09-18 22:01:26 +08:00
}
2016-08-31 11:25:02 +08:00
}
2016-08-23 19:15:15 +08:00
}
}
}
2016-08-23 17:39:58 +08:00
</style>
2016-08-22 17:49:20 +08:00
<template>
2016-08-25 15:54:45 +08:00
<div class="page-container page-component">
2016-08-31 11:25:02 +08:00
<el-row>
2016-08-23 17:39:58 +08:00
<el-col :span="6">
2016-08-23 19:15:15 +08:00
<side-nav :data="navsData" base="/component"></side-nav>
2016-08-23 17:39:58 +08:00
</el-col>
<el-col :span="18">
2016-08-23 19:15:15 +08:00
<router-view class="content"></router-view>
2016-09-07 14:18:17 +08:00
<footer-nav></footer-nav>
2016-08-23 17:39:58 +08:00
</el-col>
</el-row>
2016-08-23 14:03:45 +08:00
</div>
</template>
<script>
import { navs } from '../route.config';
export default {
data() {
return {
2016-08-23 17:39:58 +08:00
navsData: navs
2016-08-23 14:03:45 +08:00
};
}
2016-08-23 17:39:58 +08:00
};
2016-08-23 14:03:45 +08:00
</script>