Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update rc-picker document #5

Merged
merged 4 commits into from
Nov 30, 2019
Merged

Conversation

poyiding
Copy link
Contributor

@zombieJ review

@vercel
Copy link

vercel bot commented Nov 30, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/react-component/picker/5ktqes9xy
🌍 Preview: https://picker-git-fork-poyiding-master.react-component.now.sh

README.md Outdated
| className | string | '' | additional class name of footer |
| style | React.CSSProperties | | style properties of footer |
| LinkComponent | React.ReactType | 'a' | the link element to render item |
### rc-picker props
Copy link
Member

@zombieJ zombieJ Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> ### Picker

README.md Outdated
| onFocus | (evnet:React.FocusEventHandler<HTMLInputElement>) => void | | called like input's on focus |
| onBlur | (evnet:React.FocusEventHandler<HTMLInputElement>) => void | | called like input's on blur |

### rc-picker/lib/PickerPanel props
Copy link
Member

@zombieJ zombieJ Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> ### PickerPanel

README.md Outdated
| onPanelChange | Function(value: moment, mode)| | callback when picker panel mode is changed |
| onMouseDown | (evnet:React.MouseEventHandler<HTMLInputElement>) => void | | callback when executed onMouseDown evnent |

### rc-picker/lib/RangePicker props
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> ### RangePicker

README.md Outdated
| separator | String | '~' | set separator between inputs |
| picker | time \| date \| week \| month \| year | | control which kind of panel |
| placeholder | [String, String] | | placeholder of date input |
| showTime | Boolean \| Object | [showTime options](#showTime-options) | to provide an additional time selection |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

更新了一下,RangePicker 的 showTime 的 defaultValue 是一个数组

@zombieJ zombieJ merged commit c69f892 into react-component:master Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants