Browse Source
fix: cannot read properties of null (reading 'nextSibling') (#6667)
pull/6668/head
LinaBell
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
11 deletions
-
packages/@core/ui-kit/shadcn-ui/src/ui/dialog/DialogContent.vue
-
packages/@core/ui-kit/shadcn-ui/src/ui/sheet/SheetContent.vue
|
|
|
@ -8,12 +8,7 @@ import { computed, ref } from 'vue'; |
|
|
|
import { cn } from '@vben-core/shared/utils'; |
|
|
|
|
|
|
|
import { X } from 'lucide-vue-next'; |
|
|
|
import { |
|
|
|
DialogClose, |
|
|
|
DialogContent, |
|
|
|
DialogPortal, |
|
|
|
useForwardPropsEmits, |
|
|
|
} from 'radix-vue'; |
|
|
|
import { DialogClose, DialogContent, useForwardPropsEmits } from 'radix-vue'; |
|
|
|
|
|
|
|
import DialogOverlay from './DialogOverlay.vue'; |
|
|
|
|
|
|
|
@ -87,7 +82,7 @@ defineExpose({ |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<DialogPortal :to="appendTo"> |
|
|
|
<Teleport :to="appendTo"> |
|
|
|
<Transition name="fade"> |
|
|
|
<DialogOverlay |
|
|
|
v-if="open && modal" |
|
|
|
@ -132,5 +127,5 @@ defineExpose({ |
|
|
|
<X class="h-4 w-4" /> |
|
|
|
</DialogClose> |
|
|
|
</DialogContent> |
|
|
|
</DialogPortal> |
|
|
|
</Teleport> |
|
|
|
</template> |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ import { computed, ref } from 'vue'; |
|
|
|
|
|
|
|
import { cn } from '@vben-core/shared/utils'; |
|
|
|
|
|
|
|
import { DialogContent, DialogPortal, useForwardPropsEmits } from 'radix-vue'; |
|
|
|
import { DialogContent, useForwardPropsEmits } from 'radix-vue'; |
|
|
|
|
|
|
|
import { sheetVariants } from './sheet'; |
|
|
|
import SheetOverlay from './SheetOverlay.vue'; |
|
|
|
@ -73,7 +73,7 @@ function onAnimationEnd(event: AnimationEvent) { |
|
|
|
</script> |
|
|
|
|
|
|
|
<template> |
|
|
|
<DialogPortal :to="appendTo"> |
|
|
|
<Teleport :to="appendTo"> |
|
|
|
<Transition name="fade"> |
|
|
|
<SheetOverlay |
|
|
|
v-if="open && modal" |
|
|
|
@ -103,5 +103,5 @@ function onAnimationEnd(event: AnimationEvent) { |
|
|
|
<Cross2Icon class="h-5 w-" /> |
|
|
|
</DialogClose> --> |
|
|
|
</DialogContent> |
|
|
|
</DialogPortal> |
|
|
|
</Teleport> |
|
|
|
</template> |
|
|
|
|