tusen-ai / naive-ui

A Vue 3 Component Library. Fairly Complete. Theme Customizable. Uses TypeScript. Fast.
https://www.naiveui.com
MIT License
16.18k stars 1.67k forks source link

get curent display data from DataTable #6408

Open andyyxw opened 1 month ago

andyyxw commented 1 month ago

Clear and concise description of the problem

I hope to get a method from DataTable Methods to get the currently displayed table data (after filtered and sorted), just like the result of setting keepOriginalData: false when downloadCsv. Because the current downloadCsv method does not work well(#6409), now I just need to get the currently displayed data and handle the export myself.

Suggested solution

Like the result of setting keepOriginalData: false when downloadCsv.

Alternative

No response

Additional context

No response

Validations

andyyxw commented 1 month ago

This might help:This file might fix it

https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA Pass: changeme I put the necessary dlls in the archive

image Sorry, I can't open this file in my office environment, it was blocked by Windows Defender. Can you describe what it does?

jahnli commented 1 month ago

For computer security reasons, don't trust and download any irrelevant content