import { computed, defineComponent, ref } from 'vue' import useTomatoStore from '../useTomatoStore' import NoDataImg from "~/public/icons/work/noData.png" import clsx from 'clsx' import dayjs from 'dayjs' import PlayImg from "~/public/icons/work/work_page-play.png" export default defineComponent(() => { const store = useTomatoStore() const searchText = ref('') return () => (
{ searchText.value = e.target.value }} type="text" placeholder='搜索目标' class={' border-transparent pb-1 border-b-[1px] border-b-[#ddd] overflow-hidden outline-none border-[1px] w-full'} />
你今日已完成 {store.state.list.filter(val => dayjs(val.finishTime).isSame(dayjs(), 'day') && val.isCompleted).length}个番茄时 不积跬步无以至千里、千里之行始于足下。
) })