hlyc-web-pack 4.0.0-beta.1 → 4.0.0-beta.2
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.
- package/lib/GenerateForm/index.d.ts +10 -9
- package/lib/GenerateTable/EditableCell/index.d.ts +19 -12
- package/lib/GenerateTable/ResizableTitle/index.d.ts +2 -2
- package/lib/GenerateTable/index.d.ts +1 -1
- package/lib/LayoutFormModal/index.d.ts +1 -1
- package/lib/LayoutTableModal/index.d.ts +15 -1
- package/lib/index.cjs.js +11 -23
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +11 -23
- package/lib/index.esm.js.map +1 -1
- package/package.json +9 -2
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RadioChangeEvent, InputNumberProps, AutoCompleteProps, InputProps } from 'antd';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { RowProps } from 'antd/es/row';
|
|
4
|
+
import { ColProps } from 'antd/es/col';
|
|
5
|
+
import { FormProps, Rule, FormItemProps, FormInstance } from 'antd/es/form';
|
|
6
6
|
import type { RangePickerProps, DatePickerProps } from 'antd/es/date-picker';
|
|
7
7
|
import type { PickerProps } from 'antd/es/date-picker/generatePicker';
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { TimePickerProps } from 'antd/es/time-picker';
|
|
9
|
+
import { RateProps } from 'antd/es/rate';
|
|
10
|
+
import { TreeSelectProps } from 'antd/es/tree-select';
|
|
11
|
+
import { TimeRangePickerProps } from 'antd/es/time-picker';
|
|
12
|
+
import { SelectProps } from 'antd/es/select';
|
|
13
|
+
import { AnyObjectType, SelectType } from '../brother/typings';
|
|
14
|
+
import './index.less';
|
|
11
15
|
export type NamePath = any;
|
|
12
16
|
export type DataNode = any;
|
|
13
17
|
export type DefaultValueType = any;
|
|
14
|
-
import { SelectProps } from 'antd/es/select';
|
|
15
18
|
type CheckboxValueType = any;
|
|
16
|
-
import { AnyObjectType, SelectType } from '../brother/typings';
|
|
17
|
-
import './index.less';
|
|
18
19
|
export interface DefaultOptionType {
|
|
19
20
|
value?: string | number;
|
|
20
21
|
label?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { FormItemProps } from 'antd/es/form';
|
|
3
3
|
import { SelectType, AnyObjectType } from '../../brother/typings';
|
|
4
|
-
import { TableColumns } from '
|
|
4
|
+
import { TableColumns } from '..';
|
|
5
5
|
import './index.less';
|
|
6
6
|
type remoteValueType = string | undefined;
|
|
7
7
|
type remotePromiseType = (value: remoteValueType, record: AnyObjectType) => Promise<SelectType[]>;
|
|
@@ -40,6 +40,8 @@ export interface EditableColumnsType {
|
|
|
40
40
|
controlRender: (record: AnyObjectType, childNode: React.ReactNode) => React.ReactNode;
|
|
41
41
|
/** 表单项placeholder */
|
|
42
42
|
placeholder?: string;
|
|
43
|
+
/** 表单值变化是否触发远程搜索下拉数据更新 */
|
|
44
|
+
triggerRemoteSearch?: boolean;
|
|
43
45
|
}
|
|
44
46
|
/** 可编辑单元格 */
|
|
45
47
|
export type EditableCellProps<T = AnyObjectType> = {
|
|
@@ -54,9 +56,8 @@ export type EditableCellProps<T = AnyObjectType> = {
|
|
|
54
56
|
handleSave: (record: T, dataIndex: string) => void;
|
|
55
57
|
columns: TableColumns[];
|
|
56
58
|
} & EditableColumnsType;
|
|
59
|
+
export type EditableCellVC = EditableCellProps & CellType;
|
|
57
60
|
export interface DraggableBodyRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
58
|
-
/** 虚拟表格 */
|
|
59
|
-
vc?: any;
|
|
60
61
|
/** 是否打开拖拽功能 */
|
|
61
62
|
open: boolean;
|
|
62
63
|
/** 拖拽事件 */
|
|
@@ -64,11 +65,17 @@ export interface DraggableBodyRowProps extends React.HTMLAttributes<HTMLTableRow
|
|
|
64
65
|
/** 索引 */
|
|
65
66
|
index: number;
|
|
66
67
|
}
|
|
67
|
-
export declare const EditableRow: React.ForwardRefExoticComponent<DraggableBodyRowProps &
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
export declare const EditableRow: React.MemoExoticComponent<React.ForwardRefExoticComponent<DraggableBodyRowProps & React.RefAttributes<HTMLTableRowElement>>>;
|
|
69
|
+
declare const _default: React.NamedExoticComponent<{
|
|
70
|
+
className?: string;
|
|
71
|
+
title: React.ReactNode;
|
|
72
|
+
children: React.ReactNode;
|
|
73
|
+
dataIndex: string;
|
|
74
|
+
recordIndex: number;
|
|
75
|
+
record: AnyObjectType;
|
|
76
|
+
render?: ((value: any, record: AnyObjectType, index: number) => React.ReactNode) | undefined;
|
|
77
|
+
/** 保存表单的值 */
|
|
78
|
+
handleSave: (record: AnyObjectType, dataIndex: string) => void;
|
|
79
|
+
columns: TableColumns[];
|
|
80
|
+
} & EditableColumnsType & CellType>;
|
|
81
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const _default: React.MemoExoticComponent<({ onResize, width, ...restProps }: any) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
@@ -111,5 +111,5 @@ type TablePaginationType = TablePaginationConfig & {
|
|
|
111
111
|
pages: number;
|
|
112
112
|
[key: string]: any;
|
|
113
113
|
};
|
|
114
|
-
declare const _default: React.ForwardRefExoticComponent<GenerateTableProp & React.RefAttributes<unknown
|
|
114
|
+
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<GenerateTableProp & React.RefAttributes<unknown>>>;
|
|
115
115
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from 'antd/es/button';
|
|
3
3
|
import type { FormInstance } from 'antd/es/form';
|
|
4
|
-
type NamePath = any;
|
|
5
4
|
import { FormProps } from 'antd/es/form';
|
|
6
5
|
import { ColProps } from 'antd/es/col';
|
|
7
6
|
import { FormListType } from '../GenerateForm';
|
|
8
7
|
import { AnyObjectType, SubmitApiType } from '../brother/typings';
|
|
9
8
|
import './index.less';
|
|
9
|
+
type NamePath = any;
|
|
10
10
|
export interface LayoutFormPropTypes {
|
|
11
11
|
/** 类名 */
|
|
12
12
|
className?: string;
|
|
@@ -68,6 +68,8 @@ export interface LayoutTableModalPropType {
|
|
|
68
68
|
/** 内容区域高度 */
|
|
69
69
|
height?: number;
|
|
70
70
|
};
|
|
71
|
+
/** 虚拟滚动功能 */
|
|
72
|
+
virtual?: GenerateTableProp['extra']['virtual'];
|
|
71
73
|
/** 排列方式布局Row */
|
|
72
74
|
rowProps?: RowProps;
|
|
73
75
|
/** 主内容Col */
|
|
@@ -82,6 +84,18 @@ export interface LayoutTableModalPropType {
|
|
|
82
84
|
colProps: ColProps;
|
|
83
85
|
jsx: React.ReactNode;
|
|
84
86
|
};
|
|
87
|
+
/** 右侧导出 */
|
|
88
|
+
rightExport?: {
|
|
89
|
+
/** 导出 */
|
|
90
|
+
open: boolean;
|
|
91
|
+
/** 文件名 */
|
|
92
|
+
fileName: string;
|
|
93
|
+
/** 表头配置 */
|
|
94
|
+
headres: {
|
|
95
|
+
key: string;
|
|
96
|
+
title: string;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
85
99
|
/** 数据调用成功回调 */
|
|
86
100
|
getTableSuccessData?: (data: AnyObjectType) => void;
|
|
87
101
|
/** 行选中回调 */
|
|
@@ -89,7 +103,7 @@ export interface LayoutTableModalPropType {
|
|
|
89
103
|
/** 关闭弹窗回调 */
|
|
90
104
|
onCancel?: () => void;
|
|
91
105
|
/** 确定弹窗回调 */
|
|
92
|
-
onConfirm?: (rows: AnyObjectType[], ids: string[]) => Promise<boolean>;
|
|
106
|
+
onConfirm?: (rows: AnyObjectType[], ids: string[], tableList: AnyObjectType[]) => Promise<boolean>;
|
|
93
107
|
}
|
|
94
108
|
declare const _default: React.ForwardRefExoticComponent<LayoutTableModalPropType & React.RefAttributes<unknown>>;
|
|
95
109
|
export default _default;
|