<template>
  <div class="block">
    <el-tabs v-model="curTab" @tab-click="tabChange">
      <el-tab-pane label="系统买方" name="tab1">
        <buyer />
      </el-tab-pane>
      <el-tab-pane label="金融市场" name="tab2">
        <Financial />
      </el-tab-pane>
      <el-tab-pane label="扫单配置" name="tab3"> </el-tab-pane>
      <el-tab-pane label="渠道广告" name="tab4"> </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from 'vue';
import type { TabsPaneContext } from 'element-plus';
import Buyer from './Buyer.vue';
import Financial from './Financial.vue';

const curTab = ref<string>('tab1');

// tab切换回调
const tabChange = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};
onMounted(() => {});
</script>

<style lang="scss" scoped></style>
