1.0.8 • Published 3 years ago

el-table-export v1.0.8

Weekly downloads
221
License
MIT
Repository
github
Last release
3 years ago

el-table-export

Make the Table component in Element-UI support exporting text, json, csv, xls files.

简体中文 文档

GitHub stars GitHub license

NPM

Installation

npm install el-table-export --save

or

yarn add el-table-export

Arguments

NameDescTypeOptionalDefault
fileNameFile NameStringexport
typeExport TypeStringtext / json / csv / xlscsv
withBOMAdd BOM(byte order mark) meta to CSV file. BOM is expected by Excel when reading UTF8 CSV file.Booleanfalse
useFormatterWhether to use the formatter attribute provided by Element-UI.Booleantrue
delimiterAvailable when the export format is CSV file. SourceString,

DEMO

Demo File

import elTableExport from "el-table-export";

elTableExport(this.$refs.elTable, {
    fileName: "export-demo",
    type: "csv",
    withBOM: false,
}).then((result) => {
    console.info("successfully");
}).catch((err) => {
    console.info("Error: " , err);
});
1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago