From 84aa7c8f48ddcd99a3ba958aaa9da2faf2a1533e Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 27 Aug 2024 12:15:45 +0800 Subject: [PATCH] * list: fix beforeRender not work. --- lib/list/src/component/list.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/list/src/component/list.tsx b/lib/list/src/component/list.tsx index 5cf892743b..4a226b76da 100644 --- a/lib/list/src/component/list.tsx +++ b/lib/list/src/component/list.tsx @@ -249,6 +249,10 @@ export class List

): void | RenderableProps

| undefined { + return this.props.beforeRender?.call(this, props); + } + protected _getItems(props: RenderableProps

): Item[] { const {items} = props; const {items: stateItems} = this.state;