mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
feat: export-excel 支持 label 使用 tpl Closes #5811
This commit is contained in:
parent
ff7084ed9d
commit
ee7bce25e1
@ -141,7 +141,7 @@ export default {
|
||||
columns: [
|
||||
{
|
||||
name: 'icon',
|
||||
label: '图标',
|
||||
label: '<%= "图标" %>',
|
||||
type: 'image'
|
||||
},
|
||||
{
|
||||
|
@ -128,7 +128,7 @@ export async function exportExcel(
|
||||
: columns;
|
||||
|
||||
const firstRowLabels = filteredColumns.map(column => {
|
||||
return column.label;
|
||||
return filter(column.label, data);
|
||||
});
|
||||
const firstRow = worksheet.getRow(1);
|
||||
firstRow.values = firstRowLabels;
|
||||
|
Loading…
Reference in New Issue
Block a user