mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
docs: update
This commit is contained in:
parent
969cbed2ca
commit
58745edecf
@ -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
|
||||
);
|
||||
````
|
||||
|
@ -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/) | - |
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user