@jiaozhiye/qm-design-react 1.7.17 → 1.7.18
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/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/table/src/context/index.d.ts +1 -1
- package/lib/table/src/hooks/useTableCore.d.ts +2 -2
- package/lib/table/src/hooks/useTableMemo.d.ts +1 -1
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export type ITableContext = {
|
|
|
13
13
|
editableColumns: IColumn[];
|
|
14
14
|
leftFixedColumns: IColumn[];
|
|
15
15
|
rightFixedColumns: IColumn[];
|
|
16
|
-
|
|
16
|
+
treeExpandIndex: string;
|
|
17
17
|
sorter: ITableState['sorter'];
|
|
18
18
|
filters: ITableState['filters'];
|
|
19
19
|
superFilters: ITableState['superFilters'];
|
|
@@ -64,8 +64,8 @@ declare const useTableCore: <T extends ITableProps>(props: T, extra: IExtra) =>
|
|
|
64
64
|
createSelectionKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
65
65
|
createSelectionRows: (selectedKeys: IRowKey[]) => IRecord<any>[];
|
|
66
66
|
createRowExpandedKeys: (rowKeys?: IRowKey[]) => (string | number)[];
|
|
67
|
-
findParentRowKeys: (
|
|
68
|
-
getAllChildRowKeys: (
|
|
67
|
+
findParentRowKeys: (deriveRowKeyList: IDerivedRowKey[], key: IRowKey) => (string | number)[];
|
|
68
|
+
getAllChildRowKeys: (deriveRowKeyList: IDerivedRowKey[]) => (string | number)[];
|
|
69
69
|
doFieldValidate: (rules: IRule[], val: unknown, rowKey: IRowKey, columnKey: string) => void;
|
|
70
70
|
getTableLog: () => {
|
|
71
71
|
required: IValidItem[];
|
|
@@ -23,7 +23,7 @@ declare const useTableMemo: <T extends ITableProps>(props: T, extra: IExtra) =>
|
|
|
23
23
|
summationColumns: IColumn[];
|
|
24
24
|
leftFixedColumns: IColumn[];
|
|
25
25
|
rightFixedColumns: IColumn[];
|
|
26
|
-
|
|
26
|
+
treeExpandIndex: string;
|
|
27
27
|
showSummary: boolean;
|
|
28
28
|
showFooter: boolean;
|
|
29
29
|
isHeadGroup: boolean;
|
|
@@ -177,6 +177,7 @@ export declare const propTypes: {
|
|
|
177
177
|
}>>;
|
|
178
178
|
treeConfig: PropTypes.Requireable<PropTypes.InferProps<{
|
|
179
179
|
virtual: PropTypes.Requireable<boolean>;
|
|
180
|
+
expandIconColumn: PropTypes.Requireable<string>;
|
|
180
181
|
}>>;
|
|
181
182
|
expandable: PropTypes.Requireable<PropTypes.InferProps<{
|
|
182
183
|
defaultExpandAllRows: PropTypes.Requireable<boolean>;
|
|
@@ -198,6 +198,7 @@ export type IRowHighlight = {
|
|
|
198
198
|
};
|
|
199
199
|
export type ITreeConfig = {
|
|
200
200
|
virtual?: boolean;
|
|
201
|
+
expandIconColumn?: string;
|
|
201
202
|
};
|
|
202
203
|
export type ITreeExpand = {
|
|
203
204
|
rowKey: IRowKey;
|
|
@@ -313,6 +314,7 @@ export type IDerivedRowKey = {
|
|
|
313
314
|
level: number;
|
|
314
315
|
rowKey: IRowKey;
|
|
315
316
|
rowKeyPath: string;
|
|
317
|
+
indexPath: string;
|
|
316
318
|
parentRowKey?: IRowKey;
|
|
317
319
|
children?: IDerivedRowKey[];
|
|
318
320
|
};
|