docs: add inputReadOnly

This commit is contained in:
Wei Zhu 2018-02-11 10:28:17 +08:00
parent 4a69446be1
commit 2aaef6564d
2 changed files with 2 additions and 1 deletions

View File

@ -38,13 +38,13 @@ import moment from 'moment';
| getPopupContainer | to set the container of the floating layer, while the default is to create a div element in body | function(trigger) | - | | getPopupContainer | to set the container of the floating layer, while the default is to create a div element in body | function(trigger) | - |
| hideDisabledOptions | hide the options that can not be selected | boolean | false | | hideDisabledOptions | hide the options that can not be selected | boolean | false |
| hourStep | interval between hours in picker | number | 1 | | hourStep | interval between hours in picker | number | 1 |
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false |
| minuteStep | interval between minutes in picker | number | 1 | | minuteStep | interval between minutes in picker | number | 1 |
| open | whether to popup panel | boolean | false | | open | whether to popup panel | boolean | false |
| placeholder | display when there's no value | string | "Select a time" | | placeholder | display when there's no value | string | "Select a time" |
| popupClassName | className of panel | string | '' | | popupClassName | className of panel | string | '' |
| secondStep | interval between seconds in picker | number | 1 | | secondStep | interval between seconds in picker | number | 1 |
| use12Hours | display as 12 hours format, with default format `h:mm:ss a` | boolean | false | | use12Hours | display as 12 hours format, with default format `h:mm:ss a` | boolean | false |
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false |
| value | to set time | [moment](http://momentjs.com/) | - | | value | to set time | [moment](http://momentjs.com/) | - |
| onChange | a callback function, can be executed when the selected time is changing | function(time: moment, timeString: string): void | - | | onChange | a callback function, can be executed when the selected time is changing | function(time: moment, timeString: string): void | - |
| onOpenChange | a callback function which will be called while panel opening/closing | (open: boolean): void | - | | onOpenChange | a callback function which will be called while panel opening/closing | (open: boolean): void | - |

View File

@ -39,6 +39,7 @@ import moment from 'moment';
| getPopupContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 | | getPopupContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 |
| hideDisabledOptions | 隐藏禁止选择的选项 | boolean | false | | hideDisabledOptions | 隐藏禁止选择的选项 | boolean | false |
| hourStep | 小时选项间隔 | number | 1 | | hourStep | 小时选项间隔 | number | 1 |
| inputReadOnly | 设置输入框为只读(避免在移动设备上打开虚拟键盘)| boolean | false |
| minuteStep | 分钟选项间隔 | number | 1 | | minuteStep | 分钟选项间隔 | number | 1 |
| open | 面板是否打开 | boolean | false | | open | 面板是否打开 | boolean | false |
| placeholder | 没有值的时候显示的内容 | string | "请选择时间" | | placeholder | 没有值的时候显示的内容 | string | "请选择时间" |