diff --git a/src/components/spotIcon.vue b/src/components/spotIcon.vue index b911488..e2641cd 100644 --- a/src/components/spotIcon.vue +++ b/src/components/spotIcon.vue @@ -6,9 +6,9 @@ export default { margin: Boolean, classes: String }, - data() { - return { - classNames: 'fa fa-'+this.icon+((this.margin || this.text && this.text!='')?' push':'')+(this.classes?' '+this.classes:'') + computed: { + classNames() { + return 'fa fa-'+this.icon+((this.margin || this.text && this.text!='')?' push':'')+(this.classes?' '+this.classes:'') } } }