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
Demonstration of [Lookup Patterns: Certain Category](https://ant.design/docs/spec/reaction#Lookup-Patterns). Basic Usage, set options of autocomplete with `options` property.
7
+
Demonstration of [Lookup Patterns: Certain Category](https://ant.design/docs/spec/reaction#lookup-patterns). Basic Usage, set options of autocomplete with `options` property.
Copy file name to clipboardexpand all lines: components/button/index.en-US.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ It accepts all props which native buttons support.
72
72
73
73
### How to remove space between 2 chinese characters?
74
74
75
-
Following the Ant Design specification, we will add one space between if Button (exclude Text button and Link button) contains two Chinese characters only. If you don't need that, you can use [ConfigProvider](/components/config-provider/#API) to set `autoInsertSpaceInButton` as `false`.
75
+
Following the Ant Design specification, we will add one space between if Button (exclude Text button and Link button) contains two Chinese characters only. If you don't need that, you can use [ConfigProvider](/components/config-provider/#api) to set `autoInsertSpaceInButton` as `false`.
76
76
77
77
<imgsrc="https://gw.alipayobjects.com/zos/antfincdn/MY%26THAPZrW/38f06cb9-293a-4b42-b183-9f443e79ffea.png"style="box-shadow: none; margin: 0; width: 100px"alt="Button with two Chinese characters" />
| direction | Set direction of layout. See [demo](#components-config-provider-demo-direction)|`ltr`\|`rtl`|`ltr`||
54
54
| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. Will ignore when value less than select width. `false` will disable virtual scroll | boolean \| number | - | 4.3.0 |
55
-
| form | Set Form common props | { validateMessages?: [ValidateMessages](/components/form/#validateMessages), requiredMark?: boolean \|`optional` } | - | requiredMark: 4.8.0 |
55
+
| form | Set Form common props | { validateMessages?: [ValidateMessages](/components/form/#validatemessages), requiredMark?: boolean \|`optional` } | - | requiredMark: 4.8.0 |
56
56
| getPopupContainer | To set the container of the popup element. The default is to create a `div` element in `body`| function(triggerNode) | () => document.body ||
@@ -124,7 +124,7 @@ The following APIs are shared by DatePicker, RangePicker.
124
124
| format | To set the date format, refer to [dayjs](https://day.js.org/). When an array is provided, all values are used for parsing and first value is used for formatting, support [Custom Format](#components-date-picker-demo-format)| string \| (value: dayjs) => string \| (string \| (value: dayjs) => string)\[]|`YYYY-MM-DD`||
125
125
| renderExtraFooter | Render extra footer in panel | (mode) => React.ReactNode | - ||
126
126
| showNow | Whether to show 'Now' button on panel when `showTime` is set | boolean | - | 4.4.0 |
127
-
| showTime | To provide an additional time selection | object \| boolean |[TimePicker Options](/components/time-picker/#API)||
127
+
| showTime | To provide an additional time selection | object \| boolean |[TimePicker Options](/components/time-picker/#api)||
128
128
| showTime.defaultValue | To set default time of selected date, [demo](#components-date-picker-demo-disabled-date)|[dayjs](https://day.js.org/)| dayjs() ||
129
129
| showToday | Whether to show `Today` button | boolean | true ||
130
130
| value | To set date |[dayjs](https://day.js.org/)| - ||
@@ -193,7 +193,7 @@ Added in `4.1.0`.
193
193
| presets | The preset ranges for quick selection | { label: React.ReactNode, value: [dayjs](https://day.js.org/)\[] }[]| - ||
194
194
| renderExtraFooter | Render extra footer in panel | () => React.ReactNode | - ||
195
195
| separator | Set separator between inputs | React.ReactNode |`<SwapRightOutlined />`||
196
-
| showTime | To provide an additional time selection | object \| boolean |[TimePicker Options](/components/time-picker/#API)||
196
+
| showTime | To provide an additional time selection | object \| boolean |[TimePicker Options](/components/time-picker/#api)||
197
197
| showTime.defaultValue | To set default time of selected date, [demo](#components-date-picker-demo-disabled-date)|[dayjs](https://day.js.org/)\[]|\[dayjs(), dayjs()]||
198
198
| value | To set date |\[[dayjs](https://day.js.org/), [dayjs](https://day.js.org/)]| - ||
199
199
| onCalendarChange | Callback function, can be executed when the start time or the end time of the range is changing. `info` argument is added in 4.4.0 | function(dates: \[dayjs, dayjs], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - ||
@@ -203,19 +203,19 @@ Added in `4.1.0`.
203
203
204
204
### When set mode to DatePicker/RangePicker, cannot select year or month anymore?
### How to use DatePicker with customize date library like dayjs?
209
209
210
-
Please refer [Use custom date library](/docs/react/use-custom-date-library#DatePicker)
210
+
Please refer [Use custom date library](/docs/react/use-custom-date-library#datepicker)
211
211
212
212
### Why config dayjs.locale globally not work?
213
213
214
214
DatePicker default set `locale` as `en` in v4. You can config DatePicker `locale` prop or [ConfigProvider `locale`](/components/config-provider) prop instead.
215
215
216
216
#### Date-related components locale is not working?
217
217
218
-
See FAQ [Date-related-components-locale-is-not-working?](/docs/react/faq#Date-related-components-locale-is-not-working?)
218
+
See FAQ [Date-related-components-locale-is-not-working?](/docs/react/faq#date-related-components-locale-is-not-working)
0 commit comments