import { Vue, Prop, Component } from "vue-property-decorator"; import Icon from "@/components/Icon/index.vue"; @Component({ components: { Icon, }, }) export default class Create extends Vue { @Prop({ type: Boolean, default: false }) active!: boolean; @Prop({ type: String }) link!: string; isFocused = false; onFocus(): void { this.isFocused = true; } onBlur(): void { this.isFocused = false; } onEnter(e: KeyboardEvent, callerComp): void { this.isFocused = false; callerComp.kDoBlurComp(e); } pusher() { this.$router.push(this.link); } }