Skip to content

Commit d4d9741

Browse files
authored
Merge pull request #494 from kne-union/release
Release
2 parents 4b4631a + e3bbe5b commit d4d9741

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kne-components/components-core",
3-
"version": "0.4.10",
3+
"version": "0.4.11",
44
"files": [
55
"build"
66
],
@@ -28,10 +28,10 @@
2828
"@kne/phone-number-input": "^0.1.2",
2929
"@kne/react-enum": "^0.1.10",
3030
"@kne/react-fetch": "^1.5.5",
31-
"@kne/react-file": "^0.1.21",
31+
"@kne/react-file": "^0.1.23",
3232
"@kne/react-file-type": "^1.0.5",
3333
"@kne/react-form-antd": "^4.0.3",
34-
"@kne/react-form-plus": "^0.1.1",
34+
"@kne/react-form-plus": "^0.1.2",
3535
"@kne/react-icon": "^0.1.3",
3636
"@kne/react-intl": "^0.1.6",
3737
"@kne/react-text-escape": "^0.1.4",

src/components/Drawer/Drawer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const computedCommonProps = ({
158158
icon: null,
159159
title: null,
160160
maskClosable: props.hasOwnProperty("maskClosable") ? props.maskClosable : false,
161-
destroyOnClose: true,
161+
destroyOnHidden: true,
162162
footer: null,
163163
closable: false,
164164
onCancel: onClose,

src/components/FormInfo/List.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ const List = createWithIntl({moduleName: "FormInfo", importMessages})(({
2121
...props
2222
}) => {
2323
const {formatMessage} = useIntl({moduleName: "FormInfo"});
24-
return <SubList {...props} listRender={({list, title, id, allowRemove, onRemove}) => {
24+
return <SubList {...props} listRender={({list, title, id, allowRemove, onRemove, ...others}) => {
2525
return <div key={id} className={classnames(style["list-item"], {
2626
[style["is-important"]]: important,
2727
})}>
28-
<FormInfo title={title} list={list} className={style["list-item-part"]} gap={16}
28+
<FormInfo {...others} title={title} list={list} className={style["list-item-part"]} gap={16}
2929
extra={<FormattedMessage id="delText" moduleName="FormInfo">
3030
{(text) => allowRemove ? (<ConfirmButton
3131
danger
@@ -47,7 +47,11 @@ const List = createWithIntl({moduleName: "FormInfo", importMessages})(({
4747
</div>
4848
}}>{(children, {allowAdd, onAdd}) => {
4949
return cloneElement(outer, {
50-
title, addText, className: classnames(className, style["list-part"]), allowAdd, add: ()=>onAdd({isUnshift:false}),
50+
title,
51+
addText,
52+
className: classnames(className, style["list-part"]),
53+
allowAdd,
54+
add: () => onAdd({isUnshift: false}),
5155
}, renderChildren(children));
5256
}}</SubList>
5357
});

src/components/FormInfo/computedModalCommonProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const computedCommonProps = ({
1414
formProps,
1515
cancelText,
1616
saveText,
17-
autoClose,
17+
autoClose = true,
1818
...modalProps
1919
}) => {
2020
return {

src/components/Layout/Layout.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const Layout = ({className, children, theme, navigation = {}}) => {
5050
scrollEl.removeEventListener("scroll", handlerScroll);
5151
};
5252
}, []);
53-
console.log("navigation------", navigation)
5453
return (
5554
<AntdLayout
5655
className={classnames(style["layout"], className, 'core-layout')}

src/components/Modal/Modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ const computedCommonProps = ({
224224
centered: true,
225225
title: null,
226226
maskClosable: props.hasOwnProperty("maskClosable") ? props.maskClosable : false,
227-
destroyOnClose: true,
227+
destroyOnHidden: true,
228228
footer: null,
229229
closable: false,
230230
onCancel: onClose,

src/components/Modal/style.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
}
136136

137137
.modal-body {
138-
--modal-height: calc(100vh - 60px);
138+
--modal-height: calc(100vh - 120px);
139139
max-height: var(--modal-height);
140140
min-height: var(--min-modal-height);
141141

0 commit comments

Comments
 (0)