Skip to content

Conversation

leogargioni
Copy link

Added missing steps, updated old ones and added link to a working version (repo fork) to make it easier for those willing to test.

Comment on lines +334 to +339
const componentClass = computed(() => {
if (props.item.to) {
// return RouterLink
return NuxtLink
}
})
Copy link

@anasark anasark Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I don't understand this, can you give a proper example?

because if I search for the text RouterLink in all files, there is already a const componentClass

example:

const componentClass = computed(() => [
props.isDropdownList ? 'py-3 px-6 text-sm' : 'py-3',
hasColor.value
? getButtonColor(props.item.color, false, true)
: `aside-menu-item dark:text-slate-300 dark:hover:text-white`
])

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