otherComponentSyz.vue 692 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <el-scrollbar v-if="currTab == 0" :height="height">
  3. 升压站 1
  4. </el-scrollbar>
  5. <el-scrollbar v-if="currTab == 1" :height="height">
  6. 2
  7. </el-scrollbar>
  8. <el-scrollbar v-if="currTab == 2" :height="height">
  9. 3
  10. </el-scrollbar>
  11. <el-scrollbar v-if="currTab == 3" :height="height">
  12. 4
  13. </el-scrollbar>
  14. <el-scrollbar v-if="currTab == 4" :height="height">
  15. 5
  16. </el-scrollbar>
  17. </template>
  18. <script>
  19. export default {
  20. components: {
  21. },
  22. data() {
  23. return {
  24. };
  25. },
  26. props:{
  27. currTab:{
  28. type: Number
  29. },
  30. height: {
  31. type: String
  32. },
  33. },
  34. methods:{
  35. },
  36. created() {
  37. },
  38. mounted() {},
  39. };
  40. </script>
  41. <style lang="less" scoped>
  42. </style>