|
@@ -188,7 +188,7 @@ export default {
|
|
|
unit:'',
|
|
|
}
|
|
|
|
|
|
- this.setRangeShow(['A1','A1'])
|
|
|
+ luckysheet.setRangeShow(['A1','A1'])
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -218,13 +218,15 @@ export default {
|
|
|
|
|
|
/* 处理超过表格行无法显示选区的问题 超过后截止到最后一行 */
|
|
|
filterFormula(item,rowLen) {
|
|
|
- let celArr = item.split(':');
|
|
|
- let numStr = celArr[1].replace(/[^0-9]/ig,"");
|
|
|
- let letterStr = celArr[1].replace(/[^a-z]+/ig,"");
|
|
|
+ let cellArr = item.split(':');
|
|
|
+ if(!cellArr[1]) return item
|
|
|
+
|
|
|
+ let numStr = cellArr[1].replace(/[^0-9]/ig,"");
|
|
|
+ let letterStr = cellArr[1].replace(/[^a-z]+/ig,"");
|
|
|
|
|
|
let lastNum = Number(numStr) > rowLen ? rowLen : Number(numStr);
|
|
|
|
|
|
- return `${celArr[0]}:${letterStr}${lastNum}`
|
|
|
+ return `${cellArr[0]}:${letterStr}${lastNum}`
|
|
|
},
|
|
|
|
|
|
/* 解析公式 */
|