Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GeoffZhu/vue-xlsx-table
Not need upload, view xlsx or xls file in your browser, Supported by js-xlsx.
https://github.com/GeoffZhu/vue-xlsx-table
excel table vue xlsx
Last synced: 2 days ago
JSON representation
Not need upload, view xlsx or xls file in your browser, Supported by js-xlsx.
- Host: GitHub
- URL: https://github.com/GeoffZhu/vue-xlsx-table
- Owner: GeoffZhu
- License: apache-2.0
- Created: 2017-03-17T09:47:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T13:04:45.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T23:04:38.816Z (9 days ago)
- Topics: excel, table, vue, xlsx
- Language: Vue
- Homepage: http://blog.geoffzhu.cn/vue-xlsx-table/
- Size: 2.81 MB
- Stars: 149
- Watchers: 5
- Forks: 34
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-xlsx-table
> Not need upload, view xlsx or xls file in your browser, Supported by [js-xlsx](https://github.com/SheetJS/js-xlsx).
> [Live Demo](http://geoffzhu.cn/vue-xlsx-table/)[![npm version](https://img.shields.io/npm/v/vue-xlsx-table.svg)](https://www.npmjs.com/package/vue-xlsx-table)
[中文文档](https://github.com/GeoffZhu/vue-xlsx-table/blob/master/README.zh.md)
## Requirements
- vue: ^2.0.0## Usage
#### install``` sh
npm install vue-xlsx-table --save
```#### main.js
```javascript
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
```vue
vue-xlsx-table
export default {
name: 'app',
methods: {
handleSelectedFile (convertedData) {
console.log(convertedData)
}
}
}```
## Develop
```
npm run dev //develop
npm run build //production
```