spreadsheet-import
v1.1.0
Published
## Install Step 1: ``` npm i spreadsheet-import ``` Step 2: ``` import SpreadsheetImport from 'spreadsheet-import'; ```
Downloads
6
Maintainers
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