Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <script>
  2. import Vue from 'vue'
  3. import Component from 'vue-class-component'
  4.  
  5. class FormAuth extends Vue {
  6. onSumbit(e) {
  7. this.$emit('submit', e)
  8. }
  9. }
  10.  
  11. export default Component(FormAuth)
  12. </script>
  13.  
  14. <template lang='pug'>
  15. form.auth-form(action='' @submit='onSumbit')
  16. slot
  17. </template>
  18.  
  19. <style lang='scss'>
  20. .auth-form {
  21. > .title {
  22. color: #000;
  23. }
  24.  
  25. > .title,
  26. > .reset {
  27. font-size: 0.9em;
  28. }
  29.  
  30. > .submit[disabled] {
  31. background-color: #999;
  32. border-color: #999;
  33. color: #fff;
  34. }
  35. }
  36. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement