mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(Accordion/Collapsible/NavigationMenu/Tabs): define unmountOnHide default
This commit is contained in:
@@ -98,6 +98,7 @@ import UIcon from './Icon.vue'
|
||||
const props = withDefaults(defineProps<AccordionProps<T>>(), {
|
||||
type: 'single',
|
||||
collapsible: true,
|
||||
unmountOnHide: true,
|
||||
labelKey: 'label'
|
||||
})
|
||||
const emits = defineEmits<AccordionEmits>()
|
||||
|
||||
@@ -34,7 +34,9 @@ extendDevtoolsMeta({ example: 'CollapsibleExample' })
|
||||
import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, useForwardPropsEmits } from 'reka-ui'
|
||||
import { reactivePick } from '@vueuse/core'
|
||||
|
||||
const props = defineProps<CollapsibleProps>()
|
||||
const props = withDefaults(defineProps<CollapsibleProps>(), {
|
||||
unmountOnHide: true
|
||||
})
|
||||
const emits = defineEmits<CollapsibleEmits>()
|
||||
const slots = defineSlots<CollapsibleSlots>()
|
||||
|
||||
|
||||
@@ -141,8 +141,8 @@ import UCollapsible from './Collapsible.vue'
|
||||
const props = withDefaults(defineProps<NavigationMenuProps<I>>(), {
|
||||
orientation: 'horizontal',
|
||||
delayDuration: 0,
|
||||
labelKey: 'label',
|
||||
unmountOnHide: true
|
||||
unmountOnHide: true,
|
||||
labelKey: 'label'
|
||||
})
|
||||
const emits = defineEmits<NavigationMenuEmits>()
|
||||
const slots = defineSlots<NavigationMenuSlots<T>>()
|
||||
|
||||
@@ -96,6 +96,7 @@ const props = withDefaults(defineProps<TabsProps<T>>(), {
|
||||
content: true,
|
||||
defaultValue: '0',
|
||||
orientation: 'horizontal',
|
||||
unmountOnHide: true,
|
||||
labelKey: 'label'
|
||||
})
|
||||
const emits = defineEmits<TabsEmits>()
|
||||
|
||||
Reference in New Issue
Block a user