dream-num / Luckysheet

Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.
https://dream-num.github.io/LuckysheetDocs/
MIT License
15.96k stars 2.38k forks source link

vue版本 luckysheet.getDefaultRowHeight() 返回值是undefined #861

Open gethubHanSo opened 2 years ago

gethubHanSo commented 2 years ago

Vue版本 luckysheet.getDefaultRowHeight() 返回值是undefined 请核实bug,谢谢! 代码使用如下:: getDefaultColWidth () { let defaultColWidth = luckysheet.getDefaultColWidth({ success: function (data) { alert('获取默认列宽成功!') } }); alert('默认列宽::' + defaultColWidth) } defaultColWidth 为undefined

nekobc1998923 commented 2 years ago

a8bc75e12cd44043a0176fa0010700b6

getDefaultRowHeight返回的是那个工作表所配置的默认行高,如果工作表没有单独配置默认行高的话就会返回成undefined

nekobc1998923 commented 2 years ago

getDefaultRowHeight()和getDefaultColWidth() 这两个api看起来需要改进:当没有配置工作表的默认行高列宽时返回全局的默认行高列宽