Skip to content

Commit 07d1174

Browse files
committed
docs: translate api references > options > misc
1 parent b077f96 commit 07d1174

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Diff for: src/api/options-misc.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# Misc
1+
# その他
22

33
## name
44

5-
- **Type:** `string`
5+
- **:** `string`
66

7-
- **Details:**
7+
- **詳細:**
88

9-
Allow the component to recursively invoke itself in its template. Note that when a component is registered globally with [`app.component`](/api/application-api.html#component), the global ID is automatically set as its name.
9+
コンポーネントがテンプレートの中で自分自身を再帰的に呼び出すことを許可します。コンポーネントが [`app.component`](/api/application-api.html#component) でグローバルに登録されているとき、グローバル ID が自動的にその名前として設定されることに注意してください。
1010

11-
Another benefit of specifying a `name` option is debugging. Named components result in more helpful warning messages. Also, when inspecting an app in the [vue-devtools](https://github.com/vuejs/vue-devtools), unnamed components will show up as `<AnonymousComponent>`, which isn't very informative. By providing the `name` option, you will get a much more informative component tree.
11+
`name` オプションを指定する他の利点はデバッグです。名前付きのコンポーネントは、警告メッセージでより助けになります。また、[vue-devtools](https://github.com/vuejs/vue-devtools) でアプリケーションを調査するとき、名前のないコンポーネントは `<AnonymousComponent>` として表示されてしまい、あまり情報量が多くありません。`name` オプションを提供することで、より情報量の多いコンポーネントツリーを得ることができます。
1212

1313
## inheritAttrs
1414

15-
- **Type:** `boolean`
15+
- **:** `boolean`
1616

17-
- **Default:** `true`
17+
- **デフォルト:** `true`
1818

19-
- **Details:**
19+
- **詳細:**
2020

21-
By default, parent scope attribute bindings that are not recognized as props will "fallthrough". This means that when we have a single-root component, these bindings will be applied to the root element of the child component as normal HTML attributes. When authoring a component that wraps a target element or another component, this may not always be the desired behavior. By setting `inheritAttrs` to `false`, this default behavior can be disabled. The attributes are available via the `$attrs` instance property and can be explicitly bound to a non-root element using `v-bind`.
21+
デフォルトでは、プロパティとして認識されていない親スコープの属性バインディグは「通り抜けて落ちる」ようにされます。つまり、単一のルートコンポーネントがある場合、属性バインディングは通常の HTML 属性として子コンポーネントのルート要素に適用されます。ターゲット要素や他のコンポーネントをラップするコンポーネントを作成する場合、これは必ずしも望んだ動作ではないかもしれません。`inheritAttrs` `false` に設定することで、このデフォルトの動作を無効にすることができます。属性は `$attrs` インスタンスプロパティで利用でき、`v-bind` を使ってルートでない要素に明示的にバインドすることができます。
2222

23-
- **Usage:**
23+
- **使用方法:**
2424

2525
```js
2626
app.component('base-input', {
@@ -40,17 +40,17 @@
4040
})
4141
```
4242

43-
- **See also:** [Disabling Attribute Inheritance](../guide/component-attrs.html#disabling-attribute-inheritance)
43+
- **参照:** [属性の継承の無効化](../guide/component-attrs.html#属性の継承の無効化)
4444

4545
## compilerOptions <Badge text="3.1+" />
4646

47-
- **Type:** `Object`
47+
- **:** `Object`
4848

49-
- **Details:**
49+
- **詳細:**
5050

51-
This is the component-level equivalent of the [app-level `compilerOptions` config](/api/application-config.html#compileroptions).
51+
これは [アプリケーションの `compilerOptions` 設定](/api/application-config.html#compileroptions) に相当するコンポーネントレベルの設定です。
5252

53-
- **Usage:**
53+
- **使用方法:**
5454

5555
```js
5656
const Foo = {
@@ -63,9 +63,9 @@
6363
```
6464

6565
::: tip Important
66-
Similar to the app-level `compilerOptions` config, this option is only respected when using the full build with in-browser template compilation.
66+
アプリケーションレベルの `compilerOptions` 設定と同じように、このオプションはブラウザ内でテンプレートのコンパイルをするフルビルドを使ったときにのみ尊重されます。
6767
:::
6868

6969
## delimiters <Badge text="deprecated" type="warning" />
7070

71-
Deprecated in 3.1.0. Use `compilerOptions.delimiters` instead.
71+
3.1.0 では非推奨です。代わりに `compilerOptions.delimiters` を使ってください。

0 commit comments

Comments
 (0)