index.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <n-modal v-model:show="modelShow" @afterLeave="closeHandle">
  3. <n-list bordered class="go-system-info">
  4. <template #header>
  5. <n-space justify="space-between">
  6. <n-h3 class="go-mb-0">关于我们</n-h3>
  7. <n-icon size="20" class="go-cursor-pointer" @click="closeHandle">
  8. <close-icon></close-icon>
  9. </n-icon>
  10. </n-space>
  11. </template>
  12. <n-list-item>
  13. <n-space :size="20">
  14. <n-text class="item-left">版权声明:</n-text>
  15. <n-text>
  16. GoView 版权属于
  17. <n-a href="https://gitee.com/MTrun/go-view" target="_blank">https://gitee.com/MTrun/go-view</n-a> 项目作者
  18. </n-text>
  19. </n-space>
  20. </n-list-item>
  21. <n-list-item>
  22. <n-divider style="margin-top: 0" />
  23. <n-space :size="20">
  24. <n-text class="item-left">协议备注:</n-text>
  25. <n-text>
  26. 请遵守开源 MIT 协议,以上声明 <n-text type="error">不可删除</n-text>,否则视作侵权行为,后果自负!
  27. </n-text>
  28. </n-space>
  29. </n-list-item>
  30. <n-list-item>
  31. <n-divider style="margin-top: 0" />
  32. <n-space :size="20">
  33. <n-text class="item-left">商业授权:</n-text>
  34. <n-text>
  35. 若不想保留版权声明,请通过仓库/交流群 联系项目作者,进行授权
  36. </n-text>
  37. </n-space>
  38. </n-list-item>
  39. </n-list>
  40. </n-modal>
  41. </template>
  42. <script lang="ts" setup>
  43. import { icon } from '@/plugins'
  44. const { HelpOutlineIcon, CloseIcon } = icon.ionicons5
  45. const emit = defineEmits(['update:modelShow'])
  46. defineProps({
  47. modelShow: Boolean
  48. })
  49. const closeHandle = () => {
  50. emit('update:modelShow', false)
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. @include go('system-info') {
  55. @extend .go-background-filter;
  56. min-width: 100px;
  57. max-width: 60vw;
  58. padding-bottom: 20px;
  59. .item-left {
  60. width: 200px;
  61. }
  62. @include deep() {
  63. .n-list-item:not(:last-child) {
  64. border-bottom: 0;
  65. }
  66. }
  67. }
  68. </style>