wargerm 0.7.96 → 0.7.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
|
|
1
1
|
import React, { MutableRefObject } from 'react';
|
2
|
-
import { FormInstance } from 'antd';
|
2
|
+
import { FormInstance, ModalProps } from 'antd';
|
3
3
|
import { WFormProps } from '../WForm';
|
4
4
|
export interface IFormInstance extends MutableRefObject<FormInstance> {
|
5
5
|
handleSubmit?: () => void;
|
6
6
|
resetFields?: () => void;
|
7
7
|
setFieldsValue?: (record?: Record<string, any>) => void;
|
8
8
|
}
|
9
|
-
interface
|
9
|
+
interface Props extends WFormProps {
|
10
10
|
open: boolean;
|
11
11
|
setOpen: (value: any) => void;
|
12
12
|
modalFormOpend?: (value: any) => void;
|
@@ -19,5 +19,5 @@ interface IProps extends WFormProps {
|
|
19
19
|
modalFooterSlot?: React.ReactNode;
|
20
20
|
formProps?: Omit<WFormProps, 'columns'>;
|
21
21
|
}
|
22
|
-
declare const _default: React.ForwardRefExoticComponent<
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<Props & ModalProps & React.RefAttributes<unknown>>;
|
23
23
|
export default _default;
|
@@ -29,7 +29,7 @@ export interface IColumnProps extends ColumnType<Record<string, any>> {
|
|
29
29
|
type GroupType = {
|
30
30
|
title?: string;
|
31
31
|
type: 'group';
|
32
|
-
groupNode?: ReactNode;
|
32
|
+
groupNode?: (children: ReactNode) => ReactNode;
|
33
33
|
children: IColumnProps[];
|
34
34
|
};
|
35
35
|
type Without<T, U> = {
|