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

50 lines
1.9 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">
<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>
2018-08-20 02:20:43 +00:00
<a class="document-btn" target="_blank" href="https://panjiachen.gitee.io/vue-element-admin-site/zh/">国内文档</a>
<dropdown-menu :items="articleList" style="float:left;margin-left:50px;" title="系列文章"/>
2017-11-17 06:57:39 +00:00
</div>
</template>
2017-11-20 09:37:58 +00:00
<script>
import DropdownMenu from '@/components/element-ui/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 },
2019-02-22 18:06:48 +00:00
data: function() {
2017-11-20 09:37:58 +00:00
return {
articleList: [
2018-08-08 05:42:12 +00:00
{ title: '基础篇', href: 'https://juejin.im/post/59097cd7a22b9d0065fb61d2' },
{ title: '登录权限篇', href: 'https://juejin.im/post/591aa14f570c35006961acac' },
{ title: '实战篇', href: 'https://juejin.im/post/593121aa0ce4630057f70d35' },
{ title: 'vue-admin-template 篇', href: 'https://juejin.im/post/595b4d776fb9a06bbe7dba56' },
2017-12-01 09:47:08 +00:00
{ title: '自行封装 component', href: 'https://segmentfault.com/a/1190000009090836' },
2018-08-08 05:42:12 +00:00
{ title: '优雅的使用 icon', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
{ title: 'webpack4', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
{ title: 'webpack4', href: 'https://juejin.im/post/5b5d6d6f6fb9a04fea58aabc' }
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;
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>