diff --git a/src/components/ShareOption.tsx b/src/components/ShareOption.tsx index 01a5e7e..1ebef67 100644 --- a/src/components/ShareOption.tsx +++ b/src/components/ShareOption.tsx @@ -107,7 +107,7 @@ const ShareOption = (props: { taskId: string }) => { onClick={() => doDownload("/static/pc-Web.png", '微信小程序马上行计划管理.png')}>下载
-
小程序扫描二维码,有效期7天
+
小程序扫描二维码,有效期1天
diff --git a/src/components/TaskRemind.module.css b/src/components/TaskRemind.module.css new file mode 100644 index 0000000..b03faad --- /dev/null +++ b/src/components/TaskRemind.module.css @@ -0,0 +1,3 @@ +.localDiv{ + margin-bottom: 24px; +} \ No newline at end of file diff --git a/src/components/TaskRemindComponent.tsx b/src/components/TaskRemindComponent.tsx new file mode 100644 index 0000000..d000a12 --- /dev/null +++ b/src/components/TaskRemindComponent.tsx @@ -0,0 +1,169 @@ +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