import styles from "@/components/TaskRemind.module.css"; import {CascaderProps, ConfigProvider} from 'antd'; import {Cascader} from 'antd'; import React, {useState} from "react"; interface ITaskRemind { remindTypeList: string[], setRemindTypeList: (taskTypeList: string[]) => void, readonly: boolean, } interface Option { value?: string | number | null; label: React.ReactNode; children?: Option[]; isLeaf?: boolean; } const optionLists: Option[] = [ { label: "期望开始", value: "expect_start", isLeaf: false, }, { label: "期望结束", value: "expect_end", isLeaf: false, }, ]; const TaskRemindComponent = (props: ITaskRemind) => { const [options, setOptions] = useState(optionLists); const cascaderOnChange: CascaderProps