+
);
- }
+ };
return withPureRenderTheme(PurePanel);
-}
+};
+
+export default genPurePanel;
diff --git a/components/_util/extendsObject.ts b/components/_util/extendsObject.ts
index 80e033c937..f956840637 100644
--- a/components/_util/extendsObject.ts
+++ b/components/_util/extendsObject.ts
@@ -1,7 +1,7 @@
-type RecordType = Record
;
+import type { AnyObject } from './type';
-function extendsObject(...list: T[]) {
- const result: RecordType = { ...list[0] };
+const extendsObject = (...list: T[]) => {
+ const result: AnyObject = { ...list[0] };
for (let i = 1; i < list.length; i++) {
const obj = list[i];
@@ -16,6 +16,6 @@ function extendsObject(...list: T[]) {
}
return result;
-}
+};
export default extendsObject;
diff --git a/components/_util/getRenderPropValue.ts b/components/_util/getRenderPropValue.ts
index fe673166b5..fd03c931c7 100644
--- a/components/_util/getRenderPropValue.ts
+++ b/components/_util/getRenderPropValue.ts
@@ -9,9 +9,5 @@ export const getRenderPropValue = (
return null;
}
- if (typeof propValue === 'function') {
- return propValue();
- }
-
- return propValue;
+ return typeof propValue === 'function' ? propValue() : propValue;
};