More than 1 year has passed since last update.
svg 要素の属性はケースセンシティブであり、 viewBox
とキャメルケースで書かなければいけない。
しかし、Vue はディレクティブに指定した属性を小文字にしてしまう。
なので、 キャメルケースにするために .camel
っていうのが必要になるらしい。
index.html
<svg :view-box.camel="viewBox">...</svg>
参考
https://github.com/vuejs/vue/issues/2250
Why not register and get more from Qiita?
- We will deliver articles that match you
By following users and tags, you can catch up information on technical fields that you are interested in as a whole
- you can read useful information later efficiently
By "stocking" the articles you like, you can search right away
Sign upLogin