@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.
@@ -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 (match = ua.match(/MSIE\s(.*?);/)) {
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 (match = ua.match(/MSIE\s(.*?);/)) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/table",
3
- "version": "1.2.1-canary.5",
3
+ "version": "1.2.1-canary.6",
4
4
  "description": "金蝶 react table 组件",
5
5
  "title": "table",
6
6
  "keywords": [