mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
Add missing doc for DatePicker[placeholder]
This commit is contained in:
parent
3b8ac48e6b
commit
7b61b84145
@ -58,6 +58,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker.
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
| showToday | whether to show "Today" button | Boolean | true |
|
||||
| disabledTime | to specify the time that cannot be selected | function(date) | - |
|
||||
| placeholder | placeholder of date input | string | - |
|
||||
|
||||
### MonthPicker
|
||||
|
||||
@ -69,6 +70,7 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker.
|
||||
| onChange | a callback function, can be executed when the selected time is changing | function(date: moment, dateString: string) | - |
|
||||
| monthCellContentRender | Custom month cell render method | function | 无 |
|
||||
| cellContentRender | Custom month cell content render method,the content will be appended to the cell. | function | 无 |
|
||||
| placeholder | placeholder of date input | string | - |
|
||||
|
||||
### RangePicker
|
||||
|
||||
@ -81,6 +83,8 @@ The following APIs are shared by DatePicker, MonthPicker, RangePicker.
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
| disabledTime | to specify the time that cannot be selected | function(dates: [moment, moment], partial: `'start'|'end'`) | - |
|
||||
| ranges | preseted ranges for quick selection | Object { [range: string]: [moment, moment] } | - |
|
||||
| startPlaceholder | placeholder of start input | string | - |
|
||||
| endPlaceholder | placeholder of end input | string | - |
|
||||
|
||||
<style>
|
||||
.code-box-demo .ant-calendar-picker {
|
||||
|
@ -59,6 +59,7 @@ moment.locale('zh-cn');
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
| showToday | 是否展示“今天”按钮 | Boolean | true |
|
||||
| disabledTime | 不可选择的时间 | function(date) | 无 |
|
||||
| placeholder | 输入框提示文字 | string | - |
|
||||
|
||||
### MonthPicker
|
||||
|
||||
@ -70,6 +71,7 @@ moment.locale('zh-cn');
|
||||
| onChange | 时间发生变化的回调,发生在用户选择时间时 | function(date: moment, dateString: string) | 无 |
|
||||
| monthCellContentRender | 自定义的月份渲染方法 | function | 无 |
|
||||
| cellContentRender | 自定义的月份渲染方法,内容会被附加在月份后面 | function | 无 |
|
||||
| placeholder | 输入框提示文字 | string | - |
|
||||
|
||||
### RangePicker
|
||||
|
||||
@ -82,6 +84,8 @@ moment.locale('zh-cn');
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
| disabledTime | 不可选择的时间 | function(dates: [moment, moment], partial: `'start'|'end'`) | 无 |
|
||||
| ranges | 预设事件范围快捷选择 | Object { [range: string]: [moment, moment] } | 无 |
|
||||
| startPlaceholder | 输入框提示文字 | string | - |
|
||||
| endPlaceholder | 输入框提示文字 | string | - |
|
||||
|
||||
<style>
|
||||
.code-box-demo .ant-calendar-picker {
|
||||
|
Loading…
Reference in New Issue
Block a user