8000 Guide > Reusability & Composition > Render functions の翻訳を追従 by naokie · Pull Request #308 · vuejs-jp/ja.vuejs.org · GitHub
[go: up one dir, main page]

Skip to content

Guide > Reusability & Composition > Render functions の翻訳を追従 #308

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

Merged
merged 17 commits into from
May 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
correct misleading content about render function
  • Loading branch information
naokie committed Apr 29, 2021
commit 7ce9ffb4f606a888175b8ae8880020302aa72e7e
18 changes: 4 additions & 14 deletions src/guide/render-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,26 +301,16 @@ render() {

#### イベント修飾子

`.passive``.capture` `.once` イベント修飾子については、Vue はハンドラーのオブジェクトシンタックスを提供しています:
For the `.passive`, `.capture`, and `.once` event modifiers, they can be concatenated after event name using camel case.

例えば:

```javascript
render() {
return Vue.h('input', {
onClick: {
handler: this.doThisInCapturingMode,
capture: true
},
onKeyup: {
handler: this.doThisOnce,
once: true
},
onMouseover: {
handler: this.doThisOnceInCapturingMode,
once: true,
capture: true
},
onClickCapture: this.doThisInCapturingMode,
onKeyupOnce: this.doThisOnce,
onMouseoverOnceCapture: this.doThisOnceInCapturingMode,
})
}
```
Expand Down
0