vue-excelview

1.0.7 • Public • Published

vue-excelview

使用说明

1. 安装

npm install xlsx
npm install canvas-datagrid
npm install vue-preview --save

2. 引入模块

import excelview from 'vue-preview'
components:{
  'excel-view': excelview
}

3. vue引入

<excel-view :datas="excelData"/>

4. 获取excel

this.$axios.get('http://demo.haoji.me/2017/02/08-js-xlsx/sample/sample.xlsx', {
  responseType: 'arraybuffer'
})
  .then((res) => {
    this.excelData = res.data
  })

Readme

Keywords

none

Package Sidebar

Install

npm i vue-excelview

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

6.69 MB

Total Files

13

Last publish

Collaborators

  • liyoukuan