mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
4026221d45
* deps: upgrade TimePicker * deps: upgrade DatePicker * deps: upgrade Calendar * fix: moment should work with LocaleProvider * feat: update API of TimePicker * feat: update Calendar's APIs * feat: update DatePicker's APIs * doc: update demo * revert: add dateString and timeString and so on * feat: add Calendar[defaultValue] * feat: add defaultPickerValue * docs: update docs about date picker * feat: set moment locale to zh-cn automatically
24 lines
335 B
Markdown
24 lines
335 B
Markdown
---
|
|
order: 5
|
|
title:
|
|
zh-CN: 禁用
|
|
en-US: Disabled
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
选择框的不可用状态。
|
|
|
|
## en-US
|
|
|
|
A disabled state of the `DatePicker`.
|
|
|
|
````jsx
|
|
import { DatePicker } from 'antd';
|
|
import moment from 'moment';
|
|
|
|
ReactDOM.render(
|
|
<DatePicker defaultValue={moment('2015-06-06', 'YYYY-MM-DD')} disabled />
|
|
, mountNode);
|
|
````
|