From 240412cfd878499e68e793403b931193c515ff52 Mon Sep 17 00:00:00 2001 From: tkworks1214 Date: Mon, 9 Sep 2024 08:06:23 +0900 Subject: [PATCH] docs: remarks about minor versions --- src/api/application.md | 4 ++-- src/api/built-in-special-attributes.md | 4 +++- src/api/composition-api-dependency-injection.md | 4 ++-- src/api/options-rendering.md | 4 +++- src/api/reactivity-utilities.md | 4 ++-- src/api/sfc-script-setup.md | 9 +++++---- src/api/utility-types.md | 12 ++++++------ 7 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/api/application.md b/src/api/application.md index 393a4120f..391b151f8 100644 --- a/src/api/application.md +++ b/src/api/application.md @@ -285,10 +285,10 @@ ## app.runWithContext() {#app-runwithcontext} -現在のアプリをインジェクションコンテキストとしてコールバックを実行します。 - - 3.3 以上でのみサポートされています +現在のアプリをインジェクションコンテキストとしてコールバックを実行します。 + - **型** ```ts diff --git a/src/api/built-in-special-attributes.md b/src/api/built-in-special-attributes.md index d6cec8d0a..9f5458190 100644 --- a/src/api/built-in-special-attributes.md +++ b/src/api/built-in-special-attributes.md @@ -91,7 +91,9 @@ - **期待する値:** `string | Component` -- **ネイティブ要素での使用** 3.1+ +- **ネイティブ要素での使用** + +- 3.1 以上でのみサポートされています ネイティブの HTML 要素で `is` 属性が使われている場合、[Customized built-in element](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-customized-builtin-example) として解釈されます。これは、ネイティブの Web プラットフォームの機能です。 diff --git a/src/api/composition-api-dependency-injection.md b/src/api/composition-api-dependency-injection.md index 25b87d6b5..c1be1e614 100644 --- a/src/api/composition-api-dependency-injection.md +++ b/src/api/composition-api-dependency-injection.md @@ -109,10 +109,10 @@ ## hasInjectionContext() {#has-injection-context} -[inject()](#inject) が警告なしで使用できる場合に true を返します(`setup()` の外側など、間違った場所で呼び出されたという警告)。このメソッドは、エンドユーザーに警告を出すことなく、内部的に `inject()` を使用したいライブラリーが使用するように設計されています。 - - 3.3 以上でのみサポートされています +[inject()](#inject) が警告なしで使用できる場合に true を返します(`setup()` の外側など、間違った場所で呼び出されたという警告)。このメソッドは、エンドユーザーに警告を出すことなく、内部的に `inject()` を使用したいライブラリーが使用するように設計されています。 + - **型** ```ts diff --git a/src/api/options-rendering.md b/src/api/options-rendering.md index f13462755..7be64e87f 100644 --- a/src/api/options-rendering.md +++ b/src/api/options-rendering.md @@ -86,7 +86,9 @@ ## slots {#slots} -レンダー関数でプログラム的にスロットを使用する際に、型推論を支援するオプションです。3.3 以上でのみサポートされています。 +- 3.3 以上でのみサポートされています + +レンダー関数でプログラム的にスロットを使用する際に、型推論を支援するオプションです。 - **詳細** diff --git a/src/api/reactivity-utilities.md b/src/api/reactivity-utilities.md index 6e847cab8..541309106 100644 --- a/src/api/reactivity-utilities.md +++ b/src/api/reactivity-utilities.md @@ -134,12 +134,12 @@ ## toValue() {#tovalue} +- 3.3 以上でのみサポートされています + 値 / ref / getter を値に正規化します。これは [unref()](#unref) に似ていますが、getter も正規化する点が異なります。引数が getter の場合、その getter が呼び出され、その戻り値が返されます。 これは、[コンポーザブル](/guide/reusability/composables.html)で、値、ref、getter のいずれかになりうる引数を正規化するために使用できます。 -- 3.3 以上でのみサポートされています - - **型** ```ts diff --git a/src/api/sfc-script-setup.md b/src/api/sfc-script-setup.md index 5ef247dbf..c48dda24b 100644 --- a/src/api/sfc-script-setup.md +++ b/src/api/sfc-script-setup.md @@ -379,7 +379,9 @@ defineExpose({ 親がテンプレート参照を介してこのコンポーネントのインスタンスを取得すると、取得されたインスタンスは `{ a: number, b: number }` という形状になります(ref は通常のインスタンスと同様、自動的にアンラップされます)。 -## defineOptions() {#defineoptions} +## defineOptions() /> {#defineoptions} + +- 3.3 以上でのみサポートされています このマクロは、` ``` -- 3.3 以上でのみサポートされています。 - これはマクロです。オプションはモジュールスコープに巻き上げられ、` ``` -- 3.3 以上でのみサポートされています。 - ## `useSlots()` & `useAttrs()` {#useslots-useattrs} `