Skip to content

Commit

Permalink
chore: correct demo init value
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Dec 18, 2024
1 parent 353f997 commit 16facec
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 33 deletions.
4 changes: 2 additions & 2 deletions src/date-picker/_example/multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type { DatePickerProps, DateMultipleValue } from 'tdesign-react';

export default function YearDatePicker() {
const [dateValue, setDateValue] = useState<DateMultipleValue>(['2000-01-04', '2000-01-03', '2000-01-10']);
const [weekValue, setWeekValue] = useState<DateMultipleValue>(['2000-01-04', '2000-01-03', '2000-01-10']);
const [yearValue, setYearValue] = useState<DateMultipleValue>(['2000-01-04', '2000-01-03', '2000-01-10']);
const [weekValue, setWeekValue] = useState<DateMultipleValue>(['2024-50周', '2024-51周']);
const [yearValue, setYearValue] = useState<DateMultipleValue>(['2000', '2001', '2002']);

const handleDateChange: DatePickerProps['onChange'] = (value: DateMultipleValue, context) => {
console.log('onChange:', value, context);
Expand Down
39 changes: 9 additions & 30 deletions test/snap/__snapshots__/csr.test.jsx.snap

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/snap/__snapshots__/ssr.test.jsx.snap

Large diffs are not rendered by default.

0 comments on commit 16facec

Please sign in to comment.