You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<el-tabs v-model="curTab"
|
|
|
|
@tab-click="tabChange">
|
|
|
|
<el-tab-pane label="产品要素"
|
|
|
|
name="tab1">
|
|
|
|
<info />
|
|
|
|
</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { ref, computed, watch, onMounted } from 'vue';
|
|
|
|
import type { TabsPaneContext } from 'element-plus';
|
|
|
|
import Info from './Info.vue';
|
|
|
|
|
|
|
|
const curTab = ref<string>('tab1');
|
|
|
|
|
|
|
|
// tab切换回调
|
|
|
|
const tabChange = (tab: TabsPaneContext, event: Event) => {
|
|
|
|
console.log(tab, event);
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import url(../../styles/form.scss);
|
|
|
|
</style>
|