2025-10-29 10:22:14 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
|
import Task from './Task.vue'
|
|
|
|
|
import TaskTemplate from './TaskTemplate/index.vue'
|
2025-12-15 20:46:54 +08:00
|
|
|
import { nextTick, ref } from 'vue'
|
2025-10-29 10:22:14 +08:00
|
|
|
|
2025-12-15 20:46:54 +08:00
|
|
|
const taskTemplateRef = ref<{ changeTask: () => void; clear: () => void }>()
|
2025-10-29 10:22:14 +08:00
|
|
|
|
|
|
|
|
function handleSearch() {
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
taskTemplateRef.value?.changeTask()
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2025-11-03 09:44:14 +08:00
|
|
|
<div class="p-[24px] h-[calc(100%-60px)]">
|
2025-10-31 18:42:31 +08:00
|
|
|
<Task @search="handleSearch" @search-start="taskTemplateRef?.clear" />
|
2025-10-29 10:22:14 +08:00
|
|
|
<TaskTemplate ref="taskTemplateRef" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"></style>
|