@kdcloudjs/kdesign 1.8.33 → 1.8.34
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-complete.less +14 -3
- package/dist/kdesign.css +8 -5
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +10 -16
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/button/group.js +3 -2
- package/es/city-picker/option.js +2 -7
- package/es/date-picker/style/index.css +3 -0
- package/es/date-picker/style/index.less +7 -0
- package/es/modal/modal.js +1 -1
- package/es/modal/style/index.css +4 -0
- package/es/modal/style/index.less +4 -0
- package/es/progress/style/index.css +0 -4
- package/es/progress/style/index.less +3 -3
- package/es/transfer/list.js +6 -7
- package/es/transfer/transfer.js +1 -2
- package/lib/button/group.js +3 -2
- package/lib/city-picker/option.js +2 -7
- package/lib/date-picker/style/index.css +3 -0
- package/lib/date-picker/style/index.less +7 -0
- package/lib/modal/modal.js +1 -1
- package/lib/modal/style/index.css +4 -0
- package/lib/modal/style/index.less +4 -0
- package/lib/progress/style/index.css +0 -4
- package/lib/progress/style/index.less +3 -3
- package/lib/transfer/list.js +6 -7
- package/lib/transfer/transfer.js +1 -2
- package/package.json +1 -1
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.8.
|
|
3
|
+
* @kdcloudjs/kdesign v1.8.34
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -5842,7 +5842,8 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
|
|
|
5842
5842
|
buttonType = buttonGoupProps.buttonType,
|
|
5843
5843
|
disabled = buttonGoupProps.disabled,
|
|
5844
5844
|
onVisibleChange = buttonGoupProps.onVisibleChange,
|
|
5845
|
-
loading = buttonGoupProps.loading
|
|
5845
|
+
loading = buttonGoupProps.loading,
|
|
5846
|
+
placement = buttonGoupProps.placement;
|
|
5846
5847
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_12__["useState"])(false),
|
|
5847
5848
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
|
|
5848
5849
|
optionShow = _useState2[0],
|
|
@@ -5919,7 +5920,7 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
|
|
|
5919
5920
|
onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
|
|
5920
5921
|
};
|
|
5921
5922
|
var popperProps = _objectSpread(_objectSpread({
|
|
5922
|
-
placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
|
|
5923
|
+
placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft'),
|
|
5923
5924
|
trigger: 'click',
|
|
5924
5925
|
gap: 0
|
|
5925
5926
|
}, buttonGoupProps), {}, {
|
|
@@ -8843,8 +8844,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
8843
8844
|
name = _ref.name;
|
|
8844
8845
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
8845
8846
|
getPrefixCls = _useContext.getPrefixCls,
|
|
8846
|
-
prefixCls = _useContext.prefixCls
|
|
8847
|
-
direction = _useContext.direction;
|
|
8847
|
+
prefixCls = _useContext.prefixCls;
|
|
8848
8848
|
var selectOptionPrefixCls = getPrefixCls(prefixCls, 'city-picker-list-item');
|
|
8849
8849
|
var isSelected = id !== undefined ? id === value : false;
|
|
8850
8850
|
var optionCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(selectOptionPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-active"), activeIndex === index), _classNames));
|
|
@@ -8862,11 +8862,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
8862
8862
|
title: name,
|
|
8863
8863
|
onClick: handleClick,
|
|
8864
8864
|
onMouseEnter: handleOnMouseEnter
|
|
8865
|
-
}, typeof itemRender === 'function' ? itemRender(city) :
|
|
8866
|
-
className: "".concat(selectOptionPrefixCls, "-info")
|
|
8867
|
-
}, renderCityInfo === null || renderCityInfo === void 0 ? void 0 : renderCityInfo(city, true)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
8868
|
-
className: "".concat(selectOptionPrefixCls, "-content")
|
|
8869
|
-
}, children)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
8865
|
+
}, typeof itemRender === 'function' ? itemRender(city) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
8870
8866
|
className: "".concat(selectOptionPrefixCls, "-content")
|
|
8871
8867
|
}, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
8872
8868
|
className: "".concat(selectOptionPrefixCls, "-info")
|
|
@@ -27031,7 +27027,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
27031
27027
|
modalContainer = document.body;
|
|
27032
27028
|
}
|
|
27033
27029
|
var _useState3 = Object(react__WEBPACK_IMPORTED_MODULE_6__["useState"])(modalContainer && !overroll ? {
|
|
27034
|
-
x: -(width / 2),
|
|
27030
|
+
x: direction === 'rtl' ? width / 2 : -(width / 2),
|
|
27035
27031
|
y: -(height / 2)
|
|
27036
27032
|
} : {
|
|
27037
27033
|
x: 0,
|
|
@@ -39787,8 +39783,7 @@ var ITransferList = function ITransferList(props, ref) {
|
|
|
39787
39783
|
pagination = props.pagination,
|
|
39788
39784
|
footer = props.footer,
|
|
39789
39785
|
showRemove = props.showRemove,
|
|
39790
|
-
placeholder = props.placeholder
|
|
39791
|
-
rtl = props.rtl;
|
|
39786
|
+
placeholder = props.placeholder;
|
|
39792
39787
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_11__["useState"])(''),
|
|
39793
39788
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_5___default()(_useState, 2),
|
|
39794
39789
|
filterValue = _useState2[0],
|
|
@@ -39891,7 +39886,7 @@ var ITransferList = function ITransferList(props, ref) {
|
|
|
39891
39886
|
if (showRemove) {
|
|
39892
39887
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "".concat(totalCount));
|
|
39893
39888
|
}
|
|
39894
|
-
return
|
|
39889
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_11___default.a.Fragment, null, "(".concat(totalCount, "/").concat(selectedCount, ")"));
|
|
39895
39890
|
};
|
|
39896
39891
|
var getCheckStatus = function getCheckStatus(filteredItems) {
|
|
39897
39892
|
if (checkedKeys.length === 0) {
|
|
@@ -40440,8 +40435,7 @@ var InternalTransfer = function InternalTransfer(props, ref) {
|
|
|
40440
40435
|
pagination: mergedPagination,
|
|
40441
40436
|
noDataContent: handleNoDataContent(noDataContent, 'left'),
|
|
40442
40437
|
footer: footer,
|
|
40443
|
-
ref: leftListRef
|
|
40444
|
-
rtl: direction === 'rtl'
|
|
40438
|
+
ref: leftListRef
|
|
40445
40439
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement(_operation__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
40446
40440
|
className: "".concat(transferPrefixCls, "-operation"),
|
|
40447
40441
|
rightActive: rightActive,
|