Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Skills.vue 930B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template lang="pug">
  2. h3 RECRUITER
  3. p {{question}}
  4. DynamicTagList(:tags="skills" :placeholder="'skill'")
  5. w-button.ma1.grow(@click="handleSubmit") NEXT
  6. </template>
  7. <script>
  8. import DynamicTagList from '../DynamicTagList.vue'
  9. export default {
  10. name: 'Skills',
  11. components:{
  12. DynamicTagList
  13. },
  14. props: {
  15. currentStep:{
  16. required: true,
  17. type: Number,
  18. default: 0
  19. }
  20. },
  21. emits: ['go-to-step', 'update-answers'],
  22. data: () => ({
  23. question: 'What are some skills you are looking for at your company?',
  24. skills: []
  25. }),
  26. methods: {
  27. handleSubmit(){
  28. let payload = {
  29. key: 'Skills',
  30. question: this.question,
  31. answer: this.skills
  32. }
  33. this.$emit('update-answers', payload)
  34. this.$emit('go-to-step', this.currentStep + 1)
  35. }
  36. }
  37. }
  38. </script>