Skip to content

Commit

Permalink
docs: rename to 'emit' in event convention (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynzh committed May 17, 2024
1 parent 77d0fb6 commit 7f2d449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/docs/src/specification/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ This macro has zero parameter, and returns the emits function, you **must** defi
This type parameter's syntax is the same as Vue 3.3's more succinct one, check the [official documentaion](https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits) for more details.

```vue-vine
const myEmits = vineEmits<{
const myEmit = vineEmits<{
update: [foo: string, bar: number]
}>()
myEmits('update', 'foo', 1)
myEmit('update', 'foo', 1)
```

## `vineExpose`
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/src/zh/specification/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
这个类型参数的语法与 Vue 3.3 更简洁的语法相同,请查阅[官方文档](https://vuejs.org/api/sfc-script-setup.html#defineprops-defineemits)了解更多细节。

```vue-vine
const myEmits = vineEmits<{
const myEmit = vineEmits<{
update: [foo: string, bar: number]
}>()
myEmits('update', 'foo', 1)
myEmit('update', 'foo', 1)
```

## `vineExpose` {#vineexpose}
Expand Down

0 comments on commit 7f2d449

Please sign in to comment.