|
@@ -393,7 +393,7 @@ var sheetCommonObj = {
|
|
|
}
|
|
|
sheet.resumePaint();
|
|
|
},
|
|
|
- //设置系统粘贴板数据,需要用户触发时间,直接调用会失败
|
|
|
+ //设置系统粘贴板数据,需要用户触发事件,直接调用会失败
|
|
|
copyTextToClipboard: function(text) {
|
|
|
var textArea = document.createElement("textarea");
|
|
|
textArea.style.position = 'fixed';
|
|
@@ -419,8 +419,7 @@ var sheetCommonObj = {
|
|
|
document.body.removeChild(textArea);
|
|
|
},
|
|
|
//获取选中区域的表格类型数据(可粘贴到excel)
|
|
|
- getTableData: function (sheet, colSettings) {
|
|
|
- console.log(colSettings);
|
|
|
+ getTableData: function (sheet, colSettings = null) {
|
|
|
let rst = '';
|
|
|
let sel = sheet.getSelections()[0];
|
|
|
let vRows = [];
|