Skip to content

Commit 3c7cfe1

Browse files
committed
docs: translate updates about options composition
1 parent 7985ec1 commit 3c7cfe1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/options-composition.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
ミックスインフックは提供された順番に呼び出され、コンポーネント自身のフックよりも前に呼び出されます。
1212

1313
:::info
14-
In Vue 2, mixins were the primary mechanism for creating reusable chunks of component logic. While mixins continue to be supported in Vue 3, the [Composition API](/guide/composition-api-introduction.html) is now the preferred approach for code reuse between components.
14+
Vue 2 では、コンポーネントロジックの再利用可能なチャンクを作成するための主要なメカニズムがミックスインでした。Vue 3 では、引き続きミックスインがサポートされていますが、コンポーネント間でコードの再利用するには [Composition API](/guide/composition-api-introduction.html) が推奨されています。
1515
:::
1616

1717
- **例:**
@@ -42,13 +42,13 @@
4242

4343
- **詳細:**
4444

45-
Allows one component to extend another, inheriting its component options.
45+
あるコンポーネントを別のコンポーネントに拡張して、そのコンポーネントオプションを継承することができます。
4646

47-
From an implementation perspective, `extends` is almost identical to `mixins`. The component specified by `extends` will be treated as though it were the first mixin.
47+
実装の観点からは、`extends` `mixins` とほとんど同じです。`extends` で指定されたコンポーネントは、最初のミックスインであるかのように扱われます。
4848

49-
However, `extends` and `mixins` express different intents. The `mixins` option is primarily used to compose chunks of functionality, whereas `extends` is primarily concerned with inheritance.
49+
しかし、`extends` `mixins` は異なる意図を表現します。`mixins` オプションは主に機能のチャンクを構成するために使われ、`extends` は主に継承に関係しています。
5050

51-
As with `mixins`, any options will be merged using the relevant merge strategy.
51+
`mixins` と同様に、どのオプションも関連するマージ戦略を使ってマージされます。
5252

5353
- **例:**
5454

0 commit comments

Comments
 (0)