File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 11# History
22----
3+
4+ ## 0.2.0 / 2019-05-08
5+
6+ - Support ` rows ` prop.
7+
8+ ## 0.1.0 / 2019-05-08
9+
10+ - Initial release.
Original file line number Diff line number Diff line change @@ -65,14 +65,15 @@ React.render(<Demo />, container);
6565
6666| name | description | type | default |
6767| ----------| ----------------| ----------| --------------|
68+ | autoFocus | Auto get focus when component mounted | boolean | ` false ` |
6869| defaultValue | Default value | string | - |
69- | value | Set value of mentions | string | - |
70+ | filterOption | Customize filter option logic | false \| (input: string, option: OptionProps) => boolean | - |
71+ | notFoundContent | Set mentions content when not match | ReactNode | 'Not Found' |
7072| prefix | Set trigger prefix keyword | string \| string[ ] | '@' |
71- | autoFocus | Auto get focus when component mounted | boolean | ` false ` |
73+ | rows | Set row count | number | 1 |
7274| split | Set split string before and after selected mention | string | ' ' |
7375| validateSearch | Customize trigger search logic | (text: string, props: MentionsProps) => void | - |
74- | filterOption | Customize filter option logic | false \| (input: string, option: OptionProps) => boolean | - |
75- | notFoundContent | Set mentions content when not match | ReactNode | 'Not Found' |
76+ | value | Set value of mentions | string | - |
7677| onChange | Trigger when value changed | (text: string) => void | - |
7778| onSelect | Trigger when user select the option | (option: OptionProps, prefix: string) => void | - |
7879| onSearch | Trigger when prefix hit | (text: string, prefix: string) => void | - |
Original file line number Diff line number Diff line change 11{
22 "name" : " rc-mentions" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 0.2 .0" ,
44 "description" : " React Mentions" ,
55 "keywords" : [
66 " react" ,
You can’t perform that action at this time.
0 commit comments