Skip to content

Commit d9131f1

Browse files
committed
Translate commit hash 0d9d9ac
1 parent 62247a8 commit d9131f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/api/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,15 +1650,20 @@ type: api
16501650

16511651
`v-for` と共に使用するとき、値はそれにバインドしている配列に対応するすべての子コンポーネントインスタンスを含む配列になります。`v-for` のデータソースがオブジェクトの場合、登録された値はソースオブジェクトとミラーリングされた各キーとインスタンスを含むオブジェクトになります。
16521652

1653+
- **注意:**
1654+
HTML は case-insensitive であるため、`v-ref:someRef` のようなキャメルケース (camlCase) の使用は全て小文字に変換されます。適切に `this.$refs.someRef` を設定し、`v-ref:some-ref` を使用することができます。
1655+
16531656
- **例:**
16541657

16551658
``` html
16561659
<comp v-ref:child></comp>
1660+
<comp v-ref:some-child></comp>
16571661
```
16581662

16591663
``` js
16601664
// 親からアクセス:
16611665
this.$refs.child
1666+
this.$refs.someChild
16621667
```
16631668

16641669
`v-for`と共に利用:
@@ -1684,13 +1689,18 @@ type: api
16841689

16851690
簡単にアクセス可能にするために、所有者の Vue インスタンスの `$els` オブジェクト上に DOM 要素へのリファレンスを登録します。
16861691

1692+
- **注意:**
1693+
HTML は case-insensitive であるため、`v-el:someEl` のようなキャメルケース (camlCase) の使用は全て小文字に変換されます。適切に `this.$els.someEl` を設定し、`v-el:some-el` を使用することができます。
1694+
16871695
- **例:**
16881696

16891697
``` html
16901698
<span v-el:msg>hello</span>
1699+
<span v-el:other-msg>world</span>
16911700
```
16921701
``` js
16931702
this.$els.msg.textContent // -> "hello"
1703+
this.$els.otherMsg.textContent // -> "world"
16941704
```
16951705

16961706
### v-pre

0 commit comments

Comments
 (0)