Skip to content

Commit 1bdfdde

Browse files
Add _setLoadedRowsHandler in Table for call onChange after load data, Add dispatch onRowClick
1 parent 4f7ea59 commit 1bdfdde

File tree

11 files changed

+51
-31495
lines changed

11 files changed

+51
-31495
lines changed

.idea/shelf/Uncommitted_changes_before_Update_at_18_03_2021,_20_41_[Default_Changelist]/shelved.patch

Lines changed: 0 additions & 31436 deletions
This file was deleted.

.idea/shelf/Uncommitted_changes_before_Update_at_18_03_2021__20_41__Default_Changelist_.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.63
2+
3+
- Add `_setLoadedRowsHandler` in `Table` for call `onChange` after load data
4+
- Add dispatch `onRowClick`
5+
16
## 0.0.62
27

38
- Add support children for `Custom` component

dist/index.es.js

Lines changed: 13 additions & 15 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: 13 additions & 15 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/Base/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import moment from "moment";
1515
import { getISO, toFormat } from "../utils/datesUtils";
1616
import { withStore } from "./withStore";
1717
import { rtPrefix } from "../utils/variables";
18-
import { renderClassic, renderClassicWithLabel } from "../declarative";
18+
import { renderFormItemComponent, renderClassicWithLabel } from "../declarative";
1919

2020
/** Компонент выбора даты */
2121
var DatePicker = function DatePicker(props) {
@@ -77,7 +77,7 @@ var Custom = function Custom(props) {
7777
// console.log('childNode = props.render')
7878
childNode = props.render;
7979
childProps = _extends({}, props, { componentType: 'Custom' });
80-
return renderClassic(childNode)(childProps);
80+
return renderFormItemComponent(childNode)(childProps);
8181
} else if (React.isValidElement(children)) {
8282
// console.log('childNode = children')
8383
childProps = _extends({}, children.props, props, { componentType: 'Custom' });

lib/components/declarative.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export var renderDeclarative = function renderDeclarative(Component) {
109109
};
110110
};
111111

112-
var renderFormItemComponent = function renderFormItemComponent(Component) {
112+
export var renderFormItemComponent = function renderFormItemComponent(Component) {
113113
return function (props) {
114114
var componentProps = getObjectExcludedProps(props, ['itemProps']);
115115
return renderDeclarative(_Form.Item)(_extends({}, props.itemProps, { noStyle: !(props.itemProps && props.itemProps.label) }))(renderClassic(Component)(componentProps));

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.62",
3+
"version": "0.0.63",
44
"description": "React technical design library",
55
"author": "Iron tech space",
66
"license": "MIT",

0 commit comments

Comments
 (0)