<template>
    <HcTabsSimple :cur="tabsKey" :datas="tabsData" @tabClick="tabsClick">
        <template #tab-1>
            <TaskTable :tableKey="tabsKey"/>
        </template>
        <template #tab-2>
            <TaskTable :tableKey="tabsKey"/>
        </template>
    </HcTabsSimple>
</template>

<script setup>
import {ref, watch} from "vue";
import TaskTable from "./components/TaskTable.vue";

//选项卡
const tabsKey = ref(1)
const tabsData = ref([
    {icon: 'user', label: '我的计划任务', key: 1},
    {icon: 'todo', label: '查看全部计划任务', key: 2},
])

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

</script>
