wonderful-panda/vue-tsx-support

Mixin function is not exported but mentioned in the doc.

Closed this issue · 4 comments

image

I had to use the following way.

const Flex = componentFactory.mixin(textXsCenterMixin).create({

image

[ts] Property 'mixin' does not exist on type

@chanlito

check your package.json

"devDependencies": { ... "vue-tsx-support": "^2.1.1", ... }

and https://github.com/wonderful-panda/vue-tsx-support#install-and-enable !!

@chanlito This is intentional. Document is wrong.
tsx.mixin(...) is confusing (It seems to be a function which returns a mixin object, not a factory).

I'll fix document and consider exposing mixin with some other name