Excel Parser
Converts Excel sheets to a JSON array of objects with properties defined by the user <<<<<<< HEAD
Install
npm install @jtekt/vue-excel-parser
Usage
<template>
<ExcelParser
height="500px"
@update="parsedExcel = $event"
v-model:fields="fieldsToSelect"
v-model:sheet="sheet"
:rows="{ start: 1, end: 5 }"
/>
</template>
<script setup lang="ts">
import ExcelParser from "@/components/ExcelParser.vue"
import { ref } from "vue"
const parsedExcel = ref([])
const sheet = ref("Movies")
const fieldsToSelect = [
{ value: "title", text: "Title", column: undefined },
{ value: "year", text: "Year", column: undefined },
{ value: "director", text: "Director", column: undefined },
]
</script>
7b934f93206d9916590e28da6e1989855d98ec72