Vue property decorator. Custom link with v-text and NuxtLink not work. Typescript
n4an opened this issue · comments
< template > < div > < internal-link :to="localePath(uri)" v-text="text" / > < /div > < /template >
Other component
`< template>
< div>
< NuxtLink
:to="to"
exact
>
< slot name="default" / >
< /NuxtLink>
< /div>
< /template>
< script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator'
@component
export default class InternalLink extends Vue {
@prop({ default: '#' })
to: Object|String
}
< /script>`
And the result is < div >Home< /div>
and not < div ><a href="home">Home< /a>< /div>
Please create proper reproduction if you are still having this issue.
Expecting us to manually re-assemble your on purpose broken code is a bit too much to ask.
(You can put your code between three backtics on github to have it rendered in plain text)