<!--
@ 作者: 鲁智强
@ 时间: 2023-09-19 15:01:23
@ 备注: 
-->
<script lang='ts' setup>
import cc from './cc.vue'
import bb from './bb.vue'
import { addPostCont } from '@/api/opk/api'
import {ref} from 'vue'
const number = ref(0);
const chnage = (index:any) => {
  number.value = index;
};
</script>
<template class="asd">
	<el-tabs @tab-click>
	<el-tab-pane :class="{newStyle:0===number}" @click="chnage(0)" label="1231"></el-tab-pane>
	<el-tab-pane :class="{newStyle:1===number}" @click="chnage(1)" label="2133"></el-tab-pane>
	<div v-show="0===number">
		<bb></bb>
	</div>
	<div v-show="1===number">
		<cc></cc>
	</div>
</el-tabs>
</template>
<style  lang='scss' scoped>
*{
	background-color: #fff;
}
.asd{
	width:100px;
}
</style>
