We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fd1d17 commit e17f95cCopy full SHA for e17f95c
CIcon.vue
@@ -10,8 +10,6 @@
10
<script>
11
export default {
12
name: 'CIcon',
13
- //This object contains icons added before component registration
14
- icons: {},
15
props: {
16
name: String,
17
content: [String, Array],
@@ -27,7 +25,12 @@ export default {
27
25
return iconNameIsKebabCase ? this.toCamelCase(this.name) : this.name
28
26
},
29
code () {
30
- return this.content || this.$options.icons[this.iconName]
+ if (this.content) {
+ return this.content
+ } else if (this.$root.$options.icons) {
31
+ return this.$root.$options.icons[this.iconName]
32
+ }
33
+ return undefined
34
35
icon () {
36
if (Array.isArray(this.code)) {
0 commit comments