Test.vue 958 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <div>
  3. <h5>THIS COMPONENT IS JUST FOR TEST</h5>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'Test',
  9. beforeRouteEnter () {
  10. // console.log('debug beforeRouteEnter')
  11. },
  12. beforeRouteLeave () {
  13. // console.log('debug beforeRouteLeave')
  14. },
  15. beforeRouteUpdate () {
  16. // console.log('debug beforeRouteUpdate')
  17. },
  18. props: {
  19. testProp: {
  20. type: Boolean,
  21. default () {
  22. return false
  23. }
  24. }
  25. },
  26. data () {
  27. return {
  28. testValue: '',
  29. testValue1: ''
  30. }
  31. },
  32. computed: {},
  33. watch: {
  34. testValue: {
  35. handler () {},
  36. deep: true
  37. },
  38. testValue1 (oldVal, newVal) {}
  39. },
  40. activated () {
  41. // console.log('debug activated')
  42. },
  43. updated () {
  44. // console.log('debug updated')
  45. },
  46. created () {
  47. // console.log('debug created')
  48. },
  49. mounted () {
  50. // console.log('debug mounted')
  51. },
  52. methods: {}
  53. }
  54. </script>
  55. <style scoped lang="scss">
  56. </style>