Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Interests.vue 1007B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template lang="pug">
  2. .interests
  3. h3 Interests
  4. p {{ question }}
  5. DynamicTagList(:placeholder='"interest"' :tags='interests')
  6. w-button.ma1.grow(@click='handleSubmit') NEXT
  7. </template>
  8. <script>
  9. import DynamicTagList from '../DynamicTagList.vue'
  10. export default {
  11. name: 'Interests',
  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. interests: [],
  25. question:
  26. 'What are some interests you would like in your next candidates?',
  27. }),
  28. methods: {
  29. handleSubmit() {
  30. let payload = {
  31. key: 'Interests',
  32. question: this.question,
  33. answer: this.interests,
  34. }
  35. this.$emit('update-answers', payload)
  36. this.$emit('go-to-step', this.currentStep + 1)
  37. },
  38. },
  39. }
  40. </script>