Skip to content

Commit d4aa7b7

Browse files
committed
Revert "fix(tooltip): fix tooltip not properly targeting on HTML element"
This reverts commit 8e99784.
1 parent 73281b4 commit d4aa7b7

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

packages/anu-vue/src/components/menu/AMenu.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { menuProps } from './props'
33
import { ACard } from '@/components'
44
import { AFloating } from '@/components/floating'
5-
import { useParent } from '@/composables'
65
76
const props = defineProps(menuProps)
87
@@ -19,7 +18,7 @@ defineOptions({
1918
name: 'AMenu',
2019
})
2120
22-
const parentEl = useParent()
21+
const parentEl = useParentElement()
2322
</script>
2423

2524
<template>

packages/anu-vue/src/components/tooltip/ATooltip.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<script lang="ts" setup>
2-
import type { Middleware } from '@floating-ui/vue'
2+
import type { Middleware } from '@floating-ui/vue';
33
44
// 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';
98
109
const props = defineProps(tooltipProps)
1110
@@ -21,7 +20,7 @@ defineOptions({
2120
name: 'ATooltip',
2221
})
2322
24-
const parentEl = useParent()
23+
const parentEl = useParentElement()
2524
2625
// const arrowEl = ref()
2726

packages/anu-vue/src/composables/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export * from './useDOMScrollLock'
66
export * from './useGroupModel'
77
export * from './useIndeterminateCheckbox'
88
export * from './useLayer'
9-
export * from './useParent'
109
export * from './useSearch'
1110
export * from './useSort'
1211
export * from './useTeleport'

packages/anu-vue/src/composables/useParent.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)