Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <template>
  2. <v-btn
  3. class="button"
  4. @click="buttonClicked"
  5. :to="to"
  6. :block="block"
  7. :depressed="depressed"
  8. :class="{active, disabled: !active}"
  9. >
  10. <slot></slot>
  11. </v-btn>
  12. </template>
  13.  
  14. <script>
  15. export default {
  16. name: "BaseButton",
  17. props: {
  18. block: Boolean,
  19. depressed: Boolean,
  20. active: Boolean,
  21. to: String,
  22. },
  23. methods: {
  24. buttonClicked() {
  25. this.$emit('click');
  26. }
  27. },
  28. }
  29. </script>
  30.  
  31. <style lang="stylus" scoped>
  32. @import "../assets/stylus/fonts.styl";
  33.  
  34. .button
  35. color #ffffff
  36. width 15vw
  37. height 3.33vw
  38. border-radius 9vh !important
  39. font-size base-button-fontsize
  40. text-transform none
  41. font-weight 400
  42.  
  43. .disabled
  44. background-color #ffacaf !important
  45. pointer-events none
  46.  
  47. .active
  48. background-color #ed1c24 !important
  49. pointer-events auto
  50. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement