nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

transition property not supported? #19

Closed tunarob closed 5 years ago

tunarob commented 6 years ago

How can I define a transition property with this lib (https://nuxtjs.org/api/pages-transition/)?

Looks like defining it as a method doesn't work:

import { Component, Vue } from 'nuxt-property-decorator'
@Component
export default class extends Vue {
  transition (to, from) {
    // something here
  }
}

Also can't see it's possible to define it within a component?

husayt commented 5 years ago

@tunarob see here for working example

moltar commented 5 years ago

I'm also having problems getting transitions to work.

Example seems to be using the transition tag explicitly, and not actually using page transitions.