@kdcloudjs/kdesign 1.7.54 → 1.7.55

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.7.53
3
+ * @kdcloudjs/kdesign v1.7.54
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -19865,12 +19865,25 @@ var Col = function Col(props) {
19865
19865
  var mergedWinWidth = rowGroup.winWidth;
19866
19866
  var gap = rowGroup.gap;
19867
19867
 
19868
- // 浏览器名称
19869
- var isSogouOrIE = Object(_utils_testBrowserType__WEBPACK_IMPORTED_MODULE_17__["testBrowserType"])(/^sogou/i, 0) || /Trident|MSIE/.test(navigator.userAgent);
19868
+ // 判断当前浏览器是否支持row-gap,如果不支持则使用margin负值模拟
19869
+ var notSupportRowGap = function notSupportRowGap() {
19870
+ // 判断是否是搜狗浏览器
19871
+ if (Object(_utils_testBrowserType__WEBPACK_IMPORTED_MODULE_17__["testBrowserType"])(/^sogou/i, 0)) return true;
19872
+
19873
+ // 判断是否是IE浏览器
19874
+ if (/Trident|MSIE/.test(navigator.userAgent)) return true;
19875
+
19876
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于69
19877
+ if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
19878
+ var version = navigator.userAgent.split('Chrome/')[1].split('.');
19879
+ if (version[0] && parseInt(version[0]) <= 69) return true;
19880
+ }
19881
+ return false;
19882
+ };
19870
19883
  var colGapStyle = {
19871
19884
  padding: "0 ".concat(gap.h / 2, "px")
19872
19885
  };
19873
- if (isSogouOrIE && gap.v) colGapStyle.marginBottom = gap.v;
19886
+ if (notSupportRowGap() && gap.v) colGapStyle.marginBottom = gap.v;
19874
19887
 
19875
19888
  // className前缀
19876
19889
  var prefixCls = getPrefixCls(pkgPrefixCls, 'col', customPrefixcls);
@@ -20053,8 +20066,21 @@ var Row = function Row(props) {
20053
20066
  justify = _getCompProps.justify,
20054
20067
  customPrefixcls = _getCompProps.prefixCls;
20055
20068
 
20056
- // 浏览器名称
20057
- var isSogouOrIe = Object(_utils_testBrowserType__WEBPACK_IMPORTED_MODULE_16__["testBrowserType"])(/^sogou/i, 0) || /Trident|MSIE/.test(navigator.userAgent);
20069
+ // 判断当前浏览器是否支持row-gap,如果不支持则使用margin负值模拟
20070
+ var notSupportRowGap = function notSupportRowGap() {
20071
+ // 判断是否是搜狗浏览器
20072
+ if (Object(_utils_testBrowserType__WEBPACK_IMPORTED_MODULE_16__["testBrowserType"])(/^sogou/i, 0)) return true;
20073
+
20074
+ // 判断是否是IE浏览器
20075
+ if (/Trident|MSIE/.test(navigator.userAgent)) return true;
20076
+
20077
+ // 判断是否是chrome浏览器,chrome浏览器版本号小于69
20078
+ if (/Chrome/.test(navigator.userAgent) && !/Chromium/.test(navigator.userAgent)) {
20079
+ var version = navigator.userAgent.split('Chrome/')[1].split('.');
20080
+ if (version[0] && parseInt(version[0]) <= 69) return true;
20081
+ }
20082
+ return false;
20083
+ };
20058
20084
 
20059
20085
  // className前缀
20060
20086
  var prefixCls = getPrefixCls(pkgPrefixCls, 'row', customPrefixcls);
@@ -20090,7 +20116,7 @@ var Row = function Row(props) {
20090
20116
  rowGap: "".concat(gap.v, "px"),
20091
20117
  margin: "0 ".concat(-1 * gap.h / 2, "px")
20092
20118
  };
20093
- if (gap.v && isSogouOrIe) rowStyle.marginBottom = "".concat(-1 * gap.v, "px");
20119
+ if (gap.v && notSupportRowGap()) rowStyle.marginBottom = "".concat(-1 * gap.v, "px");
20094
20120
  var toalign = {
20095
20121
  top: 'flex-start',
20096
20122
  middle: 'center',
@@ -22268,11 +22294,11 @@ var ClearableInput = function ClearableInput(props) {
22268
22294
  return null;
22269
22295
  }
22270
22296
  var needClear = !disabled && value && isMouseEnter;
22271
- var clearIconclasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-textarea-clear-icon"), inputType === ClearableInputType[1]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon"), inputType === ClearableInputType[0]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon-hidden"), !needClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon-rightSpace"), suffix), _classNames));
22297
+ var clearIconCls = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-textarea-clear-icon"), inputType === ClearableInputType[1]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon"), inputType === ClearableInputType[0]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon-hidden"), !needClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-clear-icon-rightSpace"), suffix), _classNames));
22272
22298
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
22273
22299
  onMouseDown: mouseDownHandle,
22274
22300
  onClick: handleReset,
22275
- className: clearIconclasses
22301
+ className: clearIconCls
22276
22302
  }, typeof allowClear === 'boolean' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_4__["Icon"], {
22277
22303
  type: "close-solid"
22278
22304
  }) : allowClear);