|
|
@@ -5,6 +5,7 @@ import { useEffect } from "react";
|
|
|
import {
|
|
|
parseDate,
|
|
|
CalendarDate,
|
|
|
+ DateValue
|
|
|
} from "@internationalized/date";
|
|
|
import Link from "next/link";
|
|
|
import { DatePicker } from "@heroui/date-picker";
|
|
|
@@ -38,7 +39,7 @@ const AccountEditPage = () => {
|
|
|
// 1. 定义状态:控制修改密码显示隐藏
|
|
|
const [showContent, setShowContent] = useState(false);
|
|
|
// 日期选择方法
|
|
|
- const handleDateChange = (dateValue: CalendarDate | null) => {
|
|
|
+ const handleDateChange = (dateValue: DateValue | null) => {
|
|
|
if (!dateValue) return;
|
|
|
|
|
|
// 把 CalendarDate 转成 标准字符串:YYYY-MM-DD
|
|
|
@@ -120,10 +121,9 @@ const AccountEditPage = () => {
|
|
|
</div>
|
|
|
<div className="mt-7.5">
|
|
|
<DatePicker
|
|
|
- size="base"
|
|
|
+ size="md"
|
|
|
onChange={handleDateChange}
|
|
|
radius="sm"
|
|
|
- inputClassName="w-full h-[44px] bg-[#fff]"
|
|
|
className="bg-[#fff]"
|
|
|
labelPlacement={"outside"}
|
|
|
showMonthAndYearPickers
|