Guest User

Untitled

a guest
Mar 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. export default {
  2. data() {
  3. return {
  4. show: "initial"
  5. }
  6. },
  7. methods: {
  8. hideMe() {
  9. if(this.$vuetify.breakpoint.name == 'xs') {
  10. console.log("When is this rendered? " + this.$vuetify.breakpoint.name == 'xs');
  11. this.show = "none";
  12. }
  13. }
  14. },
  15. mounted() {
  16. this.hideme();
  17. console.log("This is a breakpoint name " + this.$vuetify.breakpoint.name);
  18. console.log(this.show);
  19. },
  20. computed: {
  21. imageHeight () {
  22. switch (this.$vuetify.breakpoint.name) {
  23. case 'xs': return '450px';
  24. case 'sm': return '500px';
  25. case 'md': return '500px';
  26. case 'lg': return '540px';
  27. case 'xl': return '540px';
  28. }
  29. }
  30. }
  31. };
Add Comment
Please, Sign In to add comment