import {Component, Prop, Vue, Emit} from 'vue-property-decorator'; @Component export default class EflyTabsPane extends Vue { @Prop({default: () => ''}) private value!: any; private active = false; $parent:any; private mounted(){ this.getActive() } private getActive(){ this.active = this.$parent['tabs'] === this.value; } private click(){ this.$parent['tabs'] = this.value; this.$parent.getTabs(this.value) } }