fix:日期选择问题

This commit is contained in:
hzm
2026-02-08 20:00:51 +08:00
parent f0a95ac19f
commit a76ced7bdc
2 changed files with 9 additions and 1 deletions

View File

@@ -712,6 +712,13 @@ input[type="number"] {
box-shadow: none;
}
@media (hover: none) {
.tab:hover {
color: var(--muted);
background: transparent;
}
}
.modal-overlay {
position: fixed;
inset: 0;

View File

@@ -363,9 +363,10 @@ function DatePicker({ value, onChange }) {
}}
>
<div className="calendar-header" style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 12 }}>
<button onClick={handlePrevMonth} className="icon-button" style={{ width: 24, height: 24 }}>&lt;</button>
<button type="button" onClick={handlePrevMonth} className="icon-button" style={{ width: 24, height: 24 }}>&lt;</button>
<span style={{ fontWeight: 600 }}>{year} {month + 1}</span>
<button
type="button"
onClick={handleNextMonth}
className="icon-button"
style={{ width: 24, height: 24 }}