index.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div>
  3. <div class="el-tab">
  4. <el-tabs v-model="activeName" @tab-click="handleClick">
  5. <el-tab-pane label="报表配置" name="tableConfig"></el-tab-pane>
  6. <el-tab-pane label="报告配置" name="reportConfig"></el-tab-pane>
  7. <el-tab-pane label="基础信息" name="basicInfo"></el-tab-pane>
  8. </el-tabs>
  9. </div>
  10. <test></test>
  11. </div>
  12. </template>
  13. <script >
  14. import test from './reportConfig'
  15. export default {
  16. components: { test },
  17. data() {
  18. return {
  19. activeName: 'basicInfo',
  20. }
  21. },
  22. methods: {
  23. }
  24. };
  25. </script>
  26. <style lang="less" scoped>
  27. .el-tab {
  28. position: absolute;
  29. left: 218px;
  30. right: 16px;
  31. top: 77px;
  32. height: 51px;
  33. line-height: 20px;
  34. background-color: rgba(255, 255, 255, 1);
  35. text-align: center;
  36. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.15);
  37. /deep/.el-tabs__nav {
  38. left: 25px;
  39. }
  40. /deep/.el-tabs__nav-wrap::after {
  41. height: 0;
  42. }
  43. }
  44. </style>