maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
1 lines • 429 B
JavaScript
import{getCurrentInstance,inject}from"vue";var MAZ_LINK_COMPONENT_KEY=`mazLinkComponent`;function resolveLinkComponent(){return inject(MAZ_LINK_COMPONENT_KEY,void 0)||getCurrentInstance()?.appContext.components?.RouterLink||(console.warn(`You are using the "to" property but no router component was found (NuxtLink or RouterLink), falling back to anchor ("<a />" - HTMLAnchorElement) tag`),`a`)}export{resolveLinkComponent as t};