Convert admin page to Vue
This commit is contained in:
22
src/components/spotButton.vue
Normal file
22
src/components/spotButton.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import SpotIcon from './spotIcon.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
SpotIcon
|
||||
},
|
||||
props: {
|
||||
buttonClass: String,
|
||||
buttonText: String,
|
||||
iconClass: String
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
margin: !!this.buttonText
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<button :class="buttonClass"><SpotIcon :iconClass="iconClass" :margin="margin" />{{ buttonText }}</button>
|
||||
</template>
|
||||
Reference in New Issue
Block a user