react-data-grid-temp
Advanced tools
Comparing version 7.0.0-canary.22.3 to 7.0.0-canary.22.4
@@ -14,21 +14,2 @@ var __assign = (this && this.__assign) || function () { | ||
import { SELECT_COLUMN_KEY } from '../Columns'; | ||
// 修复sort的兼容性问题 | ||
function sort(array, compare) { | ||
for (var i = 1; i < array.length; i += 1) { | ||
var currentIndex = i; | ||
while (currentIndex > 0) { | ||
var nextIndex = currentIndex - 1; | ||
var position = compare(array[currentIndex], array[nextIndex]); | ||
if (position < 0) { | ||
var swap = array[nextIndex]; | ||
array[nextIndex] = array[currentIndex]; | ||
array[currentIndex] = swap; | ||
currentIndex = nextIndex; | ||
} | ||
else { | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
export function getColumnMetrics(metrics) { | ||
@@ -61,3 +42,3 @@ var left = 0; | ||
}); | ||
sort(columns, function (_a, _b) { | ||
columns.sort(function (_a, _b) { | ||
var aKey = _a.key, frozenA = _a.frozen; | ||
@@ -64,0 +45,0 @@ var bKey = _b.key, frozenB = _b.frozen; |
{ | ||
"name": "react-data-grid-temp", | ||
"version": "7.0.0-canary.22.3", | ||
"version": "7.0.0-canary.22.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
350289
125
3011