inertia icon indicating copy to clipboard operation
inertia copied to clipboard

Link component as doesn't render other components

Open crazyhl opened this issue 1 year ago • 0 comments

Version:

  • @inertiajs/vue3 version: 1.0.14

Describe the problem:

Link component only render html tag component , but doesn't render other third vue component。 here has same issue https://github.com/inertiajs/inertia/issues/1654 and https://github.com/inertiajs/inertia/issues/1550

I use https://github.com/inertiajs/inertia/issues/1654#issuecomment-1689049845 to test Vue's dynamic <component> tag。but Vue's dynamic <component> tag not has as attribute, it use is attribute。 when i use is it works.

<v-btn>abc</v-btn>
    <Component is="v-btn">abc1</Component>
    <Link href="/" as="button">Home</Link>
    <Link href="/" as="v-btn">Home1</Link>
image

but, Link is not correct rendered. image

I also use :as='v-btn' or :as='VBtn' , it doesn't work.

the console has error image

image

crazyhl avatar Dec 12 '23 10:12 crazyhl