diff --git a/lib/common-list/src/component/common-list.tsx b/lib/common-list/src/component/common-list.tsx index 81d69844c4..f331b985c0 100644 --- a/lib/common-list/src/component/common-list.tsx +++ b/lib/common-list/src/component/common-list.tsx @@ -276,6 +276,13 @@ export class CommonList
ext
} else if (!Array.isArray(items)) {
items = [];
}
+ const {getItems} = props;
+ if (getItems) {
+ const result = getItems.call(this, items as Item[]);
+ if (result !== undefined) {
+ return result;
+ }
+ }
return items as Item[];
}
diff --git a/lib/common-list/src/types/common-list-props.ts b/lib/common-list/src/types/common-list-props.ts
index 1bbfd4530b..a463b986fc 100644
--- a/lib/common-list/src/types/common-list-props.ts
+++ b/lib/common-list/src/types/common-list-props.ts
@@ -50,6 +50,14 @@ export interface CommonListProps