afc163
9 years ago
43 changed files with 200 additions and 198 deletions
@ -1 +1 @@ |
|||
module.exports = require('../../datepicker/locale/en_US'); |
|||
module.exports = require('../../date-picker/locale/en_US'); |
|||
|
@ -1 +1 @@ |
|||
module.exports = require('../../datepicker/locale/zh_CN'); |
|||
module.exports = require('../../date-picker/locale/zh_CN'); |
|||
|
@ -0,0 +1,15 @@ |
|||
# 基本 |
|||
|
|||
- order: 0 |
|||
|
|||
最简单的用法。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { DatePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<DatePicker defaultValue="2015-12-12" /> |
|||
, document.getElementById('components-date-picker-demo-basic')); |
|||
```` |
@ -0,0 +1,15 @@ |
|||
# 禁用 |
|||
|
|||
- order: 5 |
|||
|
|||
选择框的不可用状态。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { DatePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<DatePicker defaultValue="2015-06-06" disabled /> |
|||
, document.getElementById('components-date-picker-demo-disabled')); |
|||
```` |
@ -0,0 +1,15 @@ |
|||
# 日期格式 |
|||
|
|||
- order: 1 |
|||
|
|||
使用 `format` 属性,可以自定义你需要的日期显示格式,如 `yyyy/MM/dd`。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { DatePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<DatePicker defaultValue="2015/01/01" format="yyyy/MM/dd" /> |
|||
, document.getElementById('components-date-picker-demo-formatter')); |
|||
```` |
@ -0,0 +1,15 @@ |
|||
# 月选择器 |
|||
|
|||
- order: 9 |
|||
|
|||
使用 MonthPicker 实现月选择器. |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { DatePicker } from 'antd'; |
|||
const MonthPicker = DatePicker.MonthPicker; |
|||
ReactDOM.render( |
|||
<MonthPicker defaultValue="2015-12" /> |
|||
, document.getElementById('components-date-picker-demo-month-picker')); |
|||
```` |
@ -0,0 +1,19 @@ |
|||
# 三种大小 |
|||
|
|||
- order: 1 |
|||
|
|||
三种大小的输入框,大的用在表单中,中的为默认。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { DatePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<div> |
|||
<DatePicker size="large" /> |
|||
<DatePicker /> |
|||
<DatePicker size="small" /> |
|||
</div> |
|||
, document.getElementById('components-date-picker-demo-size')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 基本 |
|||
|
|||
- order: 0 |
|||
|
|||
最简单的用法。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Datepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Datepicker defaultValue="2015-12-12" /> |
|||
, document.getElementById('components-datepicker-demo-basic')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 禁用 |
|||
|
|||
- order: 5 |
|||
|
|||
选择框的不可用状态。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Datepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Datepicker defaultValue="2015-06-06" disabled /> |
|||
, document.getElementById('components-datepicker-demo-disabled')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 日期格式 |
|||
|
|||
- order: 1 |
|||
|
|||
使用 `format` 属性,可以自定义你需要的日期显示格式,如 `yyyy/MM/dd`。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Datepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Datepicker defaultValue="2015/01/01" format="yyyy/MM/dd" /> |
|||
, document.getElementById('components-datepicker-demo-formatter')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 月选择器 |
|||
|
|||
- order: 9 |
|||
|
|||
使用 MonthPicker 实现月选择器. |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Datepicker } from 'antd'; |
|||
const MonthPicker = Datepicker.MonthPicker; |
|||
ReactDOM.render( |
|||
<MonthPicker defaultValue="2015-12" /> |
|||
, document.getElementById('components-datepicker-demo-month-picker')); |
|||
```` |
@ -1,19 +0,0 @@ |
|||
# 三种大小 |
|||
|
|||
- order: 1 |
|||
|
|||
三种大小的输入框,大的用在表单中,中的为默认。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Datepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<div> |
|||
<Datepicker size="large" /> |
|||
<Datepicker /> |
|||
<Datepicker size="small" /> |
|||
</div> |
|||
, document.getElementById('components-datepicker-demo-size')); |
|||
```` |
@ -0,0 +1,15 @@ |
|||
# 禁用 |
|||
|
|||
- order: 4 |
|||
|
|||
禁用时间选择。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { TimePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<TimePicker defaultValue="12:08:23" disabled /> |
|||
, document.getElementById('components-time-picker-demo-disabled')); |
|||
```` |
@ -0,0 +1,19 @@ |
|||
# 三种大小 |
|||
|
|||
- order: 6 |
|||
|
|||
三种大小的输入框,大的用在表单中,中的为默认。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { TimePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<div> |
|||
<TimePicker defaultValue="12:08:23" size="large" /> |
|||
<TimePicker defaultValue="12:08:23" /> |
|||
<TimePicker defaultValue="12:08:23" size="small" /> |
|||
</div> |
|||
, document.getElementById('components-time-picker-demo-size')); |
|||
```` |
@ -0,0 +1,15 @@ |
|||
# 不展示秒 |
|||
|
|||
- order: 2 |
|||
|
|||
不展示秒,也不允许选择。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { TimePicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<TimePicker defaultValue="12:08:23" format="HH:mm" /> |
|||
, document.getElementById('components-time-picker-demo-without-seconds')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 禁用 |
|||
|
|||
- order: 4 |
|||
|
|||
禁用时间选择。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Timepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Timepicker defaultValue="12:08:23" disabled /> |
|||
, document.getElementById('components-timepicker-demo-disabled')); |
|||
```` |
@ -1,19 +0,0 @@ |
|||
# 三种大小 |
|||
|
|||
- order: 6 |
|||
|
|||
三种大小的输入框,大的用在表单中,中的为默认。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Timepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<div> |
|||
<Timepicker defaultValue="12:08:23" size="large" /> |
|||
<Timepicker defaultValue="12:08:23" /> |
|||
<Timepicker defaultValue="12:08:23" size="small" /> |
|||
</div> |
|||
, document.getElementById('components-timepicker-demo-size')); |
|||
```` |
@ -1,15 +0,0 @@ |
|||
# 不展示秒 |
|||
|
|||
- order: 2 |
|||
|
|||
不展示秒,也不允许选择。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Timepicker } from 'antd'; |
|||
|
|||
ReactDOM.render( |
|||
<Timepicker defaultValue="12:08:23" format="HH:mm" /> |
|||
, document.getElementById('components-timepicker-demo-without-seconds')); |
|||
```` |
Loading…
Reference in new issue