state={
options: {//excel config
// minDimensions:[20,100],
csvFileName:"111",
data:[[]],
columns:[],
colHeaders:[],
defaultColWidth: 114,
allowRenameColumn: false,//禁止对excel列 进行增加删除操作
allowDeleteColumn: false,
allowDragInsertColumn: false,
allowInsertColumn: false,
allowManualInsertColumn: false,
about:false,
// onbeforeinsertcolumn: function(){
// return false
// },
// onbeforedeletecolumn: function(){
// return false
// },
// onmerge: function(){
// return false
// },
// onchangeheader: function(){
// return false
// },
// text:{翻译文案
// areYouSureToDeleteTheSelectedRows :‘您确定要删除选定的行吗?‘,
// deleteSelectedRows:‘删除所选行‘,
// }
updateTable: function(instance, cell, col, row, val, label, cellName) {
// updateTable: function(el, cell, x, y, source, value, id) {
// debugger
// if(col)
// if (x == 1 && y == 0) {
// debugger
// cell.classList.add(‘readonly‘);
// }
// console.log(cell,x,y,value)
// console.log(instance, cell, col, row, val, label, cellName)
}
// style:"te"
// tableOverflow: true,
// tableWidth: "800px",
},
}
原文:https://www.cnblogs.com/do-something/p/15156183.html