From ba7c6017cee55a193cada92eba79aeacd2321393 Mon Sep 17 00:00:00 2001 From: tongzihan <15671769870@163.com> Date: Sat, 14 Jun 2025 11:40:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B6=E7=BB=84=E4=BB=B6=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=20=E5=8E=BB=E6=8E=89private?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/components/CustomList.ets | 2 +- entry/src/main/ets/components/SelectionList.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/components/CustomList.ets b/entry/src/main/ets/components/CustomList.ets index c6f2379..dd74771 100644 --- a/entry/src/main/ets/components/CustomList.ets +++ b/entry/src/main/ets/components/CustomList.ets @@ -22,7 +22,7 @@ export interface CustomListItem { @Component export struct CustomList { @Prop data: CustomListItem[] = []; - private onRowClick: (item: CustomListItem) => void = () => {}; + onRowClick: (item: CustomListItem) => void = () => {}; @BuilderParam operateButton: (item: CustomListItem) => void; diff --git a/entry/src/main/ets/components/SelectionList.ets b/entry/src/main/ets/components/SelectionList.ets index d490855..2c42683 100644 --- a/entry/src/main/ets/components/SelectionList.ets +++ b/entry/src/main/ets/components/SelectionList.ets @@ -19,7 +19,7 @@ import { CustomList, CustomListItem } from './CustomList'; export struct SelectionList { @Prop data: CustomListItem[] = []; @Link selectedRowId: string; - private beforeRowChange: (row: CustomListItem) => Promise = () => Promise.resolve(true); + beforeRowChange: (row: CustomListItem) => Promise = () => Promise.resolve(true); @LocalBuilder operationButtonBuilder(row: CustomListItem) { -- Gitee