mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix: 修复移动端通知栏tooltip
点击穿透问题 (#442)
Co-authored-by: wanggang <wanggang@kezaihui.com>
This commit is contained in:
parent
2d0cc4cfa2
commit
fad1db8c57
@ -2,6 +2,7 @@
|
|||||||
import { ListItem } from "./data";
|
import { ListItem } from "./data";
|
||||||
import { ref, PropType, nextTick } from "vue";
|
import { ref, PropType, nextTick } from "vue";
|
||||||
import { useNav } from "@/layout/hooks/useNav";
|
import { useNav } from "@/layout/hooks/useNav";
|
||||||
|
import { deviceDetection } from "@pureadmin/utils";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
noticeItem: {
|
noticeItem: {
|
||||||
@ -15,6 +16,7 @@ const titleTooltip = ref(false);
|
|||||||
const descriptionRef = ref(null);
|
const descriptionRef = ref(null);
|
||||||
const descriptionTooltip = ref(false);
|
const descriptionTooltip = ref(false);
|
||||||
const { tooltipEffect } = useNav();
|
const { tooltipEffect } = useNav();
|
||||||
|
const isMobile = deviceDetection();
|
||||||
|
|
||||||
function hoverTitle() {
|
function hoverTitle() {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
@ -63,6 +65,7 @@ function hoverDescription(event, description) {
|
|||||||
:disabled="!titleTooltip"
|
:disabled="!titleTooltip"
|
||||||
:content="props.noticeItem.title"
|
:content="props.noticeItem.title"
|
||||||
placement="top-start"
|
placement="top-start"
|
||||||
|
:enterable="!isMobile"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
ref="titleRef"
|
ref="titleRef"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user