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

VL-29_UBreadcrumbs-new-component_Vitalii-Dudnik #342

Merged
merged 28 commits into from
Jan 21, 2025

Conversation

KinduD21
Copy link
Collaborator

@KinduD21 KinduD21 self-assigned this Jan 16, 2025
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/config.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/stories.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/types.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/stories.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/stories.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/stories.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/types.ts Outdated Show resolved Hide resolved
.storybook/index.css Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/config.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/config.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/config.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/config.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/docs.mdx Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/storybook/stories.ts Outdated Show resolved Hide resolved
src/ui.navigation-breadcrumbs/UBreadcrumbs.vue Outdated Show resolved Hide resolved
-->
<slot :is-active="slotProps.isActive" :is-exact-active="slotProps.isExactActive">{{
label
}}</slot>
Copy link
Contributor

@itsJohnnyGrid itsJohnnyGrid Jan 21, 2025

Choose a reason for hiding this comment

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

<slot :is-active="slotProps.isActive" :is-exact-active="slotProps.isExactActive">
  {{ label }}
</slot>

@binding {boolean} active
-->
<slot name="label" :label="link.label" :index="index" :active="isLinkActive(index)" />
<template #default="slotProps">
Copy link
Contributor

Choose a reason for hiding this comment

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

v-slot="slotProps: ULinkSlotProps"

:label="link.label"
:index="index"
:active="
(slotProps as ULinkSlotProps).isActive || (slotProps as ULinkSlotProps).isExactActive
Copy link
Contributor

Choose a reason for hiding this comment

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

I this pass values in different props will be better.

:active="slotProps.isActive"
:exact-active="slotProps.isExactActive"

@KinduD21 KinduD21 merged commit 58791fa into main Jan 21, 2025
1 check passed
@KinduD21 KinduD21 deleted the VL-29_UBreadcrumbs-new-component_Vitalii-Dudnik branch January 21, 2025 11:27
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