| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2020-09-17 | 1.1 kB | |
| v7.2.6.tar.gz | 2020-09-17 | 243.2 kB | |
| v7.2.6.zip | 2020-09-17 | 275.0 kB | |
| Totals: 3 Items | 519.3 kB | 0 | |
Bug Fixes
This is a fix to retain backward compatibility to the old mixins type. Although it is recommended not to manually specify mixin types via the type parameters of mixins. e.g.
ts
// NOT recommended
@Component
class MyComp extends mixins<Foo & Bar>(Foo, Bar) {
// ...
}
Because you can pass any type to the parameter even if it is not matched with the actual mixin structure.
If you want to specify a generic type parameter for your class component, you can extend it before passing in mixins helper.
```ts @Component class GenricComponent<T> extends Vue { value: T }
// Specify the generic parameter by extending it @Component class SpecialComponent extends GenericComponent<string> {}
// Use the specified one as a mixin @Component class MyComp extends mixins(SpecialComponent) { // ... } ```