File tree Expand file tree Collapse file tree 4 files changed +6
-28
lines changed Expand file tree Collapse file tree 4 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 2
2
import { menuProps } from ' ./props'
3
3
import { ACard } from ' @/components'
4
4
import { AFloating } from ' @/components/floating'
5
- import { useParent } from ' @/composables'
6
5
7
6
const props = defineProps (menuProps )
8
7
@@ -19,7 +18,7 @@ defineOptions({
19
18
name: ' AMenu' ,
20
19
})
21
20
22
- const parentEl = useParent ()
21
+ const parentEl = useParentElement ()
23
22
</script >
24
23
25
24
<template >
Original file line number Diff line number Diff line change 1
1
<script lang="ts" setup>
2
- import type { Middleware } from ' @floating-ui/vue'
2
+ import type { Middleware } from ' @floating-ui/vue' ;
3
3
4
4
// import { arrow } from '@floating-ui/vue'
5
- import { flip , offset , shift } from ' @floating-ui/vue'
6
- import { tooltipProps } from ' ./props'
7
- import { AFloating } from ' @/components/floating'
8
- import { useParent } from ' @/composables'
5
+ import { AFloating } from ' @/components/floating' ;
6
+ import { flip , offset , shift } from ' @floating-ui/vue' ;
7
+ import { tooltipProps } from ' ./props' ;
9
8
10
9
const props = defineProps (tooltipProps )
11
10
@@ -21,7 +20,7 @@ defineOptions({
21
20
name: ' ATooltip' ,
22
21
})
23
22
24
- const parentEl = useParent ()
23
+ const parentEl = useParentElement ()
25
24
26
25
// const arrowEl = ref()
27
26
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ export * from './useDOMScrollLock'
6
6
export * from './useGroupModel'
7
7
export * from './useIndeterminateCheckbox'
8
8
export * from './useLayer'
9
- export * from './useParent'
10
9
export * from './useSearch'
11
10
export * from './useSort'
12
11
export * from './useTeleport'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments