index.vue 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div class="app-container container">
  3. <a class="document-btn" target='_blank' href="https://panjiachen.github.io/vue-element-admin-site/">{{$t('documentation.documentation')}}</a>
  4. <a class="document-btn" target='_blank' href="https://github.com/PanJiaChen/vue-element-admin/">{{$t('documentation.github')}}</a>
  5. <dropdown-menu style="float:left;margin-left:50px;" title='系列文章' :items='articleList'></dropdown-menu>
  6. </div>
  7. </template>
  8. <script>
  9. import DropdownMenu from '@/components/Share/dropdownMenu'
  10. export default {
  11. name: 'documentation',
  12. components: { DropdownMenu },
  13. data() {
  14. return {
  15. articleList: [
  16. { title: '基础篇', href: 'https://juejin.im/post/59097cd7a22b9d0065fb61d2' },
  17. { title: '登录权限篇', href: 'https://juejin.im/post/591aa14f570c35006961acac' },
  18. { title: '实战篇', href: 'https://juejin.im/post/593121aa0ce4630057f70d35' },
  19. { title: 'vueAdmin-template 篇', href: 'https://juejin.im/post/595b4d776fb9a06bbe7dba56' },
  20. { title: '自行封装 component', href: 'https://segmentfault.com/a/1190000009090836' },
  21. { title: '优雅的使用 icon', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
  22. { title: 'webpack4(上)', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
  23. { title: 'webpack4(下)', href: 'https://juejin.im/post/5b5d6d6f6fb9a04fea58aabc' }
  24. ]
  25. }
  26. }
  27. }
  28. </script>
  29. <style rel="stylesheet/scss" lang="scss" scoped>
  30. .container {
  31. margin: 50px;
  32. .document-btn {
  33. float: left;
  34. margin-left: 50px;
  35. vertical-align: middle;
  36. display: block;
  37. cursor: pointer;
  38. background: black;
  39. color: white;
  40. height: 60px;
  41. width: 200px;
  42. line-height: 60px;
  43. font-size: 20px;
  44. text-align: center;
  45. }
  46. }
  47. </style>