Skip to content

Commit 2cfac46

Browse files
Merge pull request #9 from iron-tech-space/editable_table
Fix bugs with table configs and footer
2 parents 28d3370 + 53cb9a2 commit 2cfac46

File tree

24 files changed

+189
-68
lines changed

24 files changed

+189
-68
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.0.77
2+
3+
- Fix Ant Table two load configs
4+
- Fix two dispatch in Table
5+
- Fix Ant Table footer height
6+
17
## 0.0.76
28

39
- Fix bugs with types

dist/index.es.js

Lines changed: 14 additions & 12 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: 14 additions & 12 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/Custom/Custom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface CustomProps extends StoreProps{
77
render?: React.FunctionComponent;
88

99
/** Возможен только 1 ребенок для рендоракомпонеента */
10-
children?: ReactNode;
10+
children?: ReactNode | undefined;
1111
}
1212

1313
/** Custom компонент */

lib/components/Form/FormProps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface FormProps extends AntFormProps{
4545
/** Параметры записи в store изменений всех полей формы */
4646
dispatch?: {
4747
path: string;
48+
type?: 'event' | undefined;
4849
extraData?: any;
4950
}
5051
}

lib/components/Layout/Layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { StoreProps } from "../core/wrappers";
55
export interface LayoutProps extends StoreProps{
66
/** Имя CSS класса */
77
className?: string | undefined;
8-
children?: ReactNode[];
8+
style?: object | undefined;
9+
children?: ReactNode | undefined;
910
}
1011

1112
/** Компонент обертка со всеми пропрами div */

lib/components/Modal/ModalProps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ButtonProps, ModalProps as AntModalProps } from "antd";
33
import { Request } from "../core/interfaces";
44
import { FormProps } from "../Form/FormProps";
55

6-
export interface ModalOnChangeOptions {
6+
export interface ModalSubscribeOnChangeOptions {
77
/** Значение лежащие в Store по пути subscribe[i].path */
88
value: any;
99
/** Значение доп данных в Store по пути subscribe[i].extraData */
@@ -62,6 +62,6 @@ export interface ModalProps extends Omit<StoreProps, 'subscribe'> {
6262
* По умолчанию false */
6363
withMount?: boolean;
6464
/** Вызывается при изменение объекта по указанному path */
65-
onChange: (params: ModalOnChangeOptions) => void;
65+
onChange: (params: ModalSubscribeOnChangeOptions) => void;
6666
}[]
6767
}

lib/components/Modal/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import Modal from "./Modal";
22

3-
export type {ModalProps} from './ModalProps'
3+
export type {ModalProps, ModalSubscribeOnChangeOptions} from './ModalProps'
44
export default Modal;

0 commit comments

Comments
 (0)