@kdcloudjs/kdesign 1.5.11 → 1.6.0
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 +28 -0
- package/dist/kdesign-complete.less +2 -2
- package/dist/kdesign.css +6 -6
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +12 -11
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +3 -3
- package/dist/kdesign.min.js.map +1 -1
- package/es/avatar/style/index.css +4 -4
- package/es/avatar/style/mixin.less +1 -1
- package/es/input/ClearableLabeledInput.d.ts +1 -1
- package/es/input/ClearableLabeledInput.js +3 -3
- package/es/input/TextArea.d.ts +1 -1
- package/es/input/TextArea.js +2 -2
- package/es/input/input.d.ts +1 -1
- package/es/slider/slider.js +1 -1
- package/es/slider/sliderTooltip.js +4 -3
- package/es/steps/Steps.js +0 -1
- package/es/tree/style/index.css +1 -1
- package/es/tree/style/token.less +1 -1
- package/lib/avatar/style/index.css +4 -4
- package/lib/avatar/style/mixin.less +1 -1
- package/lib/input/ClearableLabeledInput.d.ts +1 -1
- package/lib/input/ClearableLabeledInput.js +3 -3
- package/lib/input/TextArea.d.ts +1 -1
- package/lib/input/TextArea.js +2 -2
- package/lib/input/input.d.ts +1 -1
- package/lib/slider/slider.js +1 -1
- package/lib/slider/sliderTooltip.js +4 -3
- package/lib/steps/Steps.js +0 -1
- package/lib/tree/style/index.css +1 -1
- package/lib/tree/style/token.less +1 -1
- package/package.json +2 -2
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.5.
|
|
3
|
+
* @kdcloudjs/kdesign v1.5.11
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -20526,13 +20526,13 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
20526
20526
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
20527
20527
|
onClick: handleReset,
|
|
20528
20528
|
className: clearIconclasses
|
|
20529
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
|
|
20529
|
+
}, typeof allowClear === 'boolean' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_3__["Icon"], {
|
|
20530
20530
|
type: "close"
|
|
20531
|
-
}));
|
|
20531
|
+
}) : allowClear);
|
|
20532
20532
|
};
|
|
20533
20533
|
|
|
20534
20534
|
var renderSuffix = function renderSuffix() {
|
|
20535
|
-
if (suffix || !disabled && allowClear) {
|
|
20535
|
+
if (suffix || !disabled && !!allowClear) {
|
|
20536
20536
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
|
|
20537
20537
|
className: "".concat(prefixCls, "-suffix")
|
|
20538
20538
|
}, renderClearIcon(), suffix);
|
|
@@ -20852,8 +20852,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
20852
20852
|
var textarea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("textarea", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
20853
20853
|
ref: textareaRef,
|
|
20854
20854
|
disabled: disabled,
|
|
20855
|
-
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, textareaStyles, hadCount || allowClear ? otherStyles : style),
|
|
20856
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-allowClear-spacing"), allowClear), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !allowClear && !hadCount)),
|
|
20855
|
+
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
|
|
20856
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !allowClear && !hadCount)),
|
|
20857
20857
|
onChange: handleChange,
|
|
20858
20858
|
onFocus: !disabled ? handleFocus : undefined,
|
|
20859
20859
|
onBlur: !disabled ? handleBlur : undefined,
|
|
@@ -29642,7 +29642,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
|
|
|
29642
29642
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_sliderTooltip__WEBPACK_IMPORTED_MODULE_19__["default"], {
|
|
29643
29643
|
ref: handleRef,
|
|
29644
29644
|
placement: tooltipPlacement,
|
|
29645
|
-
tip: tipFormatter || value,
|
|
29645
|
+
tip: tipFormatter === null || tipFormatter === void 0 ? void 0 : tipFormatter(value),
|
|
29646
29646
|
visible: disabled ? false : tooltipVisible,
|
|
29647
29647
|
prefixCls: sliderPrefixCls,
|
|
29648
29648
|
vertical: vertical,
|
|
@@ -29692,7 +29692,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29692
29692
|
|
|
29693
29693
|
|
|
29694
29694
|
|
|
29695
|
-
var _excluded = ["visible", "prefixCls", "reverse", "vertical", "min", "max", "bound"];
|
|
29695
|
+
var _excluded = ["visible", "prefixCls", "reverse", "vertical", "min", "max", "bound", "tip"];
|
|
29696
29696
|
|
|
29697
29697
|
|
|
29698
29698
|
|
|
@@ -29706,6 +29706,7 @@ var SliderTooltip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.fo
|
|
|
29706
29706
|
min = props.min,
|
|
29707
29707
|
max = props.max,
|
|
29708
29708
|
bound = props.bound,
|
|
29709
|
+
tip = props.tip,
|
|
29709
29710
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(props, _excluded);
|
|
29710
29711
|
|
|
29711
29712
|
var thisTooltipRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
|
|
@@ -29718,8 +29719,8 @@ var SliderTooltip = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.fo
|
|
|
29718
29719
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
29719
29720
|
ref: tooltipRef
|
|
29720
29721
|
}, others, {
|
|
29721
|
-
tip: bound,
|
|
29722
|
-
visible: visible,
|
|
29722
|
+
tip: tip || bound,
|
|
29723
|
+
visible: tip !== null && visible,
|
|
29723
29724
|
placement: placement
|
|
29724
29725
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("div", {
|
|
29725
29726
|
className: sliderHandleClass,
|
|
@@ -31370,7 +31371,6 @@ var Steps = function Steps(props) {
|
|
|
31370
31371
|
}
|
|
31371
31372
|
}
|
|
31372
31373
|
|
|
31373
|
-
childProps.active = stepNumber === current;
|
|
31374
31374
|
return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(child, childProps);
|
|
31375
31375
|
}));
|
|
31376
31376
|
};
|
|
@@ -45713,6 +45713,7 @@ function contextMenu() {
|
|
|
45713
45713
|
}
|
|
45714
45714
|
|
|
45715
45715
|
e.preventDefault();
|
|
45716
|
+
e.stopPropagation();
|
|
45716
45717
|
showContextMenu(e);
|
|
45717
45718
|
};
|
|
45718
45719
|
|