mirror of
https://github.com/501351981/vue-office.git
synced 2025-07-15 07:32:19 +08:00
excel列宽设置
This commit is contained in:
parent
61bcc808c2
commit
c7df613225
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@js-preview/excel",
|
||||
"type" :"module",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue-office/excel",
|
||||
"version": "1.2.3",
|
||||
"version": "1.2.4",
|
||||
"description": "",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
|
@ -19,6 +19,7 @@ const themeColor = [
|
||||
];
|
||||
|
||||
let defaultColWidth = 80;
|
||||
let defaultRowHeight = 24;
|
||||
export function getData(src, options={}) {
|
||||
return requestExcel(getUrl(src), options);
|
||||
}
|
||||
@ -248,6 +249,8 @@ export function transferExcelToSpreadSheet(workbook, options){
|
||||
|
||||
if(row.height){
|
||||
sheetData.rows[spreadSheetRowIndex].height = row.height + (options.heightOffset || 0);
|
||||
}else{
|
||||
sheetData.rows[spreadSheetRowIndex].height = defaultRowHeight + (options.heightOffset || 0);
|
||||
}
|
||||
//includeEmpty = false 不包含空白单元格
|
||||
(row._cells || []).forEach((cell, spreadSheetColIndex) =>{
|
||||
|
Loading…
x
Reference in New Issue
Block a user