CSV export
The @visactor/vtable-export
package is a tool packaged for VTable table export. It supports export in both CSV and Excel formats.
Usage
import
First, you need to install the @visactor/vtable
and @visactor/vtable-export
packages in your application, then introduce them in your code to generate a table instance and export it:
exportVTableToCsv
: Table output tool, outputs table instances as a string in CSV formatdownloadCsv
: Download tool to download CSV format strings as files in a browser environment- If it is a server environment, you can process the CSV format string converted by
exportVTableToCsv
yourself.
Referencedemo
umd
You can also directly introduce the umd product of the @visactor/vtable-export
package in HTML:
Find the corresponding tool in the global variable VTable.export
and use the same method as above: