index.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <div class="mainContentBox">
  3. <el-tabs
  4. v-model="activeName"
  5. class="demo-tabs"
  6. type="card"
  7. @tab-click="handleClick"
  8. >
  9. <el-tab-pane label="齐套叫料" name="first">
  10. <div class="contentBox">
  11. <CompleteSuit />
  12. </div>
  13. </el-tab-pane>
  14. <el-tab-pane label="未齐套叫料" name="second">
  15. <div class="contentBox">
  16. <InCompleteSuit />
  17. </div>
  18. </el-tab-pane>
  19. <el-tab-pane label="零星叫料" name="third">
  20. <div class="contentBox" style="border: 2px solid blueviolet">
  21. <Desperse />
  22. </div>
  23. </el-tab-pane>
  24. </el-tabs>
  25. </div>
  26. </template>
  27. <script lang="ts" setup>
  28. import { ref } from "vue";
  29. import type { TabsPaneContext } from "element-plus";
  30. import CompleteSuit from "@/views/pro-operation/call-materiel/complete-suit.vue";
  31. import InCompleteSuit from "@/views/pro-operation/call-materiel/in-complete-suit.vue";
  32. import Desperse from "@/views/pro-operation/call-materiel/desperse.vue";
  33. const activeName = ref("first");
  34. const handleClick = (tab: TabsPaneContext, event: Event) => {
  35. console.log(tab, event);
  36. };
  37. </script>
  38. <style lang="scss" scoped>
  39. :deep(.el-tabs--card > .el-tabs__header .el-tabs__nav) {
  40. background: rgba(0, 0, 0, 0.1);
  41. border-radius: 16px 16px 16px 16px;
  42. overflow: hidden;
  43. border: 0;
  44. }
  45. :deep(.el-tabs--card > .el-tabs__header) {
  46. height: 80px;
  47. border: 0;
  48. overflow: hidden;
  49. border-radius: 16px 16px 16px 16px;
  50. }
  51. :deep(.el-tabs--card > .el-tabs__header .el-tabs__item) {
  52. width: 290px;
  53. height: 80px;
  54. border-radius: 0;
  55. font-weight: 500;
  56. font-size: 24px;
  57. overflow: hidden;
  58. background: transparent;
  59. border-color: transparent;
  60. }
  61. :deep(.el-tabs--card > .el-tabs__header .el-tabs__item.is-active) {
  62. background: white;
  63. border-radius: 16px 16px 16px 16px;
  64. border-color: transparent;
  65. overflow: hidden;
  66. }
  67. .contentBox {
  68. height: calc(100vh - 225px);
  69. overflow-y: auto;
  70. }
  71. </style>