Permalink
Browse files

fix: 解决内容区鼠标滑动未触发docus状态的问题

  • Loading branch information...
LiuYueKai committed Apr 28, 2017
1 parent 53caead commit f6cb5f3725cd0f9145ed6f8e1976619e480a327e
Showing with 5 additions and 3 deletions.
  1. +3 −1 src/js/gridCompCreateCal.js
  2. +1 −1 src/js/re_gridCompDrag.js
  3. +1 −1 src/js/re_gridCompRowDrag.js
@@ -1,4 +1,6 @@
const trHoverFun = function(index) {
if (index < 0)
return;
var oThis = this;
$('#' + oThis.options.id + '_content_tbody').find('tr[role="row"]').removeClass('u-grid-move-bg');
$('#' + oThis.options.id + '_content_fixed_tbody').find('tr[role="row"]').removeClass('u-grid-move-bg');
@@ -8,7 +10,7 @@ const trHoverFun = function(index) {
$('#' + oThis.options.id + '_content_numCol').find('div').removeClass('u-grid-move-bg');
if (index > -1) {
var $tr = $('#' + oThis.options.id + '_content_tbody').find('tr[role="row"]').eq(index);
if ($tr[0].id && $tr[0].id == oThis.options.id + '_edit_tr') {
if ($tr && $tr[0] && $tr[0].id && $tr[0].id == oThis.options.id + '_edit_tr') {
return;
}
$('#' + oThis.options.id + '_content_tbody').find('tr[role="row"]').eq(index).addClass('u-grid-move-bg');
@@ -20,7 +20,7 @@ const drag_initEventFun = function(){
}
oThis.dragFun(e);
e.stopPropagation();
// e.stopPropagation();
});
$('#' + this.options.id + '_top').on('mousemove', function(e) {
oThis.dragFun(e);
@@ -34,7 +34,7 @@ const rowDrag_initGridEventFun = function() {
oThis.rowDragFun(e);
}
e.stopPropagation();
// e.stopPropagation();
});

0 comments on commit f6cb5f3

Please sign in to comment.