Files
legado/modules/web/src/components/SourceTabTools.vue
Xwite 5efc367bc6 update vue3.3
web编辑 修正筛选删除导出逻辑
2023-05-14 19:36:52 +08:00

37 lines
765 B
Vue

<template>
<el-tabs v-model="current_tab">
<el-tab-pane
v-for="(tab, index) in tabData"
:key="tab[0]"
:name="tab[0]"
:label="tab[1]"
>
<source-json v-if="index == 0" />
<source-debug v-if="index == 1" />
<source-list v-if="index == 2" />
<source-help v-if="index == 3" />
</el-tab-pane>
</el-tabs>
</template>
<script setup>
import { useSourceStore } from "@/store";
const store = useSourceStore();
const { currentTab: current_tab } = storeToRefs(store);
const tabData = ref([
["editTab", "编辑源"],
["editDebug", "调试源"],
["editList", "源列表"],
["editHelp", "帮助信息"],
]);
</script>
<style lang="scss" scoped>
:deep(.el-tabs__header) {
margin-bottom: 5px;
}
</style>