Renamed academy to lms (Client Side)

This commit is contained in:
scmmishra
2018-11-13 16:47:46 +05:30
committed by Aditya Hase
parent 35bf561a6f
commit 1fbe2d4b2b
21 changed files with 50 additions and 50 deletions

View File

@@ -0,0 +1,25 @@
<template>
<button :class="classList" v-on="$listeners" v-bind="$attrs" @click="goToRoute">
<slot></slot>
</button>
</template>
<script>
export default {
name: 'AButton',
props: ['type', 'size', 'route'],
computed: {
classList() {
return [
'btn',
'btn-' + this.type,
'btn-' + this.size
]
}
},
methods: {
goToRoute() {
this.$router.push(this.route);
}
}
}
</script>