@kdcloudjs/kdesign 1.6.35 → 1.6.36
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 +23 -0
- package/dist/kdesign-complete.less +11 -2
- package/dist/kdesign.css +13 -2
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +8 -14
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/date-picker/date-panel.js +2 -6
- package/es/date-picker/range-picker.js +1 -3
- package/es/dropdown/dropdown.js +3 -3
- package/es/image-cropper/style/index.css +12 -1
- package/es/image-cropper/style/index.less +11 -2
- package/es/select/select.js +1 -1
- package/lib/date-picker/date-panel.js +2 -6
- package/lib/date-picker/range-picker.js +1 -3
- package/lib/dropdown/dropdown.js +3 -3
- package/lib/image-cropper/style/index.css +12 -1
- package/lib/image-cropper/style/index.less +11 -2
- package/lib/select/select.js +1 -1
- package/package.json +1 -1
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.6.
|
|
3
|
+
* @kdcloudjs/kdesign v1.6.35
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -9455,12 +9455,8 @@ function Panel(props) {
|
|
|
9455
9455
|
setViewDate(date, mergedActivePickerIndex);
|
|
9456
9456
|
};
|
|
9457
9457
|
var onNext = function onNext() {
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
} else {
|
|
9461
|
-
var _date = Object(_utils_date_fns__WEBPACK_IMPORTED_MODULE_18__["addMonths"])(viewDate, 1);
|
|
9462
|
-
setViewDate(_date);
|
|
9463
|
-
}
|
|
9458
|
+
var date = Object(_utils_date_fns__WEBPACK_IMPORTED_MODULE_18__["addMonths"])(viewDate, 1);
|
|
9459
|
+
setViewDate(date, mergedActivePickerIndex);
|
|
9464
9460
|
};
|
|
9465
9461
|
var panel;
|
|
9466
9462
|
var headerProps = {};
|
|
@@ -12587,9 +12583,7 @@ var InternalRangePicker = function InternalRangePicker(props, ref) {
|
|
|
12587
12583
|
innerPicker: innerPicker,
|
|
12588
12584
|
setInnerPicker: setInnerPicker
|
|
12589
12585
|
}
|
|
12590
|
-
},
|
|
12591
|
-
disabledDate: mergedActivePickerIndex === 0 ? disabledStartDate : disabledEndDate
|
|
12592
|
-
})));
|
|
12586
|
+
}, renderPanel());
|
|
12593
12587
|
}
|
|
12594
12588
|
return panels;
|
|
12595
12589
|
};
|
|
@@ -14643,7 +14637,7 @@ var findItem = function findItem(element) {
|
|
|
14643
14637
|
}
|
|
14644
14638
|
};
|
|
14645
14639
|
var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](function (props, ref) {
|
|
14646
|
-
var _menu$props, _menu$props2, _menu$props3, _menu$props4, _menu$props5, _menu$props5$children, _menu$props5$children2, _menu$props6;
|
|
14640
|
+
var _menu$props, _menu$props2, _menu$props3, _menu$props4, _menu$props5, _menu$props5$children, _menu$props5$children2, _menu$props6, _menu$props6$children, _menu$props6$children2, _menu$props7, _menu$props7$children, _menu$props7$children2, _menu$props7$children3, _menu$props8;
|
|
14647
14641
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_11__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
14648
14642
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
14649
14643
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
@@ -14703,8 +14697,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
14703
14697
|
onClick: handleItemClick,
|
|
14704
14698
|
selectable: menuSelectable
|
|
14705
14699
|
});
|
|
14706
|
-
var isItem = react__WEBPACK_IMPORTED_MODULE_11__["Children"].count((_menu$props4 = menu.props) === null || _menu$props4 === void 0 ? void 0 : _menu$props4.children) === 1 && ((_menu$props5 = menu.props) === null || _menu$props5 === void 0 ? void 0 : (_menu$props5$children = _menu$props5.children) === null || _menu$props5$children === void 0 ? void 0 : (_menu$props5$children2 = _menu$props5$children.type) === null || _menu$props5$children2 === void 0 ? void 0 : _menu$props5$children2.displayName) === 'DropdownMenuItem';
|
|
14707
|
-
var menuElement = isMenu ? Array.isArray((_menu$
|
|
14700
|
+
var isItem = react__WEBPACK_IMPORTED_MODULE_11__["Children"].count((_menu$props4 = menu.props) === null || _menu$props4 === void 0 ? void 0 : _menu$props4.children) === 1 && ((_menu$props5 = menu.props) === null || _menu$props5 === void 0 ? void 0 : (_menu$props5$children = _menu$props5.children) === null || _menu$props5$children === void 0 ? void 0 : (_menu$props5$children2 = _menu$props5$children.type) === null || _menu$props5$children2 === void 0 ? void 0 : _menu$props5$children2.displayName) === 'DropdownMenuItem' || Array.isArray((_menu$props6 = menu.props) === null || _menu$props6 === void 0 ? void 0 : (_menu$props6$children = _menu$props6.children) === null || _menu$props6$children === void 0 ? void 0 : (_menu$props6$children2 = _menu$props6$children.props) === null || _menu$props6$children2 === void 0 ? void 0 : _menu$props6$children2.children) || ((_menu$props7 = menu.props) === null || _menu$props7 === void 0 ? void 0 : (_menu$props7$children = _menu$props7.children) === null || _menu$props7$children === void 0 ? void 0 : (_menu$props7$children2 = _menu$props7$children.props) === null || _menu$props7$children2 === void 0 ? void 0 : (_menu$props7$children3 = _menu$props7$children2.children.type) === null || _menu$props7$children3 === void 0 ? void 0 : _menu$props7$children3.displayName) === 'DropdownMenuItem';
|
|
14701
|
+
var menuElement = isMenu ? Array.isArray((_menu$props8 = menu.props) === null || _menu$props8 === void 0 ? void 0 : _menu$props8.children) || isItem ? cloneObj : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["createElement"]("ul", {
|
|
14708
14702
|
className: "".concat(prefixCls, "-menu"),
|
|
14709
14703
|
onClick: handleItemClick,
|
|
14710
14704
|
role: "menu"
|
|
@@ -28025,7 +28019,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
28025
28019
|
defaultVisible: optionShow,
|
|
28026
28020
|
visible: optionShow,
|
|
28027
28021
|
onVisibleChange: handleVisibleChange,
|
|
28028
|
-
clickToClose: !isShowSearch
|
|
28022
|
+
clickToClose: !(isShowSearch && searchValue)
|
|
28029
28023
|
});
|
|
28030
28024
|
return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_27__["default"])(renderSelect(), renderContent(), popperProps);
|
|
28031
28025
|
};
|