muxin
2 years ago
committed by
GitHub
9 changed files with 5128 additions and 17 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,7 @@ |
|||
## zh-CN |
|||
|
|||
Component Token Debug. |
|||
|
|||
## en-US |
|||
|
|||
Component Token Debug. |
@ -0,0 +1,29 @@ |
|||
import { Calendar, ConfigProvider } from 'antd'; |
|||
import type { CalendarMode } from 'antd/es/calendar/generateCalendar'; |
|||
import type { Dayjs } from 'dayjs'; |
|||
import React from 'react'; |
|||
|
|||
/** Test usage. Do not use in your production. */ |
|||
export default () => { |
|||
const onPanelChange = (value: Dayjs, mode: CalendarMode) => { |
|||
console.log(value.format('YYYY-MM-DD'), mode); |
|||
}; |
|||
|
|||
return ( |
|||
<ConfigProvider |
|||
theme={{ |
|||
components: { |
|||
Calendar: { |
|||
fullBg: 'red', |
|||
fullPanelBg: 'green', |
|||
itemActiveBg: 'black', |
|||
}, |
|||
}, |
|||
}} |
|||
> |
|||
<Calendar onPanelChange={onPanelChange} /> |
|||
<br /> |
|||
<Calendar onPanelChange={onPanelChange} fullscreen={false} /> |
|||
</ConfigProvider> |
|||
); |
|||
}; |
Loading…
Reference in new issue