File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1650,15 +1650,20 @@ type: api
1650
1650
1651
1651
` v-for ` と共に使用するとき、値はそれにバインドしている配列に対応するすべての子コンポーネントインスタンスを含む配列になります。` v-for ` のデータソースがオブジェクトの場合、登録された値はソースオブジェクトとミラーリングされた各キーとインスタンスを含むオブジェクトになります。
1652
1652
1653
+ - ** 注意:**
1654
+ HTML は case-insensitive であるため、` v-ref:someRef ` のようなキャメルケース (camlCase) の使用は全て小文字に変換されます。適切に ` this.$refs.someRef ` を設定し、` v-ref:some-ref ` を使用することができます。
1655
+
1653
1656
- ** 例:**
1654
1657
1655
1658
``` html
1656
1659
<comp v-ref:child ></comp >
1660
+ <comp v-ref:some-child ></comp >
1657
1661
```
1658
1662
1659
1663
``` js
1660
1664
// 親からアクセス:
1661
1665
this .$refs .child
1666
+ this .$refs .someChild
1662
1667
```
1663
1668
1664
1669
` v-for ` と共に利用:
@@ -1684,13 +1689,18 @@ type: api
1684
1689
1685
1690
簡単にアクセス可能にするために、所有者の Vue インスタンスの ` $els ` オブジェクト上に DOM 要素へのリファレンスを登録します。
1686
1691
1692
+ - ** 注意:**
1693
+ HTML は case-insensitive であるため、` v-el:someEl ` のようなキャメルケース (camlCase) の使用は全て小文字に変換されます。適切に ` this.$els.someEl ` を設定し、` v-el:some-el ` を使用することができます。
1694
+
1687
1695
- ** 例:**
1688
1696
1689
1697
``` html
1690
1698
<span v-el:msg >hello</span >
1699
+ <span v-el:other-msg >world</span >
1691
1700
```
1692
1701
``` js
1693
1702
this .$els .msg .textContent // -> "hello"
1703
+ this .$els .otherMsg .textContent // -> "world"
1694
1704
```
1695
1705
1696
1706
### v-pre
You can’t perform that action at this time.
0 commit comments