-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: picker multiple selection lines collpase (#47821)
* fix: DatePicker multiple padding * docs: update demo * chore: clean up
- Loading branch information
Showing
8 changed files
with
4,439 additions
and
11 deletions.
There are no files selected for viewing
3,027 changes: 3,027 additions & 0 deletions
3,027
components/date-picker/__tests__/__snapshots__/demo-extend.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
1,372 changes: 1,372 additions & 0 deletions
1,372
components/date-picker/__tests__/__snapshots__/demo.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## zh-CN | ||
|
||
非响应式间距测试。 | ||
|
||
## en-US | ||
|
||
Non-responsive spacing test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { DatePicker, Flex } from 'antd'; | ||
import dayjs from 'dayjs'; | ||
|
||
const defaultValue = new Array(10).fill(0).map((_, index) => dayjs('2000-01-01').add(index, 'day')); | ||
|
||
const App: React.FC = () => ( | ||
<Flex vertical gap="small"> | ||
<DatePicker multiple defaultValue={defaultValue} size="small" /> | ||
<DatePicker multiple defaultValue={defaultValue} /> | ||
<DatePicker multiple defaultValue={defaultValue} size="large" /> | ||
</Flex> | ||
); | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters