Skip to content

Commit

Permalink
fix(VTreeview): remove itemType and unused slots
Browse files Browse the repository at this point in the history
fixes #20980
  • Loading branch information
KaelWD committed Feb 14, 2025
1 parent ea70e18 commit b54db8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion packages/vuetify/src/labs/VTreeview/VTreeview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const makeVTreeviewProps = propsFactory({
collapseIcon: '$treeviewCollapse',
expandIcon: '$treeviewExpand',
slim: true,
}), ['nav', 'openStrategy']),
}), ['itemType', 'nav', 'openStrategy']),
modelValue: {
type: Array,
default: () => ([]),
Expand Down
10 changes: 0 additions & 10 deletions packages/vuetify/src/labs/VTreeview/VTreeviewChildren.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { VTreeviewGroup } from './VTreeviewGroup'
import { VTreeviewItem } from './VTreeviewItem'
import { VCheckboxBtn } from '@/components/VCheckbox'
import { VDivider } from '@/components/VDivider'

// Composables
import { IconValue } from '@/composables/icons'
Expand Down Expand Up @@ -30,9 +29,6 @@ export type VTreeviewChildrenSlots<T> = {
item: T
internalItem: InternalListItem<T>
}
divider: { props: InternalListItem['props'] }
subheader: { props: InternalListItem['props'] }
header: { props: InternalListItem['props'] }
}

export const makeVTreeviewChildrenProps = propsFactory({
Expand Down Expand Up @@ -94,12 +90,6 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
}

return () => slots.default?.() ?? props.items?.map(item => {
if (item.type === 'divider') {
return slots.divider?.({ props: item.props }) ?? (
<VDivider { ...item.props } />
)
}

const { children, props: itemProps } = item
const loading = isLoading.has(item.value)
const slotsWithItem = {
Expand Down

0 comments on commit b54db8d

Please sign in to comment.