You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| defaultValue | The date selected by default |[dayjs](https://day.js.org/)| - ||
49
-
| disabledDate | Function that specifies the dates that cannot be selected, `currentDate` is same dayjs object as `value` prop which you shouldn't mutate it](https://github.com/ant-design/ant-design/issues/30987)| (currentDate: Dayjs) => boolean | - ||
49
+
| disabledDate | Function that specifies the dates that cannot be selected, `currentDate` is same dayjs object as `value` prop which you shouldn't mutate it(https://github.com/ant-design/ant-design/issues/30987)| (currentDate: Dayjs) => boolean | - ||
50
50
| fullscreen | Whether to display in full-screen | boolean | true ||
51
51
| showWeek | Whether to display week number | boolean | false | 5.23.0 |
52
52
| styles | Customize inline style for each semantic structure inside the component. Supports object or function. | Record<[SemanticDOM](#semantic-dom), CSSProperties> \| (info: { props })=> Record<[SemanticDOM](#semantic-dom), CSSProperties> | - ||
Copy file name to clipboardExpand all lines: components/date-picker/index.en-US.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ There are five kinds of picker:
66
66
67
67
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: [ConfigProvider](https://ant.design/components/config-provider/).
68
68
69
-
If there are special needs (only modifying single component language), Please use the property: local. Example: [default](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json).
69
+
If there are special needs (only modifying single component language), Please use the property: locale. Example: [default](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json).
70
70
71
71
```jsx
72
72
// The default locale is en-US, if you want to use other locale, just set locale in entry file globally.
@@ -96,7 +96,7 @@ The following APIs are shared by DatePicker, RangePicker.
@@ -106,7 +106,7 @@ The following APIs are shared by DatePicker, RangePicker.
106
106
| format | To set the date format, support multi-format matching when it is an array, display the first one shall prevail. refer to [dayjs#format](https://day.js.org/docs/en/display/format). for example: [Custom Format](#date-picker-demo-format)|[formatType](#formattype)|[@rc-component/picker](https://github.com/react-component/picker/blob/f512f18ed59d6791280d1c3d7d37abbb9867eb0b/src/utils/uiUtil.ts#L155-L177)||
107
107
| order | Auto order date when multiple or range selection | boolean | true | 5.14.0 |
108
108
|~~popupClassName~~| To customize the className of the popup calendar, use `classNames.popup.root` instead | string | - | 4.23.0 |
109
-
| preserveInvalidOnBlur |Not clean input on blur even when the typing is invalidate| boolean | false | 5.14.0 |
109
+
| preserveInvalidOnBlur |Don't clear the input on blur even when the typed value is invalid| boolean | false | 5.14.0 |
110
110
| getPopupContainer | To set the container of the floating layer, while the default is to create a `div` element in `body`| function(trigger) | - ||
111
111
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false ||
@@ -128,7 +128,7 @@ The following APIs are shared by DatePicker, RangePicker.
128
128
| size | To determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px |`large`\|`medium`\|`small`| - ||
129
129
| status | Set validation status | 'error' \| 'warning' | - | 4.19.0 |
130
130
| style | To customize the style of the input box | CSSProperties | {} ||
0 commit comments