admin-fe/src/views/documentation/index.vue

48 lines
1.6 KiB
Vue
Raw Normal View History

2017-11-17 06:57:39 +00:00
<template>
2017-11-20 09:37:58 +00:00
<div class="app-container documentation-container">
2018-06-25 06:54:02 +00:00
<a class="document-btn" target='_blank' href="https://panjiachen.github.io/vue-element-admin-site/">{{$t('documentation.documentation')}}</a>
<a class="document-btn" target='_blank' href="https://github.com/PanJiaChen/vue-element-admin/">{{$t('documentation.github')}}</a>
2017-11-20 09:37:58 +00:00
<dropdown-menu style="float:left;margin-left:50px;" title='系列文章' :items='articleList'></dropdown-menu>
2017-11-17 06:57:39 +00:00
</div>
</template>
2017-11-20 09:37:58 +00:00
<script>
import DropdownMenu from '@/components/Share/dropdownMenu'
2017-11-17 06:57:39 +00:00
2017-11-20 09:37:58 +00:00
export default {
name: 'documentation',
2017-11-20 09:37:58 +00:00
components: { DropdownMenu },
data() {
return {
articleList: [
{ title: '基础篇', href: 'https://segmentfault.com/a/1190000009275424' },
{ title: '登录权限篇', href: 'https://segmentfault.com/a/1190000009506097' },
{ title: '实战篇', href: 'https://segmentfault.com/a/1190000009762198' },
{ title: 'vueAdmin-template 篇', href: 'https://segmentfault.com/a/1190000010043013' },
2017-12-01 09:47:08 +00:00
{ title: '自行封装 component', href: 'https://segmentfault.com/a/1190000009090836' },
{ title: '优雅的使用 icon', href: 'https://segmentfault.com/a/1190000012213278' }
2017-11-20 09:37:58 +00:00
]
}
2017-11-17 06:57:39 +00:00
}
2017-11-20 09:37:58 +00:00
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.documentation-container {
margin: 50px;
.document-btn {
float: left;
margin-left: 50px;
vertical-align: middle;
display: block;
cursor: pointer;
background: black;
color: white;
height: 60px;
width: 200px;
line-height: 60px;
font-size: 20px;
text-align: center;
}
}
2017-11-17 06:57:39 +00:00
</style>