SourceTabTools.vue 714 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <el-tabs v-model="current_tab">
  3. <el-tab-pane
  4. v-for="(tab, index) in tabData"
  5. :key="tab[0]"
  6. :name="tab[0]"
  7. :label="tab[1]"
  8. >
  9. <source-json v-if="index == 0" />
  10. <source-debug v-if="index == 1" />
  11. <source-list v-if="index == 2" />
  12. <source-help v-if="index == 3" />
  13. </el-tab-pane>
  14. </el-tabs>
  15. </template>
  16. <script setup>
  17. import { useSourceStore } from "@/store";
  18. const store = useSourceStore();
  19. const { currentTab: current_tab } = storeToRefs(store);
  20. const tabData = ref([
  21. ["editTab", "编辑源"],
  22. ["editDebug", "调试源"],
  23. ["editList", "源列表"],
  24. ["editHelp", "帮助信息"],
  25. ]);
  26. </script>
  27. <style lang="scss" scoped></style>