diff --git a/packages/amis/src/renderers/Table/index.tsx b/packages/amis/src/renderers/Table/index.tsx index d329603e7..012831493 100644 --- a/packages/amis/src/renderers/Table/index.tsx +++ b/packages/amis/src/renderers/Table/index.tsx @@ -2774,12 +2774,12 @@ export default class Table extends React.Component { store.clear(); break; case 'select': - const dataSource = store.getData(data); const selected: Array = []; - dataSource.items.forEach((item: any, rowIndex: number) => { - const flag = evalExpression(args?.selected, {record: item, rowIndex}); + store.falttenedRows.forEach((item: any, rowIndex: number) => { + const record = item.data; + const flag = evalExpression(args?.selected, {record, rowIndex}); if (flag) { - selected.push(item); + selected.push(record); } }); store.updateSelected(selected, valueField);