diff --git a/entry/src/main/ets/components/CustomList.ets b/entry/src/main/ets/components/CustomList.ets index c6f2379f1141afb96b7e4440e848fa046bd83327..dd7477191aef62d69cbbdcdbeeae295d3f53c1ed 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 d4908555c71f564f9364b833c4d5e014403ceb03..2c426833233a9ddb2e164838ce6494f16eb0fa28 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) {