Closed imslepov closed 6 months ago
I've added functionality to convert methods as function declaration.
For example, this code:
import Vue from 'vue' import { Component } from 'vue-property-decorator' @Component({}) export default class HelloWorld extends Vue { hello () { console.log('hello world') } }
Will be converted into this:
export default defineComponent({ name: 'HelloWorld', setup(props, context) { function hello() { console.log('hello world') } return { hello } }, })
And fixed a bug with method modifiers.
I've added functionality to convert methods as function declaration.
For example, this code:
Will be converted into this:
And fixed a bug with method modifiers.