2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

v-iconを使ってもテキストが表示される

Posted at

v-iconを使ってもアイコンが表示されない

<v-icon>info</v-icon>
スクリーンショット 2018-11-06 16.58.04.jpg

解決策

原因は style を書く時に scoped をつけていたのが原因

<v-icon>info</v-icon>

<style lang="scss" scoped>
// scopedが付いている
</style>

<v-icon>info</v-icon>

<style lang="scss">
// scopedを外す
</style>
スクリーンショット 2018-11-06 16.59.43.jpg

表示された!!

補足

scopedを使いつつ、v-iconを使いたい場合は、 v-icon 用にatomsを用意してあげると良さそう

2
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?