mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["f6fd367e"],{f6fd367e:function(a,e,d){"use strict";d.d(e,"__esModule",{value:!0}),d.d(e,"texts",{enumerable:!0,get:function(){return t;}}),d("be3c4b82");let t=[{value:"By clicking the input box, you can select a date from a popup calendar.",paraId:0,tocIndex:0},{value:"Common props ref\uFF1A",paraId:1,tocIndex:31},{value:"Common props",paraId:2,tocIndex:31},{value:"There are five kinds of picker:",paraId:3,tocIndex:31},{value:"DatePicker",paraId:4,tocIndex:31},{value:'DatePicker[picker="month"]',paraId:4,tocIndex:31},{value:'DatePicker[picker="week"]',paraId:4,tocIndex:31},{value:'DatePicker[picker="year"]',paraId:4,tocIndex:31},{value:'DatePicker[picker="quarter"] (Added in 4.1.0)',paraId:4,tocIndex:31},{value:"RangePicker",paraId:4,tocIndex:31},{value:"The default locale is en-US, if you need to use other languages, recommend to use internationalized components provided by us at the entrance. Look at: ",paraId:5,tocIndex:32},{value:"ConfigProvider",paraId:5,tocIndex:32},{value:".",paraId:5,tocIndex:32},{value:"If there are special needs (only modifying single component language), Please use the property: local. Example: ",paraId:6,tocIndex:32},{value:"default",paraId:6,tocIndex:32},{value:".",paraId:6,tocIndex:32},{value:"// The default locale is en-US, if you want to use other locale, just set locale in entry file globally.\n// Make sure you import the relevant dayjs file as well, otherwise the locale won't change for all texts (e.g. range picker months)\nimport locale from 'antd/locale/zh_CN';\nimport dayjs from 'dayjs';\n\nimport 'dayjs/locale/zh-cn';\n\ndayjs.locale('zh-cn');\n\n<ConfigProvider locale={locale}>\n <DatePicker defaultValue={dayjs('2015-01-01', 'YYYY-MM-DD')} />\n</ConfigProvider>;\n",paraId:7,tocIndex:32},{value:"When use with Next.js App Router, make sure to add ",paraId:8},{value:"'use client'",paraId:8},{value:" before import locale file of dayjs. It's because all components of Ant Design only works in client, importing locale in RSC will not work.",paraId:8},{value:"The following APIs are shared by DatePicker, RangePicker.",paraId:9,tocIndex:33},{value:"Property",paraId:10,tocIndex:33},{value:"Description",paraId:10,tocIndex:33},{value:"Type",paraId:10,tocIndex:33},{value:"Default",paraId:10,tocIndex:33},{value:"Version",paraId:10,tocIndex:33},{value:"allowClear",paraId:10,tocIndex:33},{value:"Customize clear button",paraId:10,tocIndex:33},{value:"boolean | { clearIcon?: ReactNode }",paraId:10,tocIndex:33},{value:"true",paraId:10,tocIndex:33},{value:"5.8.0: Support object type",paraId:10,tocIndex:33},{value:"autoFocus",paraId:10,tocIndex:33},{value:"If get focus when component mounted",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"false",paraId:10,tocIndex:33},{value:"className",paraId:10,tocIndex:33},{value:"The picker className",paraId:10,tocIndex:33},{value:"string",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"dateRender",paraId:10,tocIndex:33},{value:"Custom rendering function for date cells, >= 5.4.0 use ",paraId:10,tocIndex:33},{value:"cellRender",paraId:10,tocIndex:33},{value:" instead.",paraId:10,tocIndex:33},{value:"function(currentDate: dayjs, today: dayjs) => React.ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"< 5.4.0",paraId:10,tocIndex:33},{value:"cellRender",paraId:10,tocIndex:33},{value:"Custom rendering function for picker cells",paraId:10,tocIndex:33},{value:"(current: dayjs, info: { originNode: React.ReactElement,today: DateType, range?: 'start' | 'end', type: PanelMode, locale?: Locale, subType?: 'hour' | 'minute' | 'second' | 'meridiem' }) => React.ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.4.0",paraId:10,tocIndex:33},{value:"components",paraId:10,tocIndex:33},{value:"Custom panels",paraId:10,tocIndex:33},{value:"Record<Panel | 'input', React.ComponentType>",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"disabled",paraId:10,tocIndex:33},{value:"Determine whether the DatePicker is disabled",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"false",paraId:10,tocIndex:33},{value:"disabledDate",paraId:10,tocIndex:33},{value:"Specify the date that cannot be selected",paraId:10,tocIndex:33},{value:"(currentDate: dayjs, info: { from?: dayjs, type: Picker }) => boolean",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"info",paraId:10,tocIndex:33},{value:": 5.14.0",paraId:10,tocIndex:33},{value:"format",paraId:10,tocIndex:33},{value:"To set the date format, support multi-format matching when it is an array, display the first one shall prevail. refer to ",paraId:10,tocIndex:33},{value:"dayjs#format",paraId:10,tocIndex:33},{value:". for example: ",paraId:10,tocIndex:33},{value:"Custom Format",paraId:11,tocIndex:33},{value:"formatType",paraId:12,tocIndex:33},{value:"rc-picker",paraId:10,tocIndex:33},{value:"order",paraId:10,tocIndex:33},{value:"Auto order date when multiple or range selection",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"true",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"popupClassName",paraId:10,tocIndex:33},{value:"To customize the className of the popup calendar",paraId:10,tocIndex:33},{value:"string",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.23.0",paraId:10,tocIndex:33},{value:"preserveInvalidOnBlur",paraId:10,tocIndex:33},{value:"Not clean input on blur even when the typing is invalidate",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"false",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"getPopupContainer",paraId:10,tocIndex:33},{value:"To set the container of the floating layer, while the default is to create a ",paraId:10,tocIndex:33},{value:"div",paraId:10,tocIndex:33},{value:" element in ",paraId:10,tocIndex:33},{value:"body",paraId:10,tocIndex:33},{value:"function(trigger)",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"inputReadOnly",paraId:10,tocIndex:33},{value:"Set the ",paraId:10,tocIndex:33},{value:"readonly",paraId:10,tocIndex:33},{value:" attribute of the input tag (avoids virtual keyboard on touch devices)",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"false",paraId:10,tocIndex:33},{value:"locale",paraId:10,tocIndex:33},{value:"Localization configuration",paraId:10,tocIndex:33},{value:"object",paraId:10,tocIndex:33},{value:"default",paraId:10,tocIndex:33},{value:"minDate",paraId:10,tocIndex:33},{value:"The minimum date, which also limits the range of panel switching",paraId:10,tocIndex:33},{value:"dayjs",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"maxDate",paraId:10,tocIndex:33},{value:"The maximum date, which also limits the range of panel switching",paraId:10,tocIndex:33},{value:"dayjs",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"mode",paraId:10,tocIndex:33},{value:"The picker panel mode\uFF08 ",paraId:10,tocIndex:33},{value:"Cannot select year or month anymore?",paraId:13,tocIndex:33},{value:" )",paraId:10,tocIndex:33},{value:"time",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"date",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"month",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"year",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"decade",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"needConfirm",paraId:10,tocIndex:33},{value:"Need click confirm button to trigger value change. Default ",paraId:10,tocIndex:33},{value:"false",paraId:10,tocIndex:33},{value:" when ",paraId:10,tocIndex:33},{value:"multiple",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.14.0",paraId:10,tocIndex:33},{value:"nextIcon",paraId:10,tocIndex:33},{value:"The custom next icon",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.17.0",paraId:10,tocIndex:33},{value:"open",paraId:10,tocIndex:33},{value:"The open state of picker",paraId:10,tocIndex:33},{value:"boolean",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"panelRender",paraId:10,tocIndex:33},{value:"Customize panel render",paraId:10,tocIndex:33},{value:"(panelNode) => ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.5.0",paraId:10,tocIndex:33},{value:"picker",paraId:10,tocIndex:33},{value:"Set picker type",paraId:10,tocIndex:33},{value:"date",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"week",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"month",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"quarter",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"year",paraId:10,tocIndex:33},{value:"date",paraId:10,tocIndex:33},{value:"quarter",paraId:10,tocIndex:33},{value:": 4.1.0",paraId:10,tocIndex:33},{value:"placeholder",paraId:10,tocIndex:33},{value:"The placeholder of date input",paraId:10,tocIndex:33},{value:"string | [string,string]",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"placement",paraId:10,tocIndex:33},{value:"The position where the selection box pops up",paraId:10,tocIndex:33},{value:"bottomLeft",paraId:10,tocIndex:33},{value:" ",paraId:10,tocIndex:33},{value:"bottomRight",paraId:10,tocIndex:33},{value:" ",paraId:10,tocIndex:33},{value:"topLeft",paraId:10,tocIndex:33},{value:" ",paraId:10,tocIndex:33},{value:"topRight",paraId:10,tocIndex:33},{value:"bottomLeft",paraId:10,tocIndex:33},{value:"popupStyle",paraId:10,tocIndex:33},{value:"To customize the style of the popup calendar",paraId:10,tocIndex:33},{value:"CSSProperties",paraId:10,tocIndex:33},{value:"{}",paraId:10,tocIndex:33},{value:"prefix",paraId:10,tocIndex:33},{value:"The custom prefix",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"5.22.0",paraId:10,tocIndex:33},{value:"presets",paraId:10,tocIndex:33},{value:"The preset ranges for quick selection, Since ",paraId:10,tocIndex:33},{value:"5.8.0",paraId:10,tocIndex:33},{value:", preset value supports callback function.",paraId:10,tocIndex:33},{value:"{ label: React.ReactNode, value: Dayjs | (() => Dayjs) }[]",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"prevIcon",paraId:10,tocIndex:33},{value:"The custom prev icon",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.17.0",paraId:10,tocIndex:33},{value:"size",paraId:10,tocIndex:33},{value:"To determine the size of the input box, the height of ",paraId:10,tocIndex:33},{value:"large",paraId:10,tocIndex:33},{value:" and ",paraId:10,tocIndex:33},{value:"small",paraId:10,tocIndex:33},{value:", are 40px and 24px respectively, while default size is 32px",paraId:10,tocIndex:33},{value:"large",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"middle",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"small",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"status",paraId:10,tocIndex:33},{value:"Set validation status",paraId:10,tocIndex:33},{value:"'error' | 'warning'",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.19.0",paraId:10,tocIndex:33},{value:"style",paraId:10,tocIndex:33},{value:"To customize the style of the input box",paraId:10,tocIndex:33},{value:"CSSProperties",paraId:10,tocIndex:33},{value:"{}",paraId:10,tocIndex:33},{value:"suffixIcon",paraId:10,tocIndex:33},{value:"The custom suffix icon",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"superNextIcon",paraId:10,tocIndex:33},{value:"The custom super next icon",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.17.0",paraId:10,tocIndex:33},{value:"superPrevIcon",paraId:10,tocIndex:33},{value:"The custom super prev icon",paraId:10,tocIndex:33},{value:"ReactNode",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"4.17.0",paraId:10,tocIndex:33},{value:"variant",paraId:10,tocIndex:33},{value:"Variants of picker",paraId:10,tocIndex:33},{value:"outlined",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"borderless",paraId:10,tocIndex:33},{value:" | ",paraId:10,tocIndex:33},{value:"filled",paraId:10,tocIndex:33},{value:"outlined",paraId:10,tocIndex:33},{value:"5.13.0",paraId:10,tocIndex:33},{value:"onOpenChange",paraId:10,tocIndex:33},{value:"Callback function, can be executed whether the popup calendar is popped up or closed",paraId:10,tocIndex:33},{value:"function(open)",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"onPanelChange",paraId:10,tocIndex:33},{value:"Callback when picker panel mode is changed",paraId:10,tocIndex:33},{value:"function(value, mode)",paraId:10,tocIndex:33},{value:"-",paraId:10,tocIndex:33},{value:"Name",paraId:14,tocIndex:34},{value:"Description",paraId:14,tocIndex:34},{value:"Version",paraId:14,tocIndex:34},{value:"blur()",paraId:14,tocIndex:34},{value:"Remove focus",paraId:14,tocIndex:34},{value:"focus()",paraId:14,tocIndex:34},{value:"Get focus",paraId:14,tocIndex:34},{value:"Property",paraId:15,tocIndex:35},{value:"Description",paraId:15,tocIndex:35},{value:"Type",paraId:15,tocIndex:35},{value:"Default",paraId:15,tocIndex:35},{value:"Version",paraId:15,tocIndex:35},{value:"defaultPickerValue",paraId:15,tocIndex:35},{value:"Default panel date, will be reset when panel open",paraId:15,tocIndex:35},{value:"dayjs",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"5.14.0",paraId:15,tocIndex:35},{value:"defaultValue",paraId:15,tocIndex:35},{value:"To set default date, if start time or end time is null or undefined, the date range will be an open interval",paraId:15,tocIndex:35},{value:"dayjs",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"disabledTime",paraId:15,tocIndex:35},{value:"To specify the time that cannot be selected",paraId:15,tocIndex:35},{value:"function(date)",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"format",paraId:15,tocIndex:35},{value:"To set the date format. refer to ",paraId:15,tocIndex:35},{value:"dayjs#format",paraId:15,tocIndex:35},{value:"formatType",paraId:16,tocIndex:35},{value:"YYYY-MM-DD",paraId:15,tocIndex:35},{value:"multiple",paraId:15,tocIndex:35},{value:"Enable multiple selection. Not support ",paraId:15,tocIndex:35},{value:"showTime",paraId:15,tocIndex:35},{value:"boolean",paraId:15,tocIndex:35},{value:"false",paraId:15,tocIndex:35},{value:"5.14.0",paraId:15,tocIndex:35},{value:"pickerValue",paraId:15,tocIndex:35},{value:"Panel date. Used for controlled switching of panel date. Work with ",paraId:15,tocIndex:35},{value:"onPanelChange",paraId:15,tocIndex:35},{value:"dayjs",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"5.14.0",paraId:15,tocIndex:35},{value:"renderExtraFooter",paraId:15,tocIndex:35},{value:"Render extra footer in panel",paraId:15,tocIndex:35},{value:"(mode) => React.ReactNode",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"showNow",paraId:15,tocIndex:35},{value:"Show the fast access of current datetime",paraId:15,tocIndex:35},{value:"boolean",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"4.4.0",paraId:15,tocIndex:35},{value:"showTime",paraId:15,tocIndex:35},{value:"To provide an additional time selection",paraId:15,tocIndex:35},{value:"object | boolean",paraId:15,tocIndex:35},{value:"TimePicker Options",paraId:17,tocIndex:35},{value:"showTime.defaultValue",paraId:15,tocIndex:35},{value:"To set default time of selected date, ",paraId:15,tocIndex:35},{value:"demo",paraId:18,tocIndex:35},{value:"dayjs",paraId:15,tocIndex:35},{value:"dayjs()",paraId:15,tocIndex:35},{value:"showWeek",paraId:15,tocIndex:35},{value:"Show week info when in DatePicker",paraId:15,tocIndex:35},{value:"boolean",paraId:15,tocIndex:35},{value:"false",paraId:15,tocIndex:35},{value:"5.14.0",paraId:15,tocIndex:35},{value:"value",paraId:15,tocIndex:35},{value:"To set date",paraId:15,tocIndex:35},{value:"dayjs",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"onChange",paraId:15,tocIndex:35},{value:"Callback function, can be executed when the selected time is changing",paraId:15,tocIndex:35},{value:"function(date: dayjs, dateString: string)",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"onOk",paraId:15,tocIndex:35},{value:"Callback when click ok button",paraId:15,tocIndex:35},{value:"function()",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"onPanelChange",paraId:15,tocIndex:35},{value:"Callback function for panel changing",paraId:15,tocIndex:35},{value:"function(value, mode)",paraId:15,tocIndex:35},{value:"-",paraId:15,tocIndex:35},{value:"Property",paraId:19,tocIndex:36},{value:"Description",paraId:19,tocIndex:36},{value:"Type",paraId:19,tocIndex:36},{value:"Default",paraId:19,tocIndex:36},{value:"Version",paraId:19,tocIndex:36},{value:"defaultValue",paraId:19,tocIndex:36},{value:"To set default date",paraId:19,tocIndex:36},{value:"dayjs",paraId:19,tocIndex:36},{value:"-",paraId:19,tocIndex:36},{value:"format",paraId:19,tocIndex:36},{value:"To set the date format. refer to ",paraId:19,tocIndex:36},{value:"dayjs#format",paraId:19,tocIndex:36},{value:"formatType",paraId:20,tocIndex:36},{value:"YYYY",paraId:19,tocIndex:36},{value:"multiple",paraId:19,tocIndex:36},{value:"Enable multiple selection",paraId:19,tocIndex:36},{value:"boolean",paraId:19,tocIndex:36},{value:"false",paraId:19,tocIndex:36},{value:"5.14.0",paraId:19,tocIndex:36},{value:"renderExtraFooter",paraId:19,tocIndex:36},{value:"Render extra footer in panel",paraId:19,tocIndex:36},{value:"() => React.ReactNode",paraId:19,tocIndex:36},{value:"-",paraId:19,tocIndex:36},{value:"value",paraId:19,tocIndex:36},{value:"To set date",paraId:19,tocIndex:36},{value:"dayjs",paraId:19,tocIndex:36},{value:"-",paraId:19,tocIndex:36},{value:"onChange",paraId:19,tocIndex:36},{value:"Callback function, can be executed when the selected time is changing",paraId:19,tocIndex:36},{value:"function(date: dayjs, dateString: string)",paraId:19,tocIndex:36},{value:"-",paraId:19,tocIndex:36},{value:"Added in ",paraId:21,tocIndex:37},{value:"4.1.0",paraId:21,tocIndex:37},{value:".",paraId:21,tocIndex:37},{value:"Property",paraId:22,tocIndex:37},{value:"Description",paraId:22,tocIndex:37},{value:"Type",paraId:22,tocIndex:37},{value:"Default",paraId:22,tocIndex:37},{value:"Version",paraId:22,tocIndex:37},{value:"defaultValue",paraId:22,tocIndex:37},{value:"To set default date",paraId:22,tocIndex:37},{value:"dayjs",paraId:22,tocIndex:37},{value:"-",paraId:22,tocIndex:37},{value:"format",paraId:22,tocIndex:37},{value:"To set the date format. refer to ",paraId:22,tocIndex:37},{value:"dayjs#format",paraId:22,tocIndex:37},{value:"formatType",paraId:23,tocIndex:37},{value:"YYYY-\\QQ",paraId:22,tocIndex:37},{value:"multiple",paraId:22,tocIndex:37},{value:"Enable multiple selection",paraId:22,tocIndex:37},{value:"boolean",paraId:22,tocIndex:37},{value:"false",paraId:22,tocIndex:37},{value:"5.14.0",paraId:22,tocIndex:37},{value:"renderExtraFooter",paraId:22,tocIndex:37},{value:"Render extra footer in panel",paraId:22,tocIndex:37},{value:"() => React.ReactNode",paraId:22,tocIndex:37},{value:"-",paraId:22,tocIndex:37},{value:"value",paraId:22,tocIndex:37},{value:"To set date",paraId:22,tocIndex:37},{value:"dayjs",paraId:22,tocIndex:37},{value:"-",paraId:22,tocIndex:37},{value:"onChange",paraId:22,tocIndex:37},{value:"Callback function, can be executed when the selected time is changing",paraId:22,tocIndex:37},{value:"function(date: dayjs, dateString: string)",paraId:22,tocIndex:37},{value:"-",paraId:22,tocIndex:37},{value:"Property",paraId:24,tocIndex:38},{value:"Description",paraId:24,tocIndex:38},{value:"Type",paraId:24,tocIndex:38},{value:"Default",paraId:24,tocIndex:38},{value:"Version",paraId:24,tocIndex:38},{value:"defaultValue",paraId:24,tocIndex:38},{value:"To set default date",paraId:24,tocIndex:38},{value:"dayjs",paraId:24,tocIndex:38},{value:"-",paraId:24,tocIndex:38},{value:"format",paraId:24,tocIndex:38},{value:"To set the date format. refer to ",paraId:24,tocIndex:38},{value:"dayjs#format",paraId:24,tocIndex:38},{value:"formatType",paraId:25,tocIndex:38},{value:"YYYY-MM",paraId:24,tocIndex:38},{value:"multiple",paraId:24,tocIndex:38},{value:"Enable multiple selection",paraId:24,tocIndex:38},{value:"boolean",paraId:24,tocIndex:38},{value:"false",paraId:24,tocIndex:38},{value:"5.14.0",paraId:24,tocIndex:38},{value:"renderExtraFooter",paraId:24,tocIndex:38},{value:"Render extra footer in panel",paraId:24,tocIndex:38},{value:"() => React.ReactNode",paraId:24,tocIndex:38},{value:"-",paraId:24,tocIndex:38},{value:"value",paraId:24,tocIndex:38},{value:"To set date",paraId:24,tocIndex:38},{value:"dayjs",paraId:24,tocIndex:38},{value:"-",paraId:24,tocIndex:38},{value:"onChange",paraId:24,tocIndex:38},{value:"Callback function, can be executed when the selected time is changing",paraId:24,tocIndex:38},{value:"function(date: dayjs, dateString: string)",paraId:24,tocIndex:38},{value:"-",paraId:24,tocIndex:38},{value:"Property",paraId:26,tocIndex:39},{value:"Description",paraId:26,tocIndex:39},{value:"Type",paraId:26,tocIndex:39},{value:"Default",paraId:26,tocIndex:39},{value:"Version",paraId:26,tocIndex:39},{value:"defaultValue",paraId:26,tocIndex:39},{value:"To set default date",paraId:26,tocIndex:39},{value:"dayjs",paraId:26,tocIndex:39},{value:"-",paraId:26,tocIndex:39},{value:"format",paraId:26,tocIndex:39},{value:"To set the date format. refer to ",paraId:26,tocIndex:39},{value:"dayjs#format",paraId:26,tocIndex:39},{value:"formatType",paraId:27,tocIndex:39},{value:"YYYY-wo",paraId:26,tocIndex:39},{value:"multiple",paraId:26,tocIndex:39},{value:"Enable multiple selection",paraId:26,tocIndex:39},{value:"boolean",paraId:26,tocIndex:39},{value:"false",paraId:26,tocIndex:39},{value:"5.14.0",paraId:26,tocIndex:39},{value:"renderExtraFooter",paraId:26,tocIndex:39},{value:"Render extra footer in panel",paraId:26,tocIndex:39},{value:"(mode) => React.ReactNode",paraId:26,tocIndex:39},{value:"-",paraId:26,tocIndex:39},{value:"value",paraId:26,tocIndex:39},{value:"To set date",paraId:26,tocIndex:39},{value:"dayjs",paraId:26,tocIndex:39},{value:"-",paraId:26,tocIndex:39},{value:"onChange",paraId:26,tocIndex:39},{value:"Callback function, can be executed when the selected time is changing",paraId:26,tocIndex:39},{value:"function(date: dayjs, dateString: string)",paraId:26,tocIndex:39},{value:"-",paraId:26,tocIndex:39},{value:"showWeek",paraId:26,tocIndex:39},{value:"Show week info when in DatePicker",paraId:26,tocIndex:39},{value:"boolean",paraId:26,tocIndex:39},{value:"true",paraId:26,tocIndex:39},{value:"5.14.0",paraId:26,tocIndex:39},{value:"Property",paraId:28,tocIndex:40},{value:"Description",paraId:28,tocIndex:40},{value:"Type",paraId:28,tocIndex:40},{value:"Default",paraId:28,tocIndex:40},{value:"Version",paraId:28,tocIndex:40},{value:"allowEmpty",paraId:28,tocIndex:40},{value:"Allow start or end input leave empty",paraId:28,tocIndex:40},{value:"[boolean, boolean]",paraId:28,tocIndex:40},{value:"[false, false]",paraId:28,tocIndex:40},{value:"cellRender",paraId:28,tocIndex:40},{value:"Custom rendering function for picker cells",paraId:28,tocIndex:40},{value:"(current: dayjs, info: { originNode: React.ReactElement,today: DateType, range?: 'start' | 'end', type: PanelMode, locale?: Locale, subType?: 'hour' | 'minute' | 'second' | 'meridiem' }) => React.ReactNode",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"5.4.0",paraId:28,tocIndex:40},{value:"dateRender",paraId:28,tocIndex:40},{value:"Custom rendering function for date cells, >= 5.4.0 use ",paraId:28,tocIndex:40},{value:"cellRender",paraId:28,tocIndex:40},{value:" instead.",paraId:28,tocIndex:40},{value:"function(currentDate: dayjs, today: dayjs) => React.ReactNode",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"< 5.4.0",paraId:28,tocIndex:40},{value:"defaultPickerValue",paraId:28,tocIndex:40},{value:"Default panel date, will be reset when panel open",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"5.14.0",paraId:28,tocIndex:40},{value:"defaultValue",paraId:28,tocIndex:40},{value:"To set default date",paraId:28,tocIndex:40},{value:"[",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:", ",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:"]",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"disabled",paraId:28,tocIndex:40},{value:"If disable start or end",paraId:28,tocIndex:40},{value:"[boolean, boolean]",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"disabledTime",paraId:28,tocIndex:40},{value:"To specify the time that cannot be selected",paraId:28,tocIndex:40},{value:"function(date: dayjs, partial: ",paraId:28,tocIndex:40},{value:"start",paraId:28,tocIndex:40},{value:" | ",paraId:28,tocIndex:40},{value:"end",paraId:28,tocIndex:40},{value:", info: { from?: dayjs })",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"info.from",paraId:28,tocIndex:40},{value:": 5.17.0",paraId:28,tocIndex:40},{value:"format",paraId:28,tocIndex:40},{value:"To set the date format. refer to ",paraId:28,tocIndex:40},{value:"dayjs#format",paraId:28,tocIndex:40},{value:"formatType",paraId:29,tocIndex:40},{value:"YYYY-MM-DD HH:mm:ss",paraId:28,tocIndex:40},{value:"id",paraId:28,tocIndex:40},{value:"Config input ids",paraId:28,tocIndex:40},{value:"{ start?: string, end?: string }",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"5.14.0",paraId:28,tocIndex:40},{value:"pickerValue",paraId:28,tocIndex:40},{value:"Panel date. Used for controlled switching of panel date. Work with ",paraId:28,tocIndex:40},{value:"onPanelChange",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"5.14.0",paraId:28,tocIndex:40},{value:"presets",paraId:28,tocIndex:40},{value:"The preset ranges for quick selection, Since ",paraId:28,tocIndex:40},{value:"5.8.0",paraId:28,tocIndex:40},{value:", preset value supports callback function.",paraId:28,tocIndex:40},{value:"{ label: React.ReactNode, value: (Dayjs | (() => Dayjs))[] }[]",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"renderExtraFooter",paraId:28,tocIndex:40},{value:"Render extra footer in panel",paraId:28,tocIndex:40},{value:"() => React.ReactNode",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"separator",paraId:28,tocIndex:40},{value:"Set separator between inputs",paraId:28,tocIndex:40},{value:"React.ReactNode",paraId:28,tocIndex:40},{value:"<SwapRightOutlined />",paraId:28,tocIndex:40},{value:"showTime",paraId:28,tocIndex:40},{value:"To provide an additional time selection",paraId:28,tocIndex:40},{value:"object | boolean",paraId:28,tocIndex:40},{value:"TimePicker Options",paraId:30,tocIndex:40},{value:"showTime.defaultValue",paraId:28,tocIndex:40},{value:"To set default time of selected date, ",paraId:28,tocIndex:40},{value:"demo",paraId:31,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:"[]",paraId:28,tocIndex:40},{value:"[dayjs(), dayjs()]",paraId:28,tocIndex:40},{value:"value",paraId:28,tocIndex:40},{value:"To set date",paraId:28,tocIndex:40},{value:"[",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:", ",paraId:28,tocIndex:40},{value:"dayjs",paraId:28,tocIndex:40},{value:"]",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"onCalendarChange",paraId:28,tocIndex:40},{value:"Callback function, can be executed when the start time or the end time of the range is changing. ",paraId:28,tocIndex:40},{value:"info",paraId:28,tocIndex:40},{value:" argument is added in 4.4.0",paraId:28,tocIndex:40},{value:"function(dates: [dayjs, dayjs], dateStrings: [string, string], info: { range:",paraId:28,tocIndex:40},{value:"start",paraId:28,tocIndex:40},{value:"|",paraId:28,tocIndex:40},{value:"end",paraId:28,tocIndex:40},{value:" })",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"onChange",paraId:28,tocIndex:40},{value:"Callback function, can be executed when the selected time is changing",paraId:28,tocIndex:40},{value:"function(dates: [dayjs, dayjs], dateStrings: [string, string])",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"onFocus",paraId:28,tocIndex:40},{value:"Trigger when get focus",paraId:28,tocIndex:40},{value:"function(event, { range: 'start' | 'end' })",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"range",paraId:28,tocIndex:40},{value:": 5.14.0",paraId:28,tocIndex:40},{value:"onBlur",paraId:28,tocIndex:40},{value:"Trigger when lose focus",paraId:28,tocIndex:40},{value:"function(event, { range: 'start' | 'end' })",paraId:28,tocIndex:40},{value:"-",paraId:28,tocIndex:40},{value:"range",paraId:28,tocIndex:40},{value:": 5.14.0",paraId:28,tocIndex:40},{value:"import type { Dayjs } from 'dayjs';\n\ntype Generic = string;\ntype GenericFn = (value: Dayjs) => string;\n\nexport type FormatType =\n | Generic\n | GenericFn\n | Array<Generic | GenericFn>\n | {\n format: string;\n type?: 'mask';\n };\n",paraId:32,tocIndex:41},{value:"Note: ",paraId:33,tocIndex:41},{value:"type",paraId:33,tocIndex:41},{value:" is added in ",paraId:33,tocIndex:41},{value:"5.14.0",paraId:33,tocIndex:41},{value:".",paraId:33,tocIndex:41},{value:"Please refer ",paraId:34,tocIndex:44},{value:"FAQ",paraId:35,tocIndex:44},{value:"After selecting the year, the system directly switches to the date panel instead of month panel. This design is intended to reduce the user's operational burden by allowing them to complete the year modification with just one click, without having to enter the month selection interface again. At the same time, it also avoids additional cognitive burden of remembering the month.",paraId:36,tocIndex:45},{value:"Please refer ",paraId:37,tocIndex:46},{value:"Use custom date library",paraId:38,tocIndex:46},{value:"DatePicker default set ",paraId:39,tocIndex:47},{value:"locale",paraId:39,tocIndex:47},{value:" as ",paraId:39,tocIndex:47},{value:"en",paraId:39,tocIndex:47},{value:" in v4. You can config DatePicker ",paraId:39,tocIndex:47},{value:"locale",paraId:39,tocIndex:47},{value:" prop or ",paraId:39,tocIndex:47},{value:"ConfigProvider ",paraId:40,tocIndex:47},{value:"locale",paraId:40,tocIndex:47},{value:" prop instead.",paraId:39,tocIndex:47},{value:"See FAQ ",paraId:41,tocIndex:48},{value:"Date-related-components-locale-is-not-working?",paraId:42,tocIndex:48},{value:"Please use correct ",paraId:43,tocIndex:49},{value:"language",paraId:44,tocIndex:49},{value:" (",paraId:43,tocIndex:49},{value:"#5605",paraId:43,tocIndex:49},{value:"), or update dayjs ",paraId:43,tocIndex:49},{value:"locale",paraId:43,tocIndex:49},{value:" config:",paraId:43,tocIndex:49},{value:"Example: ",paraId:45,tocIndex:49},{value:"https://codesandbox.io/s/dayjs-day-of-week-x9tuj2?file=/demo.tsx",paraId:45,tocIndex:49},{value:"import dayjs from 'dayjs';\n\nimport 'dayjs/locale/zh-cn';\n\nimport updateLocale from 'dayjs/plugin/updateLocale';\n\ndayjs.extend(updateLocale);\ndayjs.updateLocale('zh-cn', {\n weekStart: 0,\n});\n",paraId:46,tocIndex:49},{value:"panelRender",paraId:47},{value:"When you change the layout of nodes by ",paraId:48,tocIndex:50},{value:"panelRender",paraId:48,tocIndex:50},{value:", React will unmount and re-mount it which reset the component state. You should keep the layout stable. Please ref ",paraId:48,tocIndex:50},{value:"#27263",paraId:48,tocIndex:50},{value:" for more info.",paraId:48,tocIndex:50},{value:"Please refer to the blog ",paraId:49,tocIndex:51},{value:"'Why is it so hard to disable the date?'",paraId:50,tocIndex:51},{value:", to learn how to use it.",paraId:49,tocIndex:51}];}}]); |