hlyc-web-pack 3.5.32 → 3.5.34
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,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InternalFieldProps } from 'rc-field-form/lib/Field';
|
|
3
3
|
import { SelectType, AnyObjectType } from '../../unrelated/typings';
|
|
4
|
+
import './index.less';
|
|
4
5
|
declare type remoteValueType = string | undefined;
|
|
5
6
|
declare type remotePromiseType = (value: remoteValueType, record: AnyObjectType) => Promise<SelectType[]>;
|
|
6
7
|
export interface EditableColumnsType {
|
|
@@ -34,7 +35,12 @@ declare type EditableCellProps = {
|
|
|
34
35
|
/** 保存表单的值 */
|
|
35
36
|
handleSave: (record: AnyObjectType) => void;
|
|
36
37
|
} & EditableColumnsType;
|
|
37
|
-
|
|
38
|
+
interface DraggableBodyRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
39
|
+
open: boolean;
|
|
40
|
+
index: number;
|
|
41
|
+
moveRow: (dragIndex: number, hoverIndex: number) => void;
|
|
42
|
+
}
|
|
43
|
+
export declare const EditableRow: ({ open, index, moveRow, className, style, ...restProps }: DraggableBodyRowProps) => JSX.Element;
|
|
38
44
|
/** 可编辑单元格 */
|
|
39
45
|
declare const EditableCell: React.FC<EditableCellProps>;
|
|
40
46
|
export default EditableCell;
|
|
@@ -54,6 +54,13 @@ export interface GenerateTableProp {
|
|
|
54
54
|
data?: AnyObjectType[];
|
|
55
55
|
/** 表格数据编辑是否是受控组件 默认是 */
|
|
56
56
|
controlled?: boolean;
|
|
57
|
+
/** 列拖动功能 */
|
|
58
|
+
drag?: {
|
|
59
|
+
/** 打开与关闭 */
|
|
60
|
+
open: boolean;
|
|
61
|
+
/** 拖动回调 */
|
|
62
|
+
moveRow: (dragIndex: number, hoverIndex: number, data: AnyObjectType[], range: AnyObjectType[]) => void;
|
|
63
|
+
};
|
|
57
64
|
/** 行选中回调 */
|
|
58
65
|
onSelect?: (selectedRows: AnyObjectType[], selectedRowKeys: any[]) => void;
|
|
59
66
|
/** 控制分页格式 */
|