@kdcloudjs/kdesign 1.6.2 → 1.6.4

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.
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.6.1
3
+ * @kdcloudjs/kdesign v1.6.3
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -44695,6 +44695,10 @@ __webpack_require__.r(__webpack_exports__);
44695
44695
  var stateKey = 'columnDrag';
44696
44696
  var SCROLL_SIZE = 30;
44697
44697
 
44698
+ function disableSelect(event) {
44699
+ event.preventDefault();
44700
+ }
44701
+
44698
44702
  function sortColumns(columns, sort) {
44699
44703
  var res = new Array(columns.length);
44700
44704
 
@@ -44751,7 +44755,9 @@ function columnDrag() {
44751
44755
  onMouseDown: !isLeaf || path.length > 1 ? undefined : function (e) {
44752
44756
  if (e.button !== 0) {
44753
44757
  return;
44754
- } // const cx = e.clientX
44758
+ }
44759
+
44760
+ window.addEventListener('selectstart', disableSelect); // const cx = e.clientX
44755
44761
  // const width = col.width
44756
44762
  // const a = startIndex
44757
44763
  // const b = endIndex
@@ -44760,7 +44766,6 @@ function columnDrag() {
44760
44766
  // let newStartIndex = startIndex
44761
44767
  // let endIdx = endIndex
44762
44768
 
44763
-
44764
44769
  var columnMoved = false;
44765
44770
  var columns = pipeline.getColumns();
44766
44771
 
@@ -44933,6 +44938,7 @@ function columnDrag() {
44933
44938
  e.stopPropagation();
44934
44939
  document.body.removeEventListener('mousemove', handleMouseMove);
44935
44940
  document.body.removeEventListener('mouseup', handleMouseUp);
44941
+ window.removeEventListener('selectstart', disableSelect);
44936
44942
  window.requestAnimationFrame(function () {
44937
44943
  // 取消阻止列头点击事件
44938
44944
  currentTarget.removeEventListener('click', stopClickPropagation);
@@ -45018,10 +45024,6 @@ function columnDrag() {
45018
45024
 
45019
45025
  document.body.addEventListener('mousemove', handleMouseMove);
45020
45026
  document.body.addEventListener('mouseup', handleMouseUp);
45021
-
45022
- document.body.onselectstart = function () {
45023
- return false;
45024
- };
45025
45027
  },
45026
45028
  style: style
45027
45029
  })