@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/es/radio/radio-button.js
CHANGED
|
@@ -21,17 +21,23 @@ var RadioButton = function RadioButton(props, ref) {
|
|
|
21
21
|
userDefaultProps = _React$useContext.compDefaultProps;
|
|
22
22
|
var _a = getCompProps('Radio', userDefaultProps, props),
|
|
23
23
|
customPrefixcls = _a.prefixCls,
|
|
24
|
-
|
|
24
|
+
title = _a.title,
|
|
25
|
+
children = _a.children,
|
|
26
|
+
radioProps = __rest(_a, ["prefixCls", "title", "children"]);
|
|
27
|
+
if (typeof children === 'string' && typeof title === 'undefined') {
|
|
28
|
+
title = children;
|
|
29
|
+
}
|
|
25
30
|
var radioButtonPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-button", customPrefixcls);
|
|
26
31
|
if (radioGroupContext) {
|
|
27
32
|
radioProps.checked = props.value === radioGroupContext.value;
|
|
28
33
|
radioProps.disabled = props.disabled || radioGroupContext.disabled;
|
|
29
34
|
}
|
|
30
35
|
return /*#__PURE__*/React.createElement(Radio, _extends({
|
|
36
|
+
title: title,
|
|
31
37
|
prefixCls: radioButtonPrefixCls
|
|
32
38
|
}, radioProps, {
|
|
33
39
|
type: "radio",
|
|
34
40
|
ref: ref
|
|
35
|
-
}));
|
|
41
|
+
}), children);
|
|
36
42
|
};
|
|
37
43
|
export default /*#__PURE__*/React.forwardRef(RadioButton);
|
|
@@ -33,18 +33,24 @@ var RadioButton = function RadioButton(props, ref) {
|
|
|
33
33
|
userDefaultProps = _React$useContext.compDefaultProps;
|
|
34
34
|
var _a = (0, _utils.getCompProps)('Radio', userDefaultProps, props),
|
|
35
35
|
customPrefixcls = _a.prefixCls,
|
|
36
|
-
|
|
36
|
+
title = _a.title,
|
|
37
|
+
children = _a.children,
|
|
38
|
+
radioProps = __rest(_a, ["prefixCls", "title", "children"]);
|
|
39
|
+
if (typeof children === 'string' && typeof title === 'undefined') {
|
|
40
|
+
title = children;
|
|
41
|
+
}
|
|
37
42
|
var radioButtonPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-button", customPrefixcls);
|
|
38
43
|
if (radioGroupContext) {
|
|
39
44
|
radioProps.checked = props.value === radioGroupContext.value;
|
|
40
45
|
radioProps.disabled = props.disabled || radioGroupContext.disabled;
|
|
41
46
|
}
|
|
42
47
|
return /*#__PURE__*/React.createElement(_radio.default, (0, _extends2.default)({
|
|
48
|
+
title: title,
|
|
43
49
|
prefixCls: radioButtonPrefixCls
|
|
44
50
|
}, radioProps, {
|
|
45
51
|
type: "radio",
|
|
46
52
|
ref: ref
|
|
47
|
-
}));
|
|
53
|
+
}), children);
|
|
48
54
|
};
|
|
49
55
|
var _default = /*#__PURE__*/React.forwardRef(RadioButton);
|
|
50
56
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kdcloudjs/kdesign",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.69",
|
|
4
4
|
"description": "KDesign 金蝶前端react 组件库",
|
|
5
5
|
"title": "kdesign",
|
|
6
6
|
"keywords": [
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"homepage": "https://react.kingdee.design/",
|
|
18
18
|
"bugs": {
|
|
19
|
-
"url": "https://github.com/
|
|
19
|
+
"url": "https://github.com/kingdee/kdesign/issues"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
|
23
|
-
"url": "git@github.com:
|
|
23
|
+
"url": "git@github.com:kingdee/kdesign.git"
|
|
24
24
|
},
|
|
25
25
|
"contributors": [
|
|
26
26
|
"kdesign"
|