mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
2519677daa
@ -9,13 +9,13 @@ title:
|
||||
|
||||
通过 `locale` 语言, 默认支持 `en_US`,`zh_CN`。
|
||||
|
||||
moment 会自动使用当前时区,如果需要使用别的时区,则需要自行设置,设置方法请参考 [下面的文档](http://ant.design/components/date-picker/#DatePicker)。
|
||||
moment 会自动使用当前时区,如果需要使用别的时区,则需要自行设置,设置方法请参考 [下面的文档](/components/date-picker/#DatePicker)。
|
||||
|
||||
## en-US
|
||||
|
||||
Use locale to set the language. `en_US`, `zh_CN` are supported by default.
|
||||
|
||||
moment will use your time zone automatically. If you want to set other time zone, please set it by yourself. [More](http://ant.design/components/date-picker/#DatePicker)
|
||||
moment will use your time zone automatically. If you want to set other time zone, please set it by yourself. [More](/components/date-picker/#DatePicker)
|
||||
|
||||
|
||||
````jsx
|
||||
|
@ -43,7 +43,7 @@ moment.tz.setDefault('Asia/Shanghai')
|
||||
| open | open state of picker | bool | - |
|
||||
| onOpenChange | a callback function, can be executed whether the popup calendar is popped up or closed | function(status) | - |
|
||||
| getCalendarContainer | to set the container of the floating layer, while the default is to create a `div` element in `body` | function(trigger) | - |
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
|
||||
### MonthPicker
|
||||
|
||||
@ -69,7 +69,7 @@ moment.tz.setDefault('Asia/Shanghai')
|
||||
| defaultValue | to set default date | [moment, moment] | - |
|
||||
| format | to set the date format | String | "YYYY-MM-DD HH:mm:ss" |
|
||||
| onChange | a callback function, can be executed when the selected time is changing | function(dates: [moment, moment], dateStrings: [string, string]) | - |
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
||||
| showTime | to provide an additional time selection | Object/Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
|
||||
The following properties are the same with `DatePicker`: `disabled` `style` `popupStyle` `size` `locale` `showTime` `onOk` `getCalendarContainer`
|
||||
|
||||
|
@ -43,7 +43,7 @@ moment.tz.setDefault('Asia/Shanghai')
|
||||
| open | 控制弹层是否展开 | bool | - |
|
||||
| onOpenChange | 弹出日历和关闭日历的回调 | function(status) | 无 |
|
||||
| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 |
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
|
||||
### MonthPicker
|
||||
|
||||
@ -69,7 +69,7 @@ moment.tz.setDefault('Asia/Shanghai')
|
||||
| defaultValue | 默认日期 | [moment, moment] | 无 |
|
||||
| format | 展示的日期格式 | string | "YYYY-MM-DD HH:mm:ss" |
|
||||
| onChange | 时间发生变化的回调,发生在用户选择时间时 | function(dates: [moment, moment], dateStrings: [string, string]) | 无 |
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](/components/time-picker/#api) |
|
||||
|
||||
`disabled` `style` `popupStyle` `size` `locale` `showTime` `onOk` `getCalendarContainer` 属性与 DatePicker 的一致。
|
||||
|
||||
|
@ -16,6 +16,8 @@ Uploading is the process of publishing information (web pages, text, pictures, v
|
||||
|
||||
## API
|
||||
|
||||
> You can consult [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload/wiki) about how to implement server side upload interface.
|
||||
|
||||
| Property | Description | Type | Default|
|
||||
|------------|----------------------------------------------------| ----------- |--------|
|
||||
| name | Optional. The name of uploading file | String | file |
|
||||
|
@ -17,9 +17,11 @@ title: Upload
|
||||
|
||||
## API
|
||||
|
||||
> 服务端上传接口实现可以参考 [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload/wiki)。
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值|
|
||||
|------------|--------------------------------------------------------------| ----------- |-------|
|
||||
| name | 可选参数, 上传的文件 | String | file |
|
||||
| name | 可选参数, 上传的文件 | String | file |
|
||||
| defaultFileList | 可选参数,默认已经上传的文件列表 | Array[Object] | 无 |
|
||||
| fileList | 可选参数,已经上传的文件列表 | Array[Object] | 无 |
|
||||
| action | 必选参数, 上传的地址 | String | 无 |
|
||||
|
Loading…
Reference in New Issue
Block a user