File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1480,7 +1480,8 @@ type: api
1480
1480
- ** 引数:** ` attrOrProp (任意) `
1481
1481
1482
1482
- ** 修飾子:**
1483
- - ` .prop ` - DOM 属性のバインディングに対して使用されます。
1483
+ - ` .prop ` - 属性の代わりに DOM プロパティとして束縛します。([ 違いは何?] ( http://stackoverflow.com/questions/6003819/properties-and-attributes-in-html#answer-6004028 ) )
1484
+ - ` .camel ` - ケバブケースの属性名をキャメルケースにに変換します (2.1.0 からサポート)
1484
1485
1485
1486
- ** 使用方法:**
1486
1487
@@ -1523,6 +1524,14 @@ type: api
1523
1524
<svg ><a :xlink:special =" foo" ></a ></svg >
1524
1525
```
1525
1526
1527
+ ` .camel ` 修飾子はDOM 内のテンプレートを使用するときに、` v-bind ` 属性名をキャメル化することを可能にします。e.g. SVG の ` viewBox ` 属性:
1528
+
1529
+ ``` html
1530
+ <svg :view-box.camel =" viewBox" ></svg >
1531
+ ```
1532
+
1533
+ 文字列テンプレートを使用している場合や、` vue-loader ` / ` vueify ` でコンパイルしている場合は ` .camel ` は必要ありません。
1534
+
1526
1535
- ** 参照:**
1527
1536
- [ クラスとスタイルバインディング] ( ../guide/class-and-style.html )
1528
1537
- [ コンポーネント - プロパティ] ( ../guide/components.html#プロパティ )
You can’t perform that action at this time.
0 commit comments