From dcb16833fc7e0013dc400ec64c1d7233941d76c1 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 30 Mar 2020 17:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E5=A4=9A=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E9=83=A8=E5=88=86=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=8D?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/ruoyi/js/ry-ui.js | 33 +++++++++---------- .../src/main/resources/templates/index.html | 2 +- .../resources/templates/system/role/role.html | 2 +- .../resources/templates/system/user/user.html | 2 +- .../resources/templates/monitor/job/job.html | 2 +- 5 files changed, 19 insertions(+), 22 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index e970adf6..38d27617 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -260,24 +260,21 @@ var table = { // 浮动提示框特效 $(".table [data-toggle='tooltip']").tooltip(); - // 气泡弹出框特效 - $('.table [data-toggle="popover"]').each(function() { - $(this).popover({ trigger: "manual", html: true, animation: false, container: "body", placement: "left" - }).on("mouseenter", - function() { - var _this = this; - $(this).popover("show"); - $(".popover").on("mouseleave", function() { - $(_this).popover('hide'); - }); - }).on("mouseleave", - function() { - var _this = this; - setTimeout(function() { - if (!$(".popover:hover").length) - $(_this).popover("hide"); - }, 100); - }); + // 气泡弹出框特效(移到元素时) + $(document).on("mouseenter", '.table [data-toggle="popover"]', function() { + var _this = this; + $(this).popover("show"); + $(".popover").on("mouseleave", function() { + $(_this).popover('hide'); + }); + }) + + // 气泡弹出框特效(离开元素时) + $(document).on("mouseleave", '.table [data-toggle="popover"]', function() { + var _this = this; + setTimeout(function() { + if (!$(".popover:hover").length) $(_this).popover("hide"); + }, 100); }); }, // 表格销毁 diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index 30cbfaeb..1621b741 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -147,7 +147,7 @@
  • - 四层菜单 + 四层菜单