@inkline/inkline
Version:
Inkline is the Vue.js UI/UX Library built for creating your next design system
21 lines • 546 B
JavaScript
import { defineComponent } from 'vue';
export default defineComponent({
props: {
tag: {
type: String,
default: 'a'
}
},
computed: {
isTag() {
return this.$attrs.to ? this.routerComponent : this.$attrs.href ? 'a' : this.tag;
},
isComponent() {
return this.isTag === this.routerComponent;
},
routerComponent() {
return this.$inkline.options.routerComponent;
}
}
});
//# sourceMappingURL=LinkableMixin.mjs.map