mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
5.7 KiB
JavaScript
1 line
5.7 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["170d9c23"],{"170d9c23":function(e,a,d){"use strict";d.d(a,"__esModule",{value:!0}),d.d(a,"texts",{enumerable:!0,get:function(){return n;}}),d("80f6ed16");let n=[{value:"When data is in the form of dates, such as schedules, timetables, prices calendar, lunar calendar. This component also supports Year/Month switch.",paraId:0,tocIndex:0},{value:"Common props ref\uFF1A",paraId:1,tocIndex:9},{value:"Common props",paraId:2,tocIndex:9},{value:"Note:",paraId:3,tocIndex:9},{value:" Part of the Calendar's locale is read from ",paraId:3,tocIndex:9},{value:"value",paraId:3,tocIndex:9},{value:". So, please set the locale of ",paraId:3,tocIndex:9},{value:"dayjs",paraId:3,tocIndex:9},{value:" correctly.",paraId:3,tocIndex:9},{value:"// The default locale is en-US, if you want to use other locale, just set locale in entry file globally.\n// import dayjs from 'dayjs';\n// import 'dayjs/locale/zh-cn';\n// dayjs.locale('zh-cn');\n\n<Calendar cellRender={cellRender} onPanelChange={onPanelChange} onSelect={onSelect} />\n",paraId:4,tocIndex:9},{value:"Property",paraId:5,tocIndex:9},{value:"Description",paraId:5,tocIndex:9},{value:"Type",paraId:5,tocIndex:9},{value:"Default",paraId:5,tocIndex:9},{value:"Version",paraId:5,tocIndex:9},{value:"cellRender",paraId:5,tocIndex:9},{value:"Customize cell content",paraId:5,tocIndex:9},{value:"function(current: dayjs, info: { prefixCls: string, originNode: React.ReactElement, today: dayjs, range?: 'start' | 'end', type: PanelMode, locale?: Locale, subType?: 'hour' | 'minute' | 'second' | 'meridiem' }) => React.ReactNode",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"5.4.0",paraId:5,tocIndex:9},{value:"dateFullCellRender",paraId:5,tocIndex:9},{value:"Customize the display of the date cell, the returned content will override the cell",paraId:5,tocIndex:9},{value:"function(date: Dayjs): ReactNode",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"fullCellRender",paraId:5,tocIndex:9},{value:"Customize cell content",paraId:5,tocIndex:9},{value:"function(current: dayjs, info: { prefixCls: string, originNode: React.ReactElement, today: dayjs, range?: 'start' | 'end', type: PanelMode, locale?: Locale, subType?: 'hour' | 'minute' | 'second' | 'meridiem' }) => React.ReactNode",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"5.4.0",paraId:5,tocIndex:9},{value:"defaultValue",paraId:5,tocIndex:9},{value:"The date selected by default",paraId:5,tocIndex:9},{value:"dayjs",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"disabledDate",paraId:5,tocIndex:9},{value:"Function that specifies the dates that cannot be selected, ",paraId:5,tocIndex:9},{value:"currentDate",paraId:5,tocIndex:9},{value:" is same dayjs object as ",paraId:5,tocIndex:9},{value:"value",paraId:5,tocIndex:9},{value:" prop which you shouldn't mutate it](",paraId:5,tocIndex:9},{value:"https://github.com/ant-design/ant-design/issues/30987",paraId:5,tocIndex:9},{value:")",paraId:5,tocIndex:9},{value:"(currentDate: Dayjs) => boolean",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"fullscreen",paraId:5,tocIndex:9},{value:"Whether to display in full-screen",paraId:5,tocIndex:9},{value:"boolean",paraId:5,tocIndex:9},{value:"true",paraId:5,tocIndex:9},{value:"headerRender",paraId:5,tocIndex:9},{value:"Render custom header in panel",paraId:5,tocIndex:9},{value:"function(object:{value: Dayjs, type: string, onChange: f(), onTypeChange: f()})",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"locale",paraId:5,tocIndex:9},{value:"The calendar's locale",paraId:5,tocIndex:9},{value:"object",paraId:5,tocIndex:9},{value:"(default)",paraId:5,tocIndex:9},{value:"mode",paraId:5,tocIndex:9},{value:"The display mode of the calendar",paraId:5,tocIndex:9},{value:"month",paraId:5,tocIndex:9},{value:" | ",paraId:5,tocIndex:9},{value:"year",paraId:5,tocIndex:9},{value:"month",paraId:5,tocIndex:9},{value:"validRange",paraId:5,tocIndex:9},{value:"To set valid range",paraId:5,tocIndex:9},{value:"[",paraId:5,tocIndex:9},{value:"dayjs",paraId:5,tocIndex:9},{value:", ",paraId:5,tocIndex:9},{value:"dayjs",paraId:5,tocIndex:9},{value:"]",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"value",paraId:5,tocIndex:9},{value:"The current selected date",paraId:5,tocIndex:9},{value:"dayjs",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"onChange",paraId:5,tocIndex:9},{value:"Callback for when date changes",paraId:5,tocIndex:9},{value:"function(date: Dayjs)",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"onPanelChange",paraId:5,tocIndex:9},{value:"Callback for when panel changes",paraId:5,tocIndex:9},{value:"function(date: Dayjs, mode: string)",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"onSelect",paraId:5,tocIndex:9},{value:"Callback for when a date is selected, include source info",paraId:5,tocIndex:9},{value:"function(date: Dayjs, info: { source: 'year' | 'month' | 'date' | 'customize' })",paraId:5,tocIndex:9},{value:"-",paraId:5,tocIndex:9},{value:"info",paraId:5,tocIndex:9},{value:": 5.6.0",paraId:5,tocIndex:9},{value:"See ",paraId:6,tocIndex:12},{value:"Use custom date library",paraId:7,tocIndex:12},{value:"See ",paraId:8,tocIndex:13},{value:"How to set locale for date-related components",paraId:9,tocIndex:13},{value:"See FAQ ",paraId:10,tocIndex:14},{value:"Date-related-components-locale-is-not-working?",paraId:11,tocIndex:14},{value:"onSelect",paraId:12,tocIndex:15},{value:" provide ",paraId:12,tocIndex:15},{value:"info.source",paraId:12,tocIndex:15},{value:" to help on this:",paraId:12,tocIndex:15},{value:"<Calendar\n onSelect={(date, { source }) => {\n if (source === 'date') {\n console.log('Panel Select:', source);\n }\n }}\n/>\n",paraId:13,tocIndex:15}];}}]); |