Skip to content

Commit e1a4fd2

Browse files
committed
bump 0.2.0
1 parent e13320d commit e1a4fd2

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

HISTORY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
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.

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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 | - |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-mentions",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "React Mentions",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)