docs: update

This commit is contained in:
Benjy Cui 2016-09-13 11:51:34 +08:00
parent 969cbed2ca
commit 58745edecf
3 changed files with 14 additions and 9 deletions

View File

@ -45,6 +45,13 @@ function onChange(value) {
}
ReactDOM.render(
<Cascader options={options} onChange={onChange} placeholder="Please select" showSearch />
, mountNode);
<Cascader
options={options}
onChange={onChange}
placeholder="Please select"
style={{ width: 230 }}
showSearch
/>,
mountNode
);
````

View File

@ -25,8 +25,6 @@ moment.tz.setDefault('Aisa/Shanghai');
<DatePicker defaultValue={moment('2015-01-01', 'YYYY-MM-DD')} />
```
> Note: `Datepicker` is renamed to `DatePicker` after `0.11`.
| Property | Description | Type | Default |
|--------------|----------------|----------|--------------|
| value | to set date | [moment](http://momentjs.com/) | - |

View File

@ -1,23 +1,23 @@
---
order: 4
title:
title:
zh-CN: 自定义描述文案
en-US: Customize description
en-US: Customized description
---
## zh-CN
自定义描述文案,指定的 tip 文案会直接代替 `...`
自定义描述文案。
## en-US
Customize description content, specified tip content will replace the dots in `Spin`.
Customized description content.
````jsx
import { Spin, Alert } from 'antd';
ReactDOM.render(
<Spin tip="正在读取数据...">
<Spin tip="Loading...">
<Alert message="消息提示的文案"
description="消息提示的辅助性文字介绍消息提示的辅助性文字介绍消息提示的辅助性文字介绍"
type="info"