Skip to content

Commit 6a5ada4

Browse files
Merge pull request #16 from iron-tech-space/changesByMarsel
v 0.0.82
2 parents e27eb38 + 033eafe commit 6a5ada4

File tree

12 files changed

+3604
-3575
lines changed

12 files changed

+3604
-3575
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.0.82
2+
3+
- Fixed update by selected `Table`
4+
- Fixed Modal props
5+
- Fixed Form props
6+
7+
8+
## 0.0.81
9+
10+
- Changes Modal props
11+
12+
13+
114
## 0.0.80
215

316
- Add dashboards with logs

dist/components/Form/FormProps.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface FormProps extends AntFormProps {
3030
* Ссылка на функцию загрузки значений по умолчанию
3131
*
3232
* Пример: `(callBack) => callBack({})` */
33-
loadInitData?: (callBack: (params: any) => void) => void;
33+
loadInitData?: (callBack: (params: any) => void, row?: any) => void;
3434
/** Запрос для автоматического сохранения формы */
3535
requestSaveForm?: Request;
3636
/** HTTP Метод, передаваемый в запрос сохранения */

dist/components/Modal/ModalProps.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { StoreProps } from "../core/wrappers";
22
import { ButtonProps, ModalProps as AntModalProps } from "antd";
33
import { Request } from "../core/interfaces";
44
import { FormProps } from "../Form/FormProps";
5+
import { TooltipProps } from "antd/lib/tooltip";
56
export interface ModalSubscribeOnChangeOptions {
67
/** Значение лежащие в Store по пути subscribe[i].path */
78
value: any;
@@ -19,7 +20,7 @@ export interface ModalSubscribeOnChangeOptions {
1920
interface ModalConfig extends AntModalProps {
2021
type?: 'save' | 'select' | 'view';
2122
/** Запрос для автоматического сохранения формы */
22-
requestSaveForm?: Request | any;
23+
requestSaveForm?: Request | any | Promise<any>;
2324
/** HTTP Метод, передаваемый в запрос сохранения */
2425
methodSaveForm?: string;
2526
/** Пропсы формы.
@@ -34,6 +35,7 @@ export interface ModalProps extends Omit<StoreProps, 'subscribe'> {
3435
*
3536
* Добавлено свойство `label` с типом `ReactNode` или `string` для формирования контента кнопки*/
3637
buttonProps?: ModalButtonProps;
38+
toolTipProps?: TooltipProps;
3739
/** Объект модального окна. Стандартная конфигурация. */
3840
modalConfig?: ModalConfig;
3941
/** Данные для модального окна */

dist/index.es.js

Lines changed: 1131 additions & 1130 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: 1131 additions & 1130 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.

package-lock.json

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

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

src/components/Form/FormProps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface FormProps extends AntFormProps{
3838
* Ссылка на функцию загрузки значений по умолчанию
3939
*
4040
* Пример: `(callBack) => callBack({})` */
41-
loadInitData?: (callBack: (params: any) => void) => void,
41+
loadInitData?: (callBack: (params: any) => void,row?:any) => void ,
4242

4343
/** Запрос для автоматического сохранения формы */
4444
requestSaveForm?: Request;
@@ -55,4 +55,4 @@ export interface FormProps extends AntFormProps{
5555
type?: 'event' | undefined;
5656
extraData?: any;
5757
}
58-
}
58+
}

0 commit comments

Comments
 (0)