- Notifications
You must be signed in to change notification settings - Fork446
Improved instructions for Nuxt#54
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| const componentClass = computed(() => { | ||
| if (props.item.to) { | ||
| // return RouterLink | ||
| return NuxtLink | ||
| } | ||
| }) |
There was a problem hiding this comment.
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 textRouterLink in all files, there is already aconst componentClass
example:
admin-one-vue-tailwind/src/components/AsideMenuItem.vue
Lines 27 to 32 in99bfa7b
| constcomponentClass=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` | |
| ]) |
Added missing steps, updated old ones and added link to a working version (repo fork) to make it easier for those willing to test.