0.1.0 • Published 3 years ago

xlsx-to-table v0.1.0

Weekly downloads
44
License
-
Repository
-
Last release
3 years ago

xlsx-to-table

Not need upload, view xlsx or xls file in your browser, Supported by js-xlsx.

npm version

Requirements

  • vue: ^2.0.0

Usage

install

 npm install xlsx-to-table --save

main.js

import xlsxToTable from 'xlsx-to-table'
Vue.use(xlsxToTable, {rABS: false}) //Browser FileReader API have two methods to read local file readAsBinaryString and readAsArrayBuffer, default rABS false

file.vue

<template>
  <div id="app">
    <h1>xlsx-to-table</h1>
    <xlsx-to-table @on-select-file="handleSelectedFile"></xlsx-to-table>
  </div>
</template>

<script>
export default {
  name: 'app',
  methods: {
    handleSelectedFile (convertedData) {
      console.log(convertedData)
    }
  }
}
</script>

Develop

npm run dev  //develop
npm run build //production
0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago