update knowledge base file selection component (#96)

* feat: Implement DatasetFileTransfer component for file selection and management

* feat: Add pagination support to file list in Overview component
This commit is contained in:
chenghh-9609
2025-11-21 11:39:26 +08:00
committed by GitHub
parent cddfe9b149
commit fdfcfec1f1
7 changed files with 364 additions and 312 deletions

View File

@@ -6,6 +6,7 @@ import { datasetTypeMap } from "../../dataset.const";
export default function Overview({ dataset, filesOperation }) {
const {
fileList,
pagination,
selectedFiles,
setSelectedFiles,
previewVisible,
@@ -179,7 +180,10 @@ export default function Overview({ dataset, filesOperation }) {
dataSource={fileList}
// rowSelection={rowSelection}
scroll={{ x: "max-content", y: 600 }}
pagination={{ showTotal: (total) => `${total}` }}
pagination={{
...pagination,
showTotal: (total) => `${total}`,
}}
/>
</div>
</div>