vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 431 forks source link

是否支持 vue3+setup+ts #615

Open YinMingBin opened 2 years ago

YinMingBin commented 2 years ago

请问 vue3+setup+ts 能否使用?如何使用?

kagaricyan commented 2 years ago

试试写到Component装饰器的选项里面。

@Component({
    setup() {
        //
    }
})
lzxb commented 1 year ago

不如直接试试这个:https://github.com/fmfe/vue-class-setup

kagaricyan commented 1 year ago

不如直接试试这个:https://github.com/fmfe/vue-class-setup

我本来就是四不像过渡用的。

lzxb commented 1 year ago

我这边也是有很多过渡,后面新的组件都是使用class setup