Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make that "as" of Button Props can be assigned Component Object #6239

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

Creo-KR
Copy link
Contributor

@Creo-KR Creo-KR commented Aug 16, 2024

<script setup>
const nuxtLinkComponent = resolveComponent('NuxtLink');
<script>

<template>
  <PButton as="nuxtLinkComponent " />
</template>

make that "as" of Button Props can be assigned Component Object.
make that "as" of Button Props can be assigned Component Object.
Copy link

vercel bot commented Aug 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Aug 16, 2024 7:53am
primevue-v3 ⬜️ Ignored (Inspect) Visit Preview Aug 16, 2024 7:53am

@tugcekucukoglu
Copy link
Member

It is a Nuxt related issue: nuxt/nuxt#13659

@Creo-KR
Copy link
Contributor Author

Creo-KR commented Aug 21, 2024

<script setup>
const nuxtLinkComponent = resolveComponent('NuxtLink');
<script>

<template>
  <PButton as="nuxtLinkComponent " />
</template>

this code work fine. however, a warning message appears due to type checking.
please check one more time.
@tugcekucukoglu

[Vue warn]: Invalid prop: type check failed for prop "as". Expected String with value "[object Object]", got Object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants