@jtekt/vue-excel-parser

0.0.9 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @jtekt/vue-excel-parser

Weekly Downloads

0

Version

0.0.9

License

MIT

Unpacked Size

857 kB

Total Files

7

Last publish

Collaborators

  • moreillon