element/examples/pages/component.vue

54 lines
990 B
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-23 17:39:58 +08:00
.el-col {
box-sizing: border-box;
}
2016-08-23 19:15:15 +08:00
.page-component .content > {
h3 {
margin: 45px 0 15px;
}
table {
width: 100%;
background-color: #fff;
color: #5e6d82;
font-size: 14px;
2016-08-27 16:06:22 +08:00
margin-bottom: 45px;
2016-08-23 19:15:15 +08:00
strong {
font-weight: normal;
}
th {
text-align: left;
}
td, th {
border-bottom: 1px solid #eaeefb;
padding: 10px 0;
}
}
}
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-23 17:39:58 +08:00
<el-row :gutter="25">
<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-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>