Skip to content

Commit 5338031

Browse files
committed
docs: translate migration guide > v-on.native modifier removed
1 parent d6727db commit 5338031

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: v-on.native modifier removed
2+
title: v-on.native 修飾子の削除
33
badges:
44
- breaking
55
---
66

7-
# `v-on.native` modifier removed <MigrationBadges :badges="$frontmatter.badges" />
7+
# `v-on.native` 修飾子の削除 <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

11-
The `.native` modifier for `v-on` has been removed.
11+
`v-on` `.native` 修飾子は削除されました。
1212

13-
## 2.x Syntax
13+
## 2.x での構文
1414

15-
Event listeners passed to a component with `v-on` are by default only triggered by emitting an event with `this.$emit`. To add a native DOM listener to the child component's root element instead, the `.native` modifier can be used:
15+
`v-on` でコンポーネントに渡されたイベントリスナは、デフォルトでは `this.$emit` でイベントを発行することでのみ発火されます。代わりにネイティブ DOM リスナを子コンポーネントのルート要素に追加するには、 `.native` 修飾子を使用できます:
1616

1717
```html
1818
<my-component
@@ -21,11 +21,11 @@ Event listeners passed to a component with `v-on` are by default only triggered
2121
/>
2222
```
2323

24-
## 3.x Syntax
24+
## 3.x での構文
2525

26-
The `.native` modifier for `v-on` has been removed. At the same time, the [new `emits` option](./emits-option.md) allows the child to define which events it does indeed emit.
26+
`v-on` `.native` 修飾子は削除されました。同時に、 [新しい `emits` オプション](./emits-option.md) によって、子要素が実際に発行するイベントを定義できるようになりました。
2727

28-
Consequently, Vue will now add all event listeners that are _not_ defined as component-emitted events in the child as native event listeners to the child's root element (unless `inheritAttrs: false` has been set in the child's options).
28+
その結果、 Vue は子コンポーネントの発行するイベントとして定義されて _いない_ すべてのイベントリスナを、子のルート要素のネイティブイベントリスナとして追加するようになりました(ただし `inheritAttrs: false` が子のオプションで設定されていない場合)。
2929

3030
```html
3131
<my-component
@@ -44,14 +44,14 @@ Consequently, Vue will now add all event listeners that are _not_ defined as com
4444
</script>
4545
```
4646

47-
## Migration Strategy
47+
## 移行の戦略
4848

49-
- remove all instances of the `.native` modifier.
50-
- ensure that all your components document their events with the `emits` option.
49+
- `.native` 修飾子のすべてのインスタンスを削除します。
50+
- すべてのコンポーネントが、 `emits` オプションでイベントを記録するようにします。
5151

52-
## See also
52+
## 参照
5353

54-
- [Relevant RFC](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0031-attr-fallthrough.md#v-on-listener-fallthrough)
55-
- [Migration guide - New Emits Option](./emits-option.md)
56-
- [Migration guide - `$listeners` removed](./listeners-removed.md)
57-
- [Migration guide - Changes in the Render Functions API](./render-function-api.md)
54+
- [関連する RFC](https://github.com/vuejs/rfcs/blob/master/active-rfcs/0031-attr-fallthrough.md#v-on-listener-fallthrough)
55+
- [移行ガイド - 新しい Emits のオプション](./emits-option.md)
56+
- [移行ガイド - `$listeners` の削除](./listeners-removed.md)
57+
- [移行ガイド - Render 関数 API](./render-function-api.md)

0 commit comments

Comments
 (0)