Convert admin page to Vue
This commit is contained in:
17
src/components/spotIcon.vue
Normal file
17
src/components/spotIcon.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
iconClass: String,
|
||||
margin: Boolean,
|
||||
otherClasses: String
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
classNames: 'fa fa-'+this.iconClass+(this.margin?' push':'')+(this.otherClasses?' '+this.otherClasses:'')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<i :class="classNames"></i>
|
||||
</template>
|
||||
Reference in New Issue
Block a user