xlsx-to-table

View .xlsx file in browser for Vue2
475
Install
npm install xlsx-to-table
Latest Version:0.1.0
Vue:2
Last Updated:Nov 26, 2020
Links: Gitee  ·  npm
Maintainer: diaohaiyuan

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

Related Packages

vue-xlsx-table

View .xlsx file in browser for Vue2

6,582 149
xlsx-vue-viewer

Vue 3 component for the Excel spreadsheet editor. Self-contained: includes the e...

2,632 25
@composy/excel-vue

Excel 文档查看器 Vue 3 组件

0
@dazzadev/vue-sheet-mapper

Vue 3 component for Excel and CSV imports: users match each column of their file...

1,219 0

Version History

Version Released Vue License
0.1.0 ^2.0.0
0.0.9 ^2.0.0
0.0.8 ^2.0.0
0.0.7 ^2.0.0
0.0.6 ^2.0.0