@kdcloudjs/kdesign 1.7.68 → 1.7.69
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.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +9 -3
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/radio/radio-button.js +8 -2
- package/lib/radio/radio-button.js +8 -2
- package/package.json +3 -3
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.7.
|
|
3
|
+
* @kdcloudjs/kdesign v1.7.68
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -28446,7 +28446,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28446
28446
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
|
|
28447
28447
|
|
|
28448
28448
|
|
|
28449
|
-
var _excluded = ["prefixCls"];
|
|
28449
|
+
var _excluded = ["prefixCls", "title", "children"];
|
|
28450
28450
|
|
|
28451
28451
|
|
|
28452
28452
|
|
|
@@ -28460,18 +28460,24 @@ var RadioButton = function RadioButton(props, ref) {
|
|
|
28460
28460
|
userDefaultProps = _React$useContext.compDefaultProps;
|
|
28461
28461
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getCompProps"])('Radio', userDefaultProps, props),
|
|
28462
28462
|
customPrefixcls = _getCompProps.prefixCls,
|
|
28463
|
+
title = _getCompProps.title,
|
|
28464
|
+
children = _getCompProps.children,
|
|
28463
28465
|
radioProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getCompProps, _excluded);
|
|
28466
|
+
if (typeof children === 'string' && typeof title === 'undefined') {
|
|
28467
|
+
title = children;
|
|
28468
|
+
}
|
|
28464
28469
|
var radioButtonPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-button", customPrefixcls);
|
|
28465
28470
|
if (radioGroupContext) {
|
|
28466
28471
|
radioProps.checked = props.value === radioGroupContext.value;
|
|
28467
28472
|
radioProps.disabled = props.disabled || radioGroupContext.disabled;
|
|
28468
28473
|
}
|
|
28469
28474
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_radio__WEBPACK_IMPORTED_MODULE_3__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
28475
|
+
title: title,
|
|
28470
28476
|
prefixCls: radioButtonPrefixCls
|
|
28471
28477
|
}, radioProps, {
|
|
28472
28478
|
type: "radio",
|
|
28473
28479
|
ref: ref
|
|
28474
|
-
}));
|
|
28480
|
+
}), children);
|
|
28475
28481
|
};
|
|
28476
28482
|
/* harmony default export */ __webpack_exports__["default"] = (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__["forwardRef"](RadioButton));
|
|
28477
28483
|
|