vue-xlsx-table
vue-xlsx-table
Not need upload, view xlsx or xls file in your browser, Supported by js-xlsx. Live Demo
Requirements
- vue: ^2.0.0
Usage
install
npm install vue-xlsx-table --save
main.js
import vueXlsxTable from 'vue-xlsx-table'
Vue.use(vueXlsxTable, {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>vue-xlsx-table</h1>
<vue-xlsx-table @on-select-file="handleSelectedFile"></vue-xlsx-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
xlsx-vue-viewer
Vue 3 component for the Excel spreadsheet editor. Self-contained: includes the e...
2,632
25
@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 |
|---|---|---|---|
| 1.2.8 | ^2.0.0 | ||
| 1.2.7 | ^2.0.0 | ||
| 1.2.6 | ^2.0.0 | ||
| 1.2.5 | ^2.0.0 | ||
| 0.2.5 | ^2.0.0 | ||
| 0.2.4 | ^2.0.0 | ||
| 0.2.3 | ^2.0.0 | ||
| 0.1.3 | ^2.2.4 | ||
| 0.1.2 | ^2.2.4 | ||
| 0.1.1 | ^2.2.4 | ||
| 0.1.0 | ^2.2.4 |