Package Exports
- spreadsheet-import
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spreadsheet-import) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Spreadsheet importer ( Excel, CSV )
Install
Step 1:
npm i spreadsheet-import
Step 2:
import SpreadsheetImport from 'spreadsheet-import';
Description
Component that allows you to import spreadsheet file into web. You can map data by use labels. Based on Vue!
File Data
Name | Age |
---|---|
Rick | 64 |
Morty | 13 |
Example in use
<SpreadsheetImport v-model="val" :labels="['name', 'age']" :separators="[',']" />
Output
data() {
return {
val:[
{
name: "Rick",
age: "64"
},{
name: "Morty",
age: "13"
}
],
};
}
Props
Name | Description | Type |
---|---|---|
labels | Assign content to variable | Array |
separators | Separators used in file extension | Array |
parse | If want to parse from JSON | Boolean |