vuejs / vue-class-component

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

[FEATURE REQUEST] support abstract classes in v8 #472

Closed noor-tg closed 4 years ago

noor-tg commented 4 years ago

is supporting abstract classes can be considered in the new version ? and why it can not be supported if not ?

ktsn commented 4 years ago

Please elaborate what "abstract class support" means. Abstract class component? mixin? something else?

noor-tg commented 4 years ago

Please elaborate what "abstract class support" means. Abstract class component? mixin? something else? I mean typescript abstract classes . for example :


abstract class Person {
name: string;
constructor(name: string) {
    this.name = name;
}

display(): void{
    console.log(this.name);
}

abstract find(string): Person;

}

ktsn commented 4 years ago

If you mean it's component, we can't because Vue instantiate it. If it's mixin, already supported.