Skip to content

Commit 6730c21

Browse files
committed
docs: translate api reference > options dom
1 parent cf00809 commit 6730c21

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/api/options-dom.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22

33
## template
44

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

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

9-
A string template to be used as the markup for the component instance. The template will **replace** the `innerHTML` of mounted element. Any existing markup inside the mounted element will be ignored, unless content distribution slots are present in the template.
9+
コンポーネントインスタンスのマークアップとして使われる文字列のテンプレートです。そのテンプレートはマウントされた要素の `innerHTML`**置換** します。マウントされた要素内の既存マークアップは、テンプレート内にコンテンツ配信スロットが存在しない限り、どれも無視されます。
1010

11-
If the string starts with `#` it will be used as a `querySelector` and use the selected element's innerHTML as the template string. This allows the use of the common `<script type="x-template">` trick to include templates.
11+
文字列が `#` から始まる場合は、`querySelector` として扱われ、テンプレート文字列として選択された要素の innerHTML を使います。これは一般的な `<script type="x-template">` の方法を使って、テンプレートを含むことができます。
1212

1313
:::tip Note
14-
From a security perspective, you should only use Vue templates that you can trust. Never use user-generated content as your template.
14+
セキュリティの観点からは、あなたが信頼できる Vue テンプレートだけを使うべきです。ユーザが作成したコンテンツをテンプレートとして使ってはいけません。
1515
:::
1616

1717
:::tip Note
18-
If render function is present in the Vue option, the template will be ignored.
18+
Render 関数が Vue オプションに存在する場合、テンプレートは無視されます。
1919
:::
2020

21-
- **See also:**
22-
- [Lifecycle Diagram](../guide/instance.html#lifecycle-diagram)
23-
- [Content Distribution with Slots](../guide/component-basics.html#content-distribution-with-slots)
21+
- **参照:**
22+
- [ライフサイクルダイアグラム](../guide/instance.html#ライフサイクルダイアグラム)
23+
- [スロットによるコンテンツ配信](../guide/component-basics.html#スロットによるコンテンツ配信)
2424

2525
## render
2626

27-
- **Type:** `Function`
27+
- **:** `Function`
2828

29-
- **Details:**
29+
- **詳細:**
3030

31-
An alternative to string templates allowing you to leverage the full programmatic power of JavaScript.
31+
文字列テンプレートの代わりに、JavaScript のプログラム能力をフル活用することができます。
3232

33-
- **Usage:**
33+
- **使用方法:**
3434

3535
```html
3636
<div id="app" class="demo">
@@ -61,7 +61,7 @@
6161
```
6262

6363
:::tip Note
64-
The `render` function has priority over the render function compiled from `template` option or in-DOM HTML template of the mounting element
64+
`render` 関数は、`template` オプションや、マウントした要素の DOM HTML テンプレートからコンパイルされたレンダリング関数よりも高い優先度を持ちます。
6565
:::
6666

67-
- **See also:** [Render Functions](../guide/render-function.html)
67+
- **参照:** [Render 関数](../guide/render-function.html)

0 commit comments

Comments
 (0)