@kdcloudjs/kdesign 1.7.68-stable.2 → 1.7.68-stable.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/es/grid/col.js CHANGED
@@ -47,10 +47,10 @@ var Col = function Col(props) {
47
47
  if (testBrowserType(/^sogou/i, 0)) return true;
48
48
  // 判断是否是IE浏览器
49
49
  if (/Trident|MSIE/.test(navigator.userAgent)) return true;
50
- // 判断是否是chrome浏览器,chrome浏览器版本号小于69
50
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于83(统信浏览器)
51
51
  if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
52
52
  var version = navigator.userAgent.split('Chrome/')[1].split('.');
53
- if (version[0] && parseInt(version[0]) <= 69) return true;
53
+ if (version[0] && parseInt(version[0]) <= 83) return true;
54
54
  }
55
55
  return false;
56
56
  };
package/es/grid/row.js CHANGED
@@ -48,10 +48,10 @@ var Row = function Row(props) {
48
48
  if (testBrowserType(/^sogou/i, 0)) return true;
49
49
  // 判断是否是IE浏览器
50
50
  if (/Trident|MSIE/.test(navigator.userAgent)) return true;
51
- // 判断是否是chrome浏览器,chrome浏览器版本号小于69
51
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于83(统信浏览器)
52
52
  if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
53
53
  var version = navigator.userAgent.split('Chrome/')[1].split('.');
54
- if (version[0] && parseInt(version[0]) <= 69) return true;
54
+ if (version[0] && parseInt(version[0]) <= 83) return true;
55
55
  }
56
56
  return false;
57
57
  };
package/es/modal/modal.js CHANGED
@@ -24,6 +24,7 @@ import devWarning from '../_utils/devwarning';
24
24
  import Draggable from 'react-draggable';
25
25
  import { getLangMsg } from '../locale/locale';
26
26
  import { useHideDocumentScrollBar } from '../_utils/hooks';
27
+ import { isIE } from '../_utils/ieUtil';
27
28
  export var ConfirmModalTypes = ['confirm', 'normal'];
28
29
  export var ModalTypes = tuple('confirm', 'warning', 'error', 'normal');
29
30
  var DragDirection;
@@ -375,7 +376,7 @@ var InternalModal = function InternalModal(props, ref) {
375
376
  }
376
377
  };
377
378
  var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
