|
@@ -189,10 +189,12 @@ var setImages = function (table, worksheet, workbook) {
|
|
|
} else {
|
|
|
col_st = getImagePosition(item.default.left, visibledatacolumn);
|
|
|
row_st = getImagePosition(item.default.top, visibledatarow);
|
|
|
- imgWidth = item.default.width;
|
|
|
- imgHeight = item.default.height;
|
|
|
- let w_ed = item.default.left + item.default.width;
|
|
|
- let h_ed = item.default.top + item.default.height;
|
|
|
+ imgWidth = item.originWidth;
|
|
|
+ imgHeight = item.originHeight;
|
|
|
+ // imgWidth = item.default.width;
|
|
|
+ // imgHeight = item.default.height;
|
|
|
+ let w_ed = item.default.left + imgWidth;
|
|
|
+ let h_ed = item.default.top + imgHeight;
|
|
|
let col_ed = getImagePosition(w_ed, visibledatacolumn);
|
|
|
let row_ed = getImagePosition(h_ed, visibledatarow);
|
|
|
cellConfig = {
|
|
@@ -437,6 +439,7 @@ export var exportExcel = function (luckysheet, value) {
|
|
|
|
|
|
// 4.写入 buffer
|
|
|
const buffer = workbook.xlsx.writeBuffer().then(data => {
|
|
|
+ console.log(data)
|
|
|
const blob = new Blob([data], {
|
|
|
type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
})
|