Skip to content

Commit

Permalink
docs: 更新第三方组件使用事件的说明,close #3338
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Jun 6, 2019
1 parent 10f9465 commit 2f9ac44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/event.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ class Popper extends Component {
}
```

> 注意:
> 使用通过 `usingComponents` 的第三方组件不支持匿名函数
### 柯里化

> 自 v1.3.0-beta.1 开始支持
Expand Down Expand Up @@ -136,6 +139,9 @@ class Title extends Component{
}
```

> 注意:
> 使用通过 `usingComponents` 的第三方组件不支持匿名函数
### 函数式组件

在函数式组件中,事件传参可以传入事件的引用也可以传入匿名函数,以下是函数式组件配合 [`useCallback`](docs/hooks.html#usecallback) 的一个例子:
Expand Down

0 comments on commit 2f9ac44

Please sign in to comment.