@kdcloudjs/kdesign 1.7.53 → 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/CHANGELOG.md +20 -0
- package/dist/kdesign-complete.less +0 -1
- package/dist/kdesign.css +1 -2
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +52 -9
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/city-picker/style/index.css +0 -1
- package/es/city-picker/style/index.less +0 -1
- package/es/grid/col.js +14 -3
- package/es/grid/row.js +14 -3
- package/es/input/ClearableLabeledInput.js +2 -2
- package/es/split-panel/split-panel.js +16 -0
- package/lib/city-picker/style/index.css +0 -1
- package/lib/city-picker/style/index.less +0 -1
- package/lib/grid/col.js +14 -3
- package/lib/grid/row.js +14 -3
- package/lib/input/ClearableLabeledInput.js +2 -2
- package/lib/split-panel/split-panel.js +16 -0
- package/package.json +1 -1
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.7.
|
|
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
|
|
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 (
|
|
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
|
|
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 &&
|
|
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
|
|
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:
|
|
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);
|
|
@@ -32323,6 +32349,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32323
32349
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
|
|
32324
32350
|
/* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
|
|
32325
32351
|
/* harmony import */ var _utils_devwarning__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_utils/devwarning */ "./components/_utils/devwarning.ts");
|
|
32352
|
+
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
|
|
32353
|
+
|
|
32326
32354
|
|
|
32327
32355
|
|
|
32328
32356
|
|
|
@@ -32446,6 +32474,21 @@ var SplitPanel = function SplitPanel(props) {
|
|
|
32446
32474
|
}, [min, max, defaultSplit, getComputedThresholdValue, getComputeOffset]);
|
|
32447
32475
|
Object(react__WEBPACK_IMPORTED_MODULE_5__["useEffect"])(function () {
|
|
32448
32476
|
initPanel();
|
|
32477
|
+
var element = outerWrapper.current;
|
|
32478
|
+
if (!element) {
|
|
32479
|
+
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_11__["default"])(!element && element !== null, 'useResizeMeasure', 'useResizeMeasure指定的元素不存在');
|
|
32480
|
+
return;
|
|
32481
|
+
}
|
|
32482
|
+
var resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_12__["default"](function (entries) {
|
|
32483
|
+
var entry = entries[0];
|
|
32484
|
+
if (entry.contentRect) {
|
|
32485
|
+
initPanel();
|
|
32486
|
+
}
|
|
32487
|
+
});
|
|
32488
|
+
resizeObserver.observe(element);
|
|
32489
|
+
return function () {
|
|
32490
|
+
resizeObserver.disconnect();
|
|
32491
|
+
};
|
|
32449
32492
|
}, [initPanel]);
|
|
32450
32493
|
var handleMove = Object(react__WEBPACK_IMPORTED_MODULE_5__["useCallback"])(function (e) {
|
|
32451
32494
|
// 将鼠标移动距离与offset进行处理
|