hlyc-web-pack 3.0.8 → 3.1.1
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.
|
@@ -19,7 +19,7 @@ export declare type ScrollXYType = {
|
|
|
19
19
|
x?: string | number | true | undefined;
|
|
20
20
|
y?: string | number | undefined;
|
|
21
21
|
};
|
|
22
|
-
interface GenerateTableProp {
|
|
22
|
+
export interface GenerateTableProp {
|
|
23
23
|
extra: {
|
|
24
24
|
/** 支持antd Table组件官方传参所有类型 */
|
|
25
25
|
tableConfig?: TableProps<any>;
|
|
@@ -4,7 +4,7 @@ import { ColProps } from 'antd/lib/col';
|
|
|
4
4
|
import { TableProps, ColumnType } from 'antd/es/table';
|
|
5
5
|
import { FormProps } from 'antd/es/form';
|
|
6
6
|
import { FormListType, FormCallType } from '../GenerateForm';
|
|
7
|
-
import { TableCallType } from '../GenerateTable';
|
|
7
|
+
import { TableCallType, GenerateTableProp } from '../GenerateTable';
|
|
8
8
|
import { AnyObjectType, PromiseAxiosResultType } from '../unrelated/typings';
|
|
9
9
|
import './index.less';
|
|
10
10
|
export declare type LayoutTableModalCallType = TableCallType & FormCallType & {
|
|
@@ -52,6 +52,17 @@ export interface LayoutTableModalPropType {
|
|
|
52
52
|
manualParameterChange?: (params: AnyObjectType) => AnyObjectType;
|
|
53
53
|
/** 静态表格数据 */
|
|
54
54
|
data?: AnyObjectType[];
|
|
55
|
+
/** 已选列表 */
|
|
56
|
+
openSelected?: {
|
|
57
|
+
/** 是否打开 */
|
|
58
|
+
visible: boolean;
|
|
59
|
+
/** 默认已选中 */
|
|
60
|
+
defaultValues?: AnyObjectType[];
|
|
61
|
+
/** 显示的字段名 */
|
|
62
|
+
fileName: string;
|
|
63
|
+
/** 内容区域高度 */
|
|
64
|
+
height?: number;
|
|
65
|
+
};
|
|
55
66
|
/** 排列方式布局Row */
|
|
56
67
|
rowProps?: RowProps;
|
|
57
68
|
/** 主内容Col */
|
|
@@ -68,6 +79,8 @@ export interface LayoutTableModalPropType {
|
|
|
68
79
|
};
|
|
69
80
|
/** 数据调用成功回调 */
|
|
70
81
|
getTableSuccessData?: (data: AnyObjectType) => void;
|
|
82
|
+
/** 行选中回调 */
|
|
83
|
+
onSelect?: GenerateTableProp['extra']['onSelect'];
|
|
71
84
|
/** 关闭弹窗回调 */
|
|
72
85
|
onCancel?: () => void;
|
|
73
86
|
/** 确定弹窗回调 */
|