378
- var modalClasses = classNames(modalPrefixCls, className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container"), true), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
379
+ var modalClasses = classNames(modalPrefixCls, className, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container"), true), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-ie"), isIE), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _defineProperty(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
379
380
  var headerClass = "".concat(modalPrefixCls, "-header");
380
381
  var container = /*#__PURE__*/React.createElement("div", {
381
382
  className: classNames((_classNames4 = {}, _defineProperty(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), _defineProperty(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
@@ -113,6 +113,9 @@
113
113
  position: relative;
114
114
  z-index: var(--kd-c-modal-z-index, var(--kd-g-z-index-dialog, 1050));
115
115
  }
116
+ .kd-modal-container-ie {
117
+ position: absolute;
118
+ }
116
119
  .kd-modal-container-show {
117
120
  -webkit-animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
118
121
  animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
@@ -24,6 +24,10 @@
24
24
  position: relative;
25
25
  z-index: @modal-z-index-dialog;
26
26
 
27
+ &-ie {
28
+ position: absolute;
29
+ }
30
+
27
31
  &-show {
28
32
  animation: kdModalEffect calc(@transition-duration - 0.1s) @ease both;
29
33
  }
@@ -908,10 +908,6 @@ var InternalSelect = function InternalSelect(props, ref) {
908
908
  var _a;
909
909
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
910
910
  },
911
- onBlur: function onBlur() {
912
- var _a;
913
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
914
- },
915
911
  onKeyDown: onInternalKeyDown
916
912
  }, !isMultiple ? renderSingle() : renderMultiple()));
917
913
  };
@@ -573,17 +573,17 @@
573
573
  -ms-user-select: none;
574
574
  user-select: none;
575
575
  }
576
- .kd-select .kd-select-selection-item-small {
576
+ .kd-select .kd-select-selection-item.kd-select-selection-item-small {
577
577
  height: 20px;
578
578
  line-height: 18px;
579
579
  font-size: 12px;
580
580
  }
581
- .kd-select .kd-select-selection-item-middle {
581
+ .kd-select .kd-select-selection-item.kd-select-selection-item-middle {
582
582
  font-size: 12px;
583
583
  height: 20px;
584
584
  line-height: 18px;
585
585
  }
586
- .kd-select .kd-select-selection-item-large {
586
+ .kd-select .kd-select-selection-item.kd-select-selection-item-large {
587
587
  font-size: 14px;
588
588
  line-height: 22px;
589
589
  height: 22px;
@@ -311,19 +311,19 @@
311
311
  max-width: 100%;
312
312
  cursor: default;
313
313
  user-select: none;
314
- &-small {
314
+ &.@{select-prefix-cls}-selection-item-small {
315
315
  height: 20px;
316
316
  line-height: 18px;
317
317
  font-size: 12px;
318
318
  }
319
319
 
320
- &-middle {
320
+ &.@{select-prefix-cls}-selection-item-middle {
321
321
  font-size: 12px;
322
322
  height: 20px;
323
323
  line-height: 18px;
324
324
  }
325
325
 
326
- &-large {
326
+ &.@{select-prefix-cls}-selection-item-large {
327
327
  font-size: 14px;
328
328
  line-height: 22px;
329
329
  height: 22px;
package/lib/grid/col.js CHANGED
@@ -59,10 +59,10 @@ var Col = function Col(props) {
59
59
  if ((0, _testBrowserType.testBrowserType)(/^sogou/i, 0)) return true;
60
60
  // 判断是否是IE浏览器
61
61
  if (/Trident|MSIE/.test(navigator.userAgent)) return true;
62
- // 判断是否是chrome浏览器,chrome浏览器版本号小于69
62
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于83(统信浏览器)
63
63
  if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
64
64
  var version = navigator.userAgent.split('Chrome/')[1].split('.');
65
- if (version[0] && parseInt(version[0]) <= 69) return true;
65
+ if (version[0] && parseInt(version[0]) <= 83) return true;
66
66
  }
67
67
  return false;
68
68
  };
package/lib/grid/row.js CHANGED
@@ -61,10 +61,10 @@ var Row = function Row(props) {
61
61
  if ((0, _testBrowserType.testBrowserType)(/^sogou/i, 0)) return true;
62
62
  // 判断是否是IE浏览器
63
63
  if (/Trident|MSIE/.test(navigator.userAgent)) return true;
64
- // 判断是否是chrome浏览器,chrome浏览器版本号小于69
64
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于83(统信浏览器)
65
65
  if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
66
66
  var version = navigator.userAgent.split('Chrome/')[1].split('.');
67
- if (version[0] && parseInt(version[0]) <= 69) return true;
67
+ if (version[0] && parseInt(version[0]) <= 83) return true;
68
68
  }
69
69
  return false;
70
70
  };
@@ -26,6 +26,7 @@ var _devwarning = _interopRequireDefault(require("../_utils/devwarning"));
26
26
  var _reactDraggable = _interopRequireDefault(require("react-draggable"));
27
27
  var _locale = require("../locale/locale");
28
28
  var _hooks = require("../_utils/hooks");
29
+ var _ieUtil = require("../_utils/ieUtil");
29
30
  function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
30
31
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
31
32
  var __rest = void 0 && (void 0).__rest || function (s, e) {
@@ -389,7 +390,7 @@ var InternalModal = function InternalModal(props, ref) {
389
390
  }
390
391
  };
391
392
  var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
392
- var modalClasses = (0, _classnames.default)(modalPrefixCls, className, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container"), true), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
393
+ var modalClasses = (0, _classnames.default)(modalPrefixCls, className, (_classNames3 = {}, (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container"), true), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-ie"), _ieUtil.isIE), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), (0, _defineProperty2.default)(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
393
394
  var headerClass = "".concat(modalPrefixCls, "-header");
394
395
  var container = /*#__PURE__*/_react.default.createElement("div", {
395
396
  className: (0, _classnames.default)((_classNames4 = {}, (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), (0, _defineProperty2.default)(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
@@ -113,6 +113,9 @@
113
113
  position: relative;
114
114
  z-index: var(--kd-c-modal-z-index, var(--kd-g-z-index-dialog, 1050));
115
115
  }
116
+ .kd-modal-container-ie {
117
+ position: absolute;
118
+ }
116
119
  .kd-modal-container-show {
117
120
  -webkit-animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
118
121
  animation: kdModalEffect calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1) both;
@@ -24,6 +24,10 @@
24
24
  position: relative;
25
25
  z-index: @modal-z-index-dialog;
26
26
 
27
+ &-ie {
28
+ position: absolute;
29
+ }
30
+
27
31
  &-show {
28
32
  animation: kdModalEffect calc(@transition-duration - 0.1s) @ease both;
29
33
  }
@@ -920,10 +920,6 @@ var InternalSelect = function InternalSelect(props, ref) {
920
920
  var _a;
921
921
  return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.focus();
922
922
  },
923
- onBlur: function onBlur() {
924
- var _a;
925
- return (_a = searchRef.current) === null || _a === void 0 ? void 0 : _a.blur();
926
- },
927
923
  onKeyDown: onInternalKeyDown
928
924
  }, !isMultiple ? renderSingle() : renderMultiple()));
929
925
  };
@@ -573,17 +573,17 @@
573
573
  -ms-user-select: none;
574
574
  user-select: none;
575
575
  }
576
- .kd-select .kd-select-selection-item-small {
576
+ .kd-select .kd-select-selection-item.kd-select-selection-item-small {
577
577
  height: 20px;
578
578
  line-height: 18px;
579
579
  font-size: 12px;
580
580
  }
581
- .kd-select .kd-select-selection-item-middle {
581
+ .kd-select .kd-select-selection-item.kd-select-selection-item-middle {
582
582
  font-size: 12px;
583
583
  height: 20px;
584
584
  line-height: 18px;
585
585
  }
586
- .kd-select .kd-select-selection-item-large {
586
+ .kd-select .kd-select-selection-item.kd-select-selection-item-large {
587
587
  font-size: 14px;
588
588
  line-height: 22px;
589
589
  height: 22px;
@@ -311,19 +311,19 @@
311
311
  max-width: 100%;
312
312
  cursor: default;
313
313
  user-select: none;
314
- &-small {
314
+ &.@{select-prefix-cls}-selection-item-small {
315
315
  height: 20px;
316
316
  line-height: 18px;
317
317
  font-size: 12px;
318
318
  }
319
319
 
320
- &-middle {
320
+ &.@{select-prefix-cls}-selection-item-middle {
321
321
  font-size: 12px;
322
322
  height: 20px;
323
323
  line-height: 18px;
324
324
  }
325
325
 
326
- &-large {
326
+ &.@{select-prefix-cls}-selection-item-large {
327
327
  font-size: 14px;
328
328
  line-height: 22px;
329
329
  height: 22px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.68-stable.2",
3
+ "version": "1.7.68-stable.4",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [