index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <ContentBox class="go-content-layers go-boderbox" :showTop="false">
  3. <n-tabs size="small" type="segment">
  4. <n-tab-pane name="chap1" display-directive="show:lazy">
  5. <template #tab>
  6. <n-space>
  7. <span>配置项</span>
  8. <n-icon size="16" class="icon-position">
  9. <CubeIcon />
  10. </n-icon>
  11. </n-space>
  12. </template>
  13. 1
  14. </n-tab-pane>
  15. <n-tab-pane name="chap2" display-directive="show:lazy">
  16. <template #tab>
  17. <n-space>
  18. <span>后端数据</span>
  19. <n-icon size="16" class="icon-position">
  20. <FlashIcon />
  21. </n-icon>
  22. </n-space>
  23. </template>
  24. 2
  25. </n-tab-pane>
  26. </n-tabs>
  27. </ContentBox>
  28. </template>
  29. <script setup lang="ts">
  30. import { reactive } from 'vue'
  31. import { renderIcon } from '@/utils'
  32. import { icon } from '@/plugins'
  33. import { ContentBox } from '../ContentBox/index'
  34. const { CubeIcon, FlashIcon } = icon.ionicons5
  35. </script>
  36. <style lang="scss" scoped>
  37. $wight: 400px;
  38. @include go(content-layers) {
  39. width: $wight;
  40. padding: 10px;
  41. .icon-position {
  42. padding-top: 2px;
  43. color: #70c0e8;
  44. }
  45. }
  46. </style>