wonderful-panda/vue-tsx-support

TsxComponent lost static properties

woshiguabi opened this issue · 1 comments

https://codesandbox.io/s/stupefied-shirley-udt5e?file=/src/index.ts

import Vue from 'vue';
import { ofType } from 'vue-tsx-support';

class Foo extends Vue {
  static Bar = 'Bar';
}

const ConvertFoo = ofType().convert(Foo);

console.log(ConvertFoo.Bar); // error

Is there some way to keep static properties in TsxComponent?

try 3.2.0-beta.1, and use ofType().extendFrom(Foo) instead.