<template>
    <HcTabsSimple :cur="tabsKey" :datas="tabsData" @tabClick="tabsClick">
        <template #tab-pricetype>
            <TabPriceType :cur="tabsKey"/>
        </template>
        <template #tab-tasktype>
            <TabTaskType :cur="tabsKey"/>
        </template>
        <template #tab-indicator>
            测试3
        </template>
        <template #tab-price>
            <TabPrice :cur="tabsKey"/>
        </template>
    </HcTabsSimple>
</template>

<script setup>
import {ref, watch, onMounted} from "vue";
import TabPriceType from "./components/tab-pricetype.vue";
import TabTaskType from "./components/tab-tasktype.vue";
import TabPrice from "./components/tab-price.vue";

//类型处理
const tabsKey = ref('pricetype')
const tabsData = ref([
    {icon: 'bar-chart-box', label: '预算分类', key: 'pricetype'},
    {icon: 'tools', label: '任务类型', key: 'tasktype'},
    {icon: 'sun-cloudy', label: '指标依据', key: 'indicator'},
    {icon: 'sun-cloudy', label: '岗位单价', key: 'price'},
])

const tabsClick = (key) => {
    tabsKey.value = key
}

</script>

<style lang="scss" scoped>

</style>

<style lang="scss">

</style>
