@kdcloudjs/table 1.2.1-canary.5 → 1.2.1-canary.6
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/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +8 -5
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +2 -2
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/pipeline/features/rangeSelection.js +1 -2
- package/es/table/utils/browserType.js +5 -1
- package/lib/table/pipeline/features/rangeSelection.js +1 -2
- package/lib/table/utils/browserType.js +5 -1
- package/package.json +1 -1
|
@@ -216,8 +216,7 @@ export function rangeSelection(opts) {
|
|
|
216
216
|
pipeline.addTableProps({
|
|
217
217
|
onMouseDown: onMouseDown,
|
|
218
218
|
onKeyDown: onKeyDown,
|
|
219
|
-
tabIndex: -1
|
|
220
|
-
className: cx([Classes.rangeSelection])
|
|
219
|
+
tabIndex: -1
|
|
221
220
|
}); // todo: 后面可以把mousedown放到一个流里面
|
|
222
221
|
|
|
223
222
|
return pipeline.mapColumns(makeRecursiveMapper(function (col) {
|
|
@@ -52,7 +52,11 @@ function getBrowserData() {
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
if (!browser.name) {
|
|
55
|
-
if (
|
|
55
|
+
if (/Trident\/(\d+)/.test(ua)) {
|
|
56
|
+
browser.name = 'IE';
|
|
57
|
+
match = ua.match(/Trident.*rv:([\d.]+)/) || [];
|
|
58
|
+
browser.version = match[1];
|
|
59
|
+
} else if (match = ua.match(/MSIE\s(.*?);/)) {
|
|
56
60
|
browser.name = 'IE';
|
|
57
61
|
browser.version = match[1];
|
|
58
62
|
}
|
|
@@ -247,8 +247,7 @@ function rangeSelection(opts) {
|
|
|
247
247
|
pipeline.addTableProps({
|
|
248
248
|
onMouseDown: onMouseDown,
|
|
249
249
|
onKeyDown: onKeyDown,
|
|
250
|
-
tabIndex: -1
|
|
251
|
-
className: (0, _classnames.default)([_styles.Classes.rangeSelection])
|
|
250
|
+
tabIndex: -1
|
|
252
251
|
}); // todo: 后面可以把mousedown放到一个流里面
|
|
253
252
|
|
|
254
253
|
return pipeline.mapColumns((0, _utils.makeRecursiveMapper)(function (col) {
|
|
@@ -60,7 +60,11 @@ function getBrowserData() {
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
if (!browser.name) {
|
|
63
|
-
if (
|
|
63
|
+
if (/Trident\/(\d+)/.test(ua)) {
|
|
64
|
+
browser.name = 'IE';
|
|
65
|
+
match = ua.match(/Trident.*rv:([\d.]+)/) || [];
|
|
66
|
+
browser.version = match[1];
|
|
67
|
+
} else if (match = ua.match(/MSIE\s(.*?);/)) {
|
|
64
68
|
browser.name = 'IE';
|
|
65
69
|
browser.version = match[1];
|
|
66
70
|
}
|