Here is the code snippet that I am currently working with:
import {Component, Vue} from 'vue-property-decorator';
@Component({})
export default class MyMixin extends Vue {
scrollToTop(): void {
let scrollingWrapper: any = (this.$refs[this.activeTab] as Vue).$refs['scrolling-wrapper'];
...
}
}
Next,
export default class MyModal extends MyMixin {
get activeTab(): string {
return myStore.activeTab;
}
}
The mixin successfully calls the component's getter and everything seems to be functioning correctly. However, I am encountering an error message stating TS2339: Property activeTab
does not exist on type 'MyMixin'.