Skip to content

Commit 90c7a11

Browse files
Merge pull request #7 from iron-tech-space/editable_table
Fix bug withItem props
2 parents d00d2ff + 23e7200 commit 90c7a11

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.75
2+
3+
- Fix bug withItem props
4+
15
## 0.0.74
26

37
- Fix bug with reload component after change store

dist/index.es.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/components/core/wrappers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ export const withStore = (Component: React.ComponentType<any>) => {
5858
}
5959

6060
export const withItem = (Component: React.ComponentType<any>) => (props: any) => {
61-
const {itemProps, ...rest} = props;
61+
const {itemProps} = props;
6262
// console.log('withItems ', props)
6363
return render(AntForm.Item)({
6464
...itemProps,
6565
noStyle: !(itemProps && itemProps.label),
66-
children: render(Component)(rest)
66+
children: render(Component)(props)
6767
})
6868
}
6969

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rt-design",
3-
"version": "0.0.74",
3+
"version": "0.0.75",
44
"description": "React technical design library",
55
"author": "Iron tech space",
66
"license": "MIT",

src/components/core/wrappers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ export const withStore = (Component: React.ComponentType<any>) => {
5858
}
5959

6060
export const withItem = (Component: React.ComponentType<any>) => (props: any) => {
61-
const {itemProps, ...rest} = props;
61+
const {itemProps} = props;
6262
// console.log('withItems ', props)
6363
return render(AntForm.Item)({
6464
...itemProps,
6565
noStyle: !(itemProps && itemProps.label),
66-
children: render(Component)(rest)
66+
children: render(Component)(props)
6767
})
6868
}
6969

0 commit comments

Comments
 (0)