bi-eleme 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13507,22 +13507,28 @@ var convertToRows = function convertToRows(originColumns) {
13507
13507
  }, 16);
13508
13508
  },
13509
13509
  handleHeaderClick: function handleHeaderClick(event, column) {
13510
- if (!column.filters && column.sortable) {
13511
- this.handleSortClick(event, column);
13512
- } else if (column.filterable && !column.sortable) {
13513
- this.handleFilterClick(event, column);
13514
- }
13510
+ var _this3 = this;
13515
13511
 
13516
- this.$parent.$emit('header-click', column, event);
13512
+ clearTimeout(this.clickTimer);
13513
+ this.clickTimer = setTimeout(function () {
13514
+ if (!column.filters && column.sortable) {
13515
+ _this3.handleSortClick(event, column);
13516
+ } else if (column.filterable && !column.sortable) {
13517
+ _this3.handleFilterClick(event, column);
13518
+ }
13519
+ _this3.$parent.$emit('header-click', column, event);
13520
+ }, 400);
13517
13521
  },
13518
13522
  handleHeaderDblclick: function handleHeaderDblclick(event, column) {
13523
+ // event.stopPropagation()
13524
+ clearTimeout(this.clickTimer);
13519
13525
  this.$parent.$emit('header-dblclick', column, event);
13520
13526
  },
13521
13527
  handleHeaderContextMenu: function handleHeaderContextMenu(event, column) {
13522
13528
  this.$parent.$emit('header-contextmenu', column, event);
13523
13529
  },
13524
13530
  handleMouseDown: function handleMouseDown(event, column) {
13525
- var _this3 = this;
13531
+ var _this4 = this;
13526
13532
 
13527
13533
  if (this.$isServer) return;
13528
13534
  if (column.children && column.children.length > 0) return;
@@ -13559,15 +13565,15 @@ var convertToRows = function convertToRows(originColumns) {
13559
13565
  };
13560
13566
 
13561
13567
  var handleMouseMove = function handleMouseMove(event) {
13562
- var deltaLeft = event.clientX - _this3.dragState.startMouseLeft;
13563
- var proxyLeft = _this3.dragState.startLeft + deltaLeft;
13568
+ var deltaLeft = event.clientX - _this4.dragState.startMouseLeft;
13569
+ var proxyLeft = _this4.dragState.startLeft + deltaLeft;
13564
13570
 
13565
13571
  resizeProxy.style.left = Math.max(minLeft, proxyLeft) + 'px';
13566
13572
  };
13567
13573
 
13568
13574
  var handleMouseUp = function handleMouseUp() {
13569
- if (_this3.dragging) {
13570
- var _dragState = _this3.dragState,
13575
+ if (_this4.dragging) {
13576
+ var _dragState = _this4.dragState,
13571
13577
  startColumnLeft = _dragState.startColumnLeft,
13572
13578
  startLeft = _dragState.startLeft;
13573
13579
 
@@ -13576,12 +13582,12 @@ var convertToRows = function convertToRows(originColumns) {
13576
13582
  column.width = column.realWidth = columnWidth;
13577
13583
  table.$emit('header-dragend', column.width, startLeft - startColumnLeft, column, event);
13578
13584
 
13579
- _this3.store.scheduleLayout();
13585
+ _this4.store.scheduleLayout();
13580
13586
 
13581
13587
  document.body.style.cursor = '';
13582
- _this3.dragging = false;
13583
- _this3.draggingColumn = null;
13584
- _this3.dragState = {};
13588
+ _this4.dragging = false;
13589
+ _this4.draggingColumn = null;
13590
+ _this4.dragState = {};
13585
13591
 
13586
13592
  table.resizeProxyVisible = false;
13587
13593
  }
@@ -13688,7 +13694,8 @@ var convertToRows = function convertToRows(originColumns) {
13688
13694
  return {
13689
13695
  draggingColumn: null,
13690
13696
  dragging: false,
13691
- dragState: {}
13697
+ dragState: {},
13698
+ clickTimer: null
13692
13699
  };
13693
13700
  }
13694
13701
  });
@@ -44485,7 +44492,7 @@ if (typeof window !== 'undefined' && window.Vue) {
44485
44492
  }
44486
44493
 
44487
44494
  /* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
44488
- version: '2.1.0',
44495
+ version: '2.1.1',
44489
44496
  locale: lib_locale_default.a.use,
44490
44497
  i18n: lib_locale_default.a.i18n,
44491
44498
  install: src_install,