index.vue 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <div>
  3. <div class="card mb10">
  4. <h4 class="title">简介</h4>
  5. <span class="text">
  6. <el-link type="primary" href="https://docs.spicyboy.cn" target="_blank">Admin</el-link>
  7. 一款基于 Vue3.4、TypeScript、Vite5、Pinia、Element-Plus 开源的后台管理框架,使用目前最新技术栈开发。项目提供强大的
  8. <el-link type="primary" href="https://juejin.cn/post/7166068828202336263" target="_blank">ProTable 组件</el-link>
  9. 在一定程度上提高您的开发效率。另外本项目还封装了一些常用组件、Hooks、指令、动态路由、按钮级别权限控制等功能。
  10. </span>
  11. </div>
  12. <div class="card mb10">
  13. <h4 class="title">项目信息</h4>
  14. <el-descriptions :column="2" border>
  15. <el-descriptions-item label="版本号" label-align="left">
  16. <el-tag>{{ version }}</el-tag>
  17. </el-descriptions-item>
  18. <el-descriptions-item label="发布时间" label-align="left">
  19. <el-tag>{{ lastBuildTime }}</el-tag>
  20. </el-descriptions-item>
  21. <el-descriptions-item label="Gitee" label-align="left">
  22. <el-link type="primary" target="_blank"> Gitee </el-link>
  23. </el-descriptions-item>
  24. <el-descriptions-item label="Github" label-align="left">
  25. <el-link type="primary" target="_blank"> Github </el-link>
  26. </el-descriptions-item>
  27. <el-descriptions-item label="文档地址" label-align="left">
  28. <el-link type="primary" target="_blank"> 文档地址 </el-link>
  29. </el-descriptions-item>
  30. <el-descriptions-item label="预览地址" label-align="left">
  31. <el-link type="primary" target="_blank"> 预览地址 </el-link>
  32. </el-descriptions-item>
  33. </el-descriptions>
  34. </div>
  35. <div class="card mb10">
  36. <h4 class="title">生产环境依赖</h4>
  37. <el-descriptions :column="3" border>
  38. <el-descriptions-item v-for="(value, key) in dependencies" :key="key" width="400px" :label="key">
  39. <el-tag type="info">
  40. {{ value }}
  41. </el-tag>
  42. </el-descriptions-item>
  43. </el-descriptions>
  44. </div>
  45. <div class="card">
  46. <h4 class="title">开发环境依赖</h4>
  47. <el-descriptions :column="3" border>
  48. <el-descriptions-item v-for="(value, key) in devDependencies" :key="key" width="400px" :label="key">
  49. <el-tag type="info">
  50. {{ value }}
  51. </el-tag>
  52. </el-descriptions-item>
  53. </el-descriptions>
  54. </div>
  55. </div>
  56. </template>
  57. <script setup lang="ts" name="about">
  58. const { pkg, lastBuildTime } = __APP_INFO__;
  59. const { dependencies, devDependencies, version } = pkg;
  60. </script>
  61. <style lang="scss" scoped>
  62. .card {
  63. .title {
  64. margin: 0 0 15px;
  65. font-size: 17px;
  66. font-weight: bold;
  67. color: var(--el-text-color-primary);
  68. }
  69. .text {
  70. font-size: 15px;
  71. line-height: 25px;
  72. color: var(--el-text-color-regular);
  73. .el-link {
  74. font-size: 15px;
  75. }
  76. }
  77. }
  78. </style>