优化更多操作按钮左侧移入内容闪现消失情况

pull/259/MERGE
RuoYi 2021-01-24 11:20:11 +08:00
parent c584de2d8f
commit 68200c98c9
2 changed files with 3 additions and 18 deletions

View File

@ -37,23 +37,6 @@ $(function() {
})
}
// 气泡弹出框特效(移到元素时)
$(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);
});
// 取消回车自动提交表单
$(document).on("keypress", ":input:not(textarea):not([type=submit])", function(event) {
if (event.keyCode == 13) {
@ -445,7 +428,7 @@ var sub = {
}
}
var item = data[dataIndex];
var extendObj = $.extend({},item,obj);
var extendObj = $.extend({}, item, obj);
params.push({ index: dataIndex, row: extendObj });
}
$("#" + table.options.id).bootstrapTable("updateRow", params);

View File

@ -202,6 +202,8 @@ var table = {
$(optionsIds).on("post-body.bs.table", function (e, args) {
// 浮动提示框特效
$(".table [data-toggle='tooltip']").tooltip();
// 气泡弹出框特效
$('.table [data-toggle="popover"]').popover();
});
// 选中、取消、全部选中、全部取消(事件)
$(optionsIds).on("check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table", function (e, rowsAfter, rowsBefore) {