提示:我这是使用了element-ui样式框架,默认是您已经安装了element-ui
安装vue-json-excel插件
npm install vue-json-excel --save
引入vue-json-excel组件,并使用
:fields = "json_fields"
:data="multipleSelection"
:before-generate = "startDownload"
:before-finish = "finishDownload"
type="xls">
导出
ref="multipleTable"
:data="tableData"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange">
type="selection"
width="55">
label="日期"
width="120">
{ { scope.row.date }}
prop="name"
label="姓名"