You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Skills.vue 989B

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