25 lines
988 B
Vue
25 lines
988 B
Vue
|
|
<template>
|
||
|
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||
|
|
<el-tab-pane label="谐波源特性" name="1"><HarmonicWave v-if="activeName == '1'" /></el-tab-pane>
|
||
|
|
<el-tab-pane label="线缆类型" name="2"><cable v-if="activeName == '2'" /></el-tab-pane>
|
||
|
|
<el-tab-pane label="变压器参数" name="3"><transformer v-if="activeName == '3'" /></el-tab-pane>
|
||
|
|
<el-tab-pane label="冲击负荷参数" name="4"><load v-if="activeName == '4'" /></el-tab-pane>
|
||
|
|
</el-tabs>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script lang="ts" setup>
|
||
|
|
import { ref } from 'vue'
|
||
|
|
import type { TabsPaneContext } from 'element-plus'
|
||
|
|
import HarmonicWave from './components/harmonicWave.vue'
|
||
|
|
import cable from './components/cable.vue'
|
||
|
|
import transformer from './components/transformer.vue'
|
||
|
|
import load from './components/load.vue'
|
||
|
|
const activeName = ref('1')
|
||
|
|
|
||
|
|
const handleClick = (tab: TabsPaneContext, event: Event) => {
|
||
|
|
console.log(tab, event)
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style></style>
|