mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
docs: 📝 documentation for DatePicker inputReadOnly (#22024)
close #20442 close #21831 close #20816
This commit is contained in:
parent
94eefa371c
commit
28c06266d0
@ -331,6 +331,7 @@ Ant Design 4.0-rc released! Here is the release [document](https://github.com/an
|
|||||||
- 🌟 The range selector can be set to `disabled` separately for the start and end time.
|
- 🌟 The range selector can be set to `disabled` separately for the start and end time.
|
||||||
- 🌟 The range selector allows empty start and end times.
|
- 🌟 The range selector allows empty start and end times.
|
||||||
- 🌟 Optimized manual input and keyboard interaction support.
|
- 🌟 Optimized manual input and keyboard interaction support.
|
||||||
|
- 🌟 Added `inputReadOnly` to disable manual input.
|
||||||
- 🌟 Remove Icon and use `@ ant-design / icons` instead. [#18217](https://github.com/ant-design/ant-design/pull/18217)
|
- 🌟 Remove Icon and use `@ ant-design / icons` instead. [#18217](https://github.com/ant-design/ant-design/pull/18217)
|
||||||
- Skeleton
|
- Skeleton
|
||||||
- 🌟 Support Skeleton.Avatar placeholder component. [#19898](https://github.com/ant-design/ant-design/pull/19898) [@Rustin-Liu](https://github.com/Rustin-Liu)
|
- 🌟 Support Skeleton.Avatar placeholder component. [#19898](https://github.com/ant-design/ant-design/pull/19898) [@Rustin-Liu](https://github.com/Rustin-Liu)
|
||||||
|
@ -331,6 +331,7 @@ Ant Design 4.0-rc 发布,发布文档请查看[此处](https://github.com/ant-
|
|||||||
- 🌟 范围选择器可以为开始与结束时间单独设置 `disabled`。
|
- 🌟 范围选择器可以为开始与结束时间单独设置 `disabled`。
|
||||||
- 🌟 范围选择器可以允许开始与结束时间为空。
|
- 🌟 范围选择器可以允许开始与结束时间为空。
|
||||||
- 🌟 优化手工输入与键盘交互支持。
|
- 🌟 优化手工输入与键盘交互支持。
|
||||||
|
- 🌟 支持 `inputReadOnly` 禁用手动输入。
|
||||||
- 🌟 移除 Icon,使用 `@ant-design/icons` 代替。[#18217](https://github.com/ant-design/ant-design/pull/18217)
|
- 🌟 移除 Icon,使用 `@ant-design/icons` 代替。[#18217](https://github.com/ant-design/ant-design/pull/18217)
|
||||||
- Skeleton
|
- Skeleton
|
||||||
- 🌟 支持 Skeleton.Avatar 占位组件。[#19898](https://github.com/ant-design/ant-design/pull/19898) [@Rustin-Liu](https://github.com/Rustin-Liu)
|
- 🌟 支持 Skeleton.Avatar 占位组件。[#19898](https://github.com/ant-design/ant-design/pull/19898) [@Rustin-Liu](https://github.com/Rustin-Liu)
|
||||||
|
@ -65,6 +65,7 @@ The following APIs are shared by DatePicker, YearPicker, MonthPicker, RangePicke
|
|||||||
| style | to customize the style of the input box | object | {} | |
|
| style | to customize the style of the input box | object | {} | |
|
||||||
| onOpenChange | a callback function, can be executed whether the popup calendar is popped up or closed | function(status) | - | |
|
| onOpenChange | a callback function, can be executed whether the popup calendar is popped up or closed | function(status) | - | |
|
||||||
| onPanelChange | callback when picker panel mode is changed | function(value, mode) | - | |
|
| onPanelChange | callback when picker panel mode is changed | function(value, mode) | - | |
|
||||||
|
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false | |
|
||||||
|
|
||||||
### Common Methods
|
### Common Methods
|
||||||
|
|
||||||
|
@ -67,6 +67,7 @@ import 'moment/locale/zh-cn';
|
|||||||
| style | 自定义输入框样式 | object | {} | |
|
| style | 自定义输入框样式 | object | {} | |
|
||||||
| onOpenChange | 弹出日历和关闭日历的回调 | function(status) | 无 | |
|
| onOpenChange | 弹出日历和关闭日历的回调 | function(status) | 无 | |
|
||||||
| onPanelChange | 日历面板切换的回调 | function(value, mode) | - | |
|
| onPanelChange | 日历面板切换的回调 | function(value, mode) | - | |
|
||||||
|
| inputReadOnly | 设置输入框为只读(避免在移动设备上打开虚拟键盘) | boolean | false | |
|
||||||
|
|
||||||
### 共同的方法
|
### 共同的方法
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user