index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <div class="statistic-container">
  3. <a-tabs
  4. class="status-tabs"
  5. v-model:activeKey="activeKey"
  6. tab-position="left"
  7. animated
  8. >
  9. <a-tab-pane key="1">
  10. <template #tab>
  11. <span class="tab-title">
  12. <AppstoreOutlined />
  13. 整体概况
  14. </span>
  15. </template>
  16. <tab1 />
  17. </a-tab-pane>
  18. <a-tab-pane key="2">
  19. <template #tab>
  20. <span class="tab-title">
  21. <PieChartOutlined />
  22. 房间数据
  23. </span>
  24. </template>
  25. <tab2 />
  26. </a-tab-pane>
  27. <a-tab-pane key="3">
  28. <template #tab>
  29. <span class="tab-title">
  30. <BarChartOutlined />
  31. 房间留言
  32. </span>
  33. </template>
  34. <tab3 />
  35. </a-tab-pane>
  36. </a-tabs>
  37. </div>
  38. </template>
  39. <script lang="ts" setup>
  40. import tab1 from './tab/tab1.vue'
  41. import tab2 from './tab/tab2.vue'
  42. import tab3 from './tab/tab3.vue'
  43. import { ref } from 'vue'
  44. const activeKey = ref('1')
  45. </script>
  46. <style lang="less">
  47. .statistic-container {
  48. margin-top: 30px;
  49. // width: ;
  50. }
  51. .status-tabs {
  52. .ant-tabs-nav-list {
  53. background: #fff;
  54. padding: 10px;
  55. max-height: 170px;
  56. overflow: hidden;
  57. }
  58. .ant-tabs-tab .anticon {
  59. margin-right: 5px;
  60. }
  61. .ant-tabs-content-holder {
  62. // background: #fff;
  63. margin-left: 15px;
  64. // padding: 15px;
  65. padding-top: 0px;
  66. }
  67. }
  68. </style>