<template>
  <el-tabs v-model="tabActiveName">
    <el-tab-pane label="否定商品" name="negProduct">
      <NegProduct v-if="tabActiveName === 'negProduct'" :ad-group-id="props.adGroupId"/>
    </el-tab-pane>
    <el-tab-pane label="否定词" name="negKeyword">
      <NegKeyword v-if="tabActiveName === 'negKeyword'" :ad-group-id="props.adGroupId"/>
    </el-tab-pane>
  </el-tabs>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { LocationQueryValue } from 'vue-router'
import NegProduct from '../negProduct/index.vue'
// import NegKeyword from '../negKeyword/index.vue'

interface Props {
  adGroupId: LocationQueryValue | LocationQueryValue[]
}
const props = defineProps<Props>()
const tabActiveName = ref('negProduct')

</script>

<style scoped></style>